sendwithus_ruby_action_mailer 0.2.1 → 0.2.2

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: 4836500f0c202f57c8c1af9703690e488b999fa0
4
- data.tar.gz: 198d34d6fcaff0e0ce4d466de087d5d0feaa72bb
3
+ metadata.gz: e5879830a27f65ef23f8300bff7374421cfbab02
4
+ data.tar.gz: 7ddaef1e91acd8d76a669b5561931670466f7ed5
5
5
  SHA512:
6
- metadata.gz: 098832db5ddc29570bcff1e7b7d2bf8e96eabd8447eedddc3e72d41ceaf8c2d58b4b8d22c30b41893e4890fd6f437f22696ea562d1f55b62a2fa7f4cdc390ee2
7
- data.tar.gz: 43ddb9c5bdab56aca888348984fb9bcf6841e0ce7cb2f52a22ba77338eeae2e9efcfdc5a5a35d09f8a7808a9fe1cfb7187dc71ee542bfd5665bfca5e983e0ca5
6
+ metadata.gz: 6d3726ded66f4004240505a5d436d8370386540be5c515458a6d2354db5ea59807f4d223f627de4b00fb79809fc19f1bf1bd4794e2f3f340ac8d7bd962c64336
7
+ data.tar.gz: 9f7d7ab7e2d5601230a1c32e8ab7b55e7cb70ea3cdf8ff3e5c2406366f448b3bfff1b0cf1f1e745ddb4aeeec8e90e9d428b9f51b23a509e1341db31a06dbc981
data/README.md CHANGED
@@ -62,7 +62,8 @@ class Notifier < SendWithUsMailer::Base
62
62
  bcc: [{:address => "name@example.com"}, {:address => "name2@example.com"}],
63
63
  version_name: 'version-A',
64
64
  locale: 'en-US',
65
- files: ["/path/to/file"]
65
+ files: ["/path/to/file"],
66
+ headers: { 'header-name' => 'header-value' }
66
67
  )
67
68
  end
68
69
  end
@@ -13,6 +13,7 @@ module SendWithUsMailer
13
13
  @version_name = ""
14
14
  @locale = ""
15
15
  @files = []
16
+ @headers = {}
16
17
  end
17
18
 
18
19
  def assign(key, value) #:nodoc:
@@ -44,6 +45,8 @@ module SendWithUsMailer
44
45
  @locale = value
45
46
  when :files
46
47
  @files.concat(value)
48
+ when :headers
49
+ @headers.merge!(value)
47
50
  end
48
51
  end
49
52
  end
@@ -65,7 +68,8 @@ module SendWithUsMailer
65
68
  esp_account: "",
66
69
  version_name: @version_name,
67
70
  locale: @locale,
68
- files: @files
71
+ files: @files,
72
+ headers: @headers
69
73
  )
70
74
  end
71
75
  end
@@ -1,3 +1,3 @@
1
1
  module SendWithUsMailer
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -28,7 +28,8 @@ describe SendWithUsMailer do
28
28
  from_address: 'asender@company.com',
29
29
  from_name: 'asender',
30
30
  reply_to: 'ano-reply@company.com',
31
- version_name: 'v2'
31
+ version_name: 'v2',
32
+ headers: { 'header-name' => 'header-value' }
32
33
  end
33
34
  end
34
35
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sendwithus_ruby_action_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Rempel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-07 00:00:00.000000000 Z
11
+ date: 2015-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: send_with_us