marketo-api-ruby 0.9 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
@@ -1,2 +1,4 @@
1
- ���q��p+�����n�IU|њ�����IR–%�-�N�iM��xnD�]�c��=A���fgCa�rQ*��MF'Yf�*�T�� iRh�k0>IJ��
2
- ?����Y����1I�b����@LOk�r���P�����/�[P/���j�ʙ���cļŠ@T+��i .���xŊ���#� 6ktϧ�28{���<�wR'���U^��0�O}��K�~�%�[��}�p±P�<��
1
+ ��w����R1�ͭ��s�ԊW��dD��s�q�X@t���-ܲ�.�C�xay��B�`4%^��O7Ge��ww$
2
+ ���w70��r�u [5�96"W}O�⫙^�{(}pEF�p��䏎��j��$�B�r�r� &Y� ְ��sQ����_��
3
+ �+�
4
+ �7�)�
data/Contributing.rdoc CHANGED
@@ -63,3 +63,4 @@ Here's the most direct way to get your work merged into the project:
63
63
  * James O'Brien (@jeob32) created
64
64
  {marketo_gem}[https://github.com/Rapleaf/marketo_gem] for Rapleaf.
65
65
  * Eddie Siegel (@eddiesiegel)
66
+ * Sina Jahan (@sinajahan)
data/History.rdoc CHANGED
@@ -1,4 +1,9 @@
1
- === 0.9 / 2014-MM-DD
1
+ === 0.9.1 / 2014-05-15
2
+
3
+ * Bug Fixes:
4
+ * Campaign methods were incorrectly cased. Fixed by sinajahan.
5
+
6
+ === 0.9 / 2014-05-12
2
7
 
3
8
  * Bug Fixes:
4
9
  * Fix #15, where Marketo uses inconsistent camelcasing.
data/README.rdoc CHANGED
@@ -15,10 +15,10 @@ MarketoAPI (marketo-api-ruby) provides a native Ruby interface to the
15
15
  API is necessary for using marketo-api-ruby, it is an explicit goal that
16
16
  working with MarketoAPI not feel like working with a hinky Java port.
17
17
 
18
- This is release 0.9, targeting Marketo API version
18
+ This is release 0.9.1, targeting Marketo API version
19
19
  {2.3}[http://app.marketo.com/soap/mktows/2_3?WSDL], fixing a +syncLead+ problem
20
20
  where +Id+, +Email+, and +ForeignSysPersonId+ are inconsistent with other
21
- +syncLead+ parameters.
21
+ +syncLead+ parameters. This fixes an issue with Marketo campaign methods.
22
22
 
23
23
  Please note that Ruby 1.9.2 is not officially supported, but MarketoAPI will
24
24
  install on any version of Ruby 1.9.2 or later.
data/lib/marketo_api.rb CHANGED
@@ -6,7 +6,7 @@
6
6
  #
7
7
  # require 'marketo_api'
8
8
  module MarketoAPI
9
- VERSION = "0.9"
9
+ VERSION = "0.9.1"
10
10
 
11
11
  MINIMIZE_HASH = ->(k, v) { #:nodoc:
12
12
  v.nil? or (v.respond_to?(:empty?) and v.empty?)
@@ -125,7 +125,7 @@ class MarketoAPI::Campaigns < MarketoAPI::ClientProxy
125
125
  REQUEST_PARAM_XF.each { |o, n| options[n] = options.delete(o) }
126
126
 
127
127
  call(
128
- :RequestCampaign,
128
+ :request_campaign,
129
129
  options.merge(
130
130
  source: resolve_source(source),
131
131
  leadList: transform_param_list(:get, leads),
@@ -169,7 +169,7 @@ class MarketoAPI::Campaigns < MarketoAPI::ClientProxy
169
169
  # schedule(program_name, campaign_name, options = {})
170
170
  def schedule(program_name, campaign_name, options = {})
171
171
  call(
172
- :ScheduleCampaign,
172
+ :schedule_campaign,
173
173
  {
174
174
  programName: program_name,
175
175
  campaignName: campaign_name,
@@ -107,7 +107,7 @@ class TestMarketoAPICampaigns < Minitest::Test
107
107
  method, options = subject.request(lead: lead_key(3),
108
108
  leads: lead_keys(4, 5),
109
109
  campaign_id: 3)
110
- assert_equal :RequestCampaign, method
110
+ assert_equal :request_campaign, method
111
111
  refute_missing_keys options, :source, :leadList, :campaignId
112
112
  assert_equal :MKTOWS, options[:source]
113
113
  assert_equal lead_keys(4, 5, 3), options[:leadList]
@@ -121,7 +121,7 @@ class TestMarketoAPICampaigns < Minitest::Test
121
121
  stub_soap_call do
122
122
  method, options = subject.request(lead: lead_key(3),
123
123
  campaign_name: 'earthday')
124
- assert_equal :RequestCampaign, method
124
+ assert_equal :request_campaign, method
125
125
  assert_equal :MKTOWS, options[:source]
126
126
  assert_equal [ lead_key(3) ], options[:leadList]
127
127
  assert_equal 'earthday', options[:campaignName]
@@ -134,7 +134,7 @@ class TestMarketoAPICampaigns < Minitest::Test
134
134
  stub_soap_call do
135
135
  method, options = subject.request(lead: lead_key(3),
136
136
  program_name: 'earthday')
137
- assert_equal :RequestCampaign, method
137
+ assert_equal :request_campaign, method
138
138
  refute_missing_keys options, :source, :leadList, :programName
139
139
  assert_equal :MKTOWS, options[:source]
140
140
  assert_equal [ lead_key(3) ], options[:leadList]
@@ -147,7 +147,7 @@ class TestMarketoAPICampaigns < Minitest::Test
147
147
  def test_schedule
148
148
  stub_soap_call do
149
149
  method, options = subject.schedule('program', 'campaign')
150
- assert_equal :ScheduleCampaign, method
150
+ assert_equal :schedule_campaign, method
151
151
  assert_equal({ programName: 'program', campaignName: 'campaign' }, options)
152
152
  end
153
153
  end
@@ -155,7 +155,7 @@ class TestMarketoAPICampaigns < Minitest::Test
155
155
  def test_schedule_with_run_at
156
156
  stub_soap_call do
157
157
  method, options = subject.schedule('program', 'campaign', run_at: 3)
158
- assert_equal :ScheduleCampaign, method
158
+ assert_equal :schedule_campaign, method
159
159
  assert_equal({
160
160
  programName: 'program',
161
161
  campaignName: 'campaign',
@@ -167,7 +167,7 @@ class TestMarketoAPICampaigns < Minitest::Test
167
167
  def test_schedule_with_program_tokens
168
168
  stub_soap_call do
169
169
  method, options = subject.schedule('program', 'campaign', program_tokens: [ :x ])
170
- assert_equal :ScheduleCampaign, method
170
+ assert_equal :schedule_campaign, method
171
171
  assert_equal({
172
172
  programName: 'program',
173
173
  campaignName: 'campaign',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marketo-api-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.9'
4
+ version: 0.9.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -37,7 +37,7 @@ cert_chain:
37
37
  SHkzay9FVEZoaSs3cElVV2xGbzBpbXJkeUxoZCtKdzNib1ZqM0NtdnloY3dt
38
38
  cG9NMEs5bApBT21yVWlFbFVxTE9aQT09Ci0tLS0tRU5EIENFUlRJRklDQVRF
39
39
  LS0tLS0K
40
- date: 2014-05-12 00:00:00.000000000 Z
40
+ date: 2014-05-15 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: savon
@@ -243,13 +243,13 @@ description: ! 'MarketoAPI (marketo-api-ruby) provides a native Ruby interface t
243
243
  working with MarketoAPI not feel like working with a hinky Java port.
244
244
 
245
245
 
246
- This is release 0.9, targeting Marketo API version
246
+ This is release 0.9.1, targeting Marketo API version
247
247
 
248
248
  {2.3}[http://app.marketo.com/soap/mktows/2_3?WSDL], fixing a +syncLead+ problem
249
249
 
250
250
  where +Id+, +Email+, and +ForeignSysPersonId+ are inconsistent with other
251
251
 
252
- +syncLead+ parameters.
252
+ +syncLead+ parameters. This fixes an issue with Marketo campaign methods.
253
253
 
254
254
 
255
255
  Please note that Ruby 1.9.2 is not officially supported, but MarketoAPI will
metadata.gz.sig CHANGED
Binary file