mailpace-rails 0.4.0 → 0.4.1

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
  SHA256:
3
- metadata.gz: 116f3c2d1a6a94ee97b33eccd6b576ffa86146e262fa18fea458fd30cc6ce9bb
4
- data.tar.gz: 367ca296eff427a12a36a56096a04ebc0e694f635d9667c629db4b67c67f65bd
3
+ metadata.gz: e7ce7e73655598e9e849f7c5fae4c7f29252d42a2850531ee0c536c765ae9fcf
4
+ data.tar.gz: 825cdef3a2e02c9586341b7c916fd5a29ce74c7046d4ad6d19d601f2a73411f5
5
5
  SHA512:
6
- metadata.gz: 2c93b6b5261b781d2692f76732deea6940ab615229cb548986d44023245e5426fdb98937a046cb7dc7f57b5f3c14301107784b22aca641f6c5e10fc1c4ae3467
7
- data.tar.gz: 9a4e461785290e63f2bced09602a6c9770ca747d120ba8ac1247d9fc7a792bf91347f74ef759473604baefdb46cdaf9a9cf56c351ba8e6b4d87b1db97d9c09ce
6
+ metadata.gz: bb6ff09788626e00abf53fe9f361df3f716afa7da25e758b819757a17b48d9d03493884c0807bdb61999baa6a57f7e24840ccdd2b07b1b31b381e4cf9fa995ef
7
+ data.tar.gz: ddce320b5a453eb67f6167069bb40ec6be315287fa833fcdac0dd603b3db69f97c22113a4775c7e795f07114f974cea0ee013653dc8c0dff7a9ce9e6eb566548
@@ -1,5 +1,5 @@
1
1
  module Mailpace
2
2
  module Rails
3
- VERSION = '0.4.0'
3
+ VERSION = '0.4.1'
4
4
  end
5
5
  end
@@ -41,9 +41,10 @@ module Mailpace
41
41
  'User-Agent' => "MailPace Rails Gem v#{Mailpace::Rails::VERSION}",
42
42
  'Accept' => 'application/json',
43
43
  'Content-Type' => 'application/json',
44
- 'Mailpace-Server-Token' => settings[:api_token],
45
- 'Idempotency-Key' => mail.header['idempotency_key'].to_s
46
- }
44
+ 'Mailpace-Server-Token' => settings[:api_token]
45
+ }.tap do |h|
46
+ h['Idempotency-Key'] = mail.header['idempotency_key'].to_s if mail.header['idempotency_key']
47
+ end
47
48
  )
48
49
 
49
50
  handle_response(result)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailpace-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - MailPace
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-14 00:00:00.000000000 Z
11
+ date: 2024-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer