motorhead 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/lib/motorhead/abstract_controller.rb +5 -2
- data/lib/motorhead/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4781c996444d1a9ca337aa5d1bf6fb69d94cd08e
|
4
|
+
data.tar.gz: faa1a2f4e4c4a7f7b9f24f26e177b135a3a82ee4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ee77af9cd14c25d10e17dce2f4071c3417cb88bca51b660c5b65bfe0cbc69cb7ecaf48d2feb01ae718e31235a35b01fa8ca9d912f2868fe0706a4d5d7b6736e
|
7
|
+
data.tar.gz: 4497e16918b8c31a7ccbead08d188955a0330aee71f6883bfc7c6565ad7151e5df5e404ad66c354f5463efc8538190fbee7306850797b75c189409c5988c9598
|
data/.travis.yml
CHANGED
@@ -22,7 +22,8 @@ module Motorhead
|
|
22
22
|
|
23
23
|
module AbstractController
|
24
24
|
def send_action(*)
|
25
|
-
|
25
|
+
case self
|
26
|
+
when Motorhead::Controller
|
26
27
|
begin
|
27
28
|
super
|
28
29
|
@_motorhead_action_successfully_finished = true
|
@@ -30,7 +31,7 @@ module Motorhead
|
|
30
31
|
rescue => e
|
31
32
|
(self.class.parent::Engine.on_error || Motorhead.config.on_error).call(e)
|
32
33
|
end
|
33
|
-
|
34
|
+
when ::ActionController::Base
|
34
35
|
if env.key? 'motorhead_render_result'
|
35
36
|
self.response = env.delete 'motorhead_render_result'
|
36
37
|
headers.delete 'X-Cascade'
|
@@ -38,6 +39,8 @@ module Motorhead
|
|
38
39
|
else
|
39
40
|
super
|
40
41
|
end
|
42
|
+
else # ActionMailer::Base
|
43
|
+
super
|
41
44
|
end
|
42
45
|
end
|
43
46
|
end
|
data/lib/motorhead/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motorhead
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akira Matsuda
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|