🚀 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
2.0.0
to
2.0.1
+9
-2
History.txt

@@ -1,3 +0,10 @@

== 2.0.0 / 2008-10-22
=== 2.0.1 / 2008-11-04
* 2 minor enhancements:
* Updated for changes to splat node in many contexts.
* Made PT a developer dep
=== 2.0.0 / 2008-10-22
* 1 major enhancement

@@ -109,3 +116,3 @@

== 1.0.0 / 2007-12-20
=== 1.0.0 / 2007-12-20

@@ -112,0 +119,0 @@ * 1 major enhancement

+7
-2

@@ -116,3 +116,3 @@ require 'stringio'

class RubyParser < Racc::Parser
VERSION = '2.0.0'
VERSION = '2.0.1'

@@ -700,2 +700,3 @@ attr_accessor :lexer, :in_def, :in_single, :file

def new_yield args = nil
# TODO: raise args.inspect unless [:arglist].include? args.first # HACK
raise SyntaxError, "Block argument should not be given." if

@@ -705,4 +706,7 @@ args && args.node_type == :block_pass

args ||= s(:arglist)
args = s(:arglist, args) unless [:arglist, :array].include? args.first
# TODO: I can prolly clean this up
args[0] = :arglist if args.first == :array
args = s(:arglist, args) unless args.first == :arglist
return s(:yield, *args[1..-1])

@@ -779,2 +783,3 @@ end

node = s(:svalue, node) if node[0] == :splat and not node.paren
node[0] = :svalue if node[0] == :arglist && node[1][0] == :splat
end

@@ -781,0 +786,0 @@

@@ -16,4 +16,4 @@ # -*- ruby -*-

parser.developer('Ryan Davis', 'ryand-ruby@zenspider.com')
parser.extra_deps << 'ParseTree'
parser.extra_dev_deps << 'ParseTree'
parser.extra_deps << ['sexp_processor', '>= 3.0.0']

@@ -20,0 +20,0 @@ end

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 not supported yet