resque_mailer 2.3.1 → 2.4.0

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: 3568b9d11a2b68497b383e029b1020724baedb92
4
- data.tar.gz: e94042ee0cd656cfff5caad0057e49035bccddc6
3
+ metadata.gz: 5a56ee6823536b15341c4bb6cf3e09e6a83b587d
4
+ data.tar.gz: ca159471c8aaea39fb393ba7aef5b776000ecd8c
5
5
  SHA512:
6
- metadata.gz: 4d1824cb6553cfd9c3c94f890f2c73a9c8e714ff1b3ed4be1f50886c37aa3f15c65c0552289b285de37f4e7a902f89de07d62d9806ea34ed7a38796bb85b835e
7
- data.tar.gz: 14482e3b2c3642603b5df089bdd0e083d2acd04602150733b417f0b43fde1bbd4db9cb6bb0fc858d89756ee327f7753b0c7d6d2ce559225dd7e2fe50760f9c85
6
+ metadata.gz: 60c277ea5805b4fc5ac55eb58d79c59932e9d632e9362d4ce133355b0ca105420bce9c9f5575eba78d373dd1324e0211c8356b6363b8c558934b73b2a3a9007b
7
+ data.tar.gz: f415531b8704835f3d143b95095a44e75fc17a2a79166c9eae0c753ac8137ef7ce8af329115cb8ab3842c78618bbe117a3a7a699c509b3ba1a32a9f2e07d7d9e
@@ -1,3 +1,6 @@
1
+ ### 2.4.0 / 2016-10-05
2
+ * Rails 5 compatibility
3
+
1
4
  ### 2.3.1 / 2016-07-03
2
5
  * Serializer bugfix for scheduler integration
3
6
  * RSpec cleanup
@@ -13,6 +13,12 @@ module Resque
13
13
  @excluded_environments = [*envs].map { |e| e.to_sym }
14
14
  end
15
15
 
16
+ def prepare_message(klass, action, *args)
17
+ msg = klass.send(:new)
18
+ msg.process(action, *args)
19
+ msg.message
20
+ end
21
+
16
22
  def included(base)
17
23
  base.extend(ClassMethods)
18
24
  end
@@ -45,7 +51,7 @@ module Resque
45
51
  def perform(action, serialized_args)
46
52
  begin
47
53
  args = ::Resque::Mailer.argument_serializer.deserialize(serialized_args)
48
- message = self.send(:new, action, *args).message
54
+ message = ::Resque::Mailer.prepare_message(self, action, *args)
49
55
  if message.respond_to?(:deliver_now)
50
56
  message.deliver_now
51
57
  else
@@ -118,7 +124,7 @@ module Resque
118
124
  end
119
125
 
120
126
  def actual_message
121
- @actual_message ||= @mailer_class.send(:new, @method_name, *@args).message
127
+ @actual_message ||= ::Resque::Mailer.prepare_message(@mailer_class, @method_name, *@args)
122
128
  end
123
129
 
124
130
  def deliver
@@ -1,5 +1,5 @@
1
1
  module Resque
2
2
  module Mailer
3
- VERSION = "2.3.1"
3
+ VERSION = "2.4.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Plante
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-04 00:00:00.000000000 Z
11
+ date: 2016-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.6'
33
+ version: '3.5'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.6'
40
+ version: '3.5'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: yard
43
43
  requirement: !ruby/object:Gem::Requirement