rematch 2.0.0 → 2.1.0

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: 785b035990ab3f3b2615c20211f0714b475adc30c2b10340b22fc2c3aedb3ab4
4
- data.tar.gz: 1b1cdcc8e0a17a2564aff63e89ff41d652320259d4be90d315704f7fe2a1843b
3
+ metadata.gz: e4215339cb95a5fa7ecc1973a0941c0f25c6246fc13ac9b8df167d84100899db
4
+ data.tar.gz: 8ff79fd882236eff9ca9c874b9b447f4f8309206a221ce720620d1a31e2f112a
5
5
  SHA512:
6
- metadata.gz: e8ea2ec684a238530b4050d89a63cf4d8454264e5df821122d4857f5ece42cf0f29c63b26bc4cfe8675b60599a85c8f0987d0c9783bf437f62d5ecfcc11c6e9f
7
- data.tar.gz: 981c98f90eb585f57bb0bd8808c43b146b8ab7d8503ef9646620ed1003375a29e29d02bb057b4eb4eecc2a30ba61c1233692d1cd84cf57c372648915824a4b76
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
- send assertion, @rematch.rematch(key, actual), actual, message # assert that the stored value is the same actual value
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
@@ -5,7 +5,7 @@ require 'fileutils'
5
5
 
6
6
  # Handles the key/value store for each test
7
7
  class Rematch
8
- VERSION = '2.0.0'
8
+ VERSION = '2.1.0'
9
9
  EXT = '.rematch'
10
10
 
11
11
  @rebuild = false # rebuild the store?
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.0.0
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-01-22 00:00:00.000000000 Z
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