merb-action-args 1.0.6.1 → 1.0.7

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.
@@ -15,6 +15,7 @@ unless RUBY_PLATFORM == "java"
15
15
  end
16
16
  sexp = ParseTree.translate(klass, args.last) if klass
17
17
  end
18
+ sexp = Unifier.new.process(sexp)
18
19
  self.new(sexp)
19
20
  end
20
21
 
@@ -50,4 +50,8 @@ describe Merb::AbstractController do
50
50
  dispatch_to(ActionArgs, :with_default_nil, :foo => "bar").body.should == "bar "
51
51
  end
52
52
 
53
+ it "should be able to handle [] defaults" do
54
+ dispatch_to(ActionArgs, :with_default_array, :foo => "bar").body.should == "bar []"
55
+ end
56
+
53
57
  end
@@ -47,4 +47,8 @@ class ActionArgs < Merb::Controller
47
47
  "#{foo} #{bar}"
48
48
  end
49
49
 
50
+ def with_default_array(foo, bar = [])
51
+ "#{foo} #{bar.inspect}"
52
+ end
53
+
50
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: 1.0.6.1
4
+ version: 1.0.7
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-12-16 00:00:00 -08:00
12
+ date: 2008-12-28 00:00:00 -08: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: 1.0.6.1
23
+ version: 1.0.7
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: ruby2ruby