🚀 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.10.0
to
3.10.1
+7
-0
History.rdoc

@@ -0,1 +1,8 @@

=== 3.10.1 / 2017-07-21
* 2 bug fixes:
* Fixed identification of parser version whether Ruby##Parser or Parser::V##.
* Fixed squiggly heredoc lexing when using 24 parser.
=== 3.10.0 / 2017-07-17

@@ -2,0 +9,0 @@

+6
-4
# encoding: UTF-8
$DEBUG = true if ENV["DEBUG"]
class RubyLexer

@@ -219,3 +221,3 @@

string_content = heredoc_dedent(string_content) if content_indent && ruby23?
string_content = heredoc_dedent(string_content) if content_indent && ruby23plus?

@@ -269,3 +271,3 @@ return :tSTRING_CONTENT, string_content

heredoc_indent_mods = '-'
heredoc_indent_mods += '\~' if ruby23?
heredoc_indent_mods += '\~' if ruby23plus?

@@ -1180,4 +1182,4 @@ case

def ruby23?
Ruby23Parser === parser
def ruby23plus?
parser.class.version >= 23
end

@@ -1184,0 +1186,0 @@

+1
-1

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

module RubyParserStuff
VERSION = "3.10.0"
VERSION = "3.10.1"

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

@@ -20,3 +20,3 @@ require "ruby_parser_extras"

def self.version
Parser > self and self.name[/V(\d+)$/, 1].to_i
Parser > self and self.name[/(?:V|Ruby)(\d+)/, 1].to_i
end

@@ -23,0 +23,0 @@ end

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