ffi-geos 2.3.0 → 2.3.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
  SHA256:
3
- metadata.gz: 8cae6d50f584d97081d0f48fb2a065c9b67f01acda9d00f1afafddc84a1d82f5
4
- data.tar.gz: eb08bf8f6c1ebb23311f18b61b9507d0cab6c69252c60f4dd0932c8be03a66ee
3
+ metadata.gz: cb538fc74121ad3a69c5e76990cadbbdeb65394b249f2a9d29baa81c27effbe0
4
+ data.tar.gz: 55371fd3931c952efcdd2a7fc0ba337d9baff3386b884b733529f7c9028a250a
5
5
  SHA512:
6
- metadata.gz: 67ea976bab672422786b6df68ba446e2063904334cc9a8faf73bd819d29e2093c4ff861155e8d19ef96bc992aee56577660479ef9e135f6529236a6893366986
7
- data.tar.gz: 5852b247aff666069d5007142a793badc17098107c40f41119c7e9465a20577acf6f2c8c2785159f040cd78c2abbd9e19b24037dbaf2a44cdaa43a4431d7302c
6
+ metadata.gz: efd983b0b469595f2103d2057411e8bcb6a01c2742d26d9b99fac2ddeeffb749d30d61be13a7e3b1838091c63cc68fe1e769bde26fce0df6ceb277df9550845f
7
+ data.tar.gz: cfcc398d7bc3243ee4519e7160a3c9ee0c8c16fe1aab2c9697b12ccd407ecf41e6972b4fb4554b9e3fb3d7dd9c75fc1e2d59f8214527759ae11bde85ab1dd0d3
@@ -0,0 +1,217 @@
1
+ Minitest:
2
+ Enabled: true
3
+ Include:
4
+ - '**/test/**/*'
5
+ - '**/*_test.rb'
6
+
7
+ Minitest/AssertEmpty:
8
+ Description: 'This cop enforces the test to use `assert_empty` instead of using `assert(object.empty?)`.'
9
+ StyleGuide: 'https://minitest.rubystyle.guide#assert-empty'
10
+ Enabled: true
11
+ VersionAdded: '0.2'
12
+
13
+ Minitest/AssertEmptyLiteral:
14
+ Description: 'This cop enforces the test to use `assert_empty` instead of using `assert_equal([], object)`.'
15
+ Enabled: true
16
+ VersionAdded: '0.5'
17
+ VersionChanged: '0.11'
18
+
19
+ Minitest/AssertEqual:
20
+ Description: 'This cop enforces the test to use `assert_equal` instead of using `assert(expected == actual)`.'
21
+ StyleGuide: 'https://minitest.rubystyle.guide#assert-equal-arguments-order'
22
+ Enabled: true
23
+ VersionAdded: '0.4'
24
+
25
+ Minitest/AssertInDelta:
26
+ Description: 'This cop enforces the test to use `assert_in_delta` instead of using `assert_equal` to compare floats.'
27
+ StyleGuide: 'https://minitest.rubystyle.guide/#assert-in-delta'
28
+ Enabled: true
29
+ VersionAdded: '0.10'
30
+
31
+ Minitest/AssertionInLifecycleHook:
32
+ Description: 'This cop checks for usage of assertions in lifecycle hooks.'
33
+ Enabled: true
34
+ VersionAdded: '0.10'
35
+
36
+ Minitest/AssertMatch:
37
+ Description: 'This cop enforces the test to use `assert_match` instead of using `assert(matcher.match(object))`.'
38
+ StyleGuide: 'https://minitest.rubystyle.guide#assert-match'
39
+ Enabled: true
40
+ VersionAdded: '0.6'
41
+
42
+ Minitest/AssertIncludes:
43
+ Description: 'This cop enforces the test to use `assert_includes` instead of using `assert(collection.include?(object))`.'
44
+ StyleGuide: 'https://minitest.rubystyle.guide#assert-includes'
45
+ Enabled: true
46
+ VersionAdded: '0.2'
47
+
48
+ Minitest/AssertInstanceOf:
49
+ Description: 'This cop enforces the test to use `assert_instance_of(Class, object)` over `assert(object.instance_of?(Class))`'
50
+ StyleGuide: 'https://minitest.rubystyle.guide#assert-instance-of'
51
+ Enabled: true
52
+ VersionAdded: '0.4'
53
+
54
+ Minitest/AssertKindOf:
55
+ Description: 'This cop enforces the test to use `assert_kind_of(Class, object)` over `assert(object.kind_of?(Class))`'
56
+ StyleGuide: 'https://github.com/rubocop/minitest-style-guide#assert-kind-of'
57
+ Enabled: true
58
+ VersionAdded: '0.10'
59
+
60
+ Minitest/AssertNil:
61
+ Description: 'This cop enforces the test to use `assert_nil` instead of using `assert_equal(nil, something)` or `assert(something.nil?)`.'
62
+ StyleGuide: 'https://minitest.rubystyle.guide#assert-nil'
63
+ Enabled: true
64
+ VersionAdded: '0.1'
65
+
66
+ Minitest/AssertOutput:
67
+ Description: 'This cop checks for opportunities to use `assert_output`.'
68
+ StyleGuide: 'https://minitest.rubystyle.guide/#assert-output'
69
+ Enabled: true
70
+ VersionAdded: '0.10'
71
+
72
+ Minitest/AssertPathExists:
73
+ Description: 'This cop enforces the test to use `assert_path_exists` instead of using `assert(File.exist?(path))`.'
74
+ StyleGuide: 'https://minitest.rubystyle.guide/#assert-path-exists'
75
+ Enabled: true
76
+ VersionAdded: '0.10'
77
+
78
+ Minitest/AssertRespondTo:
79
+ Description: 'This cop enforces the test to use `assert_respond_to(object, :do_something)` over `assert(object.respond_to?(:do_something))`.'
80
+ StyleGuide: 'https://minitest.rubystyle.guide#assert-responds-to-method'
81
+ Enabled: true
82
+ VersionAdded: '0.3'
83
+
84
+ Minitest/AssertSilent:
85
+ Description: "This cop enforces the test to use `assert_silent { ... }` instead of using `assert_output('', '') { ... }`."
86
+ StyleGuide: 'https://github.com/rubocop/minitest-style-guide#assert-silent'
87
+ Enabled: true
88
+ VersionAdded: '0.10'
89
+
90
+ Minitest/AssertTruthy:
91
+ Description: 'This cop enforces the test to use `assert(actual)` instead of using `assert_equal(true, actual)`.'
92
+ StyleGuide: 'https://minitest.rubystyle.guide#assert-truthy'
93
+ Enabled: true
94
+ VersionAdded: '0.2'
95
+
96
+ Minitest/AssertWithExpectedArgument:
97
+ Description: 'This cop tries to detect when a user accidentally used `assert` when they meant to use `assert_equal`.'
98
+ Enabled: true
99
+ Safe: false
100
+ VersionAdded: '0.11'
101
+
102
+ Minitest/GlobalExpectations:
103
+ Description: 'This cop checks for deprecated global expectations.'
104
+ StyleGuide: 'https://minitest.rubystyle.guide#global-expectations'
105
+ Enabled: true
106
+ EnforcedStyle: any
107
+ Include:
108
+ - '**/test/**/*'
109
+ - '**/*_test.rb'
110
+ - '**/spec/**/*'
111
+ - '**/*_spec.rb'
112
+ SupportedStyles:
113
+ - _
114
+ - any
115
+ - expect
116
+ - value
117
+ VersionAdded: '0.7'
118
+ VersionChanged: '0.16'
119
+
120
+ Minitest/LiteralAsActualArgument:
121
+ Description: 'This cop enforces correct order of `expected` and `actual` arguments for `assert_equal`.'
122
+ StyleGuide: 'https://minitest.rubystyle.guide/#assert-equal-arguments-order'
123
+ Enabled: true
124
+ VersionAdded: '0.10'
125
+
126
+ Minitest/MultipleAssertions:
127
+ Description: 'This cop checks if test cases contain too many assertion calls.'
128
+ Enabled: true
129
+ VersionAdded: '0.10'
130
+ Max: 3
131
+
132
+ Minitest/NoAssertions:
133
+ Description: 'This cop checks for at least one assertion (or flunk) in tests.'
134
+ Enabled: false
135
+ VersionAdded: '0.12'
136
+
137
+ Minitest/RefuteEmpty:
138
+ Description: 'This cop enforces to use `refute_empty` instead of using `refute(object.empty?)`.'
139
+ StyleGuide: 'https://minitest.rubystyle.guide#refute-empty'
140
+ Enabled: true
141
+ VersionAdded: '0.3'
142
+
143
+ Minitest/RefuteEqual:
144
+ Description: 'Check if your test uses `refute_equal` instead of `assert(expected != object)` or `assert(! expected == object))`.'
145
+ StyleGuide: 'https://minitest.rubystyle.guide#refute-equal'
146
+ Enabled: true
147
+ VersionAdded: '0.3'
148
+
149
+ Minitest/RefuteFalse:
150
+ Description: 'Check if your test uses `refute(actual)` instead of `assert_equal(false, actual)`.'
151
+ StyleGuide: 'https://minitest.rubystyle.guide#refute-false'
152
+ Enabled: true
153
+ VersionAdded: '0.3'
154
+
155
+ Minitest/RefuteInDelta:
156
+ Description: 'This cop enforces the test to use `refute_in_delta` instead of using `refute_equal` to compare floats.'
157
+ StyleGuide: 'https://minitest.rubystyle.guide/#refute-in-delta'
158
+ Enabled: true
159
+ VersionAdded: '0.10'
160
+
161
+ Minitest/RefuteIncludes:
162
+ Description: 'This cop enforces the test to use `refute_includes` instead of using `refute(collection.include?(object))`.'
163
+ StyleGuide: 'https://minitest.rubystyle.guide#refute-includes'
164
+ Enabled: true
165
+ VersionAdded: '0.3'
166
+
167
+ Minitest/RefuteMatch:
168
+ Description: 'This cop enforces the test to use `refute_match` instead of using `refute(matcher.match(object))`.'
169
+ StyleGuide: 'https://minitest.rubystyle.guide#refute-match'
170
+ Enabled: true
171
+ VersionAdded: '0.6'
172
+
173
+ Minitest/RefuteInstanceOf:
174
+ Description: 'This cop enforces the test to use `refute_instance_of(Class, object)` over `refute(object.instance_of?(Class))`.'
175
+ StyleGuide: 'https://minitest.rubystyle.guide#refute-instance-of'
176
+ Enabled: true
177
+ VersionAdded: '0.4'
178
+
179
+ Minitest/RefuteKindOf:
180
+ Description: 'This cop enforces the test to use `refute_kind_of(Class, object)` over `refute(object.kind_of?(Class))`.'
181
+ StyleGuide: 'https://github.com/rubocop/minitest-style-guide#refute-kind-of'
182
+ Enabled: true
183
+ VersionAdded: '0.10'
184
+
185
+ Minitest/RefuteNil:
186
+ Description: 'This cop enforces the test to use `refute_nil` instead of using `refute_equal(nil, something)` or `refute(something.nil?)`.'
187
+ StyleGuide: 'https://minitest.rubystyle.guide#refute-nil'
188
+ Enabled: true
189
+ VersionAdded: '0.2'
190
+
191
+ Minitest/RefutePathExists:
192
+ Description: 'This cop enforces the test to use `refute_path_exists` instead of using `refute(File.exist?(path))`.'
193
+ StyleGuide: 'https://minitest.rubystyle.guide/#refute-path-exists'
194
+ Enabled: true
195
+ VersionAdded: '0.10'
196
+
197
+ Minitest/RefuteRespondTo:
198
+ Description: 'This cop enforces the test to use `refute_respond_to(object, :do_something)` over `refute(object.respond_to?(:do_something))`.'
199
+ StyleGuide: 'https://minitest.rubystyle.guide#refute-respond-to'
200
+ Enabled: true
201
+ VersionAdded: '0.4'
202
+
203
+ Minitest/TestMethodName:
204
+ Description: 'This cop enforces that test method names start with `test_` prefix.'
205
+ Enabled: true
206
+ VersionAdded: '0.10'
207
+
208
+ Minitest/UnreachableAssertion:
209
+ Description: 'This cop checks for an `assert_raises` block containing any unreachable assertions.'
210
+ Enabled: true
211
+ VersionAdded: '0.14'
212
+
213
+ Minitest/UnspecifiedException:
214
+ Description: 'This cop checks for a specified error in `assert_raises`.'
215
+ StyleGuide: 'https://minitest.rubystyle.guide#unspecified-exception'
216
+ Enabled: true
217
+ VersionAdded: '0.10'
data/.rubocop.yml CHANGED
@@ -1,3 +1,15 @@
1
+
2
+ inherit_from:
3
+ - .rubocop-minitest.yml
4
+ - .rubocop_todo.yml
5
+
6
+ inherit_mode:
7
+ merge:
8
+ - Exclude
9
+
10
+ require:
11
+ - rubocop-minitest
12
+
1
13
  # Common configuration.
