resque_mailer 2.4.2 → 2.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/resque_mailer.rb +3 -2
- data/lib/resque_mailer/version.rb +1 -1
- metadata +17 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 548d9708f6b7a14a37327ffb46f45576582ec6bf
|
4
|
+
data.tar.gz: 9e8be7d64d9ec61fe8b5448a1b7e5ab79ceb47a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94c591b3103a3f56ba56243da5858cd18ef6666dfe15018298081d93de71e270426e76985f6fd4a62fbb1a8d1a13ad76a50404c8045261c5b185e94d74d882ee
|
7
|
+
data.tar.gz: 9f580508433f12a0c4ab1ba66ccbda30efd4e23cc27e82b5e6abe3183c8b4b32fa80d366e3939447f31407725c43c621652ed19f801b755b40e7b31c3c87f61a
|
data/CHANGELOG.md
CHANGED
data/lib/resque_mailer.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'resque_mailer/version'
|
2
2
|
require 'resque_mailer/serializers/pass_thru_serializer'
|
3
3
|
require 'resque_mailer/serializers/active_record_serializer'
|
4
|
+
require 'active_support/core_ext/hash'
|
4
5
|
|
5
6
|
module Resque
|
6
7
|
module Mailer
|
@@ -51,10 +52,10 @@ module Resque
|
|
51
52
|
def perform(action, serialized_args)
|
52
53
|
begin
|
53
54
|
args = ::Resque::Mailer.argument_serializer.deserialize(serialized_args)
|
54
|
-
#
|
55
|
+
# Set hash as hash with indifferent access so mailer block syntax (needs symbols) works
|
55
56
|
if args.is_a?(Array)
|
56
57
|
args = args.each_with_object([]) do |arg, o|
|
57
|
-
o << (arg.is_a?(Hash) ? arg.
|
58
|
+
o << (arg.is_a?(Hash) ? arg.with_indifferent_access : arg)
|
58
59
|
end
|
59
60
|
end
|
60
61
|
message = ::Resque::Mailer.prepare_message(self, action, *args)
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque_mailer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Plante
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: actionmailer
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -89,9 +103,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
103
|
version: '0'
|
90
104
|
requirements: []
|
91
105
|
rubyforge_project:
|
92
|
-
rubygems_version: 2.6.
|
106
|
+
rubygems_version: 2.6.13
|
93
107
|
signing_key:
|
94
108
|
specification_version: 4
|
95
109
|
summary: Rails plugin for sending asynchronous email with ActionMailer and Resque.
|
96
110
|
test_files: []
|
97
|
-
has_rdoc:
|