parser 3.1.1.0 → 3.1.2.0
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 +4 -4
- data/lib/parser/current.rb +4 -4
- data/lib/parser/ruby32.rb +8 -4
- data/lib/parser/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99a2cb2ef9fe58be50862176d8ee8b7fc1f3e616e16360b6777c7f0a366c37fb
|
4
|
+
data.tar.gz: ec7f0703c68564fdc55fc5a402ead6978da0bc3af9650dbc5d93127ce458b2d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3474317cdd46eb6085244fc57c91d7bcc7a157550fe834e5d58792d472861fa3420d381535554dfaba5fd30142c60040cbc59973694e241ee8aa5ba7a9655690
|
7
|
+
data.tar.gz: 3a7cbfec0dfe94ea448930357d2692806080c033f3ccc0d2af472d7abc18d2e3c72d1bd163852310f5e852f188bc4ed7f2336a178bcbdcb2a1f7b79d438dbcf7
|
data/lib/parser/current.rb
CHANGED
@@ -66,7 +66,7 @@ module Parser
|
|
66
66
|
CurrentRuby = Ruby25
|
67
67
|
|
68
68
|
when /^2\.6\./
|
69
|
-
current_version = '2.6.
|
69
|
+
current_version = '2.6.10'
|
70
70
|
if RUBY_VERSION != current_version
|
71
71
|
warn_syntax_deviation 'parser/ruby26', current_version
|
72
72
|
end
|
@@ -75,7 +75,7 @@ module Parser
|
|
75
75
|
CurrentRuby = Ruby26
|
76
76
|
|
77
77
|
when /^2\.7\./
|
78
|
-
current_version = '2.7.
|
78
|
+
current_version = '2.7.6'
|
79
79
|
if RUBY_VERSION != current_version
|
80
80
|
warn_syntax_deviation 'parser/ruby27', current_version
|
81
81
|
end
|
@@ -84,7 +84,7 @@ module Parser
|
|
84
84
|
CurrentRuby = Ruby27
|
85
85
|
|
86
86
|
when /^3\.0\./
|
87
|
-
current_version = '3.0.
|
87
|
+
current_version = '3.0.4'
|
88
88
|
if RUBY_VERSION != current_version
|
89
89
|
warn_syntax_deviation 'parser/ruby30', current_version
|
90
90
|
end
|
@@ -93,7 +93,7 @@ module Parser
|
|
93
93
|
CurrentRuby = Ruby30
|
94
94
|
|
95
95
|
when /^3\.1\./
|
96
|
-
current_version = '3.1.
|
96
|
+
current_version = '3.1.2'
|
97
97
|
if RUBY_VERSION != current_version
|
98
98
|
warn_syntax_deviation 'parser/ruby31', current_version
|
99
99
|
end
|
data/lib/parser/ruby32.rb
CHANGED
@@ -3282,7 +3282,7 @@ racc_reduce_table = [
|
|
3282
3282
|
1, 346, :_reduce_521,
|
3283
3283
|
2, 348, :_reduce_522,
|
3284
3284
|
1, 342, :_reduce_none,
|
3285
|
-
1, 342, :
|
3285
|
+
1, 342, :_reduce_524,
|
3286
3286
|
1, 332, :_reduce_none,
|
3287
3287
|
3, 332, :_reduce_526,
|
3288
3288
|
3, 332, :_reduce_527,
|
@@ -7122,14 +7122,18 @@ def _reduce_521(val, _values, result)
|
|
7122
7122
|
end
|
7123
7123
|
|
7124
7124
|
def _reduce_522(val, _values, result)
|
7125
|
-
result =
|
7125
|
+
result = val
|
7126
7126
|
|
7127
7127
|
result
|
7128
7128
|
end
|
7129
7129
|
|
7130
7130
|
# reduce 523 omitted
|
7131
7131
|
|
7132
|
-
|
7132
|
+
def _reduce_524(val, _values, result)
|
7133
|
+
result = [ @builder.match_nil_pattern(val[0][0], val[0][1]) ]
|
7134
|
+
|
7135
|
+
result
|
7136
|
+
end
|
7133
7137
|
|
7134
7138
|
# reduce 525 omitted
|
7135
7139
|
|
@@ -8073,7 +8077,7 @@ end
|
|
8073
8077
|
# reduce 683 omitted
|
8074
8078
|
|
8075
8079
|
def _reduce_684(val, _values, result)
|
8076
|
-
result = [ @builder.kwnilarg(val[0], val[1]) ]
|
8080
|
+
result = [ @builder.kwnilarg(val[0][0], val[0][1]) ]
|
8077
8081
|
|
8078
8082
|
result
|
8079
8083
|
end
|
data/lib/parser/version.rb
CHANGED
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.1.
|
4
|
+
version: 3.1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- whitequark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ast
|
@@ -246,9 +246,9 @@ licenses:
|
|
246
246
|
- MIT
|
247
247
|
metadata:
|
248
248
|
bug_tracker_uri: https://github.com/whitequark/parser/issues
|
249
|
-
changelog_uri: https://github.com/whitequark/parser/blob/v3.1.
|
250
|
-
documentation_uri: https://www.rubydoc.info/gems/parser/3.1.
|
251
|
-
source_code_uri: https://github.com/whitequark/parser/tree/v3.1.
|
249
|
+
changelog_uri: https://github.com/whitequark/parser/blob/v3.1.2.0/CHANGELOG.md
|
250
|
+
documentation_uri: https://www.rubydoc.info/gems/parser/3.1.2.0
|
251
|
+
source_code_uri: https://github.com/whitequark/parser/tree/v3.1.2.0
|
252
252
|
post_install_message:
|
253
253
|
rdoc_options: []
|
254
254
|
require_paths:
|