rspec-pending_for 0.1.20 → 0.1.21

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.
data/SECURITY.md CHANGED
@@ -4,8 +4,7 @@
4
4
 
5
5
  | Version | Supported |
6
6
  |----------|-----------|
7
- | 0.1.x | ✅ |
8
- | < 0.1 | :x: |
7
+ | 0.latest | ✅ |
9
8
 
10
9
  ## Security contact information
11
10
 
data/certs/pboling.pem ADDED
@@ -0,0 +1,27 @@
1
+ -----BEGIN CERTIFICATE-----
2
+ MIIEgDCCAuigAwIBAgIBATANBgkqhkiG9w0BAQsFADBDMRUwEwYDVQQDDAxwZXRl
3
+ ci5ib2xpbmcxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkW
4
+ A2NvbTAeFw0yNTA1MDQxNTMzMDlaFw00NTA0MjkxNTMzMDlaMEMxFTATBgNVBAMM
5
+ DHBldGVyLmJvbGluZzEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy
6
+ LGQBGRYDY29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAruUoo0WA
7
+ uoNuq6puKWYeRYiZekz/nsDeK5x/0IEirzcCEvaHr3Bmz7rjo1I6On3gGKmiZs61
8
+ LRmQ3oxy77ydmkGTXBjruJB+pQEn7UfLSgQ0xa1/X3kdBZt6RmabFlBxnHkoaGY5
9
+ mZuZ5+Z7walmv6sFD9ajhzj+oIgwWfnEHkXYTR8I6VLN7MRRKGMPoZ/yvOmxb2DN
10
+ coEEHWKO9CvgYpW7asIihl/9GMpKiRkcYPm9dGQzZc6uTwom1COfW0+ZOFrDVBuV
11
+ FMQRPswZcY4Wlq0uEBLPU7hxnCL9nKK6Y9IhdDcz1mY6HZ91WImNslOSI0S8hRpj
12
+ yGOWxQIhBT3fqCBlRIqFQBudrnD9jSNpSGsFvbEijd5ns7Z9ZMehXkXDycpGAUj1
13
+ to/5cuTWWw1JqUWrKJYoifnVhtE1o1DZ+LkPtWxHtz5kjDG/zR3MG0Ula0UOavlD
14
+ qbnbcXPBnwXtTFeZ3C+yrWpE4pGnl3yGkZj9SMTlo9qnTMiPmuWKQDatAgMBAAGj
15
+ fzB9MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBQE8uWvNbPVNRXZ
16
+ HlgPbc2PCzC4bjAhBgNVHREEGjAYgRZwZXRlci5ib2xpbmdAZ21haWwuY29tMCEG
17
+ A1UdEgQaMBiBFnBldGVyLmJvbGluZ0BnbWFpbC5jb20wDQYJKoZIhvcNAQELBQAD
18
+ ggGBAJbnUwfJQFPkBgH9cL7hoBfRtmWiCvdqdjeTmi04u8zVNCUox0A4gT982DE9
19
+ wmuN12LpdajxZONqbXuzZvc+nb0StFwmFYZG6iDwaf4BPywm2e/Vmq0YG45vZXGR
20
+ L8yMDSK1cQXjmA+ZBKOHKWavxP6Vp7lWvjAhz8RFwqF9GuNIdhv9NpnCAWcMZtpm
21
+ GUPyIWw/Cw/2wZp74QzZj6Npx+LdXoLTF1HMSJXZ7/pkxLCsB8m4EFVdb/IrW/0k
22
+ kNSfjtAfBHO8nLGuqQZVH9IBD1i9K6aSs7pT6TW8itXUIlkIUI2tg5YzW6OFfPzq
23
+ QekSkX3lZfY+HTSp/o+YvKkqWLUV7PQ7xh1ZYDtocpaHwgxe/j3bBqHE+CUPH2vA
24
+ 0V/FwdTRWcwsjVoOJTrYcff8pBZ8r2MvtAc54xfnnhGFzeRHfcltobgFxkAXdE6p
25
+ DVjBtqT23eugOqQ73umLcYDZkc36vnqGxUBSsXrzY9pzV5gGr2I8YUxMqf6ATrZt
26
+ L9nRqA==
27
+ -----END CERTIFICATE-----
@@ -30,7 +30,7 @@ module Rspec
30
30
  "maglev" => "MagLev",
