ffi-geos 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -5
- data/Gemfile +7 -9
- data/Rakefile +1 -0
- data/ffi-geos.gemspec +10 -11
- data/lib/ffi-geos.rb +3 -3
- data/lib/ffi-geos/version.rb +1 -1
- data/test/coordinate_sequence_tests.rb +0 -1
- data/test/geometry_collection_tests.rb +1 -2
- data/test/geometry_tests.rb +0 -1
- data/test/interrupt_tests.rb +0 -1
- data/test/line_string_tests.rb +1 -2
- data/test/linear_ring_tests.rb +0 -1
- data/test/misc_tests.rb +0 -1
- data/test/multi_line_string_tests.rb +0 -1
- data/test/point_tests.rb +0 -1
- data/test/polygon_tests.rb +0 -1
- data/test/prepared_geometry_tests.rb +0 -1
- data/test/strtree_tests.rb +0 -1
- data/test/tools_tests.rb +0 -1
- data/test/utils_tests.rb +0 -1
- data/test/wkb_reader_tests.rb +0 -1
- data/test/wkb_writer_tests.rb +0 -1
- data/test/wkt_reader_tests.rb +0 -1
- data/test/wkt_writer_tests.rb +0 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e79b38a9334971a33360b04626fd41a3d6412b5e
|
4
|
+
data.tar.gz: b8b363a4e8ce75fa6162f5e92abbd84c086cd3a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e74ad87eaedb4ff6bc39d45916eccf141275e09fc9023eb0beb6d36a8fff8e3f5234f7c4bc81496c3bc0b55a3ba91e0eafc44beeba488637f55b5735cc4f06e7
|
7
|
+
data.tar.gz: a5ead93de53c8cbf16798374dea3ad303c3ce00f6d457bef061daec91c7c36890e2e1fa121da58d4a4fd647c9e0fa7491634e751110798f2ce61bdd839413868
|
data/.travis.yml
CHANGED
@@ -2,15 +2,15 @@ cache: bundler
|
|
2
2
|
sudo: false
|
3
3
|
language: ruby
|
4
4
|
rvm:
|
5
|
-
- 2.4.
|
6
|
-
- 2.3.
|
7
|
-
- 2.2.
|
5
|
+
- 2.4.2
|
6
|
+
- 2.3.5
|
7
|
+
- 2.2.8
|
8
8
|
- rbx-3
|
9
|
-
- jruby-
|
9
|
+
- jruby-head
|
10
10
|
matrix:
|
11
11
|
allow_failures:
|
12
12
|
- rvm: rbx-3
|
13
|
-
- rvm: jruby-
|
13
|
+
- rvm: jruby-head
|
14
14
|
addons:
|
15
15
|
apt:
|
16
16
|
packages:
|
data/Gemfile
CHANGED
@@ -2,24 +2,22 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
gemspec
|
4
4
|
|
5
|
-
gem
|
6
|
-
gem
|
7
|
-
gem
|
8
|
-
gem
|
5
|
+
gem 'minitest'
|
6
|
+
gem 'minitest-reporters'
|
7
|
+
gem 'rake', '~> 10.0'
|
8
|
+
gem 'rdoc', '~> 3.12'
|
9
9
|
|
10
10
|
platforms :rbx do
|
11
|
-
gem 'rubysl', '~> 2.0'
|
12
11
|
gem 'rubinius-developer_tools'
|
12
|
+
gem 'rubysl', '~> 2.0'
|
13
13
|
end
|
14
14
|
|
15
|
-
|
16
15
|
if RUBY_VERSION >= '1.9'
|
17
|
-
gem
|
18
|
-
gem "guard"
|
16
|
+
gem 'guard'
|
19
17
|
gem 'guard-minitest'
|
18
|
+
gem 'simplecov'
|
20
19
|
end
|
21
20
|
|
22
21
|
if File.exists?('Gemfile.local')
|
23
22
|
instance_eval File.read('Gemfile.local')
|
24
23
|
end
|
25
|
-
|
data/Rakefile
CHANGED
data/ffi-geos.gemspec
CHANGED
@@ -3,24 +3,23 @@
|
|
3
3
|
require File.expand_path('../lib/ffi-geos/version', __FILE__)
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
|
-
s.name =
|
6
|
+
s.name = 'ffi-geos'
|
7
7
|
s.version = Geos::VERSION
|
8
8
|
|
9
|
-
s.required_rubygems_version = Gem::Requirement.new(
|
10
|
-
s.authors = [
|
11
|
-
s.description =
|
9
|
+
s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
|
10
|
+
s.authors = ['J Smith']
|
11
|
+
s.description = 'An ffi wrapper for GEOS, a C++ port of the Java Topology Suite (JTS).'
|
12
12
|
s.summary = s.description
|
13
|
-
s.email =
|
14
|
-
s.license =
|
13
|
+
s.email = 'dark.panda@gmail.com'
|
14
|
+
s.license = 'MIT'
|
15
15
|
s.extra_rdoc_files = [
|
16
|
-
|
16
|
+
'README.rdoc'
|
17
17
|
]
|
18
18
|
s.files = `git ls-files`.split($\)
|
19
19
|
s.executables = s.files.grep(%r{^bin/}).map { |f| File.basename(f) }
|
20
20
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
21
|
-
s.homepage =
|
22
|
-
s.require_paths = [
|
21
|
+
s.homepage = 'http://github.com/dark-panda/ffi-geos'
|
22
|
+
s.require_paths = ['lib']
|
23
23
|
|
24
|
-
s.add_dependency(
|
24
|
+
s.add_dependency('ffi', ['>= 1.0.0'])
|
25
25
|
end
|
26
|
-
|
data/lib/ffi-geos.rb
CHANGED
@@ -1056,11 +1056,11 @@ module Geos
|
|
1056
1056
|
begin
|
1057
1057
|
ffi_lib(geos_library_path)
|
1058
1058
|
|
1059
|
-
FFI_LAYOUT.each do |
|
1059
|
+
FFI_LAYOUT.each do |func, ary|
|
1060
1060
|
ret = ary.shift
|
1061
1061
|
begin
|
1062
1062
|
self.class_eval do
|
1063
|
-
attach_function(
|
1063
|
+
attach_function(func, ary, ret)
|
1064
1064
|
end
|
1065
1065
|
rescue FFI::NotFoundError
|
1066
1066
|
# that's okay
|
@@ -1272,7 +1272,7 @@ module Geos
|
|
1272
1272
|
((\d+)\.(\d+)\.(\d+)((?:dev|rc|beta|alpha)\d*)?)
|
1273
1273
|
-CAPI-
|
1274
1274
|
((\d+)\.(\d+)\.(\d+))
|
1275
|
-
(?:\s+r(\
|
1275
|
+
(?:\s+r?(\h+))?
|
1276
1276
|
$/x)).empty?
|
1277
1277
|
versions = versions[0]
|
1278
1278
|
[
|
data/lib/ffi-geos/version.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
-
$: << File.dirname(__FILE__)
|
5
4
|
require 'test_helper'
|
6
5
|
|
7
6
|
class GeometryCollectionTests < Minitest::Test
|
@@ -40,7 +39,7 @@ class GeometryCollectionTests < Minitest::Test
|
|
40
39
|
'POINT (10 20)'
|
41
40
|
], geom[0, 2].collect { |g| write(g) })
|
42
41
|
|
43
|
-
|
42
|
+
assert_nil(geom[0, -1])
|
44
43
|
assert_equal([], geom[-1, 0])
|
45
44
|
assert_equal([
|
46
45
|
'POINT (10 20)',
|
data/test/geometry_tests.rb
CHANGED
data/test/interrupt_tests.rb
CHANGED
data/test/line_string_tests.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
-
$: << File.dirname(__FILE__)
|
5
4
|
require 'test_helper'
|
6
5
|
|
7
6
|
class LineStringTests < Minitest::Test
|
@@ -49,7 +48,7 @@ class LineStringTests < Minitest::Test
|
|
49
48
|
'POINT (1 1)'
|
50
49
|
], geom[0, 2].collect { |g| write(g) })
|
51
50
|
|
52
|
-
|
51
|
+
assert_nil(geom[0, -1])
|
53
52
|
assert_equal([], geom[-1, 0])
|
54
53
|
assert_equal([
|
55
54
|
'POINT (1 1)',
|
data/test/linear_ring_tests.rb
CHANGED
data/test/misc_tests.rb
CHANGED
data/test/point_tests.rb
CHANGED
data/test/polygon_tests.rb
CHANGED
data/test/strtree_tests.rb
CHANGED
data/test/tools_tests.rb
CHANGED
data/test/utils_tests.rb
CHANGED
data/test/wkb_reader_tests.rb
CHANGED
data/test/wkb_writer_tests.rb
CHANGED
data/test/wkt_reader_tests.rb
CHANGED
data/test/wkt_writer_tests.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffi-geos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- J Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
100
|
version: '0'
|
101
101
|
requirements: []
|
102
102
|
rubyforge_project:
|
103
|
-
rubygems_version: 2.6.
|
103
|
+
rubygems_version: 2.6.13
|
104
104
|
signing_key:
|
105
105
|
specification_version: 4
|
106
106
|
summary: An ffi wrapper for GEOS, a C++ port of the Java Topology Suite (JTS).
|