Skip to content

Commit fb943c8

Browse files
authored
Merge pull request #380 from mbj/upgrade/dependencies
Upgrade dependencies
2 parents f5c44b7 + 82ed87f commit fb943c8

File tree

5 files changed

+39
-27
lines changed

5 files changed

+39
-27
lines changed

Gemfile.lock

+16-18
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ 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)
13-
json (2.7.2)
14-
language_server-protocol (3.17.0.3)
12+
diff-lcs (1.6.0)
13+
json (2.10.1)
14+
language_server-protocol (3.17.0.4)
1515
mutant (0.12.3)
1616
diff-lcs (~> 1.3)
1717
parser (~> 3.3.0)
@@ -21,15 +21,13 @@ GEM
2121
mutant-rspec (0.12.3)
2222
mutant (= 0.12.3)
2323
rspec-core (>= 3.8.0, < 4.0.0)
24-
parallel (1.25.1)
25-
parser (3.3.2.0)
24+
parallel (1.26.3)
25+
parser (3.3.7.1)
2626
ast (~> 2.4.1)
2727
racc
28-
racc (1.8.0)
28+
racc (1.8.1)
2929
rainbow (3.1.1)
30-
regexp_parser (2.9.2)
31-
rexml (3.2.9)
32-
strscan
30+
regexp_parser (2.9.3)
3331
rspec (3.13.0)
3432
rspec-core (~> 3.13.0)
3533
rspec-expectations (~> 3.13.0)
@@ -46,25 +44,25 @@ GEM
4644
diff-lcs (>= 1.2.0, < 2.0)
4745
rspec-support (~> 3.13.0)
4846
rspec-support (3.13.1)
49-
rubocop (1.64.1)
47+
rubocop (1.71.2)
5048
json (~> 2.3)
5149
language_server-protocol (>= 3.17.0)
5250
parallel (~> 1.10)
5351
parser (>= 3.3.0.2)
5452
rainbow (>= 2.2.2, < 4.0)
55-
regexp_parser (>= 1.8, < 3.0)
56-
rexml (>= 3.2.5, < 4.0)
57-
rubocop-ast (>= 1.31.1, < 2.0)
53+
regexp_parser (>= 2.9.3, < 3.0)
54+
rubocop-ast (>= 1.38.0, < 2.0)
5855
ruby-progressbar (~> 1.7)
59-
unicode-display_width (>= 2.4.0, < 3.0)
60-
rubocop-ast (1.31.3)
56+
unicode-display_width (>= 2.4.0, < 4.0)
57+
rubocop-ast (1.38.0)
6158
parser (>= 3.3.1.0)
6259
rubocop-packaging (0.5.2)
6360
rubocop (>= 1.33, < 2.0)
6461
ruby-progressbar (1.13.0)
6562
sorbet-runtime (0.5.11422)
66-
strscan (3.1.0)
67-
unicode-display_width (2.5.0)
63+
unicode-display_width (3.1.4)
64+
unicode-emoji (~> 4.0, >= 4.0.4)
65+
unicode-emoji (4.0.4)
6866

6967
PLATFORMS
7068
ruby

lib/unparser/generation.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def writer_with(klass, node)
222222
end
223223

224224
def emitter(node)
225-
Emitter.emitter(**to_h.merge(node: node))
225+
Emitter.emitter(**to_h, node: node)
226226
end
227227

228228
def visit(node)

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)