ZenTest 4.12.0 → 4.12.2
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/History.txt +12 -0
- data/bin/multiruby +11 -1
- data/lib/unit_diff.rb +6 -5
- data/lib/zentest.rb +1 -1
- data/test/test_unit_diff.rb +2 -2
- data/test/test_zentest.rb +0 -2
- data.tar.gz.sig +0 -0
- metadata +18 -17
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55123c92e92cc1e798575c3848f3986ceb13b1d796cb9287c45926ae1e8dcf30
|
4
|
+
data.tar.gz: 2ffc54456e01a0ae0f055cbd9b8e20f37b8041e960c7a53715db079ca366ce91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2dad2684f35e5ea3fa8dc2b86b3446aa5043b1e791ec9d5f08ea13edde4b7699eda4cea753f2ab5b5b5ba9d4557701b39103e1be0f6e58e80cf4d24ad3493af
|
7
|
+
data.tar.gz: c84f6376ddb287998206fbb8a396cdefa4266525afee84da072310e191b86e252cc4ff48e5198651ea8c9a53bb1e34455b26099bba40b4c99548d2e798826128
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
=== 4.12.2 / 2024-07-02
|
2
|
+
|
3
|
+
* 1 bug fix:
|
4
|
+
|
5
|
+
* Fix errors created when string literals are frozen.
|
6
|
+
|
7
|
+
=== 4.12.1 / 2022-01-17
|
8
|
+
|
9
|
+
* 1 bug fix:
|
10
|
+
|
11
|
+
* ruby 3.1: Fixed YAML.load switching to safe_load.
|
12
|
+
|
1
13
|
=== 4.12.0 / 2019-09-22
|
2
14
|
|
3
15
|
* 3 major enhancements:
|
data/bin/multiruby
CHANGED
@@ -42,9 +42,19 @@ if ARGV.first == "-1" then
|
|
42
42
|
exec "#{dir}/bin/ruby", *ARGV
|
43
43
|
end
|
44
44
|
|
45
|
+
def maybe_load_yaml_file config
|
46
|
+
if config then
|
47
|
+
if YAML.respond_to? :safe_load_file then
|
48
|
+
YAML.safe_load_file config, permitted_classes: [Regexp, Symbol]
|
49
|
+
else
|
50
|
+
YAML.load_file config
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
45
55
|
rcpath = File.expand_path "~/.hoerc"
|
46
56
|
skip = if File.exist? rcpath then
|
47
|
-
conf =
|
57
|
+
conf = maybe_load_yaml_file rcpath
|
48
58
|
conf["multiruby_skip"] || []
|
49
59
|
end
|
50
60
|
excl = (ENV["EXCLUDED_VERSIONS"] || "").split(/:/) + skip
|
data/lib/unit_diff.rb
CHANGED
@@ -143,24 +143,25 @@ class UnitDiff
|
|
143
143
|
state = :footer
|
144
144
|
result.shift
|
145
145
|
when /^Expected (.*?)$/ then
|
146
|
-
expect << "#{$1}\n"
|
146
|
+
expect << "#{$1}\n".dup
|
147
147
|
result.shift
|
148
148
|
when /^to equal / then
|
149
149
|
state = :spec_butwas
|
150
150
|
bw = result.shift.sub(/^to equal (.*):?$/, '\1')
|
151
151
|
butwas << bw
|
152
152
|
else
|
153
|
-
|
154
|
-
|
153
|
+
ex = result.shift.dup
|
154
|
+
state = :butwas if ex.sub!(/ expected( but was|, not)/, '')
|
155
|
+
expect << ex
|
155
156
|
end
|
156
157
|
when :butwas then
|
157
|
-
butwas = result[0..-1]
|
158
|
+
butwas = result[0..-1].map(&:dup)
|
158
159
|
result.clear
|
159
160
|
when :spec_butwas then
|
160
161
|
if result.first =~ /^\s+\S+ at |^:\s*$/
|
161
162
|
state = :footer
|
162
163
|
else
|
163
|
-
butwas << result.shift
|
164
|
+
butwas << result.shift.dup
|
164
165
|
end
|
165
166
|
when :footer then
|
166
167
|
butwas.last.sub!(/:$/, '')
|
data/lib/zentest.rb
CHANGED
data/test/test_unit_diff.rb
CHANGED
@@ -363,8 +363,8 @@ test_blah(TestBlah)
|
|
363
363
|
end
|
364
364
|
|
365
365
|
def util_unit_diff(header, input, expected, msg=:unit_diff)
|
366
|
-
output = StringIO.new("")
|
367
|
-
actual = @diff.send(msg, StringIO.new(input), output)
|
366
|
+
output = StringIO.new(+"")
|
367
|
+
actual = @diff.send(msg, StringIO.new(input.dup), output)
|
368
368
|
assert_equal header, output.string, "header output"
|
369
369
|
assert_equal expected, actual
|
370
370
|
end
|
data/test/test_zentest.rb
CHANGED
@@ -554,8 +554,6 @@ assert_equal expected, util_testcase("Something2::Blah2", "TestSomething2::TestB
|
|
554
554
|
end
|
555
555
|
|
556
556
|
def test_testcase9
|
557
|
-
skip "doesn't define to_s on TrueClass?!?" if maglev?
|
558
|
-
|
559
557
|
# stupid YAML is breaking my tests. Enters via Test::Rails. order dependent.
|
560
558
|
if defined? YAML then
|
561
559
|
TrueClass.send :remove_method, :taguri, :taguri=, :to_yaml rescue nil
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ZenTest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.12.
|
4
|
+
version: 4.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
8
8
|
- Eric Hodel
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain:
|
12
12
|
- |
|
13
13
|
-----BEGIN CERTIFICATE-----
|
14
|
-
|
14
|
+
MIIDPjCCAiagAwIBAgIBCDANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
|
15
15
|
ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
|
16
|
-
|
16
|
+
GRYDY29tMB4XDTI0MDEwMjIxMjEyM1oXDTI1MDEwMTIxMjEyM1owRTETMBEGA1UE
|
17
17
|
AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
|
18
18
|
JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
|
19
19
|
b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
|
@@ -23,14 +23,14 @@ cert_chain:
|
|
23
23
|
qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
|
24
24
|
gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
|
25
25
|
HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBCwUAA4IB
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
26
|
+
AQCygvpmncmkiSs9r/Kceo4bBPDszhTv6iBi4LwMReqnFrpNLMOWJw7xi8x+3eL2
|
27
|
+
XS09ZPNOt2zm70KmFouBMgOysnDY4k2dE8uF6B8JbZOO8QfalW+CoNBliefOTcn2
|
28
|
+
bg5IOP7UoGM5lC174/cbDJrJnRG9bzig5FAP0mvsgA8zgTRXQzIUAZEo92D5K7p4
|
29
|
+
B4/O998ho6BSOgYBI9Yk1ttdCtti6Y+8N9+fZESsjtWMykA+WXWeGUScHqiU+gH8
|
30
|
+
S7043fq9EbQdBr2AXdj92+CDwuTfHI6/Hj5FVBDULufrJaan4xUgL70Hvc6pTTeW
|
31
|
+
deKfBjgVAq7EYHu1AczzlUly
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
33
|
+
date: 2024-07-03 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: rdoc
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '4.2'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '4.2'
|
69
69
|
description: |-
|
70
70
|
ZenTest provides 4 different tools: zentest, unit_diff, autotest, and
|
71
71
|
multiruby.
|
@@ -134,8 +134,9 @@ files:
|
|
134
134
|
homepage: https://github.com/seattlerb/zentest
|
135
135
|
licenses:
|
136
136
|
- MIT
|
137
|
-
metadata:
|
138
|
-
|
137
|
+
metadata:
|
138
|
+
homepage_uri: https://github.com/seattlerb/zentest
|
139
|
+
post_install_message:
|
139
140
|
rdoc_options:
|
140
141
|
- "--main"
|
141
142
|
- README.txt
|
@@ -152,8 +153,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
153
|
- !ruby/object:Gem::Version
|
153
154
|
version: '0'
|
154
155
|
requirements: []
|
155
|
-
rubygems_version: 3.
|
156
|
-
signing_key:
|
156
|
+
rubygems_version: 3.5.14
|
157
|
+
signing_key:
|
157
158
|
specification_version: 4
|
158
159
|
summary: 'ZenTest provides 4 different tools: zentest, unit_diff, autotest, and multiruby'
|
159
160
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|