ffi-geos 0.4.0 → 0.5.0
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 +7 -0
- data/.travis.yml +11 -0
- data/Gemfile +7 -1
- data/README.rdoc +3 -5
- data/Rakefile +12 -6
- data/lib/ffi-geos/coordinate_sequence.rb +1 -1
- data/lib/ffi-geos/utils.rb +2 -2
- data/lib/ffi-geos/version.rb +1 -1
- metadata +13 -19
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 21720e245fc36802f809c92b874bc75906ba6994
|
4
|
+
data.tar.gz: d819af55af7872bbd1ae042ec18f0b5409db4636
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c2fcc8382ee2256513cd1d71e81b00883b836e9a0265d4186e00820737feeb66d34a7db798e2c386846887b27e23fc324a2a89044d954f280321e86fb63eaedd
|
7
|
+
data.tar.gz: 2d32149dac875f01b70aa1604e02b07d047871981d6410989e668d5a9cef3ff487e379d726e42cb32e83237591cf70b376309256a540cae0c19e033f82a5a08f
|
data/.travis.yml
ADDED
data/Gemfile
CHANGED
@@ -6,10 +6,16 @@ gem "rdoc", "~> 3.12"
|
|
6
6
|
gem "rake", "~> 10.0"
|
7
7
|
gem "minitest"
|
8
8
|
gem "minitest-reporters"
|
9
|
-
|
9
|
+
|
10
|
+
platforms :rbx do
|
11
|
+
gem 'rubysl', '~> 2.0'
|
12
|
+
gem 'rubinius-developer_tools'
|
13
|
+
end
|
14
|
+
|
10
15
|
|
11
16
|
if RUBY_VERSION >= '1.9'
|
12
17
|
gem "simplecov"
|
18
|
+
gem 'guard-minitest'
|
13
19
|
end
|
14
20
|
|
15
21
|
if File.exists?('Gemfile.local')
|
data/README.rdoc
CHANGED
@@ -20,10 +20,6 @@ Note that versions of JRuby prior to version 1.6.3 have problems in their ffi
|
|
20
20
|
implementation when dealing with AutoPointers that can lead to segfaults during
|
21
21
|
garbage collection.
|
22
22
|
|
23
|
-
JRuby 1.7.0 is exhibiting some strange and sporadic memory problems that are
|
24
|
-
difficult to lock down. Unit tests show that the errors do not occur 100% of
|
25
|
-
the time, so it has been difficult to trace the root cause of the errors.
|
26
|
-
|
27
23
|
== Features
|
28
24
|
|
29
25
|
ffi-geos supports all of the features found in the binary SWIG-based GEOS
|
@@ -170,7 +166,7 @@ Ruby bindings along with the following enhancements and additions:
|
|
170
166
|
|
171
167
|
== Thanks
|
172
168
|
|
173
|
-
*
|
169
|
+
* Daniel Azuma for the testing and JRuby help.
|
174
170
|
|
175
171
|
* Christopher Meiklejohn for the bug reporting and PreparedGeometry fix.
|
176
172
|
|
@@ -179,6 +175,8 @@ Ruby bindings along with the following enhancements and additions:
|
|
179
175
|
* Charlie Savage for the original SWIG-based GEOS bindings implementation and
|
180
176
|
some fixes for MinGW.
|
181
177
|
|
178
|
+
* Peter M. Goldstein for some JRuby fixes.
|
179
|
+
|
182
180
|
== License
|
183
181
|
|
184
182
|
This gem is licensed under an MIT-style license. See the +MIT-LICENSE+ file for
|
data/Rakefile
CHANGED
@@ -18,10 +18,16 @@ Rake::TestTask.new(:test) do |t|
|
|
18
18
|
t.warning = !!ENV['WARNINGS']
|
19
19
|
end
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
21
|
+
task :default => :test
|
22
|
+
|
23
|
+
begin
|
24
|
+
desc 'Build docs'
|
25
|
+
Rake::RDocTask.new do |t|
|
26
|
+
t.title = "ffi-geos #{version}"
|
27
|
+
t.main = 'README.rdoc'
|
28
|
+
t.rdoc_dir = 'doc'
|
29
|
+
t.rdoc_files.include('README.rdoc', 'MIT-LICENSE', 'lib/**/*.rb')
|
30
|
+
end
|
31
|
+
rescue LoadError
|
32
|
+
puts 'Rake::RDocTask is not supported on this platform.'
|
27
33
|
end
|
data/lib/ffi-geos/utils.rb
CHANGED
@@ -38,10 +38,10 @@ module Geos
|
|
38
38
|
cs = args.first
|
39
39
|
elsif args.length == 2
|
40
40
|
cs = CoordinateSequence.new(1, 2)
|
41
|
-
cs.x[0], cs.y[0] = args[0], args[1]
|
41
|
+
cs.x[0], cs.y[0] = args[0].to_f, args[1].to_f
|
42
42
|
elsif args.length == 3
|
43
43
|
cs = CoordinateSequence.new(1, 3)
|
44
|
-
cs.x[0], cs.y[0], cs.z[0] = args
|
44
|
+
cs.x[0], cs.y[0], cs.z[0] = args.map(&:to_f)
|
45
45
|
else
|
46
46
|
raise ArgumentError.new("Wrong number of arguments (#{args.length} for 1-3)")
|
47
47
|
end
|
data/lib/ffi-geos/version.rb
CHANGED
metadata
CHANGED
@@ -1,32 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffi-geos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.4.0
|
4
|
+
version: 0.5.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- J Smith
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-
|
11
|
+
date: 2014-03-07 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: ffi
|
16
|
-
type: :runtime
|
17
15
|
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 1.0.0
|
22
|
-
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
23
22
|
version_requirements: !ruby/object:Gem::Requirement
|
24
23
|
requirements:
|
25
|
-
- -
|
24
|
+
- - ">="
|
26
25
|
- !ruby/object:Gem::Version
|
27
26
|
version: 1.0.0
|
28
|
-
none: false
|
29
|
-
prerelease: false
|
30
27
|
description: An ffi wrapper for GEOS, a C++ port of the Java Topology Suite (JTS).
|
31
28
|
email: dark.panda@gmail.com
|
32
29
|
executables: []
|
@@ -34,7 +31,8 @@ extensions: []
|
|
34
31
|
extra_rdoc_files:
|
35
32
|
- README.rdoc
|
36
33
|
files:
|
37
|
-
- .gitignore
|
34
|
+
- ".gitignore"
|
35
|
+
- ".travis.yml"
|
38
36
|
- Gemfile
|
39
37
|
- Guardfile
|
40
38
|
- MIT-LICENSE
|
@@ -84,30 +82,26 @@ files:
|
|
84
82
|
homepage: http://github.com/dark-panda/ffi-geos
|
85
83
|
licenses:
|
86
84
|
- MIT
|
85
|
+
metadata: {}
|
87
86
|
post_install_message:
|
88
87
|
rdoc_options: []
|
89
88
|
require_paths:
|
90
89
|
- lib
|
91
90
|
required_ruby_version: !ruby/object:Gem::Requirement
|
92
91
|
requirements:
|
93
|
-
- -
|
92
|
+
- - ">="
|
94
93
|
- !ruby/object:Gem::Version
|
95
|
-
segments:
|
96
|
-
- 0
|
97
|
-
hash: 1552105813238554661
|
98
94
|
version: '0'
|
99
|
-
none: false
|
100
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
96
|
requirements:
|
102
|
-
- -
|
97
|
+
- - ">="
|
103
98
|
- !ruby/object:Gem::Version
|
104
99
|
version: '0'
|
105
|
-
none: false
|
106
100
|
requirements: []
|
107
101
|
rubyforge_project:
|
108
|
-
rubygems_version:
|
102
|
+
rubygems_version: 2.2.2
|
109
103
|
signing_key:
|
110
|
-
specification_version:
|
104
|
+
specification_version: 4
|
111
105
|
summary: An ffi wrapper for GEOS, a C++ port of the Java Topology Suite (JTS).
|
112
106
|
test_files:
|
113
107
|
- test/coordinate_sequence_tests.rb
|