2
14
 
3
15
  AllCops:
@@ -148,13 +160,7 @@ AllCops:
148
160
  # rubocop is run. Keys are the name of the extension, and values are an array
149
161
  # of gems in the Gemfile that the extension is suggested for, if not already
150
162
  # included.
151
- SuggestExtensions:
152
- rubocop-rails: [rails]
153
- rubocop-rspec: [rspec, rspec-rails]
154
- rubocop-minitest: [minitest]
155
- rubocop-sequel: [sequel]
156
- rubocop-rake: [rake]
157
- rubocop-graphql: [graphql]
163
+ SuggestExtensions: false
158
164
 
159
165
  #################### Bundler ###############################
160
166
 
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,99 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 10000`
3
+ # on 2022-02-25 00:43:48 UTC using RuboCop version 1.24.1.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ Lint/BinaryOperatorWithIdenticalOperands:
11
+ Exclude:
12
+ - 'test/geometry_tests.rb'
13
+
14
+ # Offense count: 6
15
+ # Configuration parameters: IgnoredMethods, CountRepeatedAttributes, Max.
16
+ Metrics/AbcSize:
17
+ Exclude:
18
+ - 'lib/ffi-geos/coordinate_sequence.rb'
19
+ - 'lib/ffi-geos/line_string.rb'
20
+ - 'lib/ffi-geos/utils.rb'
21
+ - 'test/geometry_tests.rb'
22
+
23
+ # Offense count: 2
24
+ # Configuration parameters: CountComments, Max, CountAsOne.
25
+ Metrics/ClassLength:
26
+ Exclude:
27
+ - 'lib/ffi-geos/coordinate_sequence.rb'
28
+ - 'lib/ffi-geos/geometry.rb'
29
+
30
+ # Offense count: 3
31
+ # Configuration parameters: IgnoredMethods, Max.
32
+ Metrics/CyclomaticComplexity:
33
+ Exclude:
34
+ - 'lib/ffi-geos/coordinate_sequence.rb'
35
+ - 'lib/ffi-geos/tools.rb'
36
+
37
+ # Offense count: 1
38
+ # Configuration parameters: CountComments, Max, CountAsOne.
39
+ Metrics/ModuleLength:
40
+ Exclude:
41
+ - 'lib/ffi-geos.rb'
42
+
43
+ # Offense count: 1
44
+ # Configuration parameters: Max, CountKeywordArgs, MaxOptionalParameters.
45
+ Metrics/ParameterLists:
46
+ Exclude:
47
+ - 'lib/ffi-geos/utils.rb'
48
+
49
+ # Offense count: 4
50
+ # Configuration parameters: IgnoredMethods, Max.
51
+ Metrics/PerceivedComplexity:
52
+ Exclude:
53
+ - 'lib/ffi-geos/coordinate_sequence.rb'
54
+ - 'lib/ffi-geos/tools.rb'
55
+ - 'test/geometry_tests.rb'
56
+
57
+ # Offense count: 8
58
+ Naming/AccessorMethodName:
59
+ Exclude:
60
+ - 'lib/ffi-geos/point.rb'
61
+ - 'lib/ffi-geos/wkb_writer.rb'
62
+ - 'lib/ffi-geos/wkt_writer.rb'
63
+
64
+ # Offense count: 1
65
+ # Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
66
+ # CheckDefinitionPathHierarchyRoots: lib, spec, test, src
67
+ # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
68
+ Naming/FileName:
69
+ Exclude:
70
+ - 'lib/ffi-geos.rb'
71
+
72
+ # Offense count: 2
73
+ # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
74
+ # NamePrefix: is_, has_, have_
75
+ # ForbiddenPrefixes: is_, has_, have_
76
+ # AllowedMethods: is_a?
77
+ # MethodDefinitionMacros: define_method, define_singleton_method
78
+ Naming/PredicateName:
79
+ Exclude:
80
+ - 'lib/ffi-geos/coordinate_sequence.rb'
81
+ - 'lib/ffi-geos/geometry.rb'
82
+
83
+ # Offense count: 2
84
+ # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers.
85
+ # SupportedStyles: snake_case, normalcase, non_integer
86
+ # AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
87
+ Naming/VariableNumber:
88
+ Exclude:
89
+ - 'lib/ffi-geos.rb'
90
+ - 'lib/ffi-geos/geometry.rb'
91
+
92
+ # Offense count: 4
93
+ # Configuration parameters: AllowedMethods.
94
+ # AllowedMethods: respond_to_missing?
95
+ Style/OptionalBooleanParameter:
96
+ Exclude:
97
+ - 'lib/ffi-geos/geometry.rb'
98
+ - 'test/wkb_reader_tests.rb'
99
+ - 'test/wkb_writer_tests.rb'
data/Gemfile CHANGED
@@ -11,6 +11,8 @@ gem 'minitest-reporters'
11
11
  gem 'rake'
12
12
  gem 'rdoc'
13
13
  gem 'rubocop', require: false
14
+ gem 'rubocop-minitest', require: false
14
15
  gem 'simplecov', require: false
16
+ gem 'simplecov_json_formatter', require: false
15
17
 
16
18
  instance_eval File.read('Gemfile.local') if File.exist?('Gemfile.local')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Geos
4
- VERSION = '2.3.0'
4
+ VERSION = '2.3.1'
5
5
  end
data/lib/ffi-geos.rb CHANGED
@@ -56,7 +56,13 @@ module Geos
56
56
  elsif FFI::Platform::IS_WINDOWS
57
57
  ENV['PATH'].split(File::PATH_SEPARATOR)
58
58
  else
59
- ['/usr/local/{lib64,lib}', '/opt/local/{lib64,lib}', '/usr/{lib64,lib}', '/usr/lib/{x86_64,i386,aarch64}-linux-gnu']
59
+ [
60
+ '/usr/local/{lib64,lib}',
61
+ '/opt/local/{lib64,lib}',
62
+ '/usr/{lib64,lib}',
63
+ '/opt/homebrew/lib',
64
+ '/usr/lib/{x86_64,i386,aarch64}-linux-gnu'
65
+ ]
60
66
  end
61
67
  end
62
68
 
data/test/test_helper.rb CHANGED
@@ -9,6 +9,12 @@ SimpleCov.start do
9
9
  add_filter '/.bundle/'
10
10
  end
11
11
 
12
+ if ENV['CI']
13
+ require 'simplecov_json_formatter'
14
+
15
+ SimpleCov.formatter = SimpleCov::Formatter::JSONFormatter
16
+ end
17
+
12
18
  require 'rubygems'
13
19
  require 'minitest/autorun'
14
20
  require 'minitest/reporters'
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: 2.3.0
4
+ version: 2.3.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: 2022-01-16 00:00:00.000000000 Z
11
+ date: 2022-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -33,7 +33,9 @@ extra_rdoc_files:
33
33
  files:
34
34
  - ".github/workflows/main.yml"
35
35
  - ".gitignore"
36
+ - ".rubocop-minitest.yml"
36
37
  - ".rubocop.yml"
38
+ - ".rubocop_todo.yml"
37
39
  - FUNDING.yml
38
40
  - Gemfile
39
41
  - Guardfile