minitest 5.20.0 → 5.27.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.
@@ -1,5 +1,11 @@
1
1
  require "minitest/autorun"
2
- require "hoe"
2
+
3
+ begin
4
+ require "hoe"
5
+ rescue LoadError => e
6
+ warn e.message
7
+ return
8
+ end
3
9
 
4
10
  require "minitest/test_task"
5
11
 
@@ -8,11 +14,16 @@ Hoe.load_plugins # make sure Hoe::Test is loaded
8
14
  class TestHoeTest < Minitest::Test
9
15
  PATH = "test/minitest/test_minitest_test_task.rb"
10
16
 
11
- mt_path = %w[lib test .].join File::PATH_SEPARATOR
17
+ def util_cmd_string *prelude_framework
18
+ mt_path = %w[lib test .].join File::PATH_SEPARATOR
19
+ mt_expected = "-I%s -w -e '%srequire %p' -- "
12
20
 
13
- MT_EXPECTED = %W[-I#{mt_path} -w
14
- -e '%srequire "#{PATH}"'
15
- --].join(" ") + " "
21
+ mt_expected % [mt_path, prelude_framework.join("; "), PATH]
22
+ end
23
+
24
+ def util_exp_cmd
25
+ @tester.make_test_cmd.sub(/ -- .+/, " -- ")
26
+ end
16
27
 
17
28
  def test_make_test_cmd_for_minitest
18
29
  skip "Using TESTOPTS... skipping" if ENV["TESTOPTS"]
@@ -25,7 +36,7 @@ class TestHoeTest < Minitest::Test
25
36
  t.test_globs = [PATH]
26
37
  end
27
38
 
28
- assert_equal MT_EXPECTED % [framework].join("; "), @tester.make_test_cmd
39
+ assert_equal util_cmd_string(framework), util_exp_cmd
29
40
  end
30
41
 
31
42
  def test_make_test_cmd_for_minitest_prelude
@@ -41,6 +52,6 @@ class TestHoeTest < Minitest::Test
41
52
  t.test_globs = [PATH]
42
53
  end
43
54
 
44
- assert_equal MT_EXPECTED % [prelude, framework].join("; "), @tester.make_test_cmd
55
+ assert_equal util_cmd_string(prelude, framework), util_exp_cmd
45
56
  end
46
57
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,18 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.20.0
4
+ version: 5.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain:
11
10
  - |
12
11
  -----BEGIN CERTIFICATE-----
13
- MIIDPjCCAiagAwIBAgIBBzANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
12
+ MIIDPjCCAiagAwIBAgIBCTANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
14
13
  ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
15
- GRYDY29tMB4XDTIzMDEwMTA3NTExN1oXDTI0MDEwMTA3NTExN1owRTETMBEGA1UE
14
+ GRYDY29tMB4XDTI1MDEwNjIzMjcwMVoXDTI2MDEwNjIzMjcwMVowRTETMBEGA1UE
16
15
  AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
17
16
  JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
18
17
  b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
@@ -22,14 +21,14 @@ cert_chain:
22
21
  qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
23
22
  gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
24
23
  HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBCwUAA4IB
25
- AQAkg3y+PBnBAPWdxxITm5sPHqdWQgSyCpRA20o4LTuWr8BWhSXBkfQNa7cY6fOn
26
- xyM34VPzBFbExv6XOGDfOMFBVaYTHuN9peC/5/umL7kLl+nflXzL2QA7K6LYj5Bg
27
- sM574Onr0dZDM6Vn69bzQ7rBIFDfK/OhlPzqKZad4nsdcsVH8ODCiT+ATMIZyz5K
28
- WCnNtqlyiWXI8tdTpahDgcUwfcN/oN7v4K8iU5IbLJX6HQ5DKgmKjfb6XyMth16k
29
- ROfWo9Uyp8ba/j9eVG14KkYRaLydAY1MNQk2yd3R5CGfeOpD1kttxjoypoUJ2dOG
30
- nsNBRuQJ1UfiCG97a6DNm+Fr
24
+ AQAC0WQJcPOWPFwkojhzweilRVjTJ19UiLhiBTw3C1wJO3LVdBkWDmnnhAmKuX4D
25
+ r7vjQvESlABGIPdutI1Yl7mrHQzTkfLfXvNN6MT0nLChPyIYauT6SZZxubwJrUfA
26
+ 7R0c2CJTIboZ0XaGpLsXqHEF1c29H7TV1QvVuqKAN2mCjh4N82QVn+ZKtys28AwT
27
+ 6GfQX2fqLoi4KSc7xIzHKaNzqxeOICmJofk9w5VZ2rRN6yes8jvFYwz9HR41wdj8
28
+ bwfinv7Yp5fA6AysuZLhCykyfDuZVRrUp0Vb68YCKsLjJly/Theak+euNTxvHsB+
29
+ al9oSgPPHICMEX65qvLywitx
31
30
  -----END CERTIFICATE-----
32
- date: 2023-09-06 00:00:00.000000000 Z
31
+ date: 1980-01-02 00:00:00.000000000 Z
33
32
  dependencies:
34
33
  - !ruby/object:Gem::Dependency
35
34
  name: rdoc
@@ -57,14 +56,14 @@ dependencies:
57
56
  requirements:
58
57
  - - "~>"
59
58
  - !ruby/object:Gem::Version
60
- version: '4.0'
59
+ version: '4.3'
61
60
  type: :development
62
61
  prerelease: false
63
62
  version_requirements: !ruby/object:Gem::Requirement
64
63
  requirements:
65
64
  - - "~>"
66
65
  - !ruby/object:Gem::Version
67
- version: '4.0'
66
+ version: '4.3'
68
67
  description: |-
69
68
  minitest provides a complete suite of testing facilities supporting
70
69
  TDD, BDD, mocking, and benchmarking.
@@ -139,8 +138,11 @@ files:
139
138
  - lib/minitest/assertions.rb
140
139
  - lib/minitest/autorun.rb
141
140
  - lib/minitest/benchmark.rb
141
+ - lib/minitest/compress.rb
142
+ - lib/minitest/error_on_warning.rb
142
143
  - lib/minitest/expectations.rb
143
144
  - lib/minitest/hell.rb
145
+ - lib/minitest/manual_plugins.rb
144
146
  - lib/minitest/mock.rb
145
147
  - lib/minitest/parallel.rb
146
148
  - lib/minitest/pride.rb
@@ -157,13 +159,29 @@ files:
157
159
  - test/minitest/test_minitest_spec.rb
158
160
  - test/minitest/test_minitest_test.rb
159
161
  - test/minitest/test_minitest_test_task.rb
160
- homepage: https://github.com/minitest/minitest
162
+ homepage: https://minite.st/
161
163
  licenses:
162
164
  - MIT
163
165
  metadata:
164
- homepage_uri: https://github.com/minitest/minitest
166
+ homepage_uri: https://minite.st/
167
+ source_code_uri: https://github.com/minitest/minitest
165
168
  bug_tracker_uri: https://github.com/minitest/minitest/issues
166
- post_install_message:
169
+ changelog_uri: https://github.com/minitest/minitest/blob/master/History.rdoc
170
+ post_install_message: |
171
+ NOTE: minitest 5 will be the last in the minitest family to support
172
+ ruby 1.8 to 2.7. If you need to keep using these versions,
173
+ you need to pin your dependency to minitest with something
174
+ like "~> 5.0". See History.rdoc to locate compatible
175
+ versions.
176
+
177
+ Further, minitest 6 will be dropping the following:
178
+
179
+ + MiniTest (it's been Minitest for >10 years)
180
+ + MiniTest::Unit
181
+ + MiniTest::Unit::TestCase
182
+ + assert_send (unless you argue for it well)
183
+ + assert_equal nil, obj
184
+ + mocks and stubs: moving minitest/mock.rb to its own gem
167
185
  rdoc_options:
168
186
  - "--main"
169
187
  - README.rdoc
@@ -173,18 +191,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
191
  requirements:
174
192
  - - ">="
175
193
  - !ruby/object:Gem::Version
176
- version: '2.6'
177
- - - "<"
178
- - !ruby/object:Gem::Version
179
- version: '4.0'
194
+ version: '3.1'
180
195
  required_rubygems_version: !ruby/object:Gem::Requirement
181
196
  requirements:
182
197
  - - ">="
183
198
  - !ruby/object:Gem::Version
184
199
  version: '0'
185
200
  requirements: []
186
- rubygems_version: 3.4.10
187
- signing_key:
201
+ rubygems_version: 3.7.2
188
202
  specification_version: 4
189
203
  summary: minitest provides a complete suite of testing facilities supporting TDD,
190
204
  BDD, mocking, and benchmarking
metadata.gz.sig CHANGED
Binary file