minitest 5.18.0 → 5.18.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: 27d1d24e16ba576cc5a425d6e09e3de81465d10104a647c21ad9a5df36be1551
4
- data.tar.gz: c3ca5dd490b7d08ee3254c7c8a680af0675f72e5356ad97b55dd1ec67e27251d
3
+ metadata.gz: 992b073995b1f8471d46b12e317817e1280f7c25967218dd62520658243f4b97
4
+ data.tar.gz: 4265a53b9aa6d02307622cb2b57754137e675a032164303feef25445fe3e2ad7
5
5
  SHA512:
6
- metadata.gz: f545c292aabb802ae8e03cea73bf2334a8ac6dea7da411b8e6ad48e036b00eabac550e5405c11aea175b30a9d65aced4e3601258081e845299ff6e1dbffd353d
7
- data.tar.gz: ae62ac5c0f4218b66fe0206eb0205828c872531d6b68a4b0537fbe4b0a8753ccf604b4d11a11322dc329b275a1428683125c061e6e255f90ff5a076e4afb02ad
6
+ metadata.gz: dd001c5041d4bb8c59fc348a5ab1c9df657cee56938817d2c9e1e9dcabf0e593e0e70dffe56be52b36bff86545919f3982486d632a3393e847bd4c89f392ed80
7
+ data.tar.gz: 6a6045f24033c98a45951e00fec38cd252687cd6e41069c76e22c3cbe9da8f9f4c8a5ed0b663ba009807dbb1dde6cb5b659e712db5383388955f6efa6d7501c3
checksums.yaml.gz.sig CHANGED
Binary file
data/History.rdoc CHANGED
@@ -1,3 +1,11 @@
1
+ === 5.18.1 / 2023-06-16
2
+
3
+ * 3 bug fixes:
4
+
5
+ * Avoid extra string allocations when filtering tests. (tenderlove)
6
+ * Only mention deprecated ENV['N'] if it is an integer string.
7
+ * Push up test_order to Minitest::Runnable to fix minitest/hell. (koic)
8
+
1
9
  === 5.18.0 / 2023-03-04
2
10
 
3
11
  * 2 major enhancements:
data/README.rdoc CHANGED
@@ -1,7 +1,7 @@
1
1
  = minitest/{test,spec,mock,benchmark}
2
2
 
3
- home :: https://github.com/seattlerb/minitest
4
- bugs :: https://github.com/seattlerb/minitest/issues
3
+ home :: https://github.com/minitest/minitest
4
+ bugs :: https://github.com/minitest/minitest/issues
5
5
  rdoc :: https://docs.seattlerb.org/minitest
6
6
  vim :: https://github.com/sunaku/vim-ruby-minitest
7
7
  emacs:: https://github.com/arthurnn/minitest-emacs
@@ -411,7 +411,7 @@ supporting versions of ruby that are long past EOL. Hopefully I'll be
411
411
  able to support only current versions of ruby sometime in the near
412
412
  future.
413
413
 
414
- (As of 2022-11-29)
414
+ (As of 2023-03-05)
415
415
 
416
416
  Current versions of rails: (https://endoflife.date/rails)
417
417
 
@@ -422,20 +422,21 @@ Current versions of rails: (https://endoflife.date/rails)
422
422
  | 6.0 | >= 2.5 | 2.6 | >= 5.1 | Security | 2023-06-01 |
423
423
  | 5.2 | >= 2.2.2 | 2.5 | ~> 5.1 | EOL | 2022-06-01 |
424
424
 
425
+ If you want to look at the requirements for a specific version, run:
426
+
427
+ gem spec -r --ruby rails -v 7.0.0
428
+
425
429
  Current versions of ruby: (https://endoflife.date/ruby)
426
430
 
427
431
  | ruby | Status | EOL Date |
428
432
  |------+---------+------------|
429
- | 3.1 | Current | 2025-12-25 |
433
+ | 3.2 | Current | 2026-03-31 |
434
+ | 3.1 | Maint | 2025-03-31 |
430
435
  | 3.0 | Maint | 2024-03-31 |
431
- | 2.7 | Maint* | 2023-03-31 |
436
+ | 2.7 | Security| 2023-03-31 |
432
437
  | 2.6 | EOL | 2022-03-31 |
433
438
  | 2.5 | EOL | 2021-03-31 |
434
439
 
435
- See also:
436
-
437
- * https://www.fastruby.io/blog/ruby/rails/versions/compatibility-table.html
438
-
439
440
  === How to test SimpleDelegates?
440
441
 
441
442
  The following implementation and test:
data/lib/minitest/test.rb CHANGED
@@ -80,14 +80,6 @@ module Minitest
80
80
  end
81
81
  end
82
82
 
83
- ##
84
- # Defines the order to run tests (:random by default). Override
85
- # this or use a convenience method to change it for your tests.
86
-
87
- def self.test_order
88
- :random
89
- end
90
-
91
83
  ##
92
84
  # Runs a single test with setup/teardown hooks.
93
85
 
data/lib/minitest.rb CHANGED
@@ -9,7 +9,7 @@ require "etc"
9
9
  # :include: README.rdoc
10
10
 
11
11
  module Minitest
12
- VERSION = "5.18.0" # :nodoc:
12
+ VERSION = "5.18.1" # :nodoc:
13
13
 
14
14
  @@installed_at_exit ||= false
15
15
  @@after_run = []
@@ -32,7 +32,7 @@ module Minitest
32
32
 
33
33
  cattr_accessor :parallel_executor
34
34
 
35
- warn "DEPRECATED: use MT_CPU instead of N for parallel test runs" if ENV["N"]
35
+ warn "DEPRECATED: use MT_CPU instead of N for parallel test runs" if ENV["N"] && ENV["N"].to_i > 0
36
36
  n_threads = (ENV["MT_CPU"] || ENV["N"] || Etc.nprocessors).to_i
37
37
 
38
38
  self.parallel_executor = Parallel::Executor.new n_threads
@@ -331,19 +331,25 @@ module Minitest
331
331
  # reporter to record.
332
332
 
333
333
  def self.run reporter, options = {}
334
- filter = options[:filter] || "/./"
335
- filter = Regexp.new $1 if filter.is_a?(String) && filter =~ %r%/(.*)/%
336
-
337
- filtered_methods = self.runnable_methods.find_all { |m|
338
- filter === m || filter === "#{self}##{m}"
339
- }
334
+ filtered_methods = if options[:filter]
335
+ filter = options[:filter]
336
+ filter = Regexp.new $1 if filter.is_a?(String) && filter =~ %r%/(.*)/%
337
+
338
+ self.runnable_methods.find_all { |m|
339
+ filter === m || filter === "#{self}##{m}"
340
+ }
341
+ else
342
+ self.runnable_methods
343
+ end
340
344
 
341
- exclude = options[:exclude]
342
- exclude = Regexp.new $1 if exclude =~ %r%/(.*)/%
345
+ if options[:exclude]
346
+ exclude = options[:exclude]
347
+ exclude = Regexp.new $1 if exclude =~ %r%/(.*)/%
343
348
 
344
- filtered_methods.delete_if { |m|
345
- exclude === m || exclude === "#{self}##{m}"
346
- }
349
+ filtered_methods.delete_if { |m|
350
+ exclude === m || exclude === "#{self}##{m}"
351
+ }
352
+ end
347
353
 
348
354
  return if filtered_methods.empty?
349
355
 
@@ -365,6 +371,14 @@ module Minitest
365
371
  reporter.record Minitest.run_one_method(klass, method_name)
366
372
  end
367
373
 
374
+ ##
375
+ # Defines the order to run tests (:random by default). Override
376
+ # this or use a convenience method to change it for your tests.
377
+
378
+ def self.test_order
379
+ :random
380
+ end
381
+
368
382
  def self.with_info_handler reporter, &block # :nodoc:
369
383
  handler = lambda do
370
384
  unless reporter.passed? then
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.18.0
4
+ version: 5.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -29,7 +29,7 @@ cert_chain:
29
29
  ROfWo9Uyp8ba/j9eVG14KkYRaLydAY1MNQk2yd3R5CGfeOpD1kttxjoypoUJ2dOG
30
30
  nsNBRuQJ1UfiCG97a6DNm+Fr
31
31
  -----END CERTIFICATE-----
32
- date: 2023-03-04 00:00:00.000000000 Z
32
+ date: 2023-06-16 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rdoc
@@ -157,12 +157,12 @@ files:
157
157
  - test/minitest/test_minitest_spec.rb
158
158
  - test/minitest/test_minitest_test.rb
159
159
  - test/minitest/test_minitest_test_task.rb
160
- homepage: https://github.com/seattlerb/minitest
160
+ homepage: https://github.com/minitest/minitest
161
161
  licenses:
162
162
  - MIT
163
163
  metadata:
164
- homepage_uri: https://github.com/seattlerb/minitest
165
- bug_tracker_uri: https://github.com/seattlerb/minitest/issues
164
+ homepage_uri: https://github.com/minitest/minitest
165
+ bug_tracker_uri: https://github.com/minitest/minitest/issues
166
166
  post_install_message:
167
167
  rdoc_options:
168
168
  - "--main"
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  - !ruby/object:Gem::Version
184
184
  version: '0'
185
185
  requirements: []
186
- rubygems_version: 3.4.6
186
+ rubygems_version: 3.4.10
187
187
  signing_key:
188
188
  specification_version: 4
189
189
  summary: minitest provides a complete suite of testing facilities supporting TDD,
metadata.gz.sig CHANGED
Binary file