responsys 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/responsys.rb +3 -3
  2. data/responsys.gemspec +1 -1
  3. metadata +1 -1
data/lib/responsys.rb CHANGED
@@ -69,11 +69,11 @@ class Responsys
69
69
  trigger_campaign_message.recipientData = []
70
70
 
71
71
  recipients.each do |recipient_info|
72
- options = recipient_info.has_key?(:options) ? recipient_info[:options] : {foo: 'bar'}
72
+ options = recipient_info.has_key?('options') ? recipient_info['options'] : {foo: 'bar'}
73
73
 
74
74
  recipient = Recipient.new
75
- recipient.emailAddress = recipient_info[:email] if recipient_info[:email]
76
- recipient.customerId = recipient_info[:id] if recipient_info[:id]
75
+ recipient.emailAddress = recipient_info['email'] if recipient_info['email']
76
+ recipient.customerId = recipient_info['id'] if recipient_info['id']
77
77
  recipient_data = RecipientData.new
78
78
  recipient_data.recipient = recipient
79
79
  recipient_data.optionalData = []
data/responsys.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'responsys'
3
- s.version = '0.0.2'
3
+ s.version = '0.0.3'
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.summary = 'Responsys Interact API client.'
6
6
  s.description = 'A client for interacting with the Responsys API.'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: responsys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: