ripper_ruby_parser 1.2.0 → 1.3.0

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
  SHA256:
3
- metadata.gz: 57d07c4327035328992f94f2e0f49b36362743c84062414a6f09b8738aef709b
4
- data.tar.gz: 9e19226ece2a88714fc2e2483e4accb0ee7aca7f31398d25396f72581f3c864f
3
+ metadata.gz: bd7842da24ae8db93c8a0c397a7648469dd549734c4903a252c042a7a45ad967
4
+ data.tar.gz: c6684342b972c5d5a021fc4e1848b460f57a5f471158da76f9255427b224c356
5
5
  SHA512:
6
- metadata.gz: 9f68e5ad8f58a6035ae16be08e5188a4f22f6809ce59705de877527ede90247125525a7be007b86b794ab046a8861ac4bd417ee3974e4d6fe60c877ff92c4230
7
- data.tar.gz: 6f1b8cbd085e0249a56bf937d8806cba3dad3a07893f843361c8142321693e6c8e10225782f8fee672eb4ee3c148512778544648731b486f5977c142004f1271
6
+ metadata.gz: f067ec3069d0baa143ded82de049ae1baa5c8811cee88ff930494baf5bbcdfb83bee1656712120150ca0293c55da9237923a170fd463f261b1cd4f637abbcad7
7
+ data.tar.gz: 76e945832ebcefab6df4ae6c3fc26c4b03e1a24dac1399ea5ac4b1f92c2c331d8d7f8dff365757f5450bed8d738d769bf398b02843bb9aebff8c1010be70439f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change log
2
2
 
3
+ ## 1.3.0 / 2018-02-17
4
+
5
+ * Change result for `self[:foo]` to match RubyParser 3.11.0.
6
+
3
7
  ## 1.2.0 / 2018-01-12
4
8
 
5
9
  * Improve code quality
data/README.md CHANGED
@@ -49,7 +49,7 @@ If you want to send pull requests or patches, please:
49
49
 
50
50
  (The MIT License)
51
51
 
52
- Copyright (c) 2012, 2014-2017 Matijs van Zuijlen
52
+ Copyright (c) 2012, 2014-2018 Matijs van Zuijlen
53
53
 
54
54
  Permission is hereby granted, free of charge, to any person obtaining
55
55
  a copy of this software and associated documentation files (the
@@ -12,8 +12,6 @@ module RipperRubyParser
12
12
  _, coll, idx = exp.shift 3
13
13
 
14
14
  coll = process(coll)
15
- coll = nil if coll == s(:self)
16
-
17
15
  idx = process(idx) || s(:arglist)
18
16
  idx.shift
19
17
  s(:call, coll, :[], *idx)
@@ -1,3 +1,3 @@
1
1
  module RipperRubyParser
2
- VERSION = '1.2.0'.freeze
2
+ VERSION = '1.3.0'.freeze
3
3
  end
@@ -236,8 +236,8 @@ describe RipperRubyParser::Parser do
236
236
  :[])
237
237
  end
238
238
 
239
- it 'drops self from self[]' do
240
- 'self[foo]'.must_be_parsed_as s(:call, nil, :[],
239
+ it 'works with self[]' do
240
+ 'self[foo]'.must_be_parsed_as s(:call, s(:self), :[],
241
241
  s(:call, nil, :foo))
242
242
  end
243
243
  end
data/test/samples/misc.rb CHANGED
@@ -2,3 +2,11 @@
2
2
  #
3
3
 
4
4
  enc = __ENCODING__
5
+
6
+ # https://github.com/seattlerb/ruby_parser/issues/250
7
+ self[:x]
8
+
9
+ # https://github.com/seattlerb/ruby_parser/pull/254
10
+ def foo a:, b:
11
+ # body
12
+ end
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.2.0
4
+ version: 1.3.0
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: 2018-01-12 00:00:00.000000000 Z
11
+ date: 2018-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sexp_processor
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 3.10.1
61
+ version: 3.11.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 3.10.1
68
+ version: 3.11.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: simplecov
71
71
  requirement: !ruby/object:Gem::Requirement