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
- SHA1:
3
- metadata.gz: '038c5481ebb263e376683226b2fd191925332aaa'
4
- data.tar.gz: a9adcd0d707bfe6edfeb7d40c8907596410690a3
2
+ SHA256:
3
+ metadata.gz: ff9ce088ce7143fb56aafd1ae8772f49d099fcf164f374cc9e12134abdfd8e13
4
+ data.tar.gz: 4e625d1f22a6cb3ce627560769277155295a600b81a68ba24691f56ed5e17065
5
5
  SHA512:
6
- metadata.gz: af7a58d59630c3659262105e78a27eb83b976d5318a96e13f032bf9c7130a15c5ba0893479ac2c79b77fd85a82948b014b02ad325dce6ef9e8d2a7160fcc1fd9
7
- data.tar.gz: f64cc00d6510940eb8cd4bda53c79b8ea894c3f7a6ea0dd9d32398805d538a07b08b789d6735d6b48b285e6cd9c968367990a420f8733e9d8066c00860395516
6
+ metadata.gz: 52790bacc48aaa665d69d11296ff6ffcf39c93983cf59dfe3fdbfa9f9457fae1291bcb6794628016f75780b157ae57921abfd5a02be57b23d75c46978ffad66e
7
+ data.tar.gz: c65fc9dcb248ef77aada6da8782ca12de933a2fa516f4a5c32cf1d34a800976bb61a0666e4e0db5ef169550c70944cef394065790a8479a8b524ddafac9047be
data/.rubocop.yml CHANGED
@@ -41,3 +41,12 @@ Layout/IndentHeredoc:
41
41
 
42
42
  Style/Encoding:
43
43
  Enabled: false
44
+
45
+ Style/FrozenStringLiteralComment:
46
+ Enabled: false
47
+
48
+ Style/TrailingCommaInArrayLiteral:
49
+ Enabled: false
50
+
51
+ Layout/MultilineOperationIndentation:
52
+ Enabled: false
@@ -57,10 +57,12 @@ RSpec::Matchers.define :match_ignoring_whitespace do |expected|
57
57
  end
58
58
  end
59
59
 
60
- message = runs.flat_map do |run|
60
+ runs.flat_map do |run|
61
61
  case run
62
62
  when LevensteinWithPath::Keep
63
- WordWrap.ww(run.token.join(' '), 80).split("\n")
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}"
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module MatchIgnoringWhitespace
3
- VERSION = '1.1.0'.freeze
3
+ VERSION = '1.2.0'.freeze
4
4
  end
5
5
  end
@@ -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.1.0
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-21 00:00:00.000000000 Z
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.14
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: []