🚀 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.6.0
to
3.6.1
+6
-0
History.txt

@@ -0,1 +1,7 @@

=== 3.6.1 / YYYY-MM-DD
* 1 bug fix:
* Strings that don't match the encoding of the file are now returned as ASCII-8BIT.
=== 3.6.0 / 2014-04-23

@@ -2,0 +8,0 @@

+2
-1

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

module RubyParserStuff
VERSION = "3.6.0" unless constants.include? "VERSION" # SIGH
VERSION = "3.6.1" unless constants.include? "VERSION" # SIGH

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

str = val[0]
str.force_encoding("ASCII-8BIT") unless str.valid_encoding? unless RUBY_VERSION < "1.9"
result = s(:str, str)

@@ -838,0 +839,0 @@ self.lexer.lineno += str.count("\n") + self.lexer.extra_lineno