ruby_parser 3.0.0.a1 → 3.0.0.a2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


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

data/History.txt CHANGED
@@ -1,3 +1,17 @@
1
+ === 3.0.0.a2 / 2012-06-19
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Updated to sexp_processor ~> 4.0
6
+
7
+ * 1 bug fix:
8
+
9
+ * Fixed new_module to remove scope/block. Not enough tests on module variance.
10
+
11
+ * 1 known issue:
12
+
13
+ * No parsing of "a.()" thingy. (reported by julian7) (patches welcome!)
14
+
1
15
  === 3.0.0.a1 / 2012-05-22
2
16
 
3
17
  This is the first alpha release of the 3.0.0 series. It is probably
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ Hoe.spec 'ruby_parser' do
14
14
 
15
15
  self.rubyforge_name = 'parsetree'
16
16
 
17
- dependency 'sexp_processor', '~> 3.0'
17
+ dependency 'sexp_processor', '~> 4.0'
18
18
 
19
19
  if plugin? :perforce then
20
20
  self.perforce_ignore << "lib/ruby18_parser.rb"
@@ -115,7 +115,7 @@ class RPStringScanner < StringScanner
115
115
  end
116
116
 
117
117
  module RubyParserStuff
118
- VERSION = '3.0.0.a1' unless constants.include? "VERSION" # SIGH
118
+ VERSION = '3.0.0.a2' unless constants.include? "VERSION" # SIGH
119
119
 
120
120
  attr_accessor :lexer, :in_def, :in_single, :file
121
121
  attr_reader :env, :comments
@@ -658,8 +658,17 @@ module RubyParserStuff
658
658
 
659
659
  def new_module val
660
660
  line, path, body = val[1], val[2], val[4]
661
- body = s(:scope, body).compact
662
- result = s(:module, path, *body[1..-1])
661
+
662
+ result = s(:module, path)
663
+
664
+ if body then # REFACTOR?
665
+ if body.first == :block then
666
+ result.push(*body[1..-1])
667
+ else
668
+ result.push body
669
+ end
670
+ end
671
+
663
672
  result.line = line
664
673
  result.comments = self.comments.pop
665
674
  result
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_parser
3
3
  version: !ruby/object:Gem::Version
4
- hash: -2509596450
4
+ hash: 106501849
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
9
  - 0
10
10
  - a
11
- - 1
12
- version: 3.0.0.a1
11
+ - 2
12
+ version: 3.0.0.a2
13
13
  platform: ruby
14
14
  authors:
15
15
  - Ryan Davis
@@ -38,7 +38,7 @@ cert_chain:
38
38
  FBHgymkyj/AOSqKRIpXPhjC6
39
39
  -----END CERTIFICATE-----
40
40
 
41
- date: 2012-05-23 00:00:00 Z
41
+ date: 2012-06-19 00:00:00 Z
42
42
  dependencies:
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: sexp_processor
@@ -48,11 +48,11 @@ dependencies:
48
48
  requirements:
49
49
  - - ~>
50
50
  - !ruby/object:Gem::Version
51
- hash: 7
51
+ hash: 27
52
52
  segments:
53
- - 3
53
+ - 4
54
54
  - 0
55
- version: "3.0"
55
+ version: "4.0"
56
56
  type: :runtime
57
57
  version_requirements: *id001
58
58
  - !ruby/object:Gem::Dependency
@@ -205,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
205
  requirements: []
206
206
 
207
207
  rubyforge_project: parsetree
208
- rubygems_version: 1.8.17
208
+ rubygems_version: 1.8.24
209
209
  signing_key:
210
210
  specification_version: 3
211
211
  summary: ruby_parser (RP) is a ruby parser written in pure ruby (utilizing racc--which does by default use a C extension)
metadata.gz.sig CHANGED
Binary file