resque_mailer 2.4.2 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aba5ebd6d356b9ba7107c0cfffe8934ae4f53295
4
- data.tar.gz: 5aea1cb240305ab6661dc04622fd2754123ceea8
3
+ metadata.gz: 548d9708f6b7a14a37327ffb46f45576582ec6bf
4
+ data.tar.gz: 9e8be7d64d9ec61fe8b5448a1b7e5ab79ceb47a0
5
5
  SHA512:
6
- metadata.gz: 1b31e04ab16c16f54a2228f0b46fbf73c2129ba6699fdfab22951088bc622367fbd94d1a1d682ee01dea225db069a495336a33e630de110844004520fc160d7d
7
- data.tar.gz: f2e2566d8f2c659f8d29e00c4cfb2dd83278a6dc15aecde20b5111e3e0d680656bc1f30ffa498acabc15589a474a3e1165ab1cb5c1031e2ccc496a2ee38ae260
6
+ metadata.gz: 94c591b3103a3f56ba56243da5858cd18ef6666dfe15018298081d93de71e270426e76985f6fd4a62fbb1a8d1a13ad76a50404c8045261c5b185e94d74d882ee
7
+ data.tar.gz: 9f580508433f12a0c4ab1ba66ccbda30efd4e23cc27e82b5e6abe3183c8b4b32fa80d366e3939447f31407725c43c621652ed19f801b755b40e7b31c3c87f61a
@@ -1,3 +1,6 @@
1
+ ### 2.4.3 / 2017-09-18
2
+ * Fix for duplicated keys (J Garcia)
3
+
1
4
  ### 2.4.2 / 2017-01-30
2
5
  * Fix for breaking change with symbolied keys vs strings (J Garcia)
3
6
 
@@ -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
- # Add symbolized keys so mailer block syntax works
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.merge(arg.symbolize_keys) : 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)
@@ -1,5 +1,5 @@
1
1
  module Resque
2
2
  module Mailer
3
- VERSION = "2.4.2"
3
+ VERSION = "2.4.3"
4
4
  end
5
5
  end
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.2
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-01-30 00:00:00.000000000 Z
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.7
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: