mrkt 0.9.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +59 -5
- data/.travis.yml +19 -10
- data/Gemfile.lock +68 -63
- data/LICENSE +21 -0
- data/README.md +4 -1
- data/lib/mrkt.rb +14 -3
- data/lib/mrkt/concerns/authentication.rb +27 -12
- data/lib/mrkt/concerns/connection.rb +13 -7
- data/lib/mrkt/concerns/crud_activities.rb +12 -9
- data/lib/mrkt/concerns/crud_asset_folders.rb +43 -0
- data/lib/mrkt/concerns/crud_asset_static_lists.rb +30 -0
- data/lib/mrkt/concerns/crud_campaigns.rb +2 -4
- data/lib/mrkt/concerns/crud_custom_activities.rb +3 -2
- data/lib/mrkt/concerns/crud_custom_objects.rb +13 -14
- data/lib/mrkt/concerns/crud_helpers.rb +7 -0
- data/lib/mrkt/concerns/crud_leads.rb +35 -20
- data/lib/mrkt/concerns/crud_lists.rb +13 -10
- data/lib/mrkt/concerns/crud_programs.rb +6 -5
- data/lib/mrkt/concerns/import_custom_objects.rb +1 -1
- data/lib/mrkt/concerns/import_leads.rb +8 -5
- data/lib/mrkt/errors.rb +3 -2
- data/lib/mrkt/faraday.rb +4 -0
- data/lib/mrkt/faraday/params_encoder.rb +20 -0
- data/lib/mrkt/faraday_middleware.rb +3 -7
- data/lib/mrkt/version.rb +1 -1
- data/mrkt.gemspec +11 -12
- data/spec/concerns/authentication_spec.rb +57 -5
- data/spec/concerns/crud_activities_spec.rb +46 -7
- data/spec/concerns/crud_asset_folders_spec.rb +273 -0
- data/spec/concerns/crud_asset_static_lists_spec.rb +183 -0
- data/spec/concerns/crud_custom_activities_spec.rb +3 -1
- data/spec/concerns/crud_custom_objects_spec.rb +1 -1
- data/spec/concerns/crud_leads_spec.rb +104 -2
- data/spec/concerns/crud_lists_spec.rb +33 -0
- data/spec/concerns/import_leads_spec.rb +3 -3
- data/spec/faraday/params_encoder_spec.rb +24 -0
- data/spec/spec_helper.rb +3 -1
- data/spec/support/webmock.rb +1 -7
- metadata +44 -46
@@ -0,0 +1,183 @@
|
|
1
|
+
describe Mrkt::CrudAssetStaticLists do
|
2
|
+
include_context 'initialized client'
|
3
|
+
|
4
|
+
let(:response_static_list_result) do
|
5
|
+
{
|
6
|
+
id: 1001,
|
7
|
+
name: 'Test Static List Name',
|
8
|
+
description: 'Provided description',
|
9
|
+
createdAt: '2019-03-15T21:41:46Z+0000',
|
10
|
+
updatedAt: '2019-03-15T21:41:46Z+0000',
|
11
|
+
folder: {
|
12
|
+
id: 14,
|
13
|
+
type: 'Folder'
|
14
|
+
},
|
15
|
+
computedUrl: 'https://app-devlocal1.marketo.com/#ST1001A1'
|
16
|
+
}
|
17
|
+
end
|
18
|
+
|
19
|
+
describe '#create_static_list' do
|
20
|
+
subject { client.create_static_list(name, folder, description: description) }
|
21
|
+
|
22
|
+
let(:name) { 'Test Static List Name' }
|
23
|
+
let(:folder) do
|
24
|
+
{ id: 14, type: 'Folder' }
|
25
|
+
end
|
26
|
+
let(:description) { 'Provided description' }
|
27
|
+
let(:response_stub) do
|
28
|
+
{
|
29
|
+
requestId: 'eba#16982091b99',
|
30
|
+
result: [
|
31
|
+
response_static_list_result
|
32
|
+
],
|
33
|
+
success: true,
|
34
|
+
errors: [],
|
35
|
+
warnings: []
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
let(:json_folder) { JSON.generate(folder) }
|
40
|
+
let(:request_body) do
|
41
|
+
{
|
42
|
+
name: name,
|
43
|
+
folder: json_folder,
|
44
|
+
description: description
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
before do
|
49
|
+
stub_request(:post, "https://#{host}/rest/asset/v1/staticLists.json")
|
50
|
+
.with(body: request_body)
|
51
|
+
.to_return(json_stub(response_stub))
|
52
|
+
end
|
53
|
+
|
54
|
+
it { is_expected.to eq(response_stub) }
|
55
|
+
end
|
56
|
+
|
57
|
+
describe '#get_static_list_by_id' do
|
58
|
+
subject { client.get_static_list_by_id(id) }
|
59
|
+
|
60
|
+
let(:id) { response_static_list_result[:id] }
|
61
|
+
let(:response_stub) do
|
62
|
+
{
|
63
|
+
requestId: '378a#16983419fff',
|
64
|
+
result: [
|
65
|
+
response_static_list_result
|
66
|
+
],
|
67
|
+
success: true,
|
68
|
+
errors: [],
|
69
|
+
warnings: []
|
70
|
+
}
|
71
|
+
end
|
72
|
+
|
73
|
+
before do
|
74
|
+
stub_request(:get, "https://#{host}/rest/asset/v1/staticList/#{id}.json")
|
75
|
+
.to_return(json_stub(response_stub))
|
76
|
+
end
|
77
|
+
|
78
|
+
context 'when a static list with the given id exists' do
|
79
|
+
let(:response_stub) do
|
80
|
+
{
|
81
|
+
requestId: '378a#16983419fff',
|
82
|
+
result: [
|
83
|
+
response_static_list_result
|
84
|
+
],
|
85
|
+
success: true,
|
86
|
+
errors: [],
|
87
|
+
warnings: []
|
88
|
+
}
|
89
|
+
end
|
90
|
+
|
91
|
+
it { is_expected.to eq(response_stub) }
|
92
|
+
end
|
93
|
+
|
94
|
+
context 'when a static list with the given id does not exist' do
|
95
|
+
let(:response_stub) do
|
96
|
+
{
|
97
|
+
requestId: 'a8d#1698369857b',
|
98
|
+
success: false,
|
99
|
+
warnings: [],
|
100
|
+
errors: [
|
101
|
+
{
|
102
|
+
code: '702',
|
103
|
+
message: 'Static List not found or it has been deleted'
|
104
|
+
}
|
105
|
+
]
|
106
|
+
}
|
107
|
+
end
|
108
|
+
|
109
|
+
it 'should raise an Error' do
|
110
|
+
expect { subject }.to raise_error(Mrkt::Errors::RecordNotFound)
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
describe '#get_static_list_by_name' do
|
116
|
+
subject { client.get_static_list_by_name(name) }
|
117
|
+
|
118
|
+
let(:name) { 'Test Static List Name' }
|
119
|
+
let(:request_query) { "name=#{name}" }
|
120
|
+
|
121
|
+
before do
|
122
|
+
stub_request(:get, "https://#{host}/rest/asset/v1/staticList/byName.json?#{request_query}")
|
123
|
+
.to_return(json_stub(response_stub))
|
124
|
+
end
|
125
|
+
|
126
|
+
context 'when a static list with the given name exists' do
|
127
|
+
let(:response_stub) do
|
128
|
+
{
|
129
|
+
requestId: '13a74#169834522b9',
|
130
|
+
result: [
|
131
|
+
response_static_list_result
|
132
|
+
],
|
133
|
+
success: true,
|
134
|
+
errors: [],
|
135
|
+
warnings: []
|
136
|
+
}
|
137
|
+
end
|
138
|
+
|
139
|
+
it { is_expected.to eq(response_stub) }
|
140
|
+
end
|
141
|
+
|
142
|
+
context 'when a static list with the given name does not exist' do
|
143
|
+
let(:response_stub) do
|
144
|
+
{
|
145
|
+
requestId: '4ec2#1698384ae02',
|
146
|
+
success: true,
|
147
|
+
errors: [],
|
148
|
+
warnings: [
|
149
|
+
'No assets found for the given search criteria.'
|
150
|
+
]
|
151
|
+
}
|
152
|
+
end
|
153
|
+
|
154
|
+
it { is_expected.to eq(response_stub) }
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
describe '#delete_static_list' do
|
159
|
+
subject { client.delete_static_list(id) }
|
160
|
+
|
161
|
+
let(:id) { 1001 }
|
162
|
+
let(:response_stub) do
|
163
|
+
{
|
164
|
+
requestId: '94c3#169833275df',
|
165
|
+
result: [
|
166
|
+
{
|
167
|
+
id: 1001
|
168
|
+
}
|
169
|
+
],
|
170
|
+
success: true,
|
171
|
+
errors: [],
|
172
|
+
warnings: []
|
173
|
+
}
|
174
|
+
end
|
175
|
+
|
176
|
+
before do
|
177
|
+
stub_request(:post, "https://#{host}/rest/asset/v1/staticList/#{id}/delete.json")
|
178
|
+
.to_return(json_stub(response_stub))
|
179
|
+
end
|
180
|
+
|
181
|
+
it { is_expected.to eq(response_stub) }
|
182
|
+
end
|
183
|
+
end
|
@@ -162,7 +162,9 @@ describe Mrkt::CrudCustomObjects do
|
|
162
162
|
}
|
163
163
|
end
|
164
164
|
|
165
|
-
subject
|
165
|
+
subject do
|
166
|
+
client.create_custom_activity(lead_id, activity_type_id, primary_attribute_value, attributes: attributes, date: date)
|
167
|
+
end
|
166
168
|
|
167
169
|
it { is_expected.to eq(response_stub) }
|
168
170
|
end
|
@@ -55,7 +55,7 @@ describe Mrkt::CrudCustomObjects do
|
|
55
55
|
end
|
56
56
|
|
57
57
|
context 'with object names' do
|
58
|
-
let(:object_names) { %w
|
58
|
+
let(:object_names) { %w[device_c manufacturer_c] }
|
59
59
|
|
60
60
|
before do
|
61
61
|
stub_request(:get, "https://#{host}/rest/v1/customobjects.json")
|
@@ -1,9 +1,63 @@
|
|
1
1
|
describe Mrkt::CrudLeads do
|
2
2
|
include_context 'initialized client'
|
3
3
|
|
4
|
+
describe 'get_lead_by_id' do
|
5
|
+
subject { client.get_lead_by_id(id, fields: fields) }
|
6
|
+
|
7
|
+
let(:id) { 200 }
|
8
|
+
|
9
|
+
let(:fields_query) { fields ? "fields=#{fields.join(',')}" : nil }
|
10
|
+
|
11
|
+
before do
|
12
|
+
stub_request(:get, "https://#{host}/rest/v1/lead/#{id}.json?#{fields_query}")
|
13
|
+
.to_return(json_stub(response_stub))
|
14
|
+
end
|
15
|
+
|
16
|
+
context 'when no fields are given' do
|
17
|
+
let(:fields) { nil }
|
18
|
+
let(:response_stub) do
|
19
|
+
{
|
20
|
+
requestId: '1134#169a69aae86',
|
21
|
+
result: [
|
22
|
+
{
|
23
|
+
id: id,
|
24
|
+
firstName: 'John',
|
25
|
+
lastName: 'Snow',
|
26
|
+
email: 'jfrost@mrkt.com',
|
27
|
+
updatedAt: '2019-03-19T20:39:23Z',
|
28
|
+
createdAt: '2019-03-14T13:41:37Z'
|
29
|
+
}
|
30
|
+
],
|
31
|
+
success: true
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
it { is_expected.to eq(response_stub) }
|
36
|
+
end
|
37
|
+
|
38
|
+
context 'when an array of fields is given' do
|
39
|
+
let(:fields) { %w[email dateOfBirth] }
|
40
|
+
let(:response_stub) do
|
41
|
+
{
|
42
|
+
requestId: '33dd#169a6b5ba65',
|
43
|
+
result: [
|
44
|
+
{
|
45
|
+
id: id,
|
46
|
+
email: 'jfrost@mrkt.com',
|
47
|
+
dateOfBirth: '1813-03-15'
|
48
|
+
}
|
49
|
+
],
|
50
|
+
success: true
|
51
|
+
}
|
52
|
+
end
|
53
|
+
|
54
|
+
it { is_expected.to eq(response_stub) }
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
4
58
|
describe '#get_leads' do
|
5
59
|
let(:filter_type) { 'email' }
|
6
|
-
let(:filter_values) { %w
|
60
|
+
let(:filter_values) { %w[user@example.com] }
|
7
61
|
let(:response_stub) do
|
8
62
|
{
|
9
63
|
requestId: 'c245#14cd6830ae2',
|
@@ -157,7 +211,7 @@ describe Mrkt::CrudLeads do
|
|
157
211
|
subject { client.merge_leads(id, losing_lead_ids) }
|
158
212
|
|
159
213
|
before do
|
160
|
-
params = Faraday::Utils::ParamsHash.new
|
214
|
+
params = ::Faraday::Utils::ParamsHash.new
|
161
215
|
params[:mergeInCRM] = false
|
162
216
|
params[:leadIds] = losing_lead_ids.join(',') if losing_lead_ids
|
163
217
|
|
@@ -196,4 +250,52 @@ describe Mrkt::CrudLeads do
|
|
196
250
|
end
|
197
251
|
end
|
198
252
|
end
|
253
|
+
|
254
|
+
describe '#describe_lead' do
|
255
|
+
let(:response_stub) do
|
256
|
+
{
|
257
|
+
requestId: '5c9e#169a68fa806',
|
258
|
+
result: [
|
259
|
+
{
|
260
|
+
id: 4,
|
261
|
+
displayName: 'Company Name',
|
262
|
+
dataType: 'string',
|
263
|
+
length: 255,
|
264
|
+
rest: {
|
265
|
+
name: 'company',
|
266
|
+
readOnly: false
|
267
|
+
},
|
268
|
+
soap: {
|
269
|
+
name: 'Company',
|
270
|
+
readOnly: false
|
271
|
+
}
|
272
|
+
},
|
273
|
+
{
|
274
|
+
id: 56,
|
275
|
+
displayName: 'Email Address',
|
276
|
+
dataType: 'email',
|
277
|
+
length: 255,
|
278
|
+
rest: {
|
279
|
+
name: 'email',
|
280
|
+
readOnly: false
|
281
|
+
},
|
282
|
+
soap: {
|
283
|
+
name: 'Email',
|
284
|
+
readOnly: false
|
285
|
+
}
|
286
|
+
}
|
287
|
+
],
|
288
|
+
success: true
|
289
|
+
}
|
290
|
+
end
|
291
|
+
|
292
|
+
subject { client.describe_lead }
|
293
|
+
|
294
|
+
before do
|
295
|
+
stub_request(:get, "https://#{host}/rest/v1/leads/describe.json")
|
296
|
+
.to_return(json_stub(response_stub))
|
297
|
+
end
|
298
|
+
|
299
|
+
it { is_expected.to eq(response_stub) }
|
300
|
+
end
|
199
301
|
end
|
@@ -63,4 +63,37 @@ describe Mrkt::CrudLists do
|
|
63
63
|
|
64
64
|
it { is_expected.to eq(response_stub) }
|
65
65
|
end
|
66
|
+
|
67
|
+
describe '#remove_leads_from_list' do
|
68
|
+
let(:list_id) { '1001' }
|
69
|
+
let(:lead_ids) { ['1'] }
|
70
|
+
let(:request_body) do
|
71
|
+
{
|
72
|
+
input: [
|
73
|
+
{ id: '1' }
|
74
|
+
]
|
75
|
+
}
|
76
|
+
end
|
77
|
+
let(:response_stub) do
|
78
|
+
{
|
79
|
+
requestId: '10de4#1697e81c821',
|
80
|
+
result: [
|
81
|
+
{
|
82
|
+
id: 1,
|
83
|
+
status: 'removed'
|
84
|
+
}
|
85
|
+
],
|
86
|
+
success: true
|
87
|
+
}
|
88
|
+
end
|
89
|
+
subject { client.remove_leads_from_list(list_id, lead_ids) }
|
90
|
+
|
91
|
+
before do
|
92
|
+
stub_request(:delete, "https://#{host}/rest/v1/lists/#{list_id}/leads.json")
|
93
|
+
.with(json_stub(request_body))
|
94
|
+
.to_return(json_stub(response_stub))
|
95
|
+
end
|
96
|
+
|
97
|
+
it { is_expected.to eq(response_stub) }
|
98
|
+
end
|
66
99
|
end
|
@@ -5,7 +5,7 @@ describe Mrkt::ImportLeads do
|
|
5
5
|
include_context 'initialized client'
|
6
6
|
|
7
7
|
describe '#import_lead' do
|
8
|
-
let(:tempfile) { Tempfile.new([
|
8
|
+
let(:tempfile) { Tempfile.new(%w[import-leads csv]) }
|
9
9
|
let(:response_stub) do
|
10
10
|
{
|
11
11
|
requestId: 'c245#14cd6830ae2',
|
@@ -22,8 +22,8 @@ describe Mrkt::ImportLeads do
|
|
22
22
|
|
23
23
|
before do
|
24
24
|
CSV.open(tempfile, 'wb') do |csv|
|
25
|
-
csv << %w
|
26
|
-
csv << %w
|
25
|
+
csv << %w[email firstName lastName]
|
26
|
+
csv << %w[sample@example.com John Snow]
|
27
27
|
end
|
28
28
|
|
29
29
|
stub_request(:post, "https://#{host}/bulk/v1/leads.json")
|
@@ -0,0 +1,24 @@
|
|
1
|
+
describe Mrkt::Faraday::ParamsEncoder do
|
2
|
+
describe '.encode' do
|
3
|
+
let(:params) do
|
4
|
+
{
|
5
|
+
string: 'foobar',
|
6
|
+
number: 1,
|
7
|
+
boolean: true,
|
8
|
+
array: [1, 2, 3]
|
9
|
+
}
|
10
|
+
end
|
11
|
+
|
12
|
+
subject { described_class.encode(params) }
|
13
|
+
|
14
|
+
it { is_expected.to eq(Faraday::Utils::ParamsHash.new.merge(params.merge(array: '1,2,3')).to_query) }
|
15
|
+
end
|
16
|
+
|
17
|
+
describe '.decode' do
|
18
|
+
let(:value) { 'foo=foo&bar=bar' }
|
19
|
+
|
20
|
+
subject { described_class.decode(value) }
|
21
|
+
|
22
|
+
it { is_expected.to eq('foo' => 'foo', 'bar' => 'bar') }
|
23
|
+
end
|
24
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -8,7 +8,9 @@ Bundler.setup
|
|
8
8
|
|
9
9
|
require 'mrkt'
|
10
10
|
|
11
|
-
Dir[File.expand_path('spec/support/**/*.rb')].each
|
11
|
+
Dir[File.expand_path('spec/support/**/*.rb')].sort.each do |file|
|
12
|
+
require file
|
13
|
+
end
|
12
14
|
|
13
15
|
RSpec.configure do |config|
|
14
16
|
config.default_formatter = :doc if config.files_to_run.one?
|
data/spec/support/webmock.rb
CHANGED
@@ -1,16 +1,10 @@
|
|
1
1
|
require 'webmock/rspec'
|
2
2
|
|
3
|
-
RSpec.configure do
|
3
|
+
RSpec.configure do
|
4
4
|
def json_stub(content_stub)
|
5
5
|
{
|
6
6
|
headers: { content_type: 'application/json' },
|
7
7
|
body: JSON.generate(content_stub)
|
8
8
|
}
|
9
9
|
end
|
10
|
-
|
11
|
-
if ENV['CODECLIMATE_REPO_TOKEN']
|
12
|
-
config.after(:suite) do
|
13
|
-
WebMock.disable_net_connect!(allow: 'codeclimate.com')
|
14
|
-
end
|
15
|
-
end
|
16
10
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mrkt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- KARASZI István
|
@@ -9,48 +9,36 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-07-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: 0.9.0
|
21
|
-
- - "<"
|
18
|
+
- - "~>"
|
22
19
|
- !ruby/object:Gem::Version
|
23
|
-
version:
|
20
|
+
version: '1.0'
|
24
21
|
type: :runtime
|
25
22
|
prerelease: false
|
26
23
|
version_requirements: !ruby/object:Gem::Requirement
|
27
24
|
requirements:
|
28
|
-
- - "
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
version: 0.9.0
|
31
|
-
- - "<"
|
25
|
+
- - "~>"
|
32
26
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
27
|
+
version: '1.0'
|
34
28
|
- !ruby/object:Gem::Dependency
|
35
29
|
name: faraday_middleware
|
36
30
|
requirement: !ruby/object:Gem::Requirement
|
37
31
|
requirements:
|
38
|
-
- - "
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 0.9.0
|
41
|
-
- - "<"
|
32
|
+
- - "~>"
|
42
33
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
34
|
+
version: '1.0'
|
44
35
|
type: :runtime
|
45
36
|
prerelease: false
|
46
37
|
version_requirements: !ruby/object:Gem::Requirement
|
47
38
|
requirements:
|
48
|
-
- - "
|
49
|
-
- !ruby/object:Gem::Version
|
50
|
-
version: 0.9.0
|
51
|
-
- - "<"
|
39
|
+
- - "~>"
|
52
40
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
41
|
+
version: '1.0'
|
54
42
|
- !ruby/object:Gem::Dependency
|
55
43
|
name: bundler
|
56
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,103 +54,103 @@ dependencies:
|
|
66
54
|
- !ruby/object:Gem::Version
|
67
55
|
version: '1.3'
|
68
56
|
- !ruby/object:Gem::Dependency
|
69
|
-
name:
|
57
|
+
name: gem-release
|
70
58
|
requirement: !ruby/object:Gem::Requirement
|
71
59
|
requirements:
|
72
60
|
- - "~>"
|
73
61
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
62
|
+
version: '2.1'
|
75
63
|
type: :development
|
76
64
|
prerelease: false
|
77
65
|
version_requirements: !ruby/object:Gem::Requirement
|
78
66
|
requirements:
|
79
67
|
- - "~>"
|
80
68
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
69
|
+
version: '2.1'
|
82
70
|
- !ruby/object:Gem::Dependency
|
83
|
-
name:
|
71
|
+
name: pry-byebug
|
84
72
|
requirement: !ruby/object:Gem::Requirement
|
85
73
|
requirements:
|
86
74
|
- - "~>"
|
87
75
|
- !ruby/object:Gem::Version
|
88
|
-
version: '3.
|
76
|
+
version: '3.7'
|
89
77
|
type: :development
|
90
78
|
prerelease: false
|
91
79
|
version_requirements: !ruby/object:Gem::Requirement
|
92
80
|
requirements:
|
93
81
|
- - "~>"
|
94
82
|
- !ruby/object:Gem::Version
|
95
|
-
version: '3.
|
83
|
+
version: '3.7'
|
96
84
|
- !ruby/object:Gem::Dependency
|
97
|
-
name:
|
85
|
+
name: rake
|
98
86
|
requirement: !ruby/object:Gem::Requirement
|
99
87
|
requirements:
|
100
88
|
- - "~>"
|
101
89
|
- !ruby/object:Gem::Version
|
102
|
-
version:
|
90
|
+
version: '12.3'
|
103
91
|
type: :development
|
104
92
|
prerelease: false
|
105
93
|
version_requirements: !ruby/object:Gem::Requirement
|
106
94
|
requirements:
|
107
95
|
- - "~>"
|
108
96
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
97
|
+
version: '12.3'
|
110
98
|
- !ruby/object:Gem::Dependency
|
111
|
-
name:
|
99
|
+
name: rspec
|
112
100
|
requirement: !ruby/object:Gem::Requirement
|
113
101
|
requirements:
|
114
102
|
- - "~>"
|
115
103
|
- !ruby/object:Gem::Version
|
116
|
-
version:
|
104
|
+
version: '3.2'
|
117
105
|
type: :development
|
118
106
|
prerelease: false
|
119
107
|
version_requirements: !ruby/object:Gem::Requirement
|
120
108
|
requirements:
|
121
109
|
- - "~>"
|
122
110
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
111
|
+
version: '3.2'
|
124
112
|
- !ruby/object:Gem::Dependency
|
125
|
-
name:
|
113
|
+
name: rubocop
|
126
114
|
requirement: !ruby/object:Gem::Requirement
|
127
115
|
requirements:
|
128
116
|
- - "~>"
|
129
117
|
- !ruby/object:Gem::Version
|
130
|
-
version:
|
118
|
+
version: 0.87.1
|
131
119
|
type: :development
|
132
120
|
prerelease: false
|
133
121
|
version_requirements: !ruby/object:Gem::Requirement
|
134
122
|
requirements:
|
135
123
|
- - "~>"
|
136
124
|
- !ruby/object:Gem::Version
|
137
|
-
version:
|
125
|
+
version: 0.87.1
|
138
126
|
- !ruby/object:Gem::Dependency
|
139
|
-
name:
|
127
|
+
name: simplecov
|
140
128
|
requirement: !ruby/object:Gem::Requirement
|
141
129
|
requirements:
|
142
130
|
- - "~>"
|
143
131
|
- !ruby/object:Gem::Version
|
144
|
-
version:
|
132
|
+
version: 0.17.1
|
145
133
|
type: :development
|
146
134
|
prerelease: false
|
147
135
|
version_requirements: !ruby/object:Gem::Requirement
|
148
136
|
requirements:
|
149
137
|
- - "~>"
|
150
138
|
- !ruby/object:Gem::Version
|
151
|
-
version:
|
139
|
+
version: 0.17.1
|
152
140
|
- !ruby/object:Gem::Dependency
|
153
|
-
name:
|
141
|
+
name: webmock
|
154
142
|
requirement: !ruby/object:Gem::Requirement
|
155
143
|
requirements:
|
156
144
|
- - "~>"
|
157
145
|
- !ruby/object:Gem::Version
|
158
|
-
version:
|
146
|
+
version: '3.1'
|
159
147
|
type: :development
|
160
148
|
prerelease: false
|
161
149
|
version_requirements: !ruby/object:Gem::Requirement
|
162
150
|
requirements:
|
163
151
|
- - "~>"
|
164
152
|
- !ruby/object:Gem::Version
|
165
|
-
version:
|
153
|
+
version: '3.1'
|
166
154
|
description: This gem helps you to use the Marketo REST API
|
167
155
|
email:
|
168
156
|
- github@spam.raszi.hu
|
@@ -177,6 +165,7 @@ files:
|
|
177
165
|
- ".travis.yml"
|
178
166
|
- Gemfile
|
179
167
|
- Gemfile.lock
|
168
|
+
- LICENSE
|
180
169
|
- LICENSE.txt
|
181
170
|
- README.md
|
182
171
|
- Rakefile
|
@@ -184,6 +173,8 @@ files:
|
|
184
173
|
- lib/mrkt/concerns/authentication.rb
|
185
174
|
- lib/mrkt/concerns/connection.rb
|
186
175
|
- lib/mrkt/concerns/crud_activities.rb
|
176
|
+
- lib/mrkt/concerns/crud_asset_folders.rb
|
177
|
+
- lib/mrkt/concerns/crud_asset_static_lists.rb
|
187
178
|
- lib/mrkt/concerns/crud_campaigns.rb
|
188
179
|
- lib/mrkt/concerns/crud_custom_activities.rb
|
189
180
|
- lib/mrkt/concerns/crud_custom_objects.rb
|
@@ -194,12 +185,16 @@ files:
|
|
194
185
|
- lib/mrkt/concerns/import_custom_objects.rb
|
195
186
|
- lib/mrkt/concerns/import_leads.rb
|
196
187
|
- lib/mrkt/errors.rb
|
188
|
+
- lib/mrkt/faraday.rb
|
189
|
+
- lib/mrkt/faraday/params_encoder.rb
|
197
190
|
- lib/mrkt/faraday_middleware.rb
|
198
191
|
- lib/mrkt/faraday_middleware/response.rb
|
199
192
|
- lib/mrkt/version.rb
|
200
193
|
- mrkt.gemspec
|
201
194
|
- spec/concerns/authentication_spec.rb
|
202
195
|
- spec/concerns/crud_activities_spec.rb
|
196
|
+
- spec/concerns/crud_asset_folders_spec.rb
|
197
|
+
- spec/concerns/crud_asset_static_lists_spec.rb
|
203
198
|
- spec/concerns/crud_campaigns_spec.rb
|
204
199
|
- spec/concerns/crud_custom_activities_spec.rb
|
205
200
|
- spec/concerns/crud_custom_objects_spec.rb
|
@@ -209,6 +204,7 @@ files:
|
|
209
204
|
- spec/concerns/import_custom_objects_spec.rb
|
210
205
|
- spec/concerns/import_leads_spec.rb
|
211
206
|
- spec/errors_spec.rb
|
207
|
+
- spec/faraday/params_encoder_spec.rb
|
212
208
|
- spec/mkto_rest_spec.rb
|
213
209
|
- spec/spec_helper.rb
|
214
210
|
- spec/support/initialized_client.rb
|
@@ -225,21 +221,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
225
221
|
requirements:
|
226
222
|
- - "~>"
|
227
223
|
- !ruby/object:Gem::Version
|
228
|
-
version: '2.
|
224
|
+
version: '2.5'
|
229
225
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
230
226
|
requirements:
|
231
227
|
- - ">="
|
232
228
|
- !ruby/object:Gem::Version
|
233
229
|
version: '0'
|
234
230
|
requirements: []
|
235
|
-
|
236
|
-
rubygems_version: 2.6.12
|
231
|
+
rubygems_version: 3.0.3
|
237
232
|
signing_key:
|
238
233
|
specification_version: 4
|
239
234
|
summary: Marketo REST API Facade
|
240
235
|
test_files:
|
241
236
|
- spec/concerns/authentication_spec.rb
|
242
237
|
- spec/concerns/crud_activities_spec.rb
|
238
|
+
- spec/concerns/crud_asset_folders_spec.rb
|
239
|
+
- spec/concerns/crud_asset_static_lists_spec.rb
|
243
240
|
- spec/concerns/crud_campaigns_spec.rb
|
244
241
|
- spec/concerns/crud_custom_activities_spec.rb
|
245
242
|
- spec/concerns/crud_custom_objects_spec.rb
|
@@ -249,6 +246,7 @@ test_files:
|
|
249
246
|
- spec/concerns/import_custom_objects_spec.rb
|
250
247
|
- spec/concerns/import_leads_spec.rb
|
251
248
|
- spec/errors_spec.rb
|
249
|
+
- spec/faraday/params_encoder_spec.rb
|
252
250
|
- spec/mkto_rest_spec.rb
|
253
251
|
- spec/spec_helper.rb
|
254
252
|
- spec/support/initialized_client.rb
|