ZenTest 4.12.0 → 4.12.2

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: f353025789e91d62a786e456c79bac18d8530f4c909326e6338dc2baeff052b4
4
- data.tar.gz: '09068377d0f01b52260334421edc23c0666ad25def23bbe754d425de41989a84'
3
+ metadata.gz: 55123c92e92cc1e798575c3848f3986ceb13b1d796cb9287c45926ae1e8dcf30
4
+ data.tar.gz: 2ffc54456e01a0ae0f055cbd9b8e20f37b8041e960c7a53715db079ca366ce91
5
5
  SHA512:
6
- metadata.gz: 8c92e152c21a1175febe8c2d48032ba3755739762e6dbaed60f6200af1f37320e8b013d44ea54fd56c41b9bad9cd6eb7513bd7ef33cc5208e2108cb06e8e9e7c
7
- data.tar.gz: 00dee54f3217ac491c37cc01e2bfa607cd90d33d23a6b66e69a8bf1464ea74a80a51bb45831f5474dfc0def76e1717f88a86e36c23b3f97fd9b159a2301a11e2
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 = YAML.load File.read rcpath
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
- state = :butwas if result.first.sub!(/ expected( but was|, not)/, '')
154
- expect << result.shift
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
@@ -64,7 +64,7 @@ end
64
64
 
65
65
  class ZenTest
66
66
 
67
- VERSION = "4.12.0"
67
+ VERSION = "4.12.2"
68
68
 
69
69
  include ZenTestMapping
70
70
 
@@ -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.0
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
- MIIDPjCCAiagAwIBAgIBAzANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
14
+ MIIDPjCCAiagAwIBAgIBCDANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
15
15
  ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
16
- GRYDY29tMB4XDTE4MTIwNDIxMzAxNFoXDTE5MTIwNDIxMzAxNFowRTETMBEGA1UE
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
- AQCbJwLmpJR2PomLU+Zzw3KRzH/hbyUWc/ftru71AopZ1fy4iY9J/BW5QYKVYwbP
27
- V0FSBWtvfI/RdwfKGtuGhPKECZgmLieGuZ3XCc09qPu1bdg7i/tu1p0t0c6163ku
28
- nDMDIC/t/DAFK0TY9I3HswuyZGbLW7rgF0DmiuZdN/RPhHq2pOLMLXJmFclCb/im
29
- 9yToml/06TJdUJ5p64mkBs0TzaK66DIB1Smd3PdtfZqoRV+EwaXMdx0Hb3zdR1JR
30
- Em82dBUFsipwMLCYj39kcyHWAxyl6Ae1Cn9r/ItVBCxoeFdrHjfavnrIEoXUt4bU
31
- UfBugfLD19bu3nvL+zTAGx/U
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: 2019-09-23 00:00:00.000000000 Z
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: '3.18'
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: '3.18'
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
- post_install_message:
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.0.6
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