rack-restful_submit 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -97,6 +97,7 @@ License
97
97
  History
98
98
  -------
99
99
 
100
+ 1.1.2 - Fixing bug with double Rack call()
100
101
  1.1.1 - Define Gemfile and decrease RSpec version to 1.3.0
101
102
  1.1.0 - Version with MethodOverride support inside
102
103
  1.0.0 - First working version
@@ -19,10 +19,10 @@ module Rack
19
19
  if mapping && mapping['url'] && mapping['method']
20
20
  rewrite(env, mapping['url'], mapping['method'])
21
21
  else
22
- super(env)
22
+ return super(env)
23
23
  end
24
24
  else
25
- super(env)
25
+ return super(env)
26
26
  end
27
27
  end
28
28
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "rack-restful_submit"
5
- s.version = "1.1.1"
5
+ s.version = "1.1.2"
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ["Ladislav Martincik"]
8
8
  s.email = ["ladislav.martincik@gmail.com"]
@@ -74,6 +74,7 @@ describe Rack::RestfulSubmit do
74
74
  end
75
75
 
76
76
  it { out_env['REQUEST_METHOD'].should == method }
77
+ it { app.should_receive(:call).once.with(in_env); out_env }
77
78
  end
78
79
 
79
80
  describe "with #{method} and valid __rewrite args" do
@@ -103,6 +104,7 @@ describe Rack::RestfulSubmit do
103
104
  end
104
105
 
105
106
  it { out_env['REQUEST_METHOD'].should == method }
107
+ it { app.should_receive(:call).once.with(in_env); out_env }
106
108
  end
107
109
  end
108
110
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-restful_submit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 1
10
- version: 1.1.1
9
+ - 2
10
+ version: 1.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ladislav Martincik
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-14 00:00:00 +01:00
18
+ date: 2010-12-15 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency