ruby_parser 3.6.0 → 3.6.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
  SHA1:
3
- metadata.gz: fc83f0af1f2d5f783903eafe8a07f6509ea2b796
4
- data.tar.gz: cdec9932c8de7c085557a5b581c7e450065f86a5
3
+ metadata.gz: 6f2dc966f655d3ceb23a4b37b06c6c9c26c09ab8
4
+ data.tar.gz: 321f2ab576a8233d784df4723d62f8702f9c6945
5
5
  SHA512:
6
- metadata.gz: b847d6798ceac71dba5045e33b3e7a84d113ef0b513e767d24cd4edd27a18b43e29e47397813e970ff03d76080b32baa3e9c01af4a6568863f8595b6ba721e36
7
- data.tar.gz: 277d8e78c6b52e0959f346515b043829af531105b51adb156f2f2b09fcee670fee97f48c9222a37d727f7005973ec86d168c9a05603b77cff42ea800cbec552b
6
+ metadata.gz: cc57151574646570da39acfc3300da57157b6b809fc6fe7bb88fc7d76e83efd2c392b20b16c23655d9655a01069909d1d635e88b4b4587763483e6458e266d17
7
+ data.tar.gz: 2b1503517bcba3526abc8f233bbe5fef0239b984d511cf6a1e3a3784eae2816e1e8dd3546f8726a83fdd42044fcab71e9779b4179f4d0324828403774f8abc4c
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 3.6.1 / YYYY-MM-DD
2
+
3
+ * 1 bug fix:
4
+
5
+ * Strings that don't match the encoding of the file are now returned as ASCII-8BIT.
6
+
1
7
  === 3.6.0 / 2014-04-23
2
8
 
3
9
  * 1 minor enhancement:
@@ -91,7 +91,7 @@ class RPStringScanner < StringScanner
91
91
  end
92
92
 
93
93
  module RubyParserStuff
94
- VERSION = "3.6.0" unless constants.include? "VERSION" # SIGH
94
+ VERSION = "3.6.1" unless constants.include? "VERSION" # SIGH
95
95
 
96
96
  attr_accessor :lexer, :in_def, :in_single, :file
97
97
  attr_reader :env, :comments
@@ -832,6 +832,7 @@ module RubyParserStuff
832
832
 
833
833
  def new_string val
834
834
  str = val[0]
835
+ str.force_encoding("ASCII-8BIT") unless str.valid_encoding? unless RUBY_VERSION < "1.9"
835
836
  result = s(:str, str)
836
837
  self.lexer.lineno += str.count("\n") + self.lexer.extra_lineno
837
838
  self.lexer.extra_lineno = 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0
4
+ version: 3.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -29,7 +29,7 @@ cert_chain:
29
29
  Y4evBVezr3SjXz08vPqRO5YRdO3zfeMT8gBjRqZjWJGMZ2lD4XNfrs7eky74CyZw
30
30
  xx3n58i0lQkBE1EpKE0lFu/y
31
31
  -----END CERTIFICATE-----
32
- date: 2014-04-23 00:00:00.000000000 Z
32
+ date: 2014-05-12 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: sexp_processor
metadata.gz.sig CHANGED
Binary file