rdp-arguments 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -17,7 +17,7 @@ $hoe = Hoe.spec 'rdp-arguments' do
17
17
  self.extra_deps = [
18
18
  ['ruby_parser', '>= 2.0.2'],
19
19
  ['ParseTree', '>= 3.0.3'],
20
- ['ruby2ruby', '= 1.1.9']
20
+ ['ruby2ruby']
21
21
  ]
22
22
  end
23
23
 
data/lib/arguments.rb CHANGED
@@ -1,4 +1,4 @@
1
- gem 'ruby2ruby', '= 1.1.9'
1
+ #gem 'ruby2ruby', '= 1.1.9'
2
2
  require 'ruby2ruby'
3
3
 
4
4
  $:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
@@ -29,4 +29,4 @@ module Arguments
29
29
  end
30
30
  end
31
31
  end
32
- end
32
+ end
data/lib/arguments/mri.rb CHANGED
@@ -3,8 +3,9 @@ require 'parse_tree'
3
3
 
4
4
  module Arguments
5
5
  def self.ast_for_method klass, method, am_self
6
- # don't care about am_self for 1.8.x
7
- ParseTree.translate( klass, method ).assoc(:scope).assoc(:block)
6
+ # don't care about am_self for 1.8.x (ParseTree)...
7
+ ParseTree.new.process(ParseTree.translate( klass, method ).assoc(:scope).assoc(:block))
8
+ # the #process call is to clean up a "raw" tree, apparently, as ruby2ruby later expects a "unified" tree
8
9
  end
9
10
  end
10
11
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdp-arguments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Macario Ortega, rogerdpack
@@ -38,9 +38,9 @@ dependencies:
38
38
  version_requirement:
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - "="
41
+ - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: 1.1.9
43
+ version: "0"
44
44
  version:
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: hoe