ripper_ruby_parser 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6208b988b475f510fcd23c57a01d13e63fd65c7c
4
- data.tar.gz: 4f304bdc21ab91d786939d6f0ca944e5ab26b9ac
3
+ metadata.gz: 24bee2a5b16f3e73b0ee4ab6f4d9047c02838ed2
4
+ data.tar.gz: bbd519d4b303b61f2ba83d8393b1c8193e877c4a
5
5
  SHA512:
6
- metadata.gz: 9a2bce59fdea7e315b2e75eb4420e1eab669883981d95550cda0697509b888744c9b06fffb02b6eddb13fec5a3e009ab683091fc2eabdf49d76d8c844b61a324
7
- data.tar.gz: 63992855bcb74ba262ea1bfa156960f41a8d948322926ceac6cf0d41fbd200a0b3cecb1fb8d4f07ba87766c8f0b7ce3aec54876216819404dcc1946fba5f2830
6
+ metadata.gz: 0a4572c224a31698738e9cfd10e0474a0fef689e1ec79aab95c29dfc67ce597008896c76dcfb96f67824c61cfb0445f3c60f294ec56699be631566f09276ca8e
7
+ data.tar.gz: edd4c9d7b15846b34c4d586bdea846f484b91ed2d4df52324b95922c180850f659569e0703742c87fa67866376a76af57bc5424835d157a5aeaed1466f64508a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change log
2
2
 
3
+ ## 1.1.1 / 2017-10-03
4
+
5
+ * Fix handling of non-final splats in LHS
6
+
3
7
  ## 1.1.0 / 2017-10-02
4
8
 
5
9
  * Compatible with RubyParser 3.10.x
@@ -61,7 +61,11 @@ module RipperRubyParser
61
61
  end
62
62
 
63
63
  def process_mlhs_add_star exp
64
- generic_add_star exp
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
@@ -1,3 +1,3 @@
1
1
  module RipperRubyParser
2
- VERSION = '1.1.0'.freeze
2
+ VERSION = '1.1.1'.freeze
3
3
  end
@@ -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.0
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-02 00:00:00.000000000 Z
11
+ date: 2017-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sexp_processor