minitest-bacon 1.0.4 → 1.0.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 772b038e8763d40b12acc9e104c8e76c55f1528c229411d051ad7651747b02d0
4
- data.tar.gz: 244706d7ddaa50925362600c299b695d416210e9f1d69f1bf04e4b45e60a8a21
3
+ metadata.gz: 4036fae5b896c655e4d0465fe23b1e08b60aced2455a718fc5e8930fed2e4ddf
4
+ data.tar.gz: 6764ded53e360c9f5e59dc9d53a1f7b5568fd87565ee6ed935bf4397b217b67c
5
5
  SHA512:
6
- metadata.gz: 1153ebfb2b28c67e406c1a06c42fad5fec300fb971d4d9ceaf1d738fced45a80fd4fa911b879617677933f4724b0d2578081cde247534cca78cfcc5c0e25641b
7
- data.tar.gz: 9e7529661dbab20b9e43ec787316b8023a581c91e51b1b0c85dd587186d584cc960c2f66012e3bcfce4c897e2c18c82fba218ed498ca8770bcc88fe65cac7615
6
+ metadata.gz: a01621ff1ef495d6039c42939bb9e5c4ecad9dc5b9340cd9ad99403a3b2911b659bfeffc8ae07156b44c2344ce2b3614fafbbafbf3ad1e36ddd2139a8cc50427
7
+ data.tar.gz: b56d26d0fd0b97bc58dcfac321424323b78da75f619ad3444e6b1663296665094b4b2d2ff9665825b1a327a57933a311f804ae06c25415371396eeb3e2fca159
checksums.yaml.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,15 @@
1
+ === 1.0.6 / 2026-01-12
2
+
3
+ * 1 bug fix:
4
+
5
+ * Fixed incompatibility with minitest 6 (no more global expectations).
6
+
7
+ === 1.0.5 / 2025-01-10
8
+
9
+ * 1 bug fix:
10
+
11
+ * Ruby 3.4: Fixed breakage from ruby 3.4 call stack changes.
12
+
1
13
  === 1.0.4 / 2024-07-12
2
14
 
3
15
  * 1 bug fix:
@@ -13,6 +13,20 @@ module Minitest
13
13
  end
14
14
  end
15
15
 
16
+ if Minitest::VERSION > "6" then
17
+ warn "injecting minitest 6 hack"
18
+ class Minitest::Spec
19
+ def self.current # :nodoc:
20
+ Thread.current[:current_spec]
21
+ end
22
+
23
+ def initialize name # :nodoc:
24
+ super
25
+ Thread.current[:current_spec] = self
26
+ end
27
+ end
28
+ end
29
+
16
30
  class Minitest::Assertion
17
31
  alias :oldloc :location
18
32
 
@@ -21,7 +35,7 @@ class Minitest::Assertion
21
35
  def location # :nodoc:
22
36
  last_before_assertion = ""
23
37
  self.backtrace.reverse_each do |s|
24
- break if s =~ /in .(method_missing|assert|refute|flunk|pass|fail|raise|must|wont)/
38
+ break if s.match?(/in [`'](?:[^']+[#.])?(?:method_missing|assert|refute|flunk|pass|fail|raise|must|wont)/) # :nodoc:
25
39
  last_before_assertion = s
26
40
  end
27
41
  last_before_assertion.sub(/:in .*$/, "")
@@ -29,7 +43,7 @@ class Minitest::Assertion
29
43
  end
30
44
 
31
45
  class Minitest::ValueMonad
32
- VERSION = "1.0.4"
46
+ VERSION = "1.0.6"
33
47
 
34
48
  instance_methods.each { |name| undef_method name if name =~ /\?|^\W+$/ }
35
49
 
@@ -218,10 +218,12 @@ describe "Bacon" do
218
218
 
219
219
  it "should have should.be.identical_to/same_as" do
220
220
  lambda { s = "string"; s.should.be.identical_to s }.should succeed
221
- lambda { "string".should.be.identical_to "string" }.should fail
221
+
222
+ froze = "string".frozen?
223
+ lambda { "string".should.be.identical_to "string" }.should fail unless froze
222
224
 
223
225
  lambda { s = "string"; s.should.be.same_as s }.should succeed
224
- lambda { "string".should.be.same_as "string" }.should fail
226
+ lambda { "string".should.be.same_as "string" }.should fail unless froze
225
227
  end
226
228
 
227
229
  it "should have should.respond_to" do
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,18 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-bacon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.6
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
- MIIDPjCCAiagAwIBAgIBCDANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
12
+ MIIDPjCCAiagAwIBAgIBCjANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
14
13
  ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
15
- GRYDY29tMB4XDTI0MDEwMjIxMjEyM1oXDTI1MDEwMTIxMjEyM1owRTETMBEGA1UE
14
+ GRYDY29tMB4XDTI2MDEwNzAxMDkxNFoXDTI3MDEwNzAxMDkxNFowRTETMBEGA1UE
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
- AQCygvpmncmkiSs9r/Kceo4bBPDszhTv6iBi4LwMReqnFrpNLMOWJw7xi8x+3eL2
26
- XS09ZPNOt2zm70KmFouBMgOysnDY4k2dE8uF6B8JbZOO8QfalW+CoNBliefOTcn2
27
- bg5IOP7UoGM5lC174/cbDJrJnRG9bzig5FAP0mvsgA8zgTRXQzIUAZEo92D5K7p4
28
- B4/O998ho6BSOgYBI9Yk1ttdCtti6Y+8N9+fZESsjtWMykA+WXWeGUScHqiU+gH8
29
- S7043fq9EbQdBr2AXdj92+CDwuTfHI6/Hj5FVBDULufrJaan4xUgL70Hvc6pTTeW
30
- deKfBjgVAq7EYHu1AczzlUly
24
+ AQA/X8/PKTTc/IkYQEUL6XWtfK8fAfbuLJzmLcz6f2ZWrtBvPsYvqRuwI1bWUtil
25
+ 2ibJEfIuSIHX6BsUTX18+hlaIussf6EWq/YkE7e2BKmgQE42vSOZMce0kCEAPbx0
26
+ rQtqonfWTHQ8UbQ7GqCL3gDQ0QDD2B+HUlb4uaCZ2icxqa/eOtxMvHC2tj+h0xKY
27
+ xL84ipM5kr0bHGf9/MRZJWcw51urueNycBXu1Xh+pEN8qBmYsFRR4SIODLClybAO
28
+ 6cbm2PyPQgKNiqE4H+IQrDVHd9bJs1XgLElk3qoaJBWXc/5fy0J1imYb25UqmiHG
29
+ snGe1hrppvBRdcyEzvhfIPjI
31
30
  -----END CERTIFICATE-----
32
- date: 2024-07-12 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: minitest
@@ -51,34 +50,34 @@ dependencies:
51
50
  requirements:
52
51
  - - ">="
53
52
  - !ruby/object:Gem::Version
54
- version: '4.0'
53
+ version: '6.0'
55
54
  - - "<"
56
55
  - !ruby/object:Gem::Version
57
- version: '7'
56
+ version: '8'
58
57
  type: :development
59
58
  prerelease: false
60
59
  version_requirements: !ruby/object:Gem::Requirement
61
60
  requirements:
62
61
  - - ">="
63
62
  - !ruby/object:Gem::Version
64
- version: '4.0'
63
+ version: '6.0'
65
64
  - - "<"
66
65
  - !ruby/object:Gem::Version
67
- version: '7'
66
+ version: '8'
68
67
  - !ruby/object:Gem::Dependency
69
68
  name: hoe
70
69
  requirement: !ruby/object:Gem::Requirement
71
70
  requirements:
72
71
  - - "~>"
73
72
  - !ruby/object:Gem::Version
74
- version: '4.2'
73
+ version: '4.5'
75
74
  type: :development
76
75
  prerelease: false
77
76
  version_requirements: !ruby/object:Gem::Requirement
78
77
  requirements:
79
78
  - - "~>"
80
79
  - !ruby/object:Gem::Version
81
- version: '4.2'
80
+ version: '4.5'
82
81
  description: |-
83
82
  minitest-bacon extends minitest with bacon-like functionality. It
84
83
  should allow you to bridge 90+% of your bacon specs over to minitest.
@@ -105,7 +104,6 @@ licenses:
105
104
  - MIT
106
105
  metadata:
107
106
  homepage_uri: https://github.com/seattlerb/minitest-bacon
108
- post_install_message:
109
107
  rdoc_options:
110
108
  - "--main"
111
109
  - README.txt
@@ -122,8 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
120
  - !ruby/object:Gem::Version
123
121
  version: '0'
124
122
  requirements: []
125
- rubygems_version: 3.5.14
126
- signing_key:
123
+ rubygems_version: 3.7.2
127
124
  specification_version: 4
128
125
  summary: minitest-bacon extends minitest with bacon-like functionality
129
126
  test_files: []
metadata.gz.sig CHANGED
Binary file