merb-action-args 0.9.10 → 0.9.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,8 @@ require 'parse_tree'
2
2
  require 'ruby2ruby'
3
3
 
4
4
  class ParseTreeArray < Array
5
+ R2R = Object.const_defined?(:Ruby2Ruby) ? Ruby2Ruby : RubyToRuby
6
+
5
7
  def self.translate(*args)
6
8
  sexp = ParseTree.translate(*args)
7
9
  # ParseTree.translate returns [nil] if called on an inherited method, so walk
@@ -46,7 +48,7 @@ class ParseTreeArray < Array
46
48
  # that should bring us back to regularly scheduled programming..
47
49
  lasgns = default_node[1..-1]
48
50
  lasgns.each do |asgn|
49
- args.assoc(asgn[1]) << eval(RubyToRuby.new.process(asgn[2]))
51
+ args.assoc(asgn[1]) << eval(R2R.new.process(asgn[2]))
50
52
  end
51
53
  [args, (default_node[1..-1].map { |asgn| asgn[1] })]
52
54
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb-action-args
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.10
4
+ version: 0.9.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yehuda Katz
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-10-21 00:00:00 -07:00
12
+ date: 2008-10-29 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 0.9.10
23
+ version: 0.9.11
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: ruby2ruby