rspec-match_fuzzy 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspec/match_fuzzy.rb +2 -2
- data/rspec-match_fuzzy.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a4fdde6428d4cc50ac1f68bfb23b289e80f648b
|
4
|
+
data.tar.gz: f4846eda28ba32c6b3ca2ac71ce0bfeb64cf3a18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1e93b3a484bd993fd1c5bb654efdbedbb34d2e020a00c91e4cc2615fba42f3a176c09652b69a2af49348db03d1d642aa8b2d6ce876dc97414e1ea83d749f339
|
7
|
+
data.tar.gz: 32ebdf50a75e515fbbd75a3c7224f5c001a1fa4d4e328ab123ae717c786173e85bb5a809a5378bb63e0cface7c0f4c9b94d8631c8fe25107c177bbe187c53cf3
|
data/lib/rspec/match_fuzzy.rb
CHANGED
@@ -10,8 +10,8 @@ RSpec::Matchers.define :match_fuzzy do |expected|
|
|
10
10
|
|
11
11
|
failure_message do |actual|
|
12
12
|
actual = actual.to_s
|
13
|
-
actual_normalized = actual.strip.gsub(/^\s+/, '').gsub(
|
14
|
-
expected_normalized = expected.strip.gsub(/^\s+/, '').gsub(
|
13
|
+
actual_normalized = actual.strip.gsub(/^\s+/, '').gsub(/[[:blank:]]+/, "\s").gsub(/\n+/, "\n").gsub(/\s+$/, '')
|
14
|
+
expected_normalized = expected.strip.gsub(/^\s+/, '').gsub(/[[:blank:]]+/, "\s").gsub(/\n+/, "\n").gsub(/\s+$/, '')
|
15
15
|
|
16
16
|
message = <<-EOS.strip
|
17
17
|
expected: #{expected_normalized.inspect}
|
data/rspec-match_fuzzy.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-match_fuzzy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- winebarrel
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|