soapy_bing 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.env +6 -0
- data/.gitignore +6 -0
- data/.rspec +2 -0
- data/.ruby-version +1 -0
- data/Gemfile +6 -0
- data/README.md +63 -0
- data/Rakefile +7 -0
- data/circle.yml +6 -0
- data/lib/soapy_bing/account.rb +12 -0
- data/lib/soapy_bing/ads/reports/base.rb +83 -0
- data/lib/soapy_bing/ads/reports/campaign_performance_report.rb +23 -0
- data/lib/soapy_bing/ads/reports/parsers/csv_parser.rb +45 -0
- data/lib/soapy_bing/ads/reports/parsers.rb +1 -0
- data/lib/soapy_bing/ads/reports.rb +3 -0
- data/lib/soapy_bing/ads.rb +22 -0
- data/lib/soapy_bing/helpers/class_name.rb +9 -0
- data/lib/soapy_bing/helpers.rb +1 -0
- data/lib/soapy_bing/oauth_credentials.rb +43 -0
- data/lib/soapy_bing/param_guard.rb +26 -0
- data/lib/soapy_bing/soap/request/base.rb +37 -0
- data/lib/soapy_bing/soap/request/poll_generate_report_request.rb +33 -0
- data/lib/soapy_bing/soap/request/submit_generate_report_request.rb +16 -0
- data/lib/soapy_bing/soap/request.rb +3 -0
- data/lib/soapy_bing/soap/response/base.rb +16 -0
- data/lib/soapy_bing/soap/response/payload.rb +15 -0
- data/lib/soapy_bing/soap/response/poll_generate_report_response.rb +13 -0
- data/lib/soapy_bing/soap/response/report_status.rb +33 -0
- data/lib/soapy_bing/soap/response/submit_generate_report_response.rb +11 -0
- data/lib/soapy_bing/soap/response.rb +5 -0
- data/lib/soapy_bing/soap/template_renderer.rb +21 -0
- data/lib/soapy_bing/soap/templates/poll_generate_report.erb.xml +18 -0
- data/lib/soapy_bing/soap/templates/submit_generate_report.erb.xml +46 -0
- data/lib/soapy_bing/soap.rb +3 -0
- data/lib/soapy_bing/version.rb +3 -0
- data/lib/soapy_bing.rb +11 -0
- data/lib/tasks/console.rake +5 -0
- data/lib/tasks/coverage.rake +6 -0
- data/lib/tasks/spec.rake +4 -0
- data/soapy_bing.gemspec +34 -0
- data/spec/fixtures/reports/campaign_performance_report.csv +37 -0
- data/spec/fixtures/reports/campaign_performance_report.json +146 -0
- data/spec/fixtures/soap_templates/simple.erb.xml +2 -0
- data/spec/fixtures/vcr_cassettes/campaign_performance_report/with_pending_status.yml +168 -0
- data/spec/fixtures/vcr_cassettes/campaign_performance_report/with_successful_status.yml +284 -0
- data/spec/fixtures/vcr_cassettes/oauth_credentials/access_token/with_successful_status.yml +42 -0
- data/spec/integration/soapy_bing/ads/reports/campaign_performance_report_spec.rb +39 -0
- data/spec/integration/soapy_bing/oauth_credentials_spec.rb +10 -0
- data/spec/simplecov_setup.rb +9 -0
- data/spec/soapy_bing/account_spec.rb +80 -0
- data/spec/soapy_bing/ads/reports/campaign_performance_report_spec.rb +41 -0
- data/spec/soapy_bing/ads/reports/parsers/csv_parser_spec.rb +31 -0
- data/spec/soapy_bing/ads_spec.rb +32 -0
- data/spec/soapy_bing/helpers/class_name_spec.rb +14 -0
- data/spec/soapy_bing/oauth_credentials_spec.rb +108 -0
- data/spec/soapy_bing/param_guard_spec.rb +43 -0
- data/spec/soapy_bing/soap/request/base_spec.rb +54 -0
- data/spec/soapy_bing/soap/request/poll_generate_report_request_spec.rb +59 -0
- data/spec/soapy_bing/soap/response/base_spec.rb +12 -0
- data/spec/soapy_bing/soap/response/payload_spec.rb +25 -0
- data/spec/soapy_bing/soap/response/poll_generate_report_response_spec.rb +25 -0
- data/spec/soapy_bing/soap/response/report_status_spec.rb +91 -0
- data/spec/soapy_bing/soap/response/submit_generate_report_response_spec.rb +19 -0
- data/spec/soapy_bing/soap/template_renderer_spec.rb +24 -0
- data/spec/spec_helper.rb +32 -0
- data/spec/support/dotenv.rb +3 -0
- data/spec/support/vcr.rb +101 -0
- metadata +305 -0
metadata
ADDED
@@ -0,0 +1,305 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: soapy_bing
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- ad2games GmbH
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-11-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: erubis
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activesupport
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: httparty
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: retryable
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.0.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.0.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubyzip
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.0.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.0.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: bundler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rake
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rspec
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 3.0.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 3.0.0
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: pry
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: vcr
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: webmock
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: dotenv
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
description: Simple client for the Bing Ads APIs (https://developers.bingads.microsoft.com)
|
182
|
+
email:
|
183
|
+
- developers@ad2games.com
|
184
|
+
executables: []
|
185
|
+
extensions: []
|
186
|
+
extra_rdoc_files: []
|
187
|
+
files:
|
188
|
+
- ".env"
|
189
|
+
- ".gitignore"
|
190
|
+
- ".rspec"
|
191
|
+
- ".ruby-version"
|
192
|
+
- Gemfile
|
193
|
+
- README.md
|
194
|
+
- Rakefile
|
195
|
+
- circle.yml
|
196
|
+
- lib/soapy_bing.rb
|
197
|
+
- lib/soapy_bing/account.rb
|
198
|
+
- lib/soapy_bing/ads.rb
|
199
|
+
- lib/soapy_bing/ads/reports.rb
|
200
|
+
- lib/soapy_bing/ads/reports/base.rb
|
201
|
+
- lib/soapy_bing/ads/reports/campaign_performance_report.rb
|
202
|
+
- lib/soapy_bing/ads/reports/parsers.rb
|
203
|
+
- lib/soapy_bing/ads/reports/parsers/csv_parser.rb
|
204
|
+
- lib/soapy_bing/helpers.rb
|
205
|
+
- lib/soapy_bing/helpers/class_name.rb
|
206
|
+
- lib/soapy_bing/oauth_credentials.rb
|
207
|
+
- lib/soapy_bing/param_guard.rb
|
208
|
+
- lib/soapy_bing/soap.rb
|
209
|
+
- lib/soapy_bing/soap/request.rb
|
210
|
+
- lib/soapy_bing/soap/request/base.rb
|
211
|
+
- lib/soapy_bing/soap/request/poll_generate_report_request.rb
|
212
|
+
- lib/soapy_bing/soap/request/submit_generate_report_request.rb
|
213
|
+
- lib/soapy_bing/soap/response.rb
|
214
|
+
- lib/soapy_bing/soap/response/base.rb
|
215
|
+
- lib/soapy_bing/soap/response/payload.rb
|
216
|
+
- lib/soapy_bing/soap/response/poll_generate_report_response.rb
|
217
|
+
- lib/soapy_bing/soap/response/report_status.rb
|
218
|
+
- lib/soapy_bing/soap/response/submit_generate_report_response.rb
|
219
|
+
- lib/soapy_bing/soap/template_renderer.rb
|
220
|
+
- lib/soapy_bing/soap/templates/poll_generate_report.erb.xml
|
221
|
+
- lib/soapy_bing/soap/templates/submit_generate_report.erb.xml
|
222
|
+
- lib/soapy_bing/version.rb
|
223
|
+
- lib/tasks/console.rake
|
224
|
+
- lib/tasks/coverage.rake
|
225
|
+
- lib/tasks/spec.rake
|
226
|
+
- soapy_bing.gemspec
|
227
|
+
- spec/fixtures/reports/campaign_performance_report.csv
|
228
|
+
- spec/fixtures/reports/campaign_performance_report.json
|
229
|
+
- spec/fixtures/soap_templates/simple.erb.xml
|
230
|
+
- spec/fixtures/vcr_cassettes/campaign_performance_report/with_pending_status.yml
|
231
|
+
- spec/fixtures/vcr_cassettes/campaign_performance_report/with_successful_status.yml
|
232
|
+
- spec/fixtures/vcr_cassettes/oauth_credentials/access_token/with_successful_status.yml
|
233
|
+
- spec/integration/soapy_bing/ads/reports/campaign_performance_report_spec.rb
|
234
|
+
- spec/integration/soapy_bing/oauth_credentials_spec.rb
|
235
|
+
- spec/simplecov_setup.rb
|
236
|
+
- spec/soapy_bing/account_spec.rb
|
237
|
+
- spec/soapy_bing/ads/reports/campaign_performance_report_spec.rb
|
238
|
+
- spec/soapy_bing/ads/reports/parsers/csv_parser_spec.rb
|
239
|
+
- spec/soapy_bing/ads_spec.rb
|
240
|
+
- spec/soapy_bing/helpers/class_name_spec.rb
|
241
|
+
- spec/soapy_bing/oauth_credentials_spec.rb
|
242
|
+
- spec/soapy_bing/param_guard_spec.rb
|
243
|
+
- spec/soapy_bing/soap/request/base_spec.rb
|
244
|
+
- spec/soapy_bing/soap/request/poll_generate_report_request_spec.rb
|
245
|
+
- spec/soapy_bing/soap/response/base_spec.rb
|
246
|
+
- spec/soapy_bing/soap/response/payload_spec.rb
|
247
|
+
- spec/soapy_bing/soap/response/poll_generate_report_response_spec.rb
|
248
|
+
- spec/soapy_bing/soap/response/report_status_spec.rb
|
249
|
+
- spec/soapy_bing/soap/response/submit_generate_report_response_spec.rb
|
250
|
+
- spec/soapy_bing/soap/template_renderer_spec.rb
|
251
|
+
- spec/spec_helper.rb
|
252
|
+
- spec/support/dotenv.rb
|
253
|
+
- spec/support/vcr.rb
|
254
|
+
homepage: http://ad2games.com
|
255
|
+
licenses:
|
256
|
+
- MIT
|
257
|
+
metadata: {}
|
258
|
+
post_install_message:
|
259
|
+
rdoc_options: []
|
260
|
+
require_paths:
|
261
|
+
- lib
|
262
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
263
|
+
requirements:
|
264
|
+
- - ">="
|
265
|
+
- !ruby/object:Gem::Version
|
266
|
+
version: '0'
|
267
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - ">="
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: '0'
|
272
|
+
requirements: []
|
273
|
+
rubyforge_project:
|
274
|
+
rubygems_version: 2.4.5.1
|
275
|
+
signing_key:
|
276
|
+
specification_version: 4
|
277
|
+
summary: Simple client for the Bing Ads APIs
|
278
|
+
test_files:
|
279
|
+
- spec/fixtures/reports/campaign_performance_report.csv
|
280
|
+
- spec/fixtures/reports/campaign_performance_report.json
|
281
|
+
- spec/fixtures/soap_templates/simple.erb.xml
|
282
|
+
- spec/fixtures/vcr_cassettes/campaign_performance_report/with_pending_status.yml
|
283
|
+
- spec/fixtures/vcr_cassettes/campaign_performance_report/with_successful_status.yml
|
284
|
+
- spec/fixtures/vcr_cassettes/oauth_credentials/access_token/with_successful_status.yml
|
285
|
+
- spec/integration/soapy_bing/ads/reports/campaign_performance_report_spec.rb
|
286
|
+
- spec/integration/soapy_bing/oauth_credentials_spec.rb
|
287
|
+
- spec/simplecov_setup.rb
|
288
|
+
- spec/soapy_bing/account_spec.rb
|
289
|
+
- spec/soapy_bing/ads/reports/campaign_performance_report_spec.rb
|
290
|
+
- spec/soapy_bing/ads/reports/parsers/csv_parser_spec.rb
|
291
|
+
- spec/soapy_bing/ads_spec.rb
|
292
|
+
- spec/soapy_bing/helpers/class_name_spec.rb
|
293
|
+
- spec/soapy_bing/oauth_credentials_spec.rb
|
294
|
+
- spec/soapy_bing/param_guard_spec.rb
|
295
|
+
- spec/soapy_bing/soap/request/base_spec.rb
|
296
|
+
- spec/soapy_bing/soap/request/poll_generate_report_request_spec.rb
|
297
|
+
- spec/soapy_bing/soap/response/base_spec.rb
|
298
|
+
- spec/soapy_bing/soap/response/payload_spec.rb
|
299
|
+
- spec/soapy_bing/soap/response/poll_generate_report_response_spec.rb
|
300
|
+
- spec/soapy_bing/soap/response/report_status_spec.rb
|
301
|
+
- spec/soapy_bing/soap/response/submit_generate_report_response_spec.rb
|
302
|
+
- spec/soapy_bing/soap/template_renderer_spec.rb
|
303
|
+
- spec/spec_helper.rb
|
304
|
+
- spec/support/dotenv.rb
|
305
|
+
- spec/support/vcr.rb
|