parser 3.1.2.0 → 3.2.1.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: 99a2cb2ef9fe58be50862176d8ee8b7fc1f3e616e16360b6777c7f0a366c37fb
4
- data.tar.gz: ec7f0703c68564fdc55fc5a402ead6978da0bc3af9650dbc5d93127ce458b2d8
3
+ metadata.gz: 6d72642d144e7c17c18f780ea9505247feb01477a4780ec8889c7d9c22d07dbb
4
+ data.tar.gz: ea5ae138b74a0f08240d88841a61f773d648e369e5be3e6154a497860f395c2d
5
5
  SHA512:
6
- metadata.gz: 3474317cdd46eb6085244fc57c91d7bcc7a157550fe834e5d58792d472861fa3420d381535554dfaba5fd30142c60040cbc59973694e241ee8aa5ba7a9655690
7
- data.tar.gz: 3a7cbfec0dfe94ea448930357d2692806080c033f3ccc0d2af472d7abc18d2e3c72d1bd163852310f5e852f188bc4ed7f2336a178bcbdcb2a1f7b79d438dbcf7
6
+ metadata.gz: 0e34d455ecbc85d7c01b0c3e9acf700ee24e6bf69c5e0af5370184b058f15fa6437f845c3687aefb4ece9bc803ec945902c67d583f02117caceaa7f95b8e4a4f
7
+ data.tar.gz: 4a8d59fb708d36aec382b76f689722f00fc18d9e0939bb088c94bcee876543946722e765f7e0284a7a2465b1b63d830f0f263ad2f4baac32029d142d38576d0a
data/lib/parser/all.rb CHANGED
@@ -13,3 +13,4 @@ require 'parser/ruby27'
13
13
  require 'parser/ruby30'
14
14
  require 'parser/ruby31'
15
15
  require 'parser/ruby32'
16
+ require 'parser/ruby33'
@@ -148,6 +148,9 @@ module Parser
148
148
  alias on_blockarg_expr process_regular_node
149
149
  alias on_block_pass process_regular_node
150
150
 
151
+ alias on_forwarded_restarg process_regular_node
152
+ alias on_forwarded_kwrestarg process_regular_node
153
+
151
154
  alias on_module process_regular_node
152
155
  alias on_class process_regular_node
153
156
  alias on_sclass process_regular_node
@@ -1078,6 +1078,14 @@ module Parser
1078
1078
  n(:forwarded_args, [], token_map(dots_t))
1079
1079
  end
1080
1080
 
1081
+ def forwarded_restarg(star_t)
1082
+ n(:forwarded_restarg, [], token_map(star_t))
1083
+ end
1084
+
1085
+ def forwarded_kwrestarg(dstar_t)
1086
+ n(:forwarded_kwrestarg, [], token_map(dstar_t))
1087
+ end
1088
+
1081
1089
  def call_method(receiver, dot_t, selector_t,
1082
1090
  lparen_t=nil, args=[], rparen_t=nil)
1083
1091
  type = call_type_for_dot(dot_t)
@@ -3,7 +3,7 @@
3
3
  module Parser
4
4
  class << self
5
5
  def warn_syntax_deviation(feature, version)
6
- warn "warning: parser/current is loading #{feature}, which recognizes" \
6
+ warn "warning: parser/current is loading #{feature}, which recognizes " \
7
7
  "#{version}-compliant syntax, but you are running #{RUBY_VERSION}.\n" \
8
8
  "Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri."
9
9
  end
@@ -75,7 +75,7 @@ module Parser
75
75
  CurrentRuby = Ruby26
76
76
 
77
77
  when /^2\.7\./
78
- current_version = '2.7.6'
78
+ current_version = '2.7.7'
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.4'
87
+ current_version = '3.0.5'
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.2'
96
+ current_version = '3.1.3'
97
97
  if RUBY_VERSION != current_version
98
98
  warn_syntax_deviation 'parser/ruby31', current_version
99
99
  end
@@ -102,7 +102,7 @@ module Parser
102
102
  CurrentRuby = Ruby31
103
103
 
104
104
  when /^3\.2\./
105
- current_version = '3.2.0-dev'
105
+ current_version = '3.2.1'
106
106
  if RUBY_VERSION != current_version
107
107
  warn_syntax_deviation 'parser/ruby32', current_version
108
108
  end
@@ -110,10 +110,19 @@ module Parser
110
110
  require 'parser/ruby32'
111
111
  CurrentRuby = Ruby32
112
112
 
113
+ when /^3\.3\./
114
+ current_version = '3.3.0-dev'
115
+ if RUBY_VERSION != current_version
116
+ warn_syntax_deviation 'parser/ruby33', current_version
117
+ end
118
+
119
+ require 'parser/ruby33'
120
+ CurrentRuby = Ruby33
121
+
113
122
  else # :nocov:
114
123
  # Keep this in sync with released Ruby.
115
- warn_syntax_deviation 'parser/ruby31', '3.1.x'
116
- require 'parser/ruby31'
117
- CurrentRuby = Ruby31
124
+ warn_syntax_deviation 'parser/ruby32', '3.2.x'
125
+ require 'parser/ruby32'
126
+ CurrentRuby = Ruby32
118
127
  end
119
128
  end