rematch 1.2.0 → 1.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 586bcff5cd631385dd5dd60787cd47220d4367e42a9c34a74f6c2c1617940278
4
- data.tar.gz: c5afbca2c06ea0e7c78500c9a2a172e1114251b021e2a257edf278bc031223c6
3
+ metadata.gz: 8000531b99edc355b0d29b844278d0cdd07c4fc4381533bc46da67ffe0cc1d68
4
+ data.tar.gz: 217d652a6fd6f2906320c55dfd3c965e46567d96b57fc52072795af76507d876
5
5
  SHA512:
6
- metadata.gz: 7c4a5aa9c5247e0789c54736a1b09a69ffe5aed69f0035c2fe8a79c98b52b20e21a2ce727d331520df969dbb593298cca1efc8ac0d6f4e153aa94422e964e04b
7
- data.tar.gz: abfdbf717e06179fd84e3a37348a4272e5fa207a859761a50f0b3b3debab6806a95c3595165c522b87e01226cc13859b1ce9d0e01040bc2e6f86e648f83e960f
6
+ metadata.gz: fc259ae4bdc84553b60cefe0590721c7762595d8890e0dda85884e96393e97f8f85ef89f10046a10b11ea1d62c2303078fe391cc50204fcb5605155c53407afb
7
+ data.tar.gz: 60f9c9c325bb6b4937f2513329002891e1f244b475e8d7172c044da64a148e88c90b40e3410b9c288328277d4ac5ced09d25ac37f389b45bc0fcaaa2d9804636
@@ -20,8 +20,11 @@ module Minitest
20
20
 
21
21
  # reopen the minitest module
22
22
  module Assertions
23
- def assert_rematch(actual, assert_method = :assert_equal)
24
- send assert_method, @rematch.rematch(actual), actual
23
+ def assert_rematch(actual, *args)
24
+ assertion = :assert_equal
25
+ message = nil
26
+ args.each { |arg| arg.is_a?(Symbol) ? assertion = arg : message = arg }
27
+ send assertion, @rematch.rematch(actual), actual, message
25
28
  end
26
29
  end
27
30
 
data/lib/rematch.rb CHANGED
@@ -5,7 +5,7 @@ require 'fileutils'
5
5
 
6
6
  # Implement the key/value store
7
7
  class Rematch
8
- VERSION = '1.2.0'
8
+ VERSION = '1.3.0'
9
9
  EXT = '.rematch'
10
10
 
11
11
  @rebuilt = []
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: 1.2.0
4
+ version: 1.3.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: 2021-05-21 00:00:00.000000000 Z
11
+ date: 2021-05-23 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