Skip to content

Commit

Permalink
Version 0.6.0
Browse files Browse the repository at this point in the history
- Changed: xlsx_drone core library (C) was updated from 0.3.0 to 0.4.0.
Adopting those changes on this version (bugfixes included).
- Providing more support for x64 non Windows OS (GNU/Linux & Unix like
systems) by using the proper shared library.
  • Loading branch information
damian-m-g committed Dec 9, 2024
1 parent af1b4cd commit d0a13a2
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.idea/
.yardoc/
.bundle/
coverage/
doc/
releases/
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) featuring Added, Changed, Deprecated,
Removed, Fixed, Security, and others; and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.6.0] - 2024-12-09
### Changed
- xlsx_drone core library (C) was updated from 0.3.0 to [0.4.0](https://github.com/damian-m-g/xlsx_drone/releases/tag/0.4.0). Adopting those changes on this version (bugfixes included).
- Providing more support for x64 non Windows OS (GNU/Linux & Unix like systems) by using the proper shared library.

## [0.5.0] - 2022-11-19
### Changed
- DLLs used, to the ones for [new version 0.3.0 of xlsx_drone C](https://github.com/damian-m-g/xlsx_drone/releases/tag/0.3.0).
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ puts "Sheet #1 is #{sheet.empty? ? 'empty' : 'not-empty'}"
p sheet.read_cell(row, column)
end
end

# when done with the wb, but non-mandatory (automatically done on normal exit)
wb.close
```

## TODO
Expand All @@ -67,9 +70,10 @@ Also, consider that this TODO list is somehow concatenated to the [C's xlsx_dron

## News

Version 0.4.0 introduces:
* `Sheet#last_column`
* `Sheet#empty?`
Version 0.6.0 introduces:
* Support for Unix-like x64 OS potentially guaranteed.
* Dependencies updated.
* Bugfixes.

## License

Expand Down
Binary file added ext/libxlsx_drone_x64.so
Binary file not shown.
Binary file modified ext/xlsx_drone_x64.dll
Binary file not shown.
Binary file modified ext/xlsx_drone_x86.dll
Binary file not shown.
5 changes: 3 additions & 2 deletions lib/xlsx_drone/native_binding.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ module XLSXDrone

# All things related to the binding with the native C library.
module NativeBinding


PLATFORM_WINDOWS = RUBY_PLATFORM.match(/cygwin|mswin|mingw|bccwin|wince|emx/) ? true : false
PLATFORM_X64 = RUBY_PLATFORM.match(/64/) ? true : false
EXT_PATH = "#{File.dirname(File.dirname(File.dirname(__FILE__)))}/ext"
DLL_PATH = PLATFORM_X64 ? "#{EXT_PATH}/xlsx_drone_x64.dll" : "#{EXT_PATH}/xlsx_drone_x86.dll"
DLL_PATH = PLATFORM_WINDOWS ? (PLATFORM_X64 ? "#{EXT_PATH}/xlsx_drone_x64.dll" : "#{EXT_PATH}/xlsx_drone_x86.dll") : "#{EXT_PATH}/libxlsx_drone_x64.so"

class XLSXWorkbookT < FFI::Struct

Expand Down
2 changes: 1 addition & 1 deletion xlsx_drone.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = "xlsx_drone"
s.version = "0.5.0"
s.version = "0.6.0"
s.summary = "Fast Microsoft Excel's XLSX reader. Binding of C's xlsx_drone lib."
s.author = "Damián M. González"
s.homepage = "https://github.com/damian-m-g/xlsx_drone_rb"
Expand Down

0 comments on commit d0a13a2

Please sign in to comment.