mandrill-template-manager 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 +4 -4
- data/lib/mandrill_template/cli.rb +4 -2
- data/mandrill-template-manager.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0f07ce0a0fdd67bb48350b6b8704f4dd12aa096
|
4
|
+
data.tar.gz: 54efe14bbf3fe59062a17370517cb16408a31c7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a2b2400323faf0811dcd3056b5176b1ee7052a03232bf79fa9f18c4d8c196e6832a3566eaa67c15a2c8b630cc73c2ccb6db5ed64e8c3fdaa3e392738f56822c
|
7
|
+
data.tar.gz: 0e27fea8408dfdd325126442a0eab8837b59c487c212ec5572f5e59bb4e29b81a12c7310937785a824f8ad22cb51fd2a6a97ac2d53c0b96828686a754377456f
|
@@ -9,7 +9,7 @@ autoload "Handlebars", 'handlebars'
|
|
9
9
|
|
10
10
|
class MandrillTemplateManager < Thor
|
11
11
|
include Thor::Actions
|
12
|
-
VERSION = "0.2.
|
12
|
+
VERSION = "0.2.2"
|
13
13
|
|
14
14
|
desc "export NAME", "export template from remote to local files."
|
15
15
|
def export(name)
|
@@ -62,7 +62,9 @@ class MandrillTemplateManager < Thor
|
|
62
62
|
h_template = handlebars.compile(template['code'])
|
63
63
|
puts h_template.call(localize_merge_vars(merge_vars))
|
64
64
|
else
|
65
|
-
result = MandrillClient.client.templates.render template.name,
|
65
|
+
result = MandrillClient.client.templates.render template.name,
|
66
|
+
[{"content"=>template["code"], "name"=>template.name}],
|
67
|
+
merge_vars
|
66
68
|
puts result["html"]
|
67
69
|
end
|
68
70
|
else
|