ruby_parser 3.6.4 → 3.6.5

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: 2b248f942ce003c13dcc8fb5f29c599656821ce9
4
- data.tar.gz: f3365558a48c16896e58b7ac0dc187bed441f3dd
3
+ metadata.gz: f6eb0d6e0579b323fc21cdc6105397a480bac14d
4
+ data.tar.gz: 3a8c2361d645fb32c5107670e05522d4d9f42023
5
5
  SHA512:
6
- metadata.gz: 5b44bd274d013c2bc0fa2814a7c374a37cdbc2291e1b480a7e88fc60afb09584ee85bda1310f82459e55c085f87da5c9a01047ef1aa21f6da1570a8ae8dfabe5
7
- data.tar.gz: ea5ee5e868253f495f2db32686321066c19b8e7658ecb4c05c2f8be53e62d7a6501e1f2aa52fb048bf00d238aafa565e3a24e3a87e14fc997f3c5d11a3024312
6
+ metadata.gz: 429098576dc2f8ca764cf19de30a756f15b6efe8845e1dee0e25e1aeb1c5bafc9247199bf759b200582f6ad9e4eaf89d0caa4db1ab8a0563b74eed5d491bfed3
7
+ data.tar.gz: e2c3c8c523e35a40f27adc89506a7e93113aac369b48c9f61f03df4770c8e114c7c9226d309a613b79d3eeee3da9b11755788af01f7183cff3bc669558f6b0f4
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.5 / 2015-03-12
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Add line numbers from block comments =begin/=end. (presidentbeef)
6
+
1
7
  === 3.6.4 / 2015-01-16
2
8
 
3
9
  * 1 bug fix:
data/lib/ruby_lexer.rb CHANGED
@@ -322,6 +322,7 @@ class RubyLexer
322
322
  end
323
323
 
324
324
  @comments << matched
325
+ self.lineno += matched.count("\n")
325
326
 
326
327
  nil # TODO
327
328
  end
@@ -91,7 +91,7 @@ class RPStringScanner < StringScanner
91
91
  end
92
92
 
93
93
  module RubyParserStuff
94
- VERSION = "3.6.4" unless constants.include? "VERSION" # SIGH
94
+ VERSION = "3.6.5" unless constants.include? "VERSION" # SIGH
95
95
 
96
96
  attr_accessor :lexer, :in_def, :in_single, :file
97
97
  attr_reader :env, :comments
@@ -316,6 +316,15 @@ module TestRubyParserShared
316
316
  assert_parse rb, pt
317
317
  end
318
318
 
319
+ def test_eq_begin_line_numbers
320
+ rb = "1\n=begin\ncomment\ncomment\n=end\n2"
321
+ pt = s(:block,
322
+ s(:lit, 1).line(1),
323
+ s(:lit, 2).line(6))
324
+
325
+ assert_parse rb, pt
326
+ end
327
+
319
328
  def test_bug_call_arglist_parens
320
329
  rb = 'g ( 1), 2'
321
330
  pt = s(:call, nil, :g, s(:lit, 1), s(:lit, 2))
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.4
4
+ version: 3.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -29,7 +29,7 @@ cert_chain:
29
29
  xJcC6UN6NHMOVMyAXsr2HR0gRRx4ofN1LoP2KhXzSr8UMvQYlwPmE0N5GQv1b5AO
30
30
  VpzF30vNaJK6ZT7xlIsIlwmH
31
31
  -----END CERTIFICATE-----
32
- date: 2015-01-17 00:00:00.000000000 Z
32
+ date: 2015-03-12 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: sexp_processor
@@ -214,12 +214,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  version: '0'
215
215
  requirements: []
216
216
  rubyforge_project:
217
- rubygems_version: 2.4.1
217
+ rubygems_version: 2.4.5
218
218
  signing_key:
219
219
  specification_version: 4
220
220
  summary: ruby_parser (RP) is a ruby parser written in pure ruby (utilizing racc--which
221
221
  does by default use a C extension)
222
- test_files:
223
- - test/test_ruby_lexer.rb
224
- - test/test_ruby_parser.rb
225
- - test/test_ruby_parser_extras.rb
222
+ test_files: []
metadata.gz.sig CHANGED
Binary file