🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

ruby_parser

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ruby_parser - rubygems Package Compare versions

Comparing version
3.19.2
to
3.20.0
lib/ruby32_parser.rb

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

+14
-0

@@ -0,1 +1,15 @@

=== 3.20.0 / 2023-03-04
* 1 major enhancement:
* Added tentative 3.2 support.
* 1 minor enhancement:
* Change minimum ruby version to 2.6. (want higher)
* 1 bug fix:
* Fix up compare tasks for ruby 3.2 differences.
=== 3.19.2 / 2022-12-03

@@ -2,0 +16,0 @@

+1
-1

@@ -33,3 +33,3 @@ # encoding: ASCII-8BIT

module RubyParserStuff
VERSION = "3.19.2"
VERSION = "3.20.0"

@@ -36,0 +36,0 @@ attr_accessor :lexer, :in_def, :in_single, :file

@@ -84,2 +84,3 @@ require "ruby_parser_extras"

require "ruby31_parser"
require "ruby32_parser"

@@ -89,2 +90,3 @@ class RubyParser # HACK

class V32 < ::Ruby32Parser; end
class V31 < ::Ruby31Parser; end

@@ -91,0 +93,0 @@ class V30 < ::Ruby30Parser; end

@@ -34,2 +34,4 @@ .autotest

lib/ruby31_parser.y
lib/ruby32_parser.rb
lib/ruby32_parser.y
lib/ruby3_parser.yy

@@ -36,0 +38,0 @@ lib/ruby_lexer.rb

@@ -18,3 +18,3 @@ # -*- ruby -*-

V2 = %w[20 21 22 23 24 25 26 27]
V3 = %w[30 31]
V3 = %w[30 31 32]

@@ -42,3 +42,3 @@ VERS = V2 + V3

require_ruby_version [">= 2.1", "< 4"]
require_ruby_version [">= 2.6", "< 4"]

@@ -191,2 +191,5 @@ if plugin? :perforce then # generated files

extract_glob = case
# defs/id.def
when version > "3.2" then
"{id.h,parse.y,tool/{id2token.rb,lib/vpath.rb},defs/id.def}"
when version > "2.7" then

@@ -201,3 +204,4 @@ "{id.h,parse.y,tool/{id2token.rb,lib/vpath.rb}}"

if File.exist? "tool/id2token.rb" then
sh "ruby tool/id2token.rb --path-separator=.:./ id.h parse.y | expand > ../#{parse_y}"
args = version < "3.2" ? "--path-separator=.:./ id.h" : ""
sh "ruby tool/id2token.rb #{args} parse.y | expand > ../#{parse_y}"
else

@@ -257,3 +261,3 @@ sh "expand parse.y > ../#{parse_y}"

task :realclean do
rm_f Dir[c_parse_y, tarball]
rm_f Dir[c_parse_y, c_tarball]
end

@@ -300,6 +304,7 @@ end

ruby_parse "2.5.9"
ruby_parse "2.6.9"
ruby_parse "2.7.5"
ruby_parse "3.0.3"
ruby_parse "3.1.1"
ruby_parse "2.6.10"
ruby_parse "2.7.7"
ruby_parse "3.0.5"
ruby_parse "3.1.3"
ruby_parse "3.2.1"

@@ -306,0 +311,0 @@ task :debug => :isolate do

@@ -71,4 +71,5 @@ = ruby_parser

* Add new version number to V2/V3 in Rakefile for rule creation.
* Add new (full) version to `ruby_parse` section of Rakefile for rake compare
* Add new `ruby_parse "x.y.z"` line to Rakefile for rake compare (line ~300).
* Require generated parser in lib/ruby_parser.rb.
* Add new V## = ::Ruby##Parser; end to ruby_parser.rb (bottom of file).
* Add empty TestRubyParserShared##Plus module and TestRubyParserV## to test/test_ruby_parser.rb.

@@ -75,0 +76,0 @@ * Extend Manifest.txt with generated file names.

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display