rspec-match_ignoring_whitespace 1.1.0 → 1.2.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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ff9ce088ce7143fb56aafd1ae8772f49d099fcf164f374cc9e12134abdfd8e13
|
4
|
+
data.tar.gz: 4e625d1f22a6cb3ce627560769277155295a600b81a68ba24691f56ed5e17065
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52790bacc48aaa665d69d11296ff6ffcf39c93983cf59dfe3fdbfa9f9457fae1291bcb6794628016f75780b157ae57921abfd5a02be57b23d75c46978ffad66e
|
7
|
+
data.tar.gz: c65fc9dcb248ef77aada6da8782ca12de933a2fa516f4a5c32cf1d34a800976bb61a0666e4e0db5ef169550c70944cef394065790a8479a8b524ddafac9047be
|
data/.rubocop.yml
CHANGED
@@ -57,10 +57,12 @@ RSpec::Matchers.define :match_ignoring_whitespace do |expected|
|
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
-
|
60
|
+
runs.flat_map do |run|
|
61
61
|
case run
|
62
62
|
when LevensteinWithPath::Keep
|
63
|
-
WordWrap.ww(run.token.join(' '),
|
63
|
+
WordWrap.ww(run.token.join(' '), 78).split("\n").map do |line|
|
64
|
+
" #{line}"
|
65
|
+
end
|
64
66
|
when LevensteinWithPath::Swap
|
65
67
|
WordWrap.ww(run.token1.join(' '), 78).split("\n").map do |line|
|
66
68
|
"- #{line}"
|
@@ -68,12 +68,12 @@ describe 'match_ignoring_whitespace' do
|
|
68
68
|
specify 'a string missing a space' do
|
69
69
|
expect("πόλλ΄ οἶδ΄ ἀλώπηξ,ἀλλ΄ ἐχῖνος ἓν μέγα.").not_to matcher
|
70
70
|
expect(matcher.failure_message).to eq [
|
71
|
-
'πόλλ΄ οἶδ΄',
|
71
|
+
' πόλλ΄ οἶδ΄',
|
72
72
|
# TODO: It would be nice to join things like Delete+Swap or Swap+Insert:
|
73
73
|
'- ἀλώπηξ,',
|
74
74
|
'- ἀλλ΄',
|
75
75
|
'+ ἀλώπηξ,ἀλλ΄',
|
76
|
-
'ἐχῖνος ἓν μέγα.',
|
76
|
+
' ἐχῖνος ἓν μέγα.',
|
77
77
|
].join("\n")
|
78
78
|
end
|
79
79
|
specify 'expecting nil' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-match_ignoring_whitespace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul A. Jungwirth
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -149,10 +149,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
version: '0'
|
150
150
|
requirements: []
|
151
151
|
rubyforge_project:
|
152
|
-
rubygems_version: 2.6
|
152
|
+
rubygems_version: 2.7.6
|
153
153
|
signing_key:
|
154
154
|
specification_version: 4
|
155
155
|
summary: RSpec matcher to compare strings ignoring whitespace
|
156
|
-
test_files:
|
157
|
-
- spec/match_ignoring_whitespace_spec.rb
|
158
|
-
- spec/spec_helper.rb
|
156
|
+
test_files: []
|