31
31
  "ironruby" => "IronRuby",
32
32
  "cardinal" => "Cardinal",
33
- "truffleruby" => "Truffle Ruby",
33
+ "truffleruby" => "Truffle Ruby"
34
34
  }.freeze
35
35
  BROKEN_STRING = "Behavior is broken"
36
36
  BUG_STRING = "due to a bug in the Ruby engine"
@@ -71,7 +71,7 @@ module Rspec
71
71
 
72
72
  # Determine whether the current Ruby version matches any of the provided version specs.
73
73
  # A version spec may be:
74
- # - String: exact match against RubyVersion.to_s
74
+ # - String: exact match against RubyVersion.to_s, or "head" for dev/SNAPSHOT builds
75
75
  # - Range[Gem::Version, Gem::Version]: inclusive/exclusive respected
76
76
  # - Range[Integer, Integer]: compares major version from RubyVersion.to_s
77
77
  def versions_include_current?
@@ -81,13 +81,15 @@ module Rspec
81
81
  current_major = current_str.to_s.split(".").first.to_i
82
82
  current_gemv = begin
83
83
  Gem::Version.new(current_str.to_s)
84
- rescue StandardError
84
+ rescue
85
85
  nil
86
86
  end
87
87
 
88
88
  relevant_versions.any? do |spec|
89
89
  case spec
90
90
  when String
91
+ next head_build? if spec == "head"
92
+
91
93
  # Support minor-version shorthand like "3.1" to match any 3.1.x
92
94
  if spec.to_s =~ /^\d+\.\d+$/
93
95
  current_major_minor = current_str.to_s.split(".")[0, 2].join(".")
@@ -104,13 +106,13 @@ module Rspec
104
106
  if spec.exclude_end?
105
107
  b <= current_gemv && current_gemv < e
106
108
  else
107
- b <= current_gemv && current_gemv <= e
109
+ current_gemv.between?(b, e)
108
110
  end
109
111
  elsif b.is_a?(Integer) && e.is_a?(Integer)
110
112
  if spec.exclude_end?
111
113
  b <= current_major && current_major < e
112
114
  else
113
- b <= current_major && current_major <= e
115
+ current_major.between?(b, e)
114
116
  end
115
117
  else
116
118
  # Fallback: try cover? with the string form (likely false if incomparable)
@@ -122,6 +124,10 @@ module Rspec
122
124
  end
123
125
  end
124
126
 
127
+ def head_build?
128
+ RUBY_DESCRIPTION.to_s.match?(/\b(?:dev|head|SNAPSHOT)\b/i)
129
+ end
130
+
125
131
  def warn_about_unrecognized_engine
126
132
  return false if relevant_engine.nil? || !INTERPRETER_MATRIX[relevant_engine].nil?
127
133
 
@@ -3,10 +3,8 @@
3
3
  module Rspec
4
4
  module PendingFor
5
5
  module Version
6
- VERSION = "0.1.20"
6
+ VERSION = "0.1.21"
7
7
  end
8
-
9
- # Backwards compatability shim.
10
- VERSION = Version::VERSION
8
+ VERSION = Version::VERSION # Traditional Constant Location
11
9
  end
12
10
  end
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # External Libraries
4
+ require_relative "pending_for/version"
5
+
4
6
  require "ruby_version"
5
7
  require "ruby_engine"
6
8
 
@@ -32,7 +34,7 @@ module Rspec
32
34
  # @option options [String,Symbol] :engine ("ruby") Ruby engine name to match, e.g. :ruby, :jruby, :truffleruby
33
35
  # @option options [String,Range,Array<String,Range>] :versions
