File tree Expand file tree Collapse file tree 7 files changed +18
-10
lines changed Expand file tree Collapse file tree 7 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 44 unparser (0.8.0 )
55 diff-lcs (~> 1.6 )
66 parser (>= 3.3.0 )
7- prism (>= 1.4 )
7+ prism (>= 1.5.1 )
88
99GEM
1010 remote: https://rubygems.org/
3838 pp (0.6.2 )
3939 prettyprint
4040 prettyprint (0.2.0 )
41- prism (1.4.0 )
41+ prism (1.5.1 )
4242 psych (5.2.6 )
4343 date
4444 stringio
@@ -104,4 +104,4 @@ DEPENDENCIES
104104 unparser !
105105
106106BUNDLED WITH
107- 2.6.2
107+ 2.7.0
Original file line number Diff line number Diff line change 6262 spanning_heredoc
6363 heredocs_with_fake_newlines
6464 heredocs_nested
65- ] . to_set { |file | "#{ PARSER_PATH } /test/prism/fixtures-tmp/#{ file } .txt" }
65+ ] . tap { _1 << 'endless_methods_command_call' unless Gem ::Version . new ( RUBY_VERSION ) >= '3.5' } # https://github.com/ruby/prism/pull/3639
66+ . tap { _1 << 'leading_logical' unless Gem ::Version . new ( RUBY_VERSION ) >= '3.5' } # https://github.com/ruby/prism/pull/3337
67+ . to_set { |file | "#{ PARSER_PATH } /test/prism/fixtures-tmp/#{ file } .txt" }
6668 end
6769
6870 private
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ def emit_target
5151 emit_send_target
5252 when :lambda
5353 visit ( target )
54- emit_lambda_arguments unless node . type . equal? ( :numblock )
54+ emit_lambda_arguments
5555 else
5656 visit ( target )
5757 end
@@ -63,7 +63,11 @@ def emit_send_target
6363 target_writer . emit_arguments_without_heredoc_body
6464 end
6565
66+ # NOTE: mutant fails on Ruby < 3.4
67+ # mutant:disable
6668 def emit_lambda_arguments
69+ return if node . type . equal? ( :numblock ) || itblock?
70+
6771 parentheses { writer_with ( Args , node : arguments ) . emit_lambda_arguments }
6872 end
6973
Original file line number Diff line number Diff line change 1616break or b
1717next or b
1818return or a
19-
20- begin
21- rescue => A [ ]
22- end
2319for foo [ ] in m do
2420end
2521for ( a , b ) in bar do
Original file line number Diff line number Diff line change 88( foo = [ ] ) rescue nil
99( foo = 1 ) rescue nil
1010( foo = [ 1 ] ) rescue nil
11+
12+ begin
13+ rescue => A [ ]
14+ end
Original file line number Diff line number Diff line change 11x { it }
2+
3+ -> { it }
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ Gem::Specification.new do |gem|
2727
2828 gem . add_dependency ( 'diff-lcs' , '~> 1.6' )
2929 gem . add_dependency ( 'parser' , '>= 3.3.0' )
30- gem . add_dependency ( 'prism' , '>= 1.4 ' )
30+ gem . add_dependency ( 'prism' , '>= 1.5.1 ' )
3131
3232 gem . add_development_dependency ( 'mutant' , '~> 0.13.2' )
3333 gem . add_development_dependency ( 'mutant-rspec' , '~> 0.13.0' )
You can’t perform that action at this time.
0 commit comments