Skip to content

Commit

Permalink
Merge pull request #380 from mbj/upgrade/dependencies
Browse files Browse the repository at this point in the history
Upgrade dependencies
  • Loading branch information
mbj authored Feb 14, 2025
2 parents f5c44b7 + 82ed87f commit fb943c8
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 27 deletions.
34 changes: 16 additions & 18 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ PATH
remote: .
specs:
unparser (0.6.15)
diff-lcs (~> 1.3)
diff-lcs (~> 1.6)
parser (>= 3.3.0)

GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
diff-lcs (1.5.1)
json (2.7.2)
language_server-protocol (3.17.0.3)
diff-lcs (1.6.0)
json (2.10.1)
language_server-protocol (3.17.0.4)
mutant (0.12.3)
diff-lcs (~> 1.3)
parser (~> 3.3.0)
Expand All @@ -21,15 +21,13 @@ GEM
mutant-rspec (0.12.3)
mutant (= 0.12.3)
rspec-core (>= 3.8.0, < 4.0.0)
parallel (1.25.1)
parser (3.3.2.0)
parallel (1.26.3)
parser (3.3.7.1)
ast (~> 2.4.1)
racc
racc (1.8.0)
racc (1.8.1)
rainbow (3.1.1)
regexp_parser (2.9.2)
rexml (3.2.9)
strscan
regexp_parser (2.9.3)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
Expand All @@ -46,25 +44,25 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
rubocop (1.64.1)
rubocop (1.71.2)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.31.1, < 2.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.38.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.3)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.38.0)
parser (>= 3.3.1.0)
rubocop-packaging (0.5.2)
rubocop (>= 1.33, < 2.0)
ruby-progressbar (1.13.0)
sorbet-runtime (0.5.11422)
strscan (3.1.0)
unicode-display_width (2.5.0)
unicode-display_width (3.1.4)
unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4)

PLATFORMS
ruby
Expand Down
2 changes: 1 addition & 1 deletion lib/unparser/generation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def writer_with(klass, node)
end

def emitter(node)
Emitter.emitter(**to_h.merge(node: node))
Emitter.emitter(**to_h, node: node)
end

def visit(node)
Expand Down
26 changes: 20 additions & 6 deletions spec/unit/unparser/diff_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@

let(:expectation) do
[
"@@ -1 +1 @@\n",
"@@ -1,2 +1,2 @@\n",
Unparser::Color::RED.format("-foo\n"),
Unparser::Color::GREEN.format("+baz\n"),
" bar\n"
].join
end

Expand Down Expand Up @@ -57,7 +58,7 @@

let(:expectation) do
<<~STR
@@ -1,4 +1,4 @@
@@ -1,3 +1,3 @@
-foo
+baz
bar
Expand All @@ -77,9 +78,10 @@

let(:expectation) do
<<~STR
@@ -1 +1 @@
@@ -1,2 +1,2 @@
-foo
+baz
bar
STR
end

Expand Down Expand Up @@ -112,7 +114,7 @@

let(:expectation) do
<<~STR
@@ -1,8 +1,9 @@
@@ -1,7 +1,8 @@
foo
bar
baz
Expand All @@ -135,9 +137,15 @@

let(:expectation) do
<<~STR
@@ -1,2 +1 @@
@@ -1,8 +1,7 @@
-other
foo
bar
baz
boz
a
b
c
STR
end

Expand All @@ -152,9 +160,15 @@

let(:expectation) do
<<~STR
@@ -1 +1,2 @@
@@ -1,7 +1,8 @@
+other
foo
bar
baz
boz
a
b
c
STR
end

Expand Down
2 changes: 1 addition & 1 deletion spec/unit/unparser/validation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def report
(send
(int 1) :bar)
Node-Diff:
@@ -1,3 +1,3 @@
@@ -1,2 +1,2 @@
REPORT
end
end
Expand Down
2 changes: 1 addition & 1 deletion unparser.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Gem::Specification.new do |gem|

gem.required_ruby_version = '>= 3.1'

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

gem.add_development_dependency('mutant', '~> 0.12.2')
Expand Down

0 comments on commit fb943c8

Please sign in to comment.