34
36
  # A single version string or range, or an Array of version specs. Each spec can be:
35
- # - String: exact version match (e.g., "2.7.8")
37
+ # - String: exact version match (e.g., "2.7.8") or "head" for head/dev/SNAPSHOT builds
36
38
  # - Range<Gem::Version>: inclusive/exclusive bounds respected (e.g., Gem::Version.new("2.6.0")...Gem::Version.new("3.0.0"))
37
39
  # - Range<Integer>: compares Ruby major version (e.g., 2..3). Inclusive/exclusive respected.
38
40
  # JRuby/TruffleRuby are supported via RUBY_VERSION compatibility for Integer ranges and Gem::Version ranges.
@@ -54,7 +56,7 @@ module Rspec
54
56
  # @option options [String,Symbol] :engine ("ruby") Ruby engine name to match, e.g. :ruby, :jruby, :truffleruby
55
57
  # @option options [String,Range,Array<String,Range>] :versions
56
58
  # A single version string or range, or an Array of version specs. Each spec can be:
57
- # - String: exact version match (e.g., "2.7.8")
59
+ # - String: exact version match (e.g., "2.7.8") or "head" for head/dev/SNAPSHOT builds
58
60
  # - Range<Gem::Version>: inclusive/exclusive bounds respected (e.g., Gem::Version.new("2.6.0")...Gem::Version.new("3.0.0"))
59
61
  # - Range<Integer>: compares Ruby major version (e.g., 2..3). Inclusive/exclusive respected.
60
62
  # JRuby/TruffleRuby are supported via RUBY_VERSION compatibility for Integer ranges and Gem::Version ranges.
@@ -0,0 +1,8 @@
1
+ module Rspec
2
+ module PendingFor
3
+ module Version
4
+ VERSION: String
5
+ end
6
+ VERSION: String
7
+ end
8
+ end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-pending_for
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20
4
+ version: 0.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter H. Boling
@@ -37,26 +37,6 @@ cert_chain:
37
37
  -----END CERTIFICATE-----
38
38
  date: 1980-01-02 00:00:00.000000000 Z
39
39
  dependencies:
40
- - !ruby/object:Gem::Dependency
41
- name: version_gem
42
- requirement: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - "~>"
45
- - !ruby/object:Gem::Version
46
- version: '1.1'
47
- - - ">="
48
- - !ruby/object:Gem::Version
49
- version: 1.1.8
50
- type: :runtime
51
- prerelease: false
52
- version_requirements: !ruby/object:Gem::Requirement
53
- requirements:
54
- - - "~>"
55
- - !ruby/object:Gem::Version
56
- version: '1.1'
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- version: 1.1.8
60
40
  - !ruby/object:Gem::Dependency
61
41
  name: rspec-core
62
42
  requirement: !ruby/object:Gem::Requirement
@@ -105,34 +85,34 @@ dependencies:
105
85
  requirements:
106
86
  - - "~>"
107
87
  - !ruby/object:Gem::Version
108
- version: '1.2'
88
+ version: '2.2'
109
89
  - - ">="
110
90
  - !ruby/object:Gem::Version
111
- version: 1.2.4
91
+ version: 2.2.24
112
92
  type: :development
113
93
  prerelease: false
114
94
  version_requirements: !ruby/object:Gem::Requirement
115
95
  requirements:
116
96
  - - "~>"
117
97
  - !ruby/object:Gem::Version
118
- version: '1.2'
98
+ version: '2.2'
119
99
  - - ">="
120
100
  - !ruby/object:Gem::Version
121
- version: 1.2.4
101
+ version: 2.2.24
122
102
  - !ruby/object:Gem::Dependency
123
103
  name: bundler-audit
124
104
  requirement: !ruby/object:Gem::Requirement
125
105
  requirements:
126
106
  - - "~>"
127
107
  - !ruby/object:Gem::Version
128
- version: 0.9.2
108
+ version: 0.9.3
129
109
  type: :development
130
110
  prerelease: false
