merb-action-args 0.9.13 → 1.0

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.
@@ -83,7 +83,7 @@ unless RUBY_PLATFORM == "java"
83
83
  klass, meth = self.to_s.split(/ /).to_a[1][0..-2].split("#")
84
84
  # Remove stupidity for #<Method: Class(Object)#foo>
85
85
  klass = $` if klass =~ /\(/
86
- ParseTreeArray.translate(Object.const_get(klass), meth).get_args
86
+ ParseTreeArray.translate(Object.full_const_get(klass), meth).get_args
87
87
  end
88
88
  end
89
89
  else
@@ -10,6 +10,10 @@ end
10
10
 
11
11
  describe Merb::AbstractController do
12
12
 
13
+ it "should be able to handle a nested class" do
14
+ dispatch_to(Awesome::ActionArgs, :index, :foo => "bar").body.should == "bar"
15
+ end
16
+
13
17
  it "should be able to handle no arguments" do
14
18
  dispatch_to(ActionArgs, :nada).body.should == "NADA"
15
19
  end
@@ -8,6 +8,13 @@ module ExtraActions
8
8
  end
9
9
  end
10
10
 
11
+ module Awesome
12
+ class ActionArgs < Merb::Controller
13
+ def index(foo)
14
+ foo.to_s
15
+ end
16
+ end
17
+ end
11
18
 
12
19
  class ActionArgs < Merb::Controller
13
20
  include ExtraActions
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.13
4
+ version: "1.0"
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-11-03 00:00:00 -08:00
12
+ date: 2008-11-08 00:00:00 -05: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.13
23
+ version: "1.0"
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: ruby2ruby