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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ccb3a99801ff6039bf36d14f2d0be9cd7a084aa7
4
- data.tar.gz: 183a295b0c845bbc1fb856d98ddf9771c6f1a4ee
3
+ metadata.gz: e79b38a9334971a33360b04626fd41a3d6412b5e
4
+ data.tar.gz: b8b363a4e8ce75fa6162f5e92abbd84c086cd3a9
5
5
  SHA512:
6
- metadata.gz: 951a4938f5844873b3cd3d0d0fe6ae6cbee3e336380a18b9fe9af4777cc4c4526c932685472750d118671ea3f139c10c983909fb3bab8b18e44c8761072891ff
7
- data.tar.gz: 054b81d1f27bb26f5c2220fa2618cdd1a1eef4ef74668c658133728a34a9e4a69ca7335968cde10cfda47d7133b6d584a9fe4d1805158c57c1c401a10b7250f7
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.0
6
- - 2.3.3
7
- - 2.2.6
5
+ - 2.4.2
6
+ - 2.3.5
7
+ - 2.2.8
8
8
  - rbx-3
9
- - jruby-19mode
9
+ - jruby-head
10
10
  matrix:
11
11
  allow_failures:
12
12
  - rvm: rbx-3
13
- - rvm: jruby-19mode
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 "rdoc", "~> 3.12"
6
- gem "rake", "~> 10.0"
7
- gem "minitest"
8
- gem "minitest-reporters"
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 "simplecov"
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
@@ -13,6 +13,7 @@ version = Geos::VERSION
13
13
 
14
14
  desc 'Test GEOS interface'
15
15
  Rake::TestTask.new(:test) do |t|
16
+ t.libs << "#{File.dirname(__FILE__)}/test"
16
17
  t.test_files = FileList['test/**/*_tests.rb']
17
18
  t.verbose = !!ENV['VERBOSE_TESTS']
18
19
  t.warning = !!ENV['WARNINGS']
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 = "ffi-geos"
6
+ s.name = 'ffi-geos'
7
7
  s.version = Geos::VERSION
8
8
 
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)."
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 = "dark.panda@gmail.com"
14
- s.license = "MIT"
13
+ s.email = 'dark.panda@gmail.com'
14
+ s.license = 'MIT'
15
15
  s.extra_rdoc_files = [
16
- "README.rdoc"
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 = "http://github.com/dark-panda/ffi-geos"
22
- s.require_paths = ["lib"]
21
+ s.homepage = 'http://github.com/dark-panda/ffi-geos'
22
+ s.require_paths = ['lib']
23
23
 
24
- s.add_dependency("ffi", [">= 1.0.0"])
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 |fun, ary|
1059
+ FFI_LAYOUT.each do |func, ary|
1060
1060
  ret = ary.shift
1061
1061
  begin
1062
1062
  self.class_eval do
1063
- attach_function(fun, ary, ret)
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(\d+))?
1275
+ (?:\s+r?(\h+))?
1276
1276
  $/x)).empty?
1277
1277
  versions = versions[0]
1278
1278
  [
@@ -2,6 +2,6 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Geos
5
- VERSION = '1.2.0'.freeze
5
+ VERSION = '1.2.1'.freeze
6
6
  end
7
7
 
@@ -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 CoordinateSequenceTests < Minitest::Test
@@ -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
- assert_equal(nil, geom[0, -1])
42
+ assert_nil(geom[0, -1])
44
43
  assert_equal([], geom[-1, 0])
45
44
  assert_equal([
46
45
  'POINT (10 20)',
@@ -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 GeometryTests < Minitest::Test
@@ -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 InterruptTests < Minitest::Test
@@ -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
- assert_equal(nil, geom[0, -1])
51
+ assert_nil(geom[0, -1])
53
52
  assert_equal([], geom[-1, 0])
54
53
  assert_equal([
55
54
  'POINT (1 1)',
@@ -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 LinearRingTests < Minitest::Test
data/test/misc_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 MiscTests < Minitest::Test
@@ -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 MultiLineStringTests < Minitest::Test
data/test/point_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 PointTests < Minitest::Test
@@ -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 PolygonTests < Minitest::Test
@@ -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 PreparedGeometryTests < Minitest::Test
@@ -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 STRtreeTests < Minitest::Test
data/test/tools_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 ToolsTests < Minitest::Test
data/test/utils_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 UtilsTests < Minitest::Test
@@ -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 WkbReaderTests < Minitest::Test
@@ -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 WkbWriterTests < Minitest::Test
@@ -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 WktReaderTests < Minitest::Test
@@ -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 WktWriterTests < Minitest::Test
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.0
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-02-21 00:00:00.000000000 Z
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.10
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).