131
111
  version_requirements: !ruby/object:Gem::Requirement
132
112
  requirements:
133
113
  - - "~>"
134
114
  - !ruby/object:Gem::Version
135
- version: 0.9.2
115
+ version: 0.9.3
136
116
  - !ruby/object:Gem::Dependency
137
117
  name: rake
138
118
  requirement: !ruby/object:Gem::Requirement
@@ -173,54 +153,60 @@ dependencies:
173
153
  requirements:
174
154
  - - "~>"
175
155
  - !ruby/object:Gem::Version
176
- version: '3.0'
156
+ version: '3.1'
177
157
  - - ">="
178
158
  - !ruby/object:Gem::Version
179
- version: 3.0.2
159
+ version: 3.1.3
180
160
  type: :development
181
161
  prerelease: false
182
162
  version_requirements: !ruby/object:Gem::Requirement
183
163
  requirements:
184
164
  - - "~>"
185
165
  - !ruby/object:Gem::Version
186
- version: '3.0'
166
+ version: '3.1'
187
167
  - - ">="
188
168
  - !ruby/object:Gem::Version
189
- version: 3.0.2
169
+ version: 3.1.3
190
170
  - !ruby/object:Gem::Dependency
191
171
  name: kettle-test
192
172
  requirement: !ruby/object:Gem::Requirement
193
173
  requirements:
194
174
  - - "~>"
195
175
  - !ruby/object:Gem::Version
196
- version: '1.0'
176
+ version: '2.0'
177
+ - - ">="
178
+ - !ruby/object:Gem::Version
179
+ version: 2.0.8
197
180
  type: :development
198
181
  prerelease: false
199
182
  version_requirements: !ruby/object:Gem::Requirement
200
183
  requirements:
201
184
  - - "~>"
202
185
  - !ruby/object:Gem::Version
203
- version: '1.0'
186
+ version: '2.0'
187
+ - - ">="
188
+ - !ruby/object:Gem::Version
189
+ version: 2.0.8
204
190
  - !ruby/object:Gem::Dependency
205
- name: rspec-pending_for
191
+ name: turbo_tests2
206
192
  requirement: !ruby/object:Gem::Requirement
207
193
  requirements:
208
194
  - - "~>"
209
195
  - !ruby/object:Gem::Version
210
- version: '0.0'
196
+ version: '3.1'
211
197
  - - ">="
212
198
  - !ruby/object:Gem::Version
213
- version: 0.0.17
199
+ version: 3.1.5
214
200
  type: :development
215
201
  prerelease: false
216
202
  version_requirements: !ruby/object:Gem::Requirement
217
203
  requirements:
218
204
  - - "~>"
219
205
  - !ruby/object:Gem::Version
220
- version: '0.0'
206
+ version: '3.1'
221
207
  - - ">="
222
208
  - !ruby/object:Gem::Version
223
- version: 0.0.17
209
+ version: 3.1.5
224
210
  - !ruby/object:Gem::Dependency
225
211
  name: ruby-progressbar
226
212
  requirement: !ruby/object:Gem::Requirement
@@ -244,7 +230,7 @@ dependencies:
244
230
  version: '1.0'
245
231
  - - ">="
246
232
  - !ruby/object:Gem::Version
247
- version: 1.0.2
233
+ version: 1.0.4
248
234
  type: :development
249
235
  prerelease: false
250
236
  version_requirements: !ruby/object:Gem::Requirement
@@ -254,27 +240,27 @@ dependencies:
254
240
  version: '1.0'
255
241
  - - ">="
256
242
  - !ruby/object:Gem::Version
257
- version: 1.0.2
243
+ version: 1.0.4
258
244
  - !ruby/object:Gem::Dependency
259
245
  name: gitmoji-regex
260
246
  requirement: !ruby/object:Gem::Requirement
261
247
  requirements:
262
248
  - - "~>"
263
249
  - !ruby/object:Gem::Version
264
- version: '1.0'
250
+ version: '2.0'
265
251
  - - ">="
