Skip to content

Commit cb47617

Browse files
committed
Change to require diff-lcs ~1.6
1 parent f5c44b7 commit cb47617

File tree

4 files changed

+24
-10
lines changed

4 files changed

+24
-10
lines changed

Gemfile.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ PATH
22
remote: .
33
specs:
44
unparser (0.6.15)
5-
diff-lcs (~> 1.3)
5+
diff-lcs (~> 1.6)
66
parser (>= 3.3.0)
77

88
GEM
99
remote: https://rubygems.org/
1010
specs:
1111
ast (2.4.2)
12-
diff-lcs (1.5.1)
12+
diff-lcs (1.6.0)
1313
json (2.7.2)
1414
language_server-protocol (3.17.0.3)
1515
mutant (0.12.3)

spec/unit/unparser/diff_spec.rb

+20-6
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@
2525

2626
let(:expectation) do
2727
[
28-
"@@ -1 +1 @@\n",
28+
"@@ -1,2 +1,2 @@\n",
2929
Unparser::Color::RED.format("-foo\n"),
3030
Unparser::Color::GREEN.format("+baz\n"),
31+
" bar\n"
3132
].join
3233
end
3334

@@ -57,7 +58,7 @@
5758

5859
let(:expectation) do
5960
<<~STR
60-
@@ -1,4 +1,4 @@
61+
@@ -1,3 +1,3 @@
6162
-foo
6263
+baz
6364
bar
@@ -77,9 +78,10 @@
7778

7879
let(:expectation) do
7980
<<~STR
80-
@@ -1 +1 @@
81+
@@ -1,2 +1,2 @@
8182
-foo
8283
+baz
84+
bar
8385
STR
8486
end
8587

@@ -112,7 +114,7 @@
112114

113115
let(:expectation) do
114116
<<~STR
115-
@@ -1,8 +1,9 @@
117+
@@ -1,7 +1,8 @@
116118
foo
117119
bar
118120
baz
@@ -135,9 +137,15 @@
135137

136138
let(:expectation) do
137139
<<~STR
138-
@@ -1,2 +1 @@
140+
@@ -1,8 +1,7 @@
139141
-other
140142
foo
143+
bar
144+
baz
145+
boz
146+
a
147+
b
148+
c
141149
STR
142150
end
143151

@@ -152,9 +160,15 @@
152160

153161
let(:expectation) do
154162
<<~STR
155-
@@ -1 +1,2 @@
163+
@@ -1,7 +1,8 @@
156164
+other
157165
foo
166+
bar
167+
baz
168+
boz
169+
a
170+
b
171+
c
158172
STR
159173
end
160174

spec/unit/unparser/validation_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def report
217217
(send
218218
(int 1) :bar)
219219
Node-Diff:
220-
@@ -1,3 +1,3 @@
220+
@@ -1,2 +1,2 @@
221221
REPORT
222222
end
223223
end

unparser.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Gem::Specification.new do |gem|
2626

2727
gem.required_ruby_version = '>= 3.1'
2828

29-
gem.add_dependency('diff-lcs', '~> 1.3')
29+
gem.add_dependency('diff-lcs', '~> 1.6')
3030
gem.add_dependency('parser', '>= 3.3.0')
3131

3232
gem.add_development_dependency('mutant', '~> 0.12.2')

0 commit comments

Comments
 (0)