ffi-gdal-extensions 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5887b1ab4134d7b9e2cc0165da509b19293285dd
4
- data.tar.gz: 472fd89fe70ba2308ebb84ad35c67654b50edade
3
+ metadata.gz: 171f10e37ff9c4ac847636ba293bf9229fa97706
4
+ data.tar.gz: c610a61bad37fc148e67db2879d786e4607614b6
5
5
  SHA512:
6
- metadata.gz: c37e14d287542c9a20631606a9cc71cf53b3a9a90c0558410226582277121b5083a099e245fb3361ac242d79f4f322b790f9043a9427f831bc740707440c7c2c
7
- data.tar.gz: 12bb2ab95ac73c98a4ab9938430af100a2be68388831ee06b8dc25335f225b609b41f75ee3dd622e0f8faa69d35446c2eb7f933ab5bceacb564cefc8eb61059d
6
+ metadata.gz: ae66db79d79eea54050861281a8810bf00c0b8c0a325a45d5cf315098af5e51329dec0bab9445270b99a93b808f310f5d37325ca2b507e2f4fee7f81c4b34479
7
+ data.tar.gz: 4ea0cf747a65774679eabd6f4a7fba936a13d52328c1c2f1c46643322ab7513695206cbd00054486e3d817ae212ea810de1e6300ba6e7287d47935a1be093c1d
data/.gitignore CHANGED
@@ -15,3 +15,6 @@ tags
15
15
  spec/examples.txt
16
16
 
17
17
  .ruby-version
18
+
19
+ # Ignore project files
20
+ .idea/
data/History.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Format for this file derived from [http://keepachangelog.com](http://keepachangelog.com).
4
4
 
5
+ ## 0.1.1 / 2016-12-29
6
+
7
+ * Fix broken loading when `LWGEOM_LIBRARY_PATH` is specified
8
+
5
9
  ## 0.1.0 / 2016-05-27
6
10
 
7
11
  * Add `OGR::GeometryExtensions::LWGeomWrappers` with `#make_valid`.
@@ -1,7 +1,7 @@
1
1
  module FFI
2
2
  module GDAL
3
3
  module Extensions
4
- VERSION = '0.1.0'.freeze
4
+ VERSION = '0.1.1'.freeze
5
5
  end
6
6
  end
7
7
  end
@@ -11,7 +11,7 @@ module FFI
11
11
  lib_file_name = "#{lib}.#{FFI::Platform::LIBSUFFIX}*"
12
12
 
13
13
  if ENV['LWGEOM_LIBRARY_PATH']
14
- return File.join(ENV['LWGEOM_LIBRARY_PATH'], lib_file_name)
14
+ return Dir.glob(File.join(ENV['LWGEOM_LIBRARY_PATH'], lib_file_name))
15
15
  end
16
16
 
17
17
  FFI::GDAL.search_paths.flat_map do |search_path|
@@ -21,7 +21,8 @@ module FFI
21
21
  end.uniq.first
22
22
  end
23
23
 
24
- ffi_lib [::FFI::CURRENT_PROCESS, find_lib('liblwgeom')]
24
+ LIB_PATH = find_lib('liblwgeom').freeze
25
+ ffi_lib [::FFI::CURRENT_PROCESS, LIB_PATH] if LIB_PATH
25
26
 
26
27
  VARIANT_WKB_ISO = 0x01
27
28
  VARIANT_WKB_SFSQL = 0x02
@@ -34,8 +35,8 @@ module FFI
34
35
  VARIANT_WKT_SFSQL = 0x02
35
36
  VARIANT_WKT_EXTENDED = 0x04
36
37
 
37
- attach_function :lwgeom_from_wkt, [:string, :bool], Geom.ptr
38
- attach_function :lwgeom_from_wkb, [:pointer, :size_t, :bool], Geom.ptr
38
+ attach_function :lwgeom_from_wkt, %i[string bool], Geom.ptr
39
+ attach_function :lwgeom_from_wkb, %i[pointer size_t bool], Geom.ptr
39
40
  attach_function :lwgeom_to_wkt, [Geom.ptr, :uint8, :int, :pointer], :string
40
41
  attach_function :lwgeom_to_wkb, [Geom.ptr, :uint8, :pointer], :pointer
41
42
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-gdal-extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Loveless
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-28 00:00:00.000000000 Z
11
+ date: 2016-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bindata
@@ -157,9 +157,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  version: '0'
158
158
  requirements: []
159
159
  rubyforge_project:
160
- rubygems_version: 2.5.1
160
+ rubygems_version: 2.5.2
161
161
  signing_key:
162
162
  specification_version: 4
163
163
  summary: Additional functionality to the ffi-gdal gem
164
164
  test_files: []
165
- has_rdoc: