ruby_parser 3.0.3 → 3.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ruby_parser might be problematic. Click here for more details.

data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 3.0.4 / 2012-11-26
2
+
3
+ * 1 bug fix:
4
+
5
+ * RPStringScanner#lineno was still using byte offset, not char offset. (brynary)
6
+
1
7
  === 3.0.3 / 2012-11-23
2
8
 
3
9
  * 1 minor enhancement:
data/Rakefile CHANGED
@@ -189,7 +189,7 @@ task :extract => :isolate do
189
189
  end
190
190
 
191
191
  task :bugs do
192
- sh "for f in bug*.rb ; do rake debug F=$f && rm $f ; done"
192
+ sh "for f in bug*.rb ; do rake19 debug F=$f && rm $f ; done"
193
193
  end
194
194
 
195
195
  # vim: syntax=Ruby
@@ -70,7 +70,7 @@ class RPStringScanner < StringScanner
70
70
  end
71
71
 
72
72
  def lineno
73
- string[0...pos].count("\n") + 1 - extra_lines_added
73
+ string[0...charpos].count("\n") + 1 - extra_lines_added
74
74
  end
75
75
 
76
76
  # TODO: once we get rid of these, we can make things like
@@ -108,7 +108,7 @@ class RPStringScanner < StringScanner
108
108
  end
109
109
 
110
110
  module RubyParserStuff
111
- VERSION = '3.0.3' unless constants.include? "VERSION" # SIGH
111
+ VERSION = '3.0.4' unless constants.include? "VERSION" # SIGH
112
112
 
113
113
  attr_accessor :lexer, :in_def, :in_single, :file
114
114
  attr_reader :env, :comments
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_parser
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 3
10
- version: 3.0.3
9
+ - 4
10
+ version: 3.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Davis
@@ -36,7 +36,7 @@ cert_chain:
36
36
  FBHgymkyj/AOSqKRIpXPhjC6
37
37
  -----END CERTIFICATE-----
38
38
 
39
- date: 2012-11-23 00:00:00 Z
39
+ date: 2012-11-26 00:00:00 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sexp_processor
metadata.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- ���]���z6�I�ZqYG ]����D���bjyu1۰���iqJֹ��K4ãnW��F���as��;!�� v
2
- ps��g����< Y����ģQJ%
1
+ ���a7'TJ��A����[W$[�P,��r�S{�C���ͪ���2�S�%˽I��E��%�V��@�얤��l�-���W��q�;�{g2Z^�emJ���ޡ��C���4��� ��=Ȍa"�bq���U��E�_է���Z����]zk��@t���o�.&nUf�2��%��zWl����8H��
2
+ ޜl*�G Tq H4�;|���E.#�9M����2)&���Y� ����o�P]��Q���