Skip to content

Commit 51193ec

Browse files
author
Chad Morris
committed
Add merge_language parameter to accept handlebars.
1 parent 0f0453e commit 51193ec

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

lib/mandrill/api.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -797,17 +797,18 @@ def initialize(master)
797797
# - [String] signing_domain a custom domain to use for SPF/DKIM signing instead of mandrill (for "via" or "on behalf of" in email clients)
798798
# - [String] return_path_domain a custom domain to use for the messages's return-path
799799
# - [Boolean] merge whether to evaluate merge tags in the message. Will automatically be set to true if either merge_vars or global_merge_vars are provided.
800+
# - [String] merge_language the merge tag language to use when evaluating merge tags, either mailchimp or handlebars
800801
# - [Array] global_merge_vars global merge variables to use for all recipients. You can override these per recipient.
801802
# - [Hash] global_merge_vars[] a single global merge variable
802803
# - [String] name the global merge variable's name. Merge variable names are case-insensitive and may not start with _
803-
# - [String] content the global merge variable's content
804+
# - [Mixed] content the global merge variable's content
804805
# - [Array] merge_vars per-recipient merge variables, which override global merge variables with the same name.
805806
# - [Hash] merge_vars[] per-recipient merge variables
806807
# - [String] rcpt the email address of the recipient that the merge variables should apply to
807808
# - [Array] vars the recipient's merge variables
808809
# - [Hash] vars[] a single merge variable
809810
# - [String] name the merge variable's name. Merge variable names are case-insensitive and may not start with _
810-
# - [String] content the merge variable's content
811+
# - [Mixed] content the merge variable's content
811812
# - [Array] tags an array of string to tag the message with. Stats are accumulated using tags, though we only store the first 100 we see, so this should not be unique or change frequently. Tags should be 50 characters or less. Any tags starting with an underscore are reserved for internal use and will cause errors.
812813
# - [String] tags[] a single tag - must not start with an underscore
813814
# - [String] subaccount the unique id of a subaccount for this message - must already exist or will fail with an error
@@ -874,17 +875,18 @@ def send(message, async=false, ip_pool=nil, send_at=nil)
874875
# - [String] signing_domain a custom domain to use for SPF/DKIM signing instead of mandrill (for "via" or "on behalf of" in email clients)
875876
# - [String] return_path_domain a custom domain to use for the messages's return-path
876877
# - [Boolean] merge whether to evaluate merge tags in the message. Will automatically be set to true if either merge_vars or global_merge_vars are provided.
878+
# - [String] merge_language the merge tag language to use when evaluating merge tags, either mailchimp or handlebars
877879
# - [Array] global_merge_vars global merge variables to use for all recipients. You can override these per recipient.
878880
# - [Hash] global_merge_vars[] a single global merge variable
879881
# - [String] name the global merge variable's name. Merge variable names are case-insensitive and may not start with _
880-
# - [String] content the global merge variable's content
882+
# - [Mixed] content the global merge variable's content
881883
# - [Array] merge_vars per-recipient merge variables, which override global merge variables with the same name.
882884
# - [Hash] merge_vars[] per-recipient merge variables
883885
# - [String] rcpt the email address of the recipient that the merge variables should apply to
884886
# - [Array] vars the recipient's merge variables
885887
# - [Hash] vars[] a single merge variable
886888
# - [String] name the merge variable's name. Merge variable names are case-insensitive and may not start with _
887-
# - [String] content the merge variable's content
889+
# - [Mixed] content the merge variable's content
888890
# - [Array] tags an array of string to tag the message with. Stats are accumulated using tags, though we only store the first 100 we see, so this should not be unique or change frequently. Tags should be 50 characters or less. Any tags starting with an underscore are reserved for internal use and will cause errors.
889891
# - [String] tags[] a single tag - must not start with an underscore
890892
# - [String] subaccount the unique id of a subaccount for this message - must already exist or will fail with an error

mandrill-api.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = 'mandrill-api'
3-
s.version = '1.0.52'
3+
s.version = '1.0.53'
44
s.summary = 'A Ruby API library for the Mandrill email as a service platform.'
55
s.description = s.summary
66
s.authors = ['Mandrill Devs']

0 commit comments

Comments
 (0)