planet_express 0.1.6 → 0.2.0

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.
data/CHANGELOG.md CHANGED
@@ -1,6 +1,8 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ### 0.2.0 Make sure default personalizations (TIMESTAMP and EMAIL_TEMPLATE are uppercase)
5
+
4
6
  ### 0.1.6 Add more details when an error response is processed.
5
7
 
6
8
  ### 0.1.5 Removing some error loggers.
@@ -19,7 +19,7 @@ module PlanetExpress
19
19
 
20
20
  def prepare campaign_id, recipient, personalizations={}
21
21
  @campaign_id, @recipient, @personalizations = campaign_id, recipient, personalizations
22
- @personalizations.merge!({ :timestamp => Time.now, :email_template => @campaign_id })
22
+ @personalizations.merge!({ :TIMESTAMP => Time.now, :EMAIL_TEMPLATE => @campaign_id })
23
23
  raise PlanetExpress::ArgumentError if campaign_id.nil? or recipient.nil?
24
24
 
25
25
  build_request
@@ -1,3 +1,3 @@
1
1
  module PlanetExpress
2
- VERSION = "0.1.6"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: planet_express
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: