mandrill-template-manager 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: d301d5990ddcab5f7dfc095785c7de426e6d65fe
4
- data.tar.gz: 6dd9e324a600280687fbfa92242bcc97d0b8d6c5
3
+ metadata.gz: f0f07ce0a0fdd67bb48350b6b8704f4dd12aa096
4
+ data.tar.gz: 54efe14bbf3fe59062a17370517cb16408a31c7e
5
5
  SHA512:
6
- metadata.gz: f18d136470bafcb4e305763d0036505189782b8b0444a83ec743c5266093be4b8a06bdad1e3116a0b9fb061b1ff5860df1b1ffd4b8cf6f02b4af0f420f96d5f8
7
- data.tar.gz: 2a055423ed19a854511284d912b1b63f16f0ec3ce4a512a13bfa64d126d9f9dff32b88a66efdb1473e0d87990c68ae00b4394a309b99216f43cf7488aceed0bf
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.1"
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, template['code'], merge_vars
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
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "mandrill-template-manager"
7
- spec.version = "0.2.1"
7
+ spec.version = "0.2.2"
8
8
  spec.authors = ["sawanoboly"]
9
9
  spec.email = ["sawanoboriyu@higanworks.com"]
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mandrill-template-manager
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
  - sawanoboly