cybrid_api_id_ruby 0.113.111 → 0.113.114

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +5 -5
  4. data/cybrid_api_id_ruby.gemspec +1 -1
  5. data/lib/cybrid_api_id_ruby/api/bank_applications_idp_api.rb +1 -1
  6. data/lib/cybrid_api_id_ruby/api/customer_tokens_idp_api.rb +1 -1
  7. data/lib/cybrid_api_id_ruby/api/organization_applications_idp_api.rb +1 -1
  8. data/lib/cybrid_api_id_ruby/api/users_idp_api.rb +1 -1
  9. data/lib/cybrid_api_id_ruby/api_client.rb +1 -1
  10. data/lib/cybrid_api_id_ruby/api_error.rb +1 -1
  11. data/lib/cybrid_api_id_ruby/configuration.rb +1 -1
  12. data/lib/cybrid_api_id_ruby/models/application_idp_model.rb +1 -1
  13. data/lib/cybrid_api_id_ruby/models/application_list_idp_model.rb +1 -1
  14. data/lib/cybrid_api_id_ruby/models/application_with_secret_all_of_idp_model.rb +1 -1
  15. data/lib/cybrid_api_id_ruby/models/application_with_secret_idp_model.rb +1 -1
  16. data/lib/cybrid_api_id_ruby/models/customer_token_idp_model.rb +1 -1
  17. data/lib/cybrid_api_id_ruby/models/error_response_idp_model.rb +1 -1
  18. data/lib/cybrid_api_id_ruby/models/post_bank_application_idp_model.rb +1 -1
  19. data/lib/cybrid_api_id_ruby/models/post_customer_token_idp_model.rb +1 -1
  20. data/lib/cybrid_api_id_ruby/models/post_organization_application_idp_model.rb +1 -1
  21. data/lib/cybrid_api_id_ruby/models/post_user_idp_model.rb +1 -1
  22. data/lib/cybrid_api_id_ruby/models/user_idp_model.rb +1 -1
  23. data/lib/cybrid_api_id_ruby/models/user_list_idp_model.rb +1 -1
  24. data/lib/cybrid_api_id_ruby/version.rb +2 -2
  25. data/lib/cybrid_api_id_ruby.rb +1 -1
  26. data/spec/api/bank_applications_idp_api_spec.rb +1 -1
  27. data/spec/api/customer_tokens_idp_api_spec.rb +1 -1
  28. data/spec/api/organization_applications_idp_api_spec.rb +1 -1
  29. data/spec/api/users_idp_api_spec.rb +1 -1
  30. data/spec/api_client_spec.rb +1 -1
  31. data/spec/configuration_spec.rb +1 -1
  32. data/spec/models/application_idp_model_spec.rb +1 -1
  33. data/spec/models/application_list_idp_model_spec.rb +1 -1
  34. data/spec/models/application_with_secret_all_of_idp_model_spec.rb +1 -1
  35. data/spec/models/application_with_secret_idp_model_spec.rb +1 -1
  36. data/spec/models/customer_token_idp_model_spec.rb +1 -1
  37. data/spec/models/error_response_idp_model_spec.rb +1 -1
  38. data/spec/models/post_bank_application_idp_model_spec.rb +1 -1
  39. data/spec/models/post_customer_token_idp_model_spec.rb +1 -1
  40. data/spec/models/post_organization_application_idp_model_spec.rb +1 -1
  41. data/spec/models/post_user_idp_model_spec.rb +1 -1
  42. data/spec/models/user_idp_model_spec.rb +1 -1
  43. data/spec/models/user_list_idp_model_spec.rb +1 -1
  44. data/spec/spec_helper.rb +1 -1
  45. data/vendor/bundle/ruby/3.2.0/cache/diff-lcs-1.5.1.gem +0 -0
  46. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +5 -5
  47. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/gem_make.out +5 -5
  48. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  49. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.1.2/gem_make.out +5 -5
  50. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.7.3/gem_make.out +5 -5
  51. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.1.0/gem_make.out +5 -5
  52. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/Contributing.md +2 -0
  53. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/History.md +86 -55
  54. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/License.md +6 -4
  55. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/Rakefile +36 -27
  56. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/bin/htmldiff +4 -4
  57. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/lib/diff/lcs/array.rb +1 -1
  58. data/vendor/bundle/ruby/3.2.0/gems/diff-lcs-1.5.1/lib/diff/lcs/backports.rb +9 -0
  59. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/lib/diff/lcs/block.rb +4 -4
  60. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/lib/diff/lcs/callbacks.rb +9 -7
  61. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/lib/diff/lcs/change.rb +19 -19
  62. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/lib/diff/lcs/htmldiff.rb +24 -16
  63. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/lib/diff/lcs/hunk.rb +35 -30
  64. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/lib/diff/lcs/internals.rb +17 -17
  65. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/lib/diff/lcs/ldiff.rb +37 -35
  66. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/lib/diff/lcs.rb +57 -55
  67. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/lib/diff-lcs.rb +1 -1
  68. data/vendor/bundle/ruby/3.2.0/gems/diff-lcs-1.5.1/spec/change_spec.rb +89 -0
  69. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/diff_spec.rb +14 -14
  70. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/hunk_spec.rb +19 -19
  71. data/vendor/bundle/ruby/3.2.0/gems/diff-lcs-1.5.1/spec/issues_spec.rb +160 -0
  72. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/lcs_spec.rb +11 -11
  73. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/ldiff_spec.rb +13 -11
  74. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/patch_spec.rb +84 -84
  75. data/vendor/bundle/ruby/3.2.0/gems/diff-lcs-1.5.1/spec/sdiff_spec.rb +216 -0
  76. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/spec_helper.rb +76 -74
  77. data/vendor/bundle/ruby/3.2.0/gems/diff-lcs-1.5.1/spec/traverse_balanced_spec.rb +312 -0
  78. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/traverse_sequences_spec.rb +31 -31
  79. data/vendor/bundle/ruby/3.2.0/specifications/{diff-lcs-1.5.0.gemspec → diff-lcs-1.5.1.gemspec} +7 -7
  80. metadata +63 -63
  81. data/vendor/bundle/ruby/3.2.0/cache/diff-lcs-1.5.0.gem +0 -0
  82. data/vendor/bundle/ruby/3.2.0/gems/diff-lcs-1.5.0/lib/diff/lcs/backports.rb +0 -9
  83. data/vendor/bundle/ruby/3.2.0/gems/diff-lcs-1.5.0/spec/change_spec.rb +0 -89
  84. data/vendor/bundle/ruby/3.2.0/gems/diff-lcs-1.5.0/spec/issues_spec.rb +0 -154
  85. data/vendor/bundle/ruby/3.2.0/gems/diff-lcs-1.5.0/spec/sdiff_spec.rb +0 -214
  86. data/vendor/bundle/ruby/3.2.0/gems/diff-lcs-1.5.0/spec/traverse_balanced_spec.rb +0 -310
  87. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/.rspec +0 -0
  88. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/Code-of-Conduct.md +0 -0
  89. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/Manifest.txt +0 -0
  90. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/README.rdoc +0 -0
  91. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/bin/ldiff +0 -0
  92. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/docs/COPYING.txt +0 -0
  93. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/docs/artistic.txt +0 -0
  94. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/lib/diff/lcs/string.rb +0 -0
  95. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/aX +0 -0
  96. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/bXaX +0 -0
  97. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ds1.csv +0 -0
  98. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ds2.csv +0 -0
  99. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff +0 -0
  100. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff-c +0 -0
  101. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff-e +0 -0
  102. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff-f +0 -0
  103. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff-u +0 -0
  104. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff.chef +0 -0
  105. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff.chef-c +0 -0
  106. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff.chef-e +0 -0
  107. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff.chef-f +0 -0
  108. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff.chef-u +0 -0
  109. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff.chef2 +0 -0
  110. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff.chef2-c +0 -0
  111. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff.chef2-d +0 -0
  112. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff.chef2-e +0 -0
  113. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff.chef2-f +0 -0
  114. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff.chef2-u +0 -0
  115. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/new-chef +0 -0
  116. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/new-chef2 +0 -0
  117. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/old-chef +0 -0
  118. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/old-chef2 +0 -0
@@ -1,54 +1,54 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'spec_helper'
3
+ require "spec_helper"
4
4
 
5
- describe 'Diff::LCS.patch' do
5
+ describe "Diff::LCS.patch" do
6
6
  include Diff::LCS::SpecHelper::Matchers
7
7
 
8
- shared_examples 'patch sequences correctly' do
9
- it 'correctly patches left-to-right (patch autodiscovery)' do
8
+ shared_examples "patch sequences correctly" do
9
+ it "correctly patches left-to-right (patch autodiscovery)" do
10
10
  expect(Diff::LCS.patch(s1, patch_set)).to eq(s2)
11
11
  end
12
12
 
13
- it 'correctly patches left-to-right (explicit patch)' do
13
+ it "correctly patches left-to-right (explicit patch)" do
14
14
  expect(Diff::LCS.patch(s1, patch_set, :patch)).to eq(s2)
15
15
  expect(Diff::LCS.patch!(s1, patch_set)).to eq(s2)
16
16
  end
17
17
 
18
- it 'correctly patches right-to-left (unpatch autodiscovery)' do
18
+ it "correctly patches right-to-left (unpatch autodiscovery)" do
19
19
  expect(Diff::LCS.patch(s2, patch_set)).to eq(s1)
20
20
  end
21
21
 
22
- it 'correctly patches right-to-left (explicit unpatch)' do
22
+ it "correctly patches right-to-left (explicit unpatch)" do
23
23
  expect(Diff::LCS.patch(s2, patch_set, :unpatch)).to eq(s1)
24
24
  expect(Diff::LCS.unpatch!(s2, patch_set)).to eq(s1)
25
25
  end
26
26
  end
27
27
 
28
- describe 'using a Diff::LCS.diff patchset' do
29
- describe 'an empty patchset returns the source' do
30
- it 'works on a string (hello)' do
28
+ describe "using a Diff::LCS.diff patchset" do
29
+ describe "an empty patchset returns the source" do
30
+ it "works on a string (hello)" do
31
31
  diff = Diff::LCS.diff(hello, hello)
32
32
  expect(Diff::LCS.patch(hello, diff)).to eq(hello)
33
33
  end
34
34
 
35
- it 'works on an array %W(h e l l o)' do
35
+ it "works on an array %W(h e l l o)" do
36
36
  diff = Diff::LCS.diff(hello_ary, hello_ary)
37
37
  expect(Diff::LCS.patch(hello_ary, diff)).to eq(hello_ary)
38
38
  end
39
39
  end
40
40
 
41
- describe 'with default diff callbacks (DiffCallbacks)' do
42
- describe 'forward (s1 -> s2)' do
43
- it_has_behavior 'patch sequences correctly' do
41
+ describe "with default diff callbacks (DiffCallbacks)" do
42
+ describe "forward (s1 -> s2)" do
43
+ it_has_behavior "patch sequences correctly" do
44
44
  let(:s1) { seq1 }
45
45
  let(:s2) { seq2 }
46
46
  let(:patch_set) { Diff::LCS.diff(seq1, seq2) }
47
47
  end
48
48
  end
49
49
 
50
- describe 'reverse (s2 -> s1)' do
51
- it_has_behavior 'patch sequences correctly' do
50
+ describe "reverse (s2 -> s1)" do
51
+ it_has_behavior "patch sequences correctly" do
52
52
  let(:s1) { seq2 }
53
53
  let(:s2) { seq1 }
54
54
  let(:patch_set) { Diff::LCS.diff(seq2, seq1) }
@@ -56,9 +56,9 @@ describe 'Diff::LCS.patch' do
56
56
  end
57
57
  end
58
58
 
59
- describe 'with context diff callbacks (ContextDiffCallbacks)' do
60
- describe 'forward (s1 -> s2)' do
61
- it_has_behavior 'patch sequences correctly' do
59
+ describe "with context diff callbacks (ContextDiffCallbacks)" do
60
+ describe "forward (s1 -> s2)" do
61
+ it_has_behavior "patch sequences correctly" do
62
62
  let(:s1) { seq1 }
63
63
  let(:s2) { seq2 }
