diff --git a/CHANGELOG.md b/CHANGELOG.md index 0240c98..8d67873 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). 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. -## [3.3.0] - 2019-1-4 +## [3.3.1] - 2019-1-4 ### Added - `h3_line` and `h3_line_size` support (#43). ### Changed @@ -15,6 +15,8 @@ We track the MAJOR and MINOR version levels of Uber's H3 project (https://github - 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. - Various documentation corrections. +## [3.3.0] - 2019-1-4 (yanked) + ## [3.2.0] - 2018-12-21 Initial release. \ No newline at end of file diff --git a/lib/h3/bindings/base.rb b/lib/h3/bindings/base.rb index 3e423f7..72d79f2 100644 --- a/lib/h3/bindings/base.rb +++ b/lib/h3/bindings/base.rb @@ -5,10 +5,11 @@ module Bindings # When extended, this module sets up FFI to use the H3 C library. module Base def self.extended(base) + lib_path = File.expand_path(__dir__ + "/../../../ext/h3/src/lib") base.extend FFI::Library base.include Structs base.include Types - base.ffi_lib ["ext/h3/src/lib/libh3.dylib", "ext/h3/src/lib/libh3.so"] + base.ffi_lib ["#{lib_path}/libh3.dylib", "#{lib_path}/libh3.so"] base.typedef :ulong_long, :h3_index base.typedef :int, :size base.typedef :int, :k_distance diff --git a/lib/h3/version.rb b/lib/h3/version.rb index a09e392..18b31c6 100644 --- a/lib/h3/version.rb +++ b/lib/h3/version.rb @@ -1,3 +1,3 @@ module H3 - VERSION = "3.3.0".freeze + VERSION = "3.3.1".freeze end