ripper_ruby_parser 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24bee2a5b16f3e73b0ee4ab6f4d9047c02838ed2
|
4
|
+
data.tar.gz: bbd519d4b303b61f2ba83d8393b1c8193e877c4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a4572c224a31698738e9cfd10e0474a0fef689e1ec79aab95c29dfc67ce597008896c76dcfb96f67824c61cfb0445f3c60f294ec56699be631566f09276ca8e
|
7
|
+
data.tar.gz: edd4c9d7b15846b34c4d586bdea846f484b91ed2d4df52324b95922c180850f659569e0703742c87fa67866376a76af57bc5424835d157a5aeaed1466f64508a
|
data/CHANGELOG.md
CHANGED
@@ -61,7 +61,11 @@ module RipperRubyParser
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def process_mlhs_add_star exp
|
64
|
-
|
64
|
+
_, args, splatarg, rest = exp.shift 4
|
65
|
+
items = handle_potentially_typeless_sexp args
|
66
|
+
items << s(:splat, process(splatarg))
|
67
|
+
rest.each { |arg| items << process(arg) } if rest
|
68
|
+
items
|
65
69
|
end
|
66
70
|
|
67
71
|
def process_mlhs_paren exp
|
@@ -75,6 +75,15 @@ describe RipperRubyParser::Parser do
|
|
75
75
|
s(:splat, s(:lasgn, :bar))),
|
76
76
|
s(:to_ary, s(:call, nil, :baz)))
|
77
77
|
end
|
78
|
+
|
79
|
+
specify do
|
80
|
+
"*foo, bar = baz".
|
81
|
+
must_be_parsed_as s(:masgn,
|
82
|
+
s(:array,
|
83
|
+
s(:splat, s(:lasgn, :foo)),
|
84
|
+
s(:lasgn, :bar)),
|
85
|
+
s(:to_ary, s(:call, nil, :baz)))
|
86
|
+
end
|
78
87
|
end
|
79
88
|
|
80
89
|
describe "for assignment to a collection element" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ripper_ruby_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matijs van Zuijlen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sexp_processor
|