ruby_parser 3.19.2 → 3.20.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: 82ff82f1d9693451e0d2f740f5e7a9cbeaa31034bee66ffa61486bc0f930d60b
4
- data.tar.gz: 15d8b71b9533534ffaa4184e50f0e5a795e4a7f190bf13a55858f59b17c1ed99
3
+ metadata.gz: 1a1091cb2c6708b4fc4565e0beee0249ecb71356c65df5aaca422151fc4f4208
4
+ data.tar.gz: e84c6c57564b5d685991ca9889adcbbc9840fd6ad614ece42865cd6bfc8ff4bb
5
5
  SHA512:
6
- metadata.gz: 78332be9c05d511d05f1c47977c74390658fcc00fc412009dba172d0e53c0e698b8e28c4803c4969720f2d2d29ed3fc891be2a990618098ae0cf04d00ad28e9f
7
- data.tar.gz: 72f7e1c089bc80662ea2eb8c8056d7bb3bf84ff27224c2d450ffde94abd2fb5ba2317d1405a880bebb2c91ac34bcb7023685065f1a8b2e69f62ed8f6b0362e77
6
+ metadata.gz: ecfb9fac2cf9c3ee2fb700ffbf1ae370442ce58fb8edc70563837a8eb87e354db670b62a30721bb5770dfda77ef1c000c3c3f6dfc5f2f4263a668b7770847544
7
+ data.tar.gz: 04e714616f46cdb11cc22f84bf1b5a3aa4d64e8395b8f2336804ca3137b5c6ceeac3ef5d9388845f7f11b2d4823948f5ec3fa04c801d9c4b13e1e95b7184abea
checksums.yaml.gz.sig CHANGED
Binary file
data/History.rdoc CHANGED
@@ -1,3 +1,23 @@
1
+ === 3.20.1 / 2023-05-16
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Fixes Sexp#line_max in parser for many constructs: paren_args, arrays of various sorts, calls, classes, modules, etc.
6
+
7
+ === 3.20.0 / 2023-03-04
8
+
9
+ * 1 major enhancement:
10
+
11
+ * Added tentative 3.2 support.
12
+
13
+ * 1 minor enhancement:
14
+
15
+ * Change minimum ruby version to 2.6. (want higher)
16
+
17
+ * 1 bug fix:
18
+
19
+ * Fix up compare tasks for ruby 3.2 differences.
20
+
1
21
  === 3.19.2 / 2022-12-03
2
22
 
3
23
  * 5 bug fixes:
data/Manifest.txt CHANGED
@@ -31,6 +31,8 @@ lib/ruby30_parser.rb
31
31
  lib/ruby30_parser.y
32
32
  lib/ruby31_parser.rb
33
33
  lib/ruby31_parser.y
34
+ lib/ruby32_parser.rb
35
+ lib/ruby32_parser.y
34
36
  lib/ruby3_parser.yy
35
37
  lib/ruby_lexer.rb
36
38
  lib/ruby_lexer.rex
data/README.rdoc CHANGED
@@ -68,8 +68,9 @@ To add a new version:
68
68
  * New parser should be generated from lib/ruby[3]_parser.yy.
69
69
  * Extend lib/ruby[3]_parser.yy with new class name.
70
70
  * Add new version number to V2/V3 in Rakefile for rule creation.
71
- * Add new (full) version to `ruby_parse` section of Rakefile for rake compare
71
+ * Add new `ruby_parse "x.y.z"` line to Rakefile for rake compare (line ~300).
72
72
  * Require generated parser in lib/ruby_parser.rb.
73
+ * Add new V## = ::Ruby##Parser; end to ruby_parser.rb (bottom of file).
73
74
  * Add empty TestRubyParserShared##Plus module and TestRubyParserV## to test/test_ruby_parser.rb.
74
75
  * Extend Manifest.txt with generated file names.
75
76
  * Add new version number to sexp_processor's pt_testcase.rb in all_versions
data/Rakefile CHANGED
@@ -15,7 +15,7 @@ Hoe.add_include_dirs "../../oedipus_lex/dev/lib"
15
15
  Hoe.add_include_dirs "../../ruby2ruby/dev/lib"
16
16
 
17
17
  V2 = %w[20 21 22 23 24 25 26 27]
18
- V3 = %w[30 31]
18
+ V3 = %w[30 31 32]
19
19
 
20
20
  VERS = V2 + V3
21
21
 
@@ -38,7 +38,7 @@ Hoe.spec "ruby_parser" do
38
38
 
39
39
  dependency "racc", "~> 1.5", :developer
40
40
 
41
- require_ruby_version [">= 2.1", "< 4"]
41
+ require_ruby_version [">= 2.6", "< 4"]
42
42
 
43
43
  if plugin? :perforce then # generated files
44
44
  VERS.each do |n|
@@ -186,6 +186,9 @@ def ruby_parse version
186
186
  file c_parse_y => c_tarball do
187
187
  in_compare do
188
188
  extract_glob = case
189
+ # defs/id.def
190
+ when version > "3.2" then
191
+ "{id.h,parse.y,tool/{id2token.rb,lib/vpath.rb},defs/id.def}"
189
192
  when version > "2.7" then
190
193
  "{id.h,parse.y,tool/{id2token.rb,lib/vpath.rb}}"
191
194
  else
@@ -195,7 +198,8 @@ def ruby_parse version
195
198
 
196
199
  Dir.chdir ruby_dir do
197
200
  if File.exist? "tool/id2token.rb" then
198
- sh "ruby tool/id2token.rb --path-separator=.:./ id.h parse.y | expand > ../#{parse_y}"
201
+ args = version < "3.2" ? "--path-separator=.:./ id.h" : ""
202
+ sh "ruby tool/id2token.rb #{args} parse.y | expand > ../#{parse_y}"
199
203
  else
200
204
  sh "expand parse.y > ../#{parse_y}"
201
205
  end
@@ -250,7 +254,7 @@ def ruby_parse version
250
254
  end
251
255
 
252
256
  task :realclean do
253
- rm_f Dir[c_parse_y, tarball]
257
+ rm_f Dir[c_parse_y, c_tarball]
254
258
  end
255
259
  end
256
260
 
@@ -292,10 +296,11 @@ ruby_parse "2.2.10"
292
296
  ruby_parse "2.3.8"
293
297
  ruby_parse "2.4.10"
294
298
  ruby_parse "2.5.9"
295
- ruby_parse "2.6.9"
296
- ruby_parse "2.7.5"
297
- ruby_parse "3.0.3"
298
- ruby_parse "3.1.1"
299
+ ruby_parse "2.6.10"
300
+ ruby_parse "2.7.7"
301
+ ruby_parse "3.0.5"
302
+ ruby_parse "3.1.3"
303
+ ruby_parse "3.2.1"
299
304
 
300
305
  task :debug => :isolate do
301
306
  ENV["V"] ||= VERS.last