266
252
  - !ruby/object:Gem::Version
267
- version: 1.0.3
253
+ version: 2.0.3
268
254
  type: :development
269
255
  prerelease: false
270
256
  version_requirements: !ruby/object:Gem::Requirement
271
257
  requirements:
272
258
  - - "~>"
273
259
  - !ruby/object:Gem::Version
274
- version: '1.0'
260
+ version: '2.0'
275
261
  - - ">="
276
262
  - !ruby/object:Gem::Version
277
- version: 1.0.3
263
+ version: 2.0.3
278
264
  description: "⏳️ Mark specs pending or skipped for specific Ruby engine (e.g. MRI
279
265
  or JRuby) & versions, or version ranges. Fund overlooked open source projects -
280
266
  bottom of stack, dev/test dependencies: floss-funding.dev"
@@ -288,9 +274,8 @@ extra_rdoc_files:
288
274
  - CODE_OF_CONDUCT.md
289
275
  - CONTRIBUTING.md
290
276
  - FUNDING.md
291
- - LICENSE.txt
277
+ - LICENSE.md
292
278
  - README.md
293
- - REEK
294
279
  - RUBOCOP.md
295
280
  - SECURITY.md
296
281
  files:
@@ -299,11 +284,12 @@ files:
299
284
  - CODE_OF_CONDUCT.md
300
285
  - CONTRIBUTING.md
301
286
  - FUNDING.md
302
- - LICENSE.txt
287
+ - LICENSE.md
288
+ - MIT.md
303
289
  - README.md
304
- - REEK
305
290
  - RUBOCOP.md
306
291
  - SECURITY.md
292
+ - certs/pboling.pem
307
293
  - lib/rspec-pending_for.rb
308
294
  - lib/rspec/pending_for.rb
309
295
  - lib/rspec/pending_for/build.rb
@@ -312,15 +298,16 @@ files:
312
298
  - lib/rspec/pending_for/version.rb
313
299
  - sig/rspec/pending_for.rbs
314
300
  - sig/rspec/pending_for/build.rbs
301
+ - sig/rspec/pending_for/version.rbs
315
302
  homepage: https://github.com/galtzo-floss/rspec-pending_for
316
303
  licenses:
317
304
  - MIT
318
305
  metadata:
319
306
  homepage_uri: https://rspec-pending-for.galtzo.com/
320
- source_code_uri: https://github.com/galtzo-floss/rspec-pending_for/tree/v0.1.20
321
- changelog_uri: https://github.com/galtzo-floss/rspec-pending_for/blob/v0.1.20/CHANGELOG.md
307
+ source_code_uri: https://github.com/galtzo-floss/rspec-pending_for/tree/v0.1.21
308
+ changelog_uri: https://github.com/galtzo-floss/rspec-pending_for/blob/v0.1.21/CHANGELOG.md
322
309
  bug_tracker_uri: https://github.com/galtzo-floss/rspec-pending_for/issues
323
- documentation_uri: https://www.rubydoc.info/gems/rspec-pending_for/0.1.20
310
+ documentation_uri: https://www.rubydoc.info/gems/rspec-pending_for/0.1.21
324
311
  funding_uri: https://github.com/sponsors/pboling
325
312
  wiki_uri: https://github.com/galtzo-floss/rspec-pending_for/wiki
326
313
  news_uri: https://www.railsbling.com/tags/rspec-pending_for
@@ -350,7 +337,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
350
337
  - !ruby/object:Gem::Version
351
338
  version: '0'
352
339
  requirements: []
353
- rubygems_version: 4.0.5
340
+ rubygems_version: 4.0.10
354
341
  specification_version: 4
355
342
  summary: "⏳️ Mark specs pending or skipped for specified Ruby versions or engines"
356
343
  test_files: []
metadata.gz.sig CHANGED
Binary file
data/LICENSE.txt DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2015-2018, 2020-2022, 2025 Peter H. Boling of Galtzo.com
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/REEK DELETED
File without changes