64
64
  let(:patch_set) {
@@ -67,8 +67,8 @@ describe 'Diff::LCS.patch' do
67
67
  end
68
68
  end
69
69
 
70
- describe 'reverse (s2 -> s1)' do
71
- it_has_behavior 'patch sequences correctly' do
70
+ describe "reverse (s2 -> s1)" do
71
+ it_has_behavior "patch sequences correctly" do
72
72
  let(:s1) { seq2 }
73
73
  let(:s2) { seq1 }
74
74
  let(:patch_set) {
@@ -78,9 +78,9 @@ describe 'Diff::LCS.patch' do
78
78
  end
79
79
  end
80
80
 
81
- describe 'with sdiff callbacks (SDiffCallbacks)' do
82
- describe 'forward (s1 -> s2)' do
83
- it_has_behavior 'patch sequences correctly' do
81
+ describe "with sdiff callbacks (SDiffCallbacks)" do
82
+ describe "forward (s1 -> s2)" do
83
+ it_has_behavior "patch sequences correctly" do
84
84
  let(:s1) { seq1 }
85
85
  let(:s2) { seq2 }
86
86
  let(:patch_set) {
@@ -89,8 +89,8 @@ describe 'Diff::LCS.patch' do
89
89
  end
90
90
  end
91
91
 
92
- describe 'reverse (s2 -> s1)' do
93
- it_has_behavior 'patch sequences correctly' do
92
+ describe "reverse (s2 -> s1)" do
93
+ it_has_behavior "patch sequences correctly" do
94
94
  let(:s1) { seq2 }
95
95
  let(:s2) { seq1 }
96
96
  let(:patch_set) {
@@ -101,20 +101,20 @@ describe 'Diff::LCS.patch' do
101
101
  end
102
102
  end
103
103
 
104
- describe 'using a Diff::LCS.sdiff patchset' do
105
- describe 'an empty patchset returns the source' do
106
- it 'works on a string (hello)' do
104
+ describe "using a Diff::LCS.sdiff patchset" do
105
+ describe "an empty patchset returns the source" do
106
+ it "works on a string (hello)" do
107
107
  expect(Diff::LCS.patch(hello, Diff::LCS.sdiff(hello, hello))).to eq(hello)
108
108
  end
109
109
 
110
- it 'works on an array %W(h e l l o)' do
110
+ it "works on an array %W(h e l l o)" do
111
111
  expect(Diff::LCS.patch(hello_ary, Diff::LCS.sdiff(hello_ary, hello_ary))).to eq(hello_ary)
112
112
  end
113
113
  end
114
114
 
115
- describe 'with default diff callbacks (DiffCallbacks)' do
116
- describe 'forward (s1 -> s2)' do
117
- it_has_behavior 'patch sequences correctly' do
115
+ describe "with default diff callbacks (DiffCallbacks)" do
116
+ describe "forward (s1 -> s2)" do
117
+ it_has_behavior "patch sequences correctly" do
118
118
  let(:s1) { seq1 }
119
119
  let(:s2) { seq2 }
120
120
  let(:patch_set) {
@@ -123,8 +123,8 @@ describe 'Diff::LCS.patch' do
123
123
  end
124
124
  end
125
125
 
126
- describe 'reverse (s2 -> s1)' do
127
- it_has_behavior 'patch sequences correctly' do
126
+ describe "reverse (s2 -> s1)" do
127
+ it_has_behavior "patch sequences correctly" do
128
128
  let(:s1) { seq2 }
129
129
  let(:s2) { seq1 }
130
130
  let(:patch_set) {
@@ -134,9 +134,9 @@ describe 'Diff::LCS.patch' do
134
134
  end
135
135
  end
136
136
 
137
- describe 'with context diff callbacks (DiffCallbacks)' do
138
- describe 'forward (s1 -> s2)' do
139
- it_has_behavior 'patch sequences correctly' do
137
+ describe "with context diff callbacks (DiffCallbacks)" do
138
+ describe "forward (s1 -> s2)" do
139
+ it_has_behavior "patch sequences correctly" do
140
140
  let(:s1) { seq1 }
141
141
  let(:s2) { seq2 }
142
142
  let(:patch_set) {
@@ -145,8 +145,8 @@ describe 'Diff::LCS.patch' do
145
145
  end
146
146
  end
147
147
 
148
- describe 'reverse (s2 -> s1)' do
149
- it_has_behavior 'patch sequences correctly' do
148
+ describe "reverse (s2 -> s1)" do
149
+ it_has_behavior "patch sequences correctly" do
150
150
  let(:s1) { seq2 }
151
151
  let(:s2) { seq1 }
152
152
  let(:patch_set) {
@@ -156,17 +156,17 @@ describe 'Diff::LCS.patch' do
156
156
  end
157
157
  end
158
158
 
159
- describe 'with sdiff callbacks (SDiffCallbacks)' do
160
- describe 'forward (s1 -> s2)' do
161
- it_has_behavior 'patch sequences correctly' do
159
+ describe "with sdiff callbacks (SDiffCallbacks)" do
160
+ describe "forward (s1 -> s2)" do
161
+ it_has_behavior "patch sequences correctly" do
162
162
  let(:s1) { seq1 }
163
163
  let(:s2) { seq2 }
164
164
  let(:patch_set) { Diff::LCS.sdiff(seq1, seq2) }
165
165
  end
166
166
  end
167
167
 
168
- describe 'reverse (s2 -> s1)' do
169
- it_has_behavior 'patch sequences correctly' do
168
+ describe "reverse (s2 -> s1)" do
169
+ it_has_behavior "patch sequences correctly" do
170
170
  let(:s1) { seq2 }
171
171
  let(:s2) { seq1 }
172
172
  let(:patch_set) { Diff::LCS.sdiff(seq2, seq1) }
@@ -179,43 +179,43 @@ describe 'Diff::LCS.patch' do
179
179
  # to s2 patches"), this cannot use the "patch sequences correctly" shared
180
180
  # set. Once the bug in autodiscovery is fixed, this can be converted as
181
181
  # above.
182
- describe 'fix bug 891: patchsets do not contain the last equal part' do
182
+ describe "fix bug 891: patchsets do not contain the last equal part" do
183
183
  before :each do
184
- @s1 = %w(a b c d e f g h i j k) # rubocop:disable Layout/SpaceInsideArrayPercentLiteral
185
- @s2 = %w(a b c d D e f g h i j k)
184
+ @s1 = %w[a b c d e f g h i j k] # rubocop:disable Layout/SpaceInsideArrayPercentLiteral
185
+ @s2 = %w[a b c d D e f g h i j k]
186
186
  end
187
187
 
188
- describe 'using Diff::LCS.diff with default diff callbacks' do
188
+ describe "using Diff::LCS.diff with default diff callbacks" do
189
189
  before :each do
190
190
  @patch_set_s1_s2 = Diff::LCS.diff(@s1, @s2)
191
191
  @patch_set_s2_s1 = Diff::LCS.diff(@s2, @s1)
192
192
  end
193
193
 
194
- it 'autodiscovers s1 to s2 patches' do
194
+ it "autodiscovers s1 to s2 patches" do
195
195
  expect do
196
196
  expect(Diff::LCS.patch(@s1, @patch_set_s1_s2)).to eq(@s2)
197
197
  end.to_not raise_error
198
198
  end
199
199
 
200
- it 'autodiscovers s2 to s1 patches' do
200
+ it "autodiscovers s2 to s1 patches" do
201
201
  expect do
202
202
  expect(Diff::LCS.patch(@s1, @patch_set_s2_s1)).to eq(@s2)
203
203
  end.to_not raise_error
204
204
  end
205
205
 
206
- it 'autodiscovers s2 to s1 the left-to-right patches' do
206
+ it "autodiscovers s2 to s1 the left-to-right patches" do
207
207
  expect(Diff::LCS.patch(@s2, @patch_set_s2_s1)).to eq(@s1)
208
208
  expect(Diff::LCS.patch(@s2, @patch_set_s1_s2)).to eq(@s1)
209
209
  end
210
210
 
211
- it 'correctly patches left-to-right (explicit patch)' do
211
+ it "correctly patches left-to-right (explicit patch)" do
212
212
  expect(Diff::LCS.patch(@s1, @patch_set_s1_s2, :patch)).to eq(@s2)
213
213
  expect(Diff::LCS.patch(@s2, @patch_set_s2_s1, :patch)).to eq(@s1)
214
214
  expect(Diff::LCS.patch!(@s1, @patch_set_s1_s2)).to eq(@s2)
215
215
  expect(Diff::LCS.patch!(@s2, @patch_set_s2_s1)).to eq(@s1)
216
216
  end
217
217
 
218
- it 'correctly patches right-to-left (explicit unpatch)' do
218
+ it "correctly patches right-to-left (explicit unpatch)" do
219
219
  expect(Diff::LCS.patch(@s2, @patch_set_s1_s2, :unpatch)).to eq(@s1)
220
220
  expect(Diff::LCS.patch(@s1, @patch_set_s2_s1, :unpatch)).to eq(@s2)
221
221
  expect(Diff::LCS.unpatch!(@s2, @patch_set_s1_s2)).to eq(@s1)
@@ -223,37 +223,37 @@ describe 'Diff::LCS.patch' do
223
223
  end
224
224
  end
225
225
 
226
- describe 'using Diff::LCS.diff with context diff callbacks' do
226
+ describe "using Diff::LCS.diff with context diff callbacks" do
227
227
  before :each do
228
228
  @patch_set_s1_s2 = Diff::LCS.diff(@s1, @s2, Diff::LCS::ContextDiffCallbacks)
229
229
  @patch_set_s2_s1 = Diff::LCS.diff(@s2, @s1, Diff::LCS::ContextDiffCallbacks)
230
230
  end
231
231
 
232
- it 'autodiscovers s1 to s2 patches' do
232
+ it "autodiscovers s1 to s2 patches" do
233
233
  expect do
234
234
  expect(Diff::LCS.patch(@s1, @patch_set_s1_s2)).to eq(@s2)
235
235
  end.to_not raise_error
236
236
  end
237
237
 
238
- it 'autodiscovers s2 to s1 patches' do
238
+ it "autodiscovers s2 to s1 patches" do
239
239
  expect do
240
240
  expect(Diff::LCS.patch(@s1, @patch_set_s2_s1)).to eq(@s2)
241
241
  end.to_not raise_error
242
242
  end
243
243
 
244
- it 'autodiscovers s2 to s1 the left-to-right patches' do
244
+ it "autodiscovers s2 to s1 the left-to-right patches" do
245
245
  expect(Diff::LCS.patch(@s2, @patch_set_s2_s1)).to eq(@s1)
246
246
  expect(Diff::LCS.patch(@s2, @patch_set_s1_s2)).to eq(@s1)
247
247
  end
248
248
 
249
- it 'correctly patches left-to-right (explicit patch)' do
249
+ it "correctly patches left-to-right (explicit patch)" do
250
250
  expect(Diff::LCS.patch(@s1, @patch_set_s1_s2, :patch)).to eq(@s2)
251
251
  expect(Diff::LCS.patch(@s2, @patch_set_s2_s1, :patch)).to eq(@s1)
252
252
  expect(Diff::LCS.patch!(@s1, @patch_set_s1_s2)).to eq(@s2)
253
253
  expect(Diff::LCS.patch!(@s2, @patch_set_s2_s1)).to eq(@s1)
254
254
  end
255
255
 
256
- it 'correctly patches right-to-left (explicit unpatch)' do
256
+ it "correctly patches right-to-left (explicit unpatch)" do
257
257
  expect(Diff::LCS.patch(@s2, @patch_set_s1_s2, :unpatch)).to eq(@s1)
258
258
  expect(Diff::LCS.patch(@s1, @patch_set_s2_s1, :unpatch)).to eq(@s2)
259
259
  expect(Diff::LCS.unpatch!(@s2, @patch_set_s1_s2)).to eq(@s1)
@@ -261,37 +261,37 @@ describe 'Diff::LCS.patch' do
261
261
  end
262
262
  end
263
263
 
264
- describe 'using Diff::LCS.diff with sdiff callbacks' do
264
+ describe "using Diff::LCS.diff with sdiff callbacks" do
265
265
  before(:each) do
266
266
  @patch_set_s1_s2 = Diff::LCS.diff(@s1, @s2, Diff::LCS::SDiffCallbacks)
267
267
  @patch_set_s2_s1 = Diff::LCS.diff(@s2, @s1, Diff::LCS::SDiffCallbacks)
268
268
  end
269
269
 
270
- it 'autodiscovers s1 to s2 patches' do
270
+ it "autodiscovers s1 to s2 patches" do
271
271
  expect do
272
272
  expect(Diff::LCS.patch(@s1, @patch_set_s1_s2)).to eq(@s2)
273
273
  end.to_not raise_error
274
274
  end
275
275
 
276
- it 'autodiscovers s2 to s1 patches' do
276
+ it "autodiscovers s2 to s1 patches" do
277
277
  expect do
278
278
  expect(Diff::LCS.patch(@s1, @patch_set_s2_s1)).to eq(@s2)
279
279
  end.to_not raise_error
280
280
  end
281
281
 
282
- it 'autodiscovers s2 to s1 the left-to-right patches' do
282
+ it "autodiscovers s2 to s1 the left-to-right patches" do
283
283
  expect(Diff::LCS.patch(@s2, @patch_set_s2_s1)).to eq(@s1)
284
284
  expect(Diff::LCS.patch(@s2, @patch_set_s1_s2)).to eq(@s1)
285
285
  end
286
286
 
287
- it 'correctly patches left-to-right (explicit patch)' do
287
+ it "correctly patches left-to-right (explicit patch)" do
288
288
  expect(Diff::LCS.patch(@s1, @patch_set_s1_s2, :patch)).to eq(@s2)
289
289
  expect(Diff::LCS.patch(@s2, @patch_set_s2_s1, :patch)).to eq(@s1)
290
290
  expect(Diff::LCS.patch!(@s1, @patch_set_s1_s2)).to eq(@s2)
291
291
  expect(Diff::LCS.patch!(@s2, @patch_set_s2_s1)).to eq(@s1)
292
292
  end
293
293
 
294
- it 'correctly patches right-to-left (explicit unpatch)' do
294
+ it "correctly patches right-to-left (explicit unpatch)" do
295
295
  expect(Diff::LCS.patch(@s2, @patch_set_s1_s2, :unpatch)).to eq(@s1)
296
296
  expect(Diff::LCS.patch(@s1, @patch_set_s2_s1, :unpatch)).to eq(@s2)
297
297
  expect(Diff::LCS.unpatch!(@s2, @patch_set_s1_s2)).to eq(@s1)
@@ -299,37 +299,37 @@ describe 'Diff::LCS.patch' do
299
299
  end
300
300
  end
301
301
 
302
- describe 'using Diff::LCS.sdiff with default sdiff callbacks' do
302
+ describe "using Diff::LCS.sdiff with default sdiff callbacks" do
303
303
  before(:each) do
304
304
  @patch_set_s1_s2 = Diff::LCS.sdiff(@s1, @s2)
305
305
  @patch_set_s2_s1 = Diff::LCS.sdiff(@s2, @s1)
306
306
  end
307
307
 
308
- it 'autodiscovers s1 to s2 patches' do
308
+ it "autodiscovers s1 to s2 patches" do
309
309
  expect do
310
310
  expect(Diff::LCS.patch(@s1, @patch_set_s1_s2)).to eq(@s2)
311
311
  end.to_not raise_error
312
312
  end
313
313
 
314
- it 'autodiscovers s2 to s1 patches' do
314
+ it "autodiscovers s2 to s1 patches" do
315
315
  expect do
316
316
  expect(Diff::LCS.patch(@s1, @patch_set_s2_s1)).to eq(@s2)
317
317
  end.to_not raise_error
318
318
  end
319
319
 
320
- it 'autodiscovers s2 to s1 the left-to-right patches' do
320
+ it "autodiscovers s2 to s1 the left-to-right patches" do
321
321
  expect(Diff::LCS.patch(@s2, @patch_set_s2_s1)).to eq(@s1)
322
322
  expect(Diff::LCS.patch(@s2, @patch_set_s1_s2)).to eq(@s1)
323
323
  end
324
324
 
325
- it 'correctly patches left-to-right (explicit patch)' do
325
+ it "correctly patches left-to-right (explicit patch)" do
326
326
  expect(Diff::LCS.patch(@s1, @patch_set_s1_s2, :patch)).to eq(@s2)
327
327
  expect(Diff::LCS.patch(@s2, @patch_set_s2_s1, :patch)).to eq(@s1)
328
328
  expect(Diff::LCS.patch!(@s1, @patch_set_s1_s2)).to eq(@s2)
329
329
  expect(Diff::LCS.patch!(@s2, @patch_set_s2_s1)).to eq(@s1)
330
330
  end
331
331
 
332
- it 'correctly patches right-to-left (explicit unpatch)' do
332
+ it "correctly patches right-to-left (explicit unpatch)" do
333
333
  expect(Diff::LCS.patch(@s2, @patch_set_s1_s2, :unpatch)).to eq(@s1)
334
334
  expect(Diff::LCS.patch(@s1, @patch_set_s2_s1, :unpatch)).to eq(@s2)
335
335
  expect(Diff::LCS.unpatch!(@s2, @patch_set_s1_s2)).to eq(@s1)
@@ -337,37 +337,37 @@ describe 'Diff::LCS.patch' do
337
337
  end
338
338
  end
339
339
 
340
- describe 'using Diff::LCS.sdiff with context diff callbacks' do
340
+ describe "using Diff::LCS.sdiff with context diff callbacks" do
341
341
  before(:each) do
342
342
  @patch_set_s1_s2 = Diff::LCS.sdiff(@s1, @s2, Diff::LCS::ContextDiffCallbacks)
343
343
  @patch_set_s2_s1 = Diff::LCS.sdiff(@s2, @s1, Diff::LCS::ContextDiffCallbacks)
344
344
  end
345
345
 
346
- it 'autodiscovers s1 to s2 patches' do
346
+ it "autodiscovers s1 to s2 patches" do
347
347
  expect do
348
348
  expect(Diff::LCS.patch(@s1, @patch_set_s1_s2)).to eq(@s2)
349
349
  end.to_not raise_error
350
350
  end
351
351
 
352
- it 'autodiscovers s2 to s1 patches' do
352
+ it "autodiscovers s2 to s1 patches" do
353
353
  expect do
354
354
  expect(Diff::LCS.patch(@s1, @patch_set_s2_s1)).to eq(@s2)
355
355
  end.to_not raise_error
356
356
  end
357
357
 
358
- it 'autodiscovers s2 to s1 the left-to-right patches' do
358
+ it "autodiscovers s2 to s1 the left-to-right patches" do
359
359
  expect(Diff::LCS.patch(@s2, @patch_set_s2_s1)).to eq(@s1)
360
360
  expect(Diff::LCS.patch(@s2, @patch_set_s1_s2)).to eq(@s1)
361
361
  end
362
362
 
363
- it 'correctly patches left-to-right (explicit patch)' do
363
+ it "correctly patches left-to-right (explicit patch)" do
364
364
  expect(Diff::LCS.patch(@s1, @patch_set_s1_s2, :patch)).to eq(@s2)
365
365
  expect(Diff::LCS.patch(@s2, @patch_set_s2_s1, :patch)).to eq(@s1)
366
366
  expect(Diff::LCS.patch!(@s1, @patch_set_s1_s2)).to eq(@s2)
367
367
  expect(Diff::LCS.patch!(@s2, @patch_set_s2_s1)).to eq(@s1)
368
368
  end
369
369
 
370
- it 'correctly patches right-to-left (explicit unpatch)' do
370
+ it "correctly patches right-to-left (explicit unpatch)" do
371
371
  expect(Diff::LCS.patch(@s2, @patch_set_s1_s2, :unpatch)).to eq(@s1)
372
372
  expect(Diff::LCS.patch(@s1, @patch_set_s2_s1, :unpatch)).to eq(@s2)
373
373
  expect(Diff::LCS.unpatch!(@s2, @patch_set_s1_s2)).to eq(@s1)
@@ -375,37 +375,37 @@ describe 'Diff::LCS.patch' do
375
375
  end
376
376
  end
377
377
 
378
- describe 'using Diff::LCS.sdiff with default diff callbacks' do
378
+ describe "using Diff::LCS.sdiff with default diff callbacks" do
379
379
  before(:each) do
380
380
  @patch_set_s1_s2 = Diff::LCS.sdiff(@s1, @s2, Diff::LCS::DiffCallbacks)
381
381
  @patch_set_s2_s1 = Diff::LCS.sdiff(@s2, @s1, Diff::LCS::DiffCallbacks)
382
382
  end
383
383
 
384
- it 'autodiscovers s1 to s2 patches' do
384
+ it "autodiscovers s1 to s2 patches" do
385
385
  expect do
386
386
  expect(Diff::LCS.patch(@s1, @patch_set_s1_s2)).to eq(@s2)
387
387
  end.to_not raise_error
388
388
  end
389
389
 
390
- it 'autodiscovers s2 to s1 patches' do
390
+ it "autodiscovers s2 to s1 patches" do
391
391
  expect do
392
392
  expect(Diff::LCS.patch(@s1, @patch_set_s2_s1)).to eq(@s2)
393
393
  end.to_not raise_error
394
394
  end
395
395
 
396
- it 'autodiscovers s2 to s1 the left-to-right patches' do
396
+ it "autodiscovers s2 to s1 the left-to-right patches" do
397
397
  expect(Diff::LCS.patch(@s2, @patch_set_s2_s1)).to eq(@s1)
398
398
  expect(Diff::LCS.patch(@s2, @patch_set_s1_s2)).to eq(@s1)
399
399
  end
400
400
 
401
- it 'correctly patches left-to-right (explicit patch)' do
401
+ it "correctly patches left-to-right (explicit patch)" do
402
402
  expect(Diff::LCS.patch(@s1, @patch_set_s1_s2, :patch)).to eq(@s2)
403
403
  expect(Diff::LCS.patch(@s2, @patch_set_s2_s1, :patch)).to eq(@s1)
404
404
  expect(Diff::LCS.patch!(@s1, @patch_set_s1_s2)).to eq(@s2)
405
405
  expect(Diff::LCS.patch!(@s2, @patch_set_s2_s1)).to eq(@s1)
406
406
  end
407
407
 
408
- it 'correctly patches right-to-left (explicit unpatch)' do
408
+ it "correctly patches right-to-left (explicit unpatch)" do
409
409
  expect(Diff::LCS.patch(@s2, @patch_set_s1_s2, :unpatch)).to eq(@s1)
410
410
  expect(Diff::LCS.patch(@s1, @patch_set_s2_s1, :unpatch)).to eq(@s2)
411
411
  expect(Diff::LCS.unpatch!(@s2, @patch_set_s1_s2)).to eq(@s1)