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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c0469f7c9ad97b3f3e2ded5198b004ae2f39a11
4
- data.tar.gz: 9dca2c7e0fbc2f6bfc5855280f55864f61dec1c2
3
+ metadata.gz: 4781c996444d1a9ca337aa5d1bf6fb69d94cd08e
4
+ data.tar.gz: faa1a2f4e4c4a7f7b9f24f26e177b135a3a82ee4
5
5
  SHA512:
6
- metadata.gz: b3d3ad2d685bb22d43a96b8e9bed03cbc26c0f9b5be79ec55390953abcfc11bfad27145ddfcea2d3a9f3603a095815d6c56f7ae1e0c4ec3bf87eca1d50a370a4
7
- data.tar.gz: 484a41b5948afce06b1b7d593a2fe254cd44bfc8be7c77f8611f09b442ce3ae455b7ad1ae2726dcbc752fb3fb4eb5aa17ae07c69f8d604d1182bccd636e013f0
6
+ metadata.gz: 2ee77af9cd14c25d10e17dce2f4071c3417cb88bca51b660c5b65bfe0cbc69cb7ecaf48d2feb01ae718e31235a35b01fa8ca9d912f2868fe0706a4d5d7b6736e
7
+ data.tar.gz: 4497e16918b8c31a7ccbead08d188955a0330aee71f6883bfc7c6565ad7151e5df5e404ad66c354f5463efc8538190fbee7306850797b75c189409c5988c9598
@@ -1,4 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.4
3
+ - 2.3.0
4
4
  before_install: gem install bundler -v 1.10.6
@@ -22,7 +22,8 @@ module Motorhead
22
22
 
23
23
  module AbstractController
24
24
  def send_action(*)
25
- if self.is_a?(Motorhead::Controller)
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
- else
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
@@ -1,3 +1,3 @@
1
1
  module Motorhead
2
- VERSION = '0.3.8'.freeze
2
+ VERSION = '0.3.9'.freeze
3
3
  end
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.8
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: 2015-12-25 00:00:00.000000000 Z
11
+ date: 2016-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler