sendwithus_ruby_action_mailer 0.2.1 → 0.2.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5879830a27f65ef23f8300bff7374421cfbab02
|
4
|
+
data.tar.gz: 7ddaef1e91acd8d76a669b5561931670466f7ed5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
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
|