ZenTest 4.12.1 → 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: 3807fbe56b6d5592513b1ae86b9a67ff8e5ead37f68048619b37a716e59058d1
4
- data.tar.gz: d54f72a47e14b74276e819025afe3f6d7e195928aba0a77e1402afe09d79f697
3
+ metadata.gz: 55123c92e92cc1e798575c3848f3986ceb13b1d796cb9287c45926ae1e8dcf30
4
+ data.tar.gz: 2ffc54456e01a0ae0f055cbd9b8e20f37b8041e960c7a53715db079ca366ce91
5
5
  SHA512:
6
- metadata.gz: 982046a79503f1e4e30bd9068ca3f70958ebb1b17e91b284afb5d0da3aeaa2717591bc110d481eda33f732e960cb402a4d0c361a947c59beff00e87d5943d368
7
- data.tar.gz: f07b41a76856ac20c419f0dccefc483e9485e418bc1ee3dc5a454434f2cbf0dd890b3c3b75899b7222eaabaac5083304370250afed9e88b0c69484fa17f9b080
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/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.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- ��� �N�j����7��eV��j�Ok�I�)�/��MR�2�۞��m�[�5V����-�r��X��ǐv����E"ơ�a���tk���$u��x��k��X(�pU'���E\��z��R�������ߓ>b8�6c�|_���_ ߑ�6��W �6f��Ƶ��eH�$���_-qP�(�^�C�g�^jUG�L�/�q���XGA��vG�ra��t\;�7S����B���N�z���|I/t�zr���_7<i��_:
1
+ I�@�
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ZenTest
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.12.1
4
+ version: 4.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -11,9 +11,9 @@ bindir: bin
11
11
  cert_chain:
12
12
  - |
13
13
  -----BEGIN CERTIFICATE-----
14
- MIIDPjCCAiagAwIBAgIBBjANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
14
+ MIIDPjCCAiagAwIBAgIBCDANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
15
15
  ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
16
- GRYDY29tMB4XDTIxMTIyMzIzMTkwNFoXDTIyMTIyMzIzMTkwNFowRTETMBEGA1UE
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
- AQCKB5jfsuSnKb+t/Wrh3UpdkmX7TrEsjVmERC0pPqzQ5GQJgmEXDD7oMgaKXaAq
27
- x2m+KSZDrqk7c8uho5OX6YMqg4KdxehfSLqqTZGoeV78qwf/jpPQZKTf+W9gUSJh
28
- zsWpo4K50MP+QtdSbKXZwjAafpQ8hK0MnnZ/aeCsW9ov5vdXpYbf3dpg6ADXRGE7
29
- lQY2y1tJ5/chqu6h7dQmnm2ABUqx9O+JcN9hbCYoA5i/EeubUEtFIh2w3SpO6YfB
30
- JFmxn4h9YO/pVdB962BdBNNDia0kgIjI3ENnkLq0dKpYU3+F3KhEuTksLO0L6X/V
31
- YsuyUzsMz6GQA4khyaMgKNSD
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: 2022-01-17 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.23'
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.23'
68
+ version: '4.2'
69
69
  description: |-
70
70
  ZenTest provides 4 different tools: zentest, unit_diff, autotest, and
71
71
  multiruby.
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  - !ruby/object:Gem::Version
154
154
  version: '0'
155
155
  requirements: []
156
- rubygems_version: 3.3.3
156
+ rubygems_version: 3.5.14
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: 'ZenTest provides 4 different tools: zentest, unit_diff, autotest, and multiruby'
metadata.gz.sig CHANGED
Binary file