soapy_cake 2.2.5 → 2.2.6
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.
- checksums.yaml +4 -4
- data/.circleci/config.yml +64 -0
- data/Gemfile +1 -0
- data/README.md +2 -3
- data/lib/soapy_cake/admin_track.rb +1 -3
- data/lib/soapy_cake/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/SoapyCake_AdminTrack/_mass_conversion_insert/inserts_conversions.yml +14 -6
- metadata +3 -4
- data/circle.yml +0 -8
- data/lib/soapy_cake/request_mass_conversion_insert.rb +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 461859e423b3ccbde017b5d8e82e11eb8ec296efb027e433959b599e1d0bc7d5
|
4
|
+
data.tar.gz: 490b1c070be1195cb83b711ce3b9509c26994310b6f8827f7b439542dbfbf08d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 379278cf411f584d3e5a86a6aef9bb33ac026b9b405d84d9e09a6d7e5e6eb7e29b7ceacfecefe6408a3b758103e8189af597d7e5cbb0b9f2a0a4e15a1c422d86
|
7
|
+
data.tar.gz: 1dd33e5f76bae5a23a3a3cdbd7aa926eefb6ab91cc6a3a7bb5208a6daae8e006cebb1ced08be1cdd2004049b447fe2a41c7dfb0891bb9848b72384f89c2ba4f1
|
@@ -0,0 +1,64 @@
|
|
1
|
+
version: 2
|
2
|
+
jobs:
|
3
|
+
setup:
|
4
|
+
docker: &docker
|
5
|
+
- image: circleci/ruby:2.5.1-node
|
6
|
+
environment:
|
7
|
+
BUNDLE_PATH: vendor/bundle
|
8
|
+
|
9
|
+
steps:
|
10
|
+
- checkout
|
11
|
+
|
12
|
+
- run:
|
13
|
+
name: Check if Ruby versions match
|
14
|
+
command: test "$(ruby -v | grep -oP '\d\.\d\.\d')" = "$(cat .ruby-version)"
|
15
|
+
|
16
|
+
- run:
|
17
|
+
name: Install dependencies
|
18
|
+
command: bundle install --jobs=4 --retry=3
|
19
|
+
|
20
|
+
- persist_to_workspace:
|
21
|
+
root: .
|
22
|
+
paths:
|
23
|
+
- .
|
24
|
+
|
25
|
+
lint:
|
26
|
+
docker: *docker
|
27
|
+
steps:
|
28
|
+
- attach_workspace:
|
29
|
+
at: .
|
30
|
+
|
31
|
+
- run: bundle exec rake rubocop
|
32
|
+
|
33
|
+
test:
|
34
|
+
docker: *docker
|
35
|
+
steps:
|
36
|
+
- attach_workspace:
|
37
|
+
at: .
|
38
|
+
|
39
|
+
- run:
|
40
|
+
name: run tests
|
41
|
+
command: |
|
42
|
+
mkdir /tmp/test-results
|
43
|
+
|
44
|
+
bundle exec rspec --format progress \
|
45
|
+
--format RspecJunitFormatter \
|
46
|
+
--out /tmp/test-results/rspec.xml \
|
47
|
+
--format progress
|
48
|
+
|
49
|
+
- run: bundle exec codeclimate-test-reporter
|
50
|
+
|
51
|
+
- store_test_results:
|
52
|
+
path: /tmp/test-results
|
53
|
+
|
54
|
+
workflows:
|
55
|
+
version: 2
|
56
|
+
lint-and-test:
|
57
|
+
jobs:
|
58
|
+
- setup
|
59
|
+
- lint:
|
60
|
+
requires:
|
61
|
+
- setup
|
62
|
+
- test:
|
63
|
+
requires:
|
64
|
+
- setup
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
# SoapyCake
|
2
|
-
[](https://codeclimate.com/github/ad2games/soapy_cake/maintainability)
|
3
|
+
[](https://codeclimate.com/github/ad2games/soapy_cake/test_coverage)
|
4
4
|
[](http://rubygems.org/gems/soapy_cake)
|
5
|
-
[](https://gemnasium.com/ad2games/soapy_cake)
|
6
5
|
[](https://circleci.com/gh/ad2games/soapy_cake)
|
7
6
|
|
8
7
|
Simple client library for [cake](http://getcake.com).
|
@@ -1,7 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'soapy_cake/request_mass_conversion_insert'
|
4
|
-
|
5
3
|
module SoapyCake
|
6
4
|
class AdminTrack < Client
|
7
5
|
include Helper
|
@@ -23,7 +21,7 @@ module SoapyCake
|
|
23
21
|
campaign_id creative_id total_to_insert
|
24
22
|
])
|
25
23
|
|
26
|
-
run
|
24
|
+
run Request.new(:admin, :track, :mass_conversion_insert, opts)
|
27
25
|
end
|
28
26
|
|
29
27
|
def update_conversion(opts)
|
data/lib/soapy_cake/version.rb
CHANGED
@@ -4,10 +4,10 @@ http_interactions:
|
|
4
4
|
method: post
|
5
5
|
uri: https://cake-partner-domain.com/api/2/track.asmx
|
6
6
|
body:
|
7
|
-
encoding:
|
7
|
+
encoding: UTF-8
|
8
8
|
string: |
|
9
9
|
<?xml version="1.0"?>
|
10
|
-
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:cake="http://cakemarketing.com/api/
|
10
|
+
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:cake="http://cakemarketing.com/api/2/">
|
11
11
|
<env:Header/>
|
12
12
|
<env:Body>
|
13
13
|
<cake:MassConversionInsert>
|
@@ -39,6 +39,14 @@ http_interactions:
|
|
39
39
|
code: 200
|
40
40
|
message: OK
|
41
41
|
headers:
|
42
|
+
Access-Control-Allow-Credentials:
|
43
|
+
- 'true'
|
44
|
+
Access-Control-Allow-Headers:
|
45
|
+
- Origin, X-Requested-With, Content-Type, Accept
|
46
|
+
Access-Control-Allow-Methods:
|
47
|
+
- POST,GET,OPTIONS,PUT,DELETE
|
48
|
+
Access-Control-Max-Age:
|
49
|
+
- '1728000'
|
42
50
|
Cache-Control:
|
43
51
|
- private, max-age=0
|
44
52
|
Content-Length:
|
@@ -46,7 +54,7 @@ http_interactions:
|
|
46
54
|
Content-Type:
|
47
55
|
- application/soap+xml; charset=utf-8
|
48
56
|
Date:
|
49
|
-
-
|
57
|
+
- Thu, 30 Aug 2018 15:39:26 GMT
|
50
58
|
X-Aspnet-Version:
|
51
59
|
- 4.0.30319
|
52
60
|
X-Powered-By:
|
@@ -57,8 +65,8 @@ http_interactions:
|
|
57
65
|
encoding: UTF-8
|
58
66
|
string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
|
59
67
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><MassConversionInsertResponse
|
60
|
-
xmlns="http://cakemarketing.com/api/
|
68
|
+
xmlns="http://cakemarketing.com/api/2/"><MassConversionInsertResult><success>true</success><message>Conversions
|
61
69
|
Inserted</message></MassConversionInsertResult></MassConversionInsertResponse></soap:Body></soap:Envelope>
|
62
70
|
http_version:
|
63
|
-
recorded_at:
|
64
|
-
recorded_with: VCR
|
71
|
+
recorded_at: Thu, 30 Aug 2018 15:39:27 GMT
|
72
|
+
recorded_with: VCR 4.0.0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soapy_cake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ad2games GmbH
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -185,6 +185,7 @@ executables: []
|
|
185
185
|
extensions: []
|
186
186
|
extra_rdoc_files: []
|
187
187
|
files:
|
188
|
+
- ".circleci/config.yml"
|
188
189
|
- ".gitignore"
|
189
190
|
- ".rspec"
|
190
191
|
- ".rubocop_todo.yml"
|
@@ -194,7 +195,6 @@ files:
|
|
194
195
|
- README.md
|
195
196
|
- Rakefile
|
196
197
|
- api.yml
|
197
|
-
- circle.yml
|
198
198
|
- lib/soapy_cake.rb
|
199
199
|
- lib/soapy_cake/admin.rb
|
200
200
|
- lib/soapy_cake/admin_addedit.rb
|
@@ -208,7 +208,6 @@ files:
|
|
208
208
|
- lib/soapy_cake/helper.rb
|
209
209
|
- lib/soapy_cake/modification_type.rb
|
210
210
|
- lib/soapy_cake/request.rb
|
211
|
-
- lib/soapy_cake/request_mass_conversion_insert.rb
|
212
211
|
- lib/soapy_cake/response.rb
|
213
212
|
- lib/soapy_cake/response_value.rb
|
214
213
|
- lib/soapy_cake/time_converter.rb
|
data/circle.yml
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module SoapyCake
|
4
|
-
class RequestMassConversionInsert < Request
|
5
|
-
private
|
6
|
-
|
7
|
-
# There is a bug in MassConversionInsert version 2 API in cake,
|
8
|
-
# in which xmlns is still using version 1.
|
9
|
-
def xml_namespaces
|
10
|
-
{
|
11
|
-
'xmlns:env' => 'http://www.w3.org/2003/05/soap-envelope',
|
12
|
-
'xmlns:cake' => 'http://cakemarketing.com/api/1/'
|
13
|
-
}
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|