minitest-bacon 1.0.3 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data/History.txt +12 -1
- data/lib/minitest/bacon.rb +5 -4
- data/test/minitest/test_bacon.rb +4 -2
- data.tar.gz.sig +0 -0
- metadata +32 -29
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 998c3bccbbb923478d309e16781f55ae347c93c25aac4fbece57c1938af909cf
|
4
|
+
data.tar.gz: cabdd6ab724a49b598cf97734c30b25b58e022b6038e2a4463bd93e2bd2e6255
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ce94114a0a02649b89c453ad24d22972fd9477898fb67081f5c2c903bf3caad8d5bc9ef305d880c5f45177056a8a38eb8863b9eebd8792135e1f5b934d65e12
|
7
|
+
data.tar.gz: bf52a9388291d145abeaf60dda19ce0e314993ed791b5a795c24710a76f2025ba34c1192d89cda97ac93b22b5ff9d60ac88c042f5ab81a6e99039de452c4ab99
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
=== 1.0.5 / 2025-01-10
|
2
|
+
|
3
|
+
* 1 bug fix:
|
4
|
+
|
5
|
+
* Ruby 3.4: Fixed breakage from ruby 3.4 call stack changes.
|
6
|
+
|
7
|
+
=== 1.0.4 / 2024-07-12
|
8
|
+
|
9
|
+
* 1 bug fix:
|
10
|
+
|
11
|
+
* Fixed usage of frozen string literals.
|
12
|
+
|
1
13
|
=== 1.0.3 / 2016-05-16
|
2
14
|
|
3
15
|
* 1 bug fix:
|
@@ -21,4 +33,3 @@
|
|
21
33
|
* 1 major enhancement
|
22
34
|
|
23
35
|
* Birthday!
|
24
|
-
|
data/lib/minitest/bacon.rb
CHANGED
@@ -21,7 +21,7 @@ class Minitest::Assertion
|
|
21
21
|
def location # :nodoc:
|
22
22
|
last_before_assertion = ""
|
23
23
|
self.backtrace.reverse_each do |s|
|
24
|
-
break if s
|
24
|
+
break if s.match?(/in [`'](?:[^']+[#.])?(?:method_missing|assert|refute|flunk|pass|fail|raise|must|wont)/) # :nodoc:
|
25
25
|
last_before_assertion = s
|
26
26
|
end
|
27
27
|
last_before_assertion.sub(/:in .*$/, "")
|
@@ -29,7 +29,7 @@ class Minitest::Assertion
|
|
29
29
|
end
|
30
30
|
|
31
31
|
class Minitest::ValueMonad
|
32
|
-
VERSION = "1.0.
|
32
|
+
VERSION = "1.0.5"
|
33
33
|
|
34
34
|
instance_methods.each { |name| undef_method name if name =~ /\?|^\W+$/ }
|
35
35
|
|
@@ -79,11 +79,12 @@ class Minitest::ValueMonad
|
|
79
79
|
name = name.to_s.sub(/^be_/, '')
|
80
80
|
name = "#{name}?" if name =~ /\w[^?]\z/
|
81
81
|
|
82
|
-
msg =
|
82
|
+
msg = []
|
83
|
+
msg << "not" unless @pos
|
83
84
|
msg << @val.inspect << ".#{name}"
|
84
85
|
msg << "(#{args.map(&:inspect).join ", "}) failed"
|
85
86
|
|
86
|
-
assert(msg) { @val.__send__(name, *args, &block) }
|
87
|
+
assert(msg.join) { @val.__send__(name, *args, &block) }
|
87
88
|
end
|
88
89
|
|
89
90
|
def equal(value) self == value end
|
data/test/minitest/test_bacon.rb
CHANGED
@@ -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
|
-
|
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
|
+
version: 1.0.5
|
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
|
-
|
12
|
+
MIIDPjCCAiagAwIBAgIBCTANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
|
14
13
|
ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
|
15
|
-
|
14
|
+
GRYDY29tMB4XDTI1MDEwNjIzMjcwMVoXDTI2MDEwNjIzMjcwMVowRTETMBEGA1UE
|
16
15
|
AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
|
17
16
|
JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
|
18
17
|
b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
|
@@ -21,58 +20,64 @@ cert_chain:
|
|
21
20
|
GiadM9GHRaDiaxuX0cIUBj19T01mVE2iymf9I6bEsiayK/n6QujtyCbTWsAS9Rqt
|
22
21
|
qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
|
23
22
|
gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
|
24
|
-
HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
23
|
+
HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBCwUAA4IB
|
24
|
+
AQAC0WQJcPOWPFwkojhzweilRVjTJ19UiLhiBTw3C1wJO3LVdBkWDmnnhAmKuX4D
|
25
|
+
r7vjQvESlABGIPdutI1Yl7mrHQzTkfLfXvNN6MT0nLChPyIYauT6SZZxubwJrUfA
|
26
|
+
7R0c2CJTIboZ0XaGpLsXqHEF1c29H7TV1QvVuqKAN2mCjh4N82QVn+ZKtys28AwT
|
27
|
+
6GfQX2fqLoi4KSc7xIzHKaNzqxeOICmJofk9w5VZ2rRN6yes8jvFYwz9HR41wdj8
|
28
|
+
bwfinv7Yp5fA6AysuZLhCykyfDuZVRrUp0Vb68YCKsLjJly/Theak+euNTxvHsB+
|
29
|
+
al9oSgPPHICMEX65qvLywitx
|
31
30
|
-----END CERTIFICATE-----
|
32
|
-
date:
|
31
|
+
date: 2025-01-10 00:00:00.000000000 Z
|
33
32
|
dependencies:
|
34
33
|
- !ruby/object:Gem::Dependency
|
35
34
|
name: minitest
|
36
35
|
requirement: !ruby/object:Gem::Requirement
|
37
36
|
requirements:
|
38
|
-
- - ~>
|
37
|
+
- - "~>"
|
39
38
|
- !ruby/object:Gem::Version
|
40
39
|
version: '5.0'
|
41
40
|
type: :runtime
|
42
41
|
prerelease: false
|
43
42
|
version_requirements: !ruby/object:Gem::Requirement
|
44
43
|
requirements:
|
45
|
-
- - ~>
|
44
|
+
- - "~>"
|
46
45
|
- !ruby/object:Gem::Version
|
47
46
|
version: '5.0'
|
48
47
|
- !ruby/object:Gem::Dependency
|
49
48
|
name: rdoc
|
50
49
|
requirement: !ruby/object:Gem::Requirement
|
51
50
|
requirements:
|
52
|
-
- -
|
51
|
+
- - ">="
|
53
52
|
- !ruby/object:Gem::Version
|
54
53
|
version: '4.0'
|
54
|
+
- - "<"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '7'
|
55
57
|
type: :development
|
56
58
|
prerelease: false
|
57
59
|
version_requirements: !ruby/object:Gem::Requirement
|
58
60
|
requirements:
|
59
|
-
- -
|
61
|
+
- - ">="
|
60
62
|
- !ruby/object:Gem::Version
|
61
63
|
version: '4.0'
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '7'
|
62
67
|
- !ruby/object:Gem::Dependency
|
63
68
|
name: hoe
|
64
69
|
requirement: !ruby/object:Gem::Requirement
|
65
70
|
requirements:
|
66
|
-
- - ~>
|
71
|
+
- - "~>"
|
67
72
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
73
|
+
version: '4.2'
|
69
74
|
type: :development
|
70
75
|
prerelease: false
|
71
76
|
version_requirements: !ruby/object:Gem::Requirement
|
72
77
|
requirements:
|
73
|
-
- - ~>
|
78
|
+
- - "~>"
|
74
79
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
80
|
+
version: '4.2'
|
76
81
|
description: |-
|
77
82
|
minitest-bacon extends minitest with bacon-like functionality. It
|
78
83
|
should allow you to bridge 90+% of your bacon specs over to minitest.
|
@@ -85,7 +90,7 @@ extra_rdoc_files:
|
|
85
90
|
- Manifest.txt
|
86
91
|
- README.txt
|
87
92
|
files:
|
88
|
-
- .autotest
|
93
|
+
- ".autotest"
|
89
94
|
- History.txt
|
90
95
|
- Manifest.txt
|
91
96
|
- README.txt
|
@@ -97,27 +102,25 @@ files:
|
|
97
102
|
homepage: https://github.com/seattlerb/minitest-bacon
|
98
103
|
licenses:
|
99
104
|
- MIT
|
100
|
-
metadata:
|
101
|
-
|
105
|
+
metadata:
|
106
|
+
homepage_uri: https://github.com/seattlerb/minitest-bacon
|
102
107
|
rdoc_options:
|
103
|
-
- --main
|
108
|
+
- "--main"
|
104
109
|
- README.txt
|
105
110
|
require_paths:
|
106
111
|
- lib
|
107
112
|
required_ruby_version: !ruby/object:Gem::Requirement
|
108
113
|
requirements:
|
109
|
-
- -
|
114
|
+
- - ">="
|
110
115
|
- !ruby/object:Gem::Version
|
111
116
|
version: '0'
|
112
117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
113
118
|
requirements:
|
114
|
-
- -
|
119
|
+
- - ">="
|
115
120
|
- !ruby/object:Gem::Version
|
116
121
|
version: '0'
|
117
122
|
requirements: []
|
118
|
-
|
119
|
-
rubygems_version: 2.4.5
|
120
|
-
signing_key:
|
123
|
+
rubygems_version: 3.6.2
|
121
124
|
specification_version: 4
|
122
125
|
summary: minitest-bacon extends minitest with bacon-like functionality
|
123
126
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|