Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2045bfc

Browse files
committed
Updates
1 parent 8e6fd67 commit 2045bfc

File tree

17 files changed

+3684
-3852
lines changed

17 files changed

+3684
-3852
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ../../ruby/prism
33
specs:
4-
prism (0.13.0)
4+
prism (0.19.0)
55

66
PATH
77
remote: .

bin/test

Lines changed: 2 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ END {
2222
name = "#{File.basename(filepath)}:#{index}"
2323

2424
if actual != formatted
25+
puts source
26+
puts
2527
if failures.include?(name)
2628
failures.delete(name)
2729
else
@@ -35,68 +37,3 @@ END {
3537
}
3638

3739
__END__
38-
assign.rb:6
39-
assoc.rb:4
40-
assoc.rb:8
41-
bare_assoc_hash.rb:4
42-
bare_assoc_hash.rb:5
43-
brace_block.rb:1
44-
break.rb:9
45-
call.rb:7
46-
call.rb:8
47-
call.rb:9
48-
call.rb:10
49-
call.rb:11
50-
call.rb:15
51-
call.rb:16
52-
command_call.rb:2
53-
command_call.rb:3
54-
command_call.rb:4
55-
command_call.rb:7
56-
command_call.rb:9
57-
command_call.rb:11
58-
def.rb:6
59-
def_endless.rb:9
60-
defined.rb:2
61-
do_block.rb:2
62-
do_block.rb:4
63-
dyna_symbol.rb:0
64-
dyna_symbol.rb:4
65-
elsif.rb:0
66-
elsif.rb:3
67-
embdoc.rb:0
68-
embdoc.rb:1
69-
end_content.rb:0
70-
hash.rb:6
71-
heredoc.rb:18
72-
if.rb:3
73-
if.rb:7
74-
if.rb:10
75-
if.rb:13
76-
ifop.rb:1
77-
ifop.rb:3
78-
label.rb:1
79-
lambda.rb:18
80-
lambda.rb:19
81-
next.rb:19
82-
not.rb:3
83-
not.rb:5
84-
params.rb:34
85-
regexp_literal.rb:1
86-
regexp_literal.rb:2
87-
regexp_literal.rb:3
88-
regexp_literal.rb:4
89-
regexp_literal.rb:12
90-
regexp_literal.rb:17
91-
regexp_literal.rb:18
92-
return.rb:9
93-
return.rb:12
94-
statements.rb:0
95-
string_concat.rb:0
96-
string_embexpr.rb:5
97-
string_literal.rb:15
98-
string_literal.rb:16
99-
unless.rb:7
100-
unless.rb:8
101-
when.rb:7
102-
when.rb:8

fixtures/assoc.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
{ foo: }
4343
%
4444
{ "foo": "bar" }
45-
-
46-
{ foo: "bar" }
4745
%
4846
{ "foo #{bar}": "baz" }
4947
%

fixtures/bare_assoc_hash.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
-
1414
foo(bar => bar, :baz => baz)
1515
%
16-
foo(bar => bar, "baz": baz)
16+
foo(bar => bar, "baz #{1}": baz)
1717
-
18-
foo(bar => bar, :"baz" => baz)
18+
foo(bar => bar, :"baz #{1}" => baz)
1919
%
2020
foo(bar: barrrrrrrrrrrrrrrrrrrrrrrrrrrrrr, baz: bazzzzzzzzzzzzzzzzzzzzzzzzzzzzzz)
2121
-

fixtures/def_endless.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def a()
2828
=end
2929
=1
3030
-
31-
def a() =
31+
def a()
3232
=begin
3333
=end
34-
1
34+
= 1

fixtures/dyna_symbol.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
%
22
:'foo'
3-
-
4-
:"foo"
53
%
64
:"foo"
75
%
@@ -10,8 +8,6 @@
108
:"foo #{bar}"
119
%
1210
%s[foo #{bar}]
13-
-
14-
:'foo #{bar}'
1511
%
1612
{ %s[foo] => bar }
1713
-

fixtures/end_content.rb

Lines changed: 0 additions & 9 deletions
This file was deleted.

fixtures/if.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,6 @@
4242
c
4343
end
4444
%
45-
if not(a)
46-
b
47-
else
48-
c
49-
end
50-
-
51-
not(a) ? b : c
52-
%
5345
(if foo then bar else baz end)
5446
-
5547
(

fixtures/label.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@
44
case foo
55
in bar:
66
end
7+
-
8+
case foo
9+
in { bar: }
10+
end

fixtures/lambda.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,6 @@
6868
->(; a, b) {}
6969
%
7070
->(a = (b; c)) {}
71-
-
72-
->(
73-
a = (
74-
b
75-
c
76-
)
77-
) do
78-
end
7971
%
8072
-> do # comment1
8173
# comment2

fixtures/mlhs_paren.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
%
22
(foo, bar) = baz
3-
-
4-
foo, bar = baz
53
%
64
foo, (bar, baz) = baz
75
%
@@ -10,5 +8,3 @@
108
foo, (bar, baz,) = baz
119
%
1210
((foo,)) = bar
13-
-
14-
foo, = bar

fixtures/not.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,6 @@
99
%
1010
not (foo)
1111
%
12-
if foo
13-
not bar
14-
else
15-
baz
16-
end
17-
-
18-
foo ? not(bar) : baz
19-
%
2012
if foooooooooooooooooooooooooooooooooooooooooo
2113
not bar
2214
else

fixtures/string_concat.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22
"foo" \
33
"bar" \
44
"baz"
5+
-
6+
"foo" "bar" "baz"
7+
%
8+
"foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo" \
9+
"barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr" \
10+
"bazzzzzzz"

fixtures/string_embexpr.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,3 @@
88
"foo #{"bar #{baz} bar"} foo"
99
%
1010
"#{foo; bar}"
11-
%
12-
"#{if foo; foooooooooooooooooooooooooooooooooooooo; else; barrrrrrrrrrrrrrrr; end}"

0 commit comments

Comments
 (0)