Skip to content

Commit d192b41

Browse files
committed
Release v3.3.1.
FFI lib dir must be absolute.
1 parent 68cb2ac commit d192b41

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
66

77
We track the MAJOR and MINOR version levels of Uber's H3 project (https://github.com/uber/h3) but maintain independent patch levels so we can make small fixes and non breaking changes.
88

9-
## [3.3.0] - 2019-1-4
9+
## [3.3.1] - 2019-1-4
1010
### Added
1111
- `h3_line` and `h3_line_size` support (#43).
1212
### Changed
@@ -15,6 +15,8 @@ We track the MAJOR and MINOR version levels of Uber's H3 project (https://github
1515
- Include and compile H3 when gem installs (#45). The gem will use a locally built .so and ignore any H3 versions that are installed on the system. This is achieved by submoduling the H3 C code and updating to the matching version tag.
1616
- Various documentation corrections.
1717

18+
## [3.3.0] - 2019-1-4 (yanked)
19+
1820
## [3.2.0] - 2018-12-21
1921

2022
Initial release.

lib/h3/bindings/base.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ module Bindings
55
# When extended, this module sets up FFI to use the H3 C library.
66
module Base
77
def self.extended(base)
8+
lib_path = File.expand_path(__dir__ + "/../../../ext/h3/src/lib")
89
base.extend FFI::Library
910
base.include Structs
1011
base.include Types
11-
base.ffi_lib ["ext/h3/src/lib/libh3.dylib", "ext/h3/src/lib/libh3.so"]
12+
base.ffi_lib ["#{lib_path}/libh3.dylib", "#{lib_path}/libh3.so"]
1213
base.typedef :ulong_long, :h3_index
1314
base.typedef :int, :size
1415
base.typedef :int, :k_distance

lib/h3/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module H3
2-
VERSION = "3.3.0".freeze
2+
VERSION = "3.3.1".freeze
33
end

0 commit comments

Comments
 (0)