parser 3.2.1.0 → 3.2.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
  SHA256:
3
- metadata.gz: 6d72642d144e7c17c18f780ea9505247feb01477a4780ec8889c7d9c22d07dbb
4
- data.tar.gz: ea5ae138b74a0f08240d88841a61f773d648e369e5be3e6154a497860f395c2d
3
+ metadata.gz: c4e9c12d9347a88fa7fb419e76b338e1d69a647a841be6c2440b0370f6bf3e5f
4
+ data.tar.gz: 2a297a328b99e43ad62241d9c8a5cf1b73f68dcc13ed5afaabbd0028b547c6f5
5
5
  SHA512:
6
- metadata.gz: 0e34d455ecbc85d7c01b0c3e9acf700ee24e6bf69c5e0af5370184b058f15fa6437f845c3687aefb4ece9bc803ec945902c67d583f02117caceaa7f95b8e4a4f
7
- data.tar.gz: 4a8d59fb708d36aec382b76f689722f00fc18d9e0939bb088c94bcee876543946722e765f7e0284a7a2465b1b63d830f0f263ad2f4baac32029d142d38576d0a
6
+ metadata.gz: 330a825c26fdcbc939dd171df1994b5879f38ba896c5130ef70bdf703dd26f374eec9b7511363ff3b84daebf4be9470b836e98b6086725510a14300eea5b8dde
7
+ data.tar.gz: aa843389469df522448da099801725c294852d2641d9bc276319fa7fdd1cbfe1af88c898b7edc821cf948bf4d307617f2c1621c7f0bf3372d9bbef8868a724a1
@@ -5,8 +5,8 @@ module Parser
5
5
 
6
6
  ##
7
7
  # {Parser::AST::Node} contains information about a single AST node and its
8
- # child nodes. It extends the basic [AST::Node](http://rdoc.info/gems/ast/AST/Node)
9
- # class provided by gem [ast](http://rdoc.info/gems/ast).
8
+ # child nodes. It extends the basic [AST::Node](https://www.rubydoc.info/gems/ast/AST/Node)
9
+ # class provided by gem [ast](https://www.rubydoc.info/gems/ast).
10
10
  #
11
11
  # @api public
12
12
  #
@@ -540,8 +540,13 @@ module Parser
540
540
  def associate(begin_t, pairs, end_t)
541
541
  0.upto(pairs.length - 1) do |i|
542
542
  (i + 1).upto(pairs.length - 1) do |j|
543
- key1, = *pairs[i]
544
- key2, = *pairs[j]
543
+ pair_i = pairs[i]
544
+ pair_j = pairs[j]
545
+
546
+ next if pair_i.type != :pair || pair_j.type != :pair
547
+
548
+ key1, = *pair_i
549
+ key2, = *pair_j
545
550
 
546
551
  do_warn = false
547
552
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
data/lib/parser/ruby18.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
data/lib/parser/ruby19.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
data/lib/parser/ruby20.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
data/lib/parser/ruby21.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
data/lib/parser/ruby22.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
data/lib/parser/ruby23.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
data/lib/parser/ruby24.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
data/lib/parser/ruby25.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
data/lib/parser/ruby26.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
data/lib/parser/ruby27.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
data/lib/parser/ruby30.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
data/lib/parser/ruby31.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
data/lib/parser/ruby32.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
data/lib/parser/ruby33.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Parser
4
- VERSION = '3.2.1.0'
4
+ VERSION = '3.2.1.1'
5
5
  end
data/parser.gemspec CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
 
31
31
  spec.add_development_dependency 'bundler', '>= 1.15', '< 3.0.0'
32
32
  spec.add_development_dependency 'rake', '~> 13.0.1'
33
- spec.add_development_dependency 'racc', '= 1.6.1'
33
+ spec.add_development_dependency 'racc', '= 1.6.2'
34
34
  spec.add_development_dependency 'cliver', '~> 0.3.2'
35
35
 
36
36
  spec.add_development_dependency 'yard'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1.0
4
+ version: 3.2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - whitequark
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-09 00:00:00.000000000 Z
11
+ date: 2023-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ast
@@ -64,14 +64,14 @@ dependencies:
64
64
  requirements:
65
65
  - - '='
66
66
  - !ruby/object:Gem::Version
67
- version: 1.6.1
67
+ version: 1.6.2
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - '='
73
73
  - !ruby/object:Gem::Version
74
- version: 1.6.1
74
+ version: 1.6.2
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: cliver
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -249,9 +249,9 @@ licenses:
249
249
  - MIT
250
250
  metadata:
251
251
  bug_tracker_uri: https://github.com/whitequark/parser/issues
252
- changelog_uri: https://github.com/whitequark/parser/blob/v3.2.1.0/CHANGELOG.md
253
- documentation_uri: https://www.rubydoc.info/gems/parser/3.2.1.0
254
- source_code_uri: https://github.com/whitequark/parser/tree/v3.2.1.0
252
+ changelog_uri: https://github.com/whitequark/parser/blob/v3.2.1.1/CHANGELOG.md
253
+ documentation_uri: https://www.rubydoc.info/gems/parser/3.2.1.1
254
+ source_code_uri: https://github.com/whitequark/parser/tree/v3.2.1.1
255
255
  post_install_message:
256
256
  rdoc_options: []
257
257
  require_paths: