rematch 2.0.0 → 2.1.0
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
- data/lib/minitest/rematch_plugin.rb +5 -1
- data/lib/rematch.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4215339cb95a5fa7ecc1973a0941c0f25c6246fc13ac9b8df167d84100899db
|
4
|
+
data.tar.gz: 8ff79fd882236eff9ca9c874b9b447f4f8309206a221ce720620d1a31e2f112a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30090d94864f2fc45082671d94bef638a9c6611576642c7345c38ae28d72d9cf509832203ecff243a809a944b86db94c8c23aff82d7124710738fc66353cae11
|
7
|
+
data.tar.gz: 63ed9212a5a0d3cddaa0b9d99301d29e4c4fe40abee1e339bb87551898b22502a0e8250c4eb44ef1cdfba9526d774d917978d29a86ce53313ac960b5cbfa812f
|
@@ -27,7 +27,11 @@ module Minitest
|
|
27
27
|
assertion = :assert_equal
|
28
28
|
message = nil
|
29
29
|
args.each { |arg| arg.is_a?(Symbol) ? assertion = arg : message = arg }
|
30
|
-
|
30
|
+
if actual.nil? # use specific assert_nil after deprecation of assert_equal nil
|
31
|
+
assert_nil @rematch.rematch(key, actual), message
|
32
|
+
else
|
33
|
+
send assertion, @rematch.rematch(key, actual), actual, message # assert that the stored value is the same actual value
|
34
|
+
end
|
31
35
|
end
|
32
36
|
|
33
37
|
# Temporarily used to store the actual value, useful for reconciliation of expected changed values
|
data/lib/rematch.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rematch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Domizio Demichelis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Instead of copying and pasting large outputs or big ruby structures into
|
14
14
|
all the affected test files every time your code change, you can do it the easy
|