soapy_cake 2.2.6 → 2.2.7
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/Gemfile +1 -1
- data/api.yml +1 -0
- data/lib/soapy_cake/admin_track.rb +1 -1
- data/lib/soapy_cake/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/SoapyCake_AdminTrack/_update_conversion/updates_a_conversion.yml +29 -15
- data/spec/lib/soapy_cake/admin_track_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd16c8da8348a5df3c47886020f1193f106f316cfe258d46bfa3b2eaf9a3517c
|
4
|
+
data.tar.gz: adda4a48b4e65b76f6ffa4c33b310838e06b784cf3b7bbf967ce6f11bc9e61c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d147c287a7cc8a4a0476d2c0414229f5e3ffde35b8c6e2aed3bab018323a2d18c4f983cb265cbe800a823d29d77f0c23bdbc5b6c2cf344082299bcd229566113
|
7
|
+
data.tar.gz: b496919bea856baa8b6ce2749a4c36b94542fabfcc77fc895f6b05f1d0bfd70b83c266ac56aa636965e338f09fe2994ab39ef86da2b3f7faed4796f706b16b15
|
data/Gemfile
CHANGED
@@ -7,6 +7,6 @@ gemspec
|
|
7
7
|
group :development, :test do
|
8
8
|
gem 'codeclimate-test-reporter', require: false
|
9
9
|
gem 'rspec_junit_formatter'
|
10
|
-
gem 'rubocop-ci', git: 'https://github.com/
|
10
|
+
gem 'rubocop-ci', git: 'https://github.com/ComboStrikeHQ/rubocop-ci'
|
11
11
|
gem 'simplecov'
|
12
12
|
end
|
data/api.yml
CHANGED
@@ -27,7 +27,7 @@ module SoapyCake
|
|
27
27
|
def update_conversion(opts)
|
28
28
|
require_params(opts, %i[offer_id payout])
|
29
29
|
|
30
|
-
run Request.new(:admin, :track, :
|
30
|
+
run Request.new(:admin, :track, :update_conversion_events, CONVERSION_DEFAULTS.merge(opts))
|
31
31
|
end
|
32
32
|
|
33
33
|
def decrypt_affiliate_link(opts = {})
|
data/lib/soapy_cake/version.rb
CHANGED
data/spec/fixtures/vcr_cassettes/SoapyCake_AdminTrack/_update_conversion/updates_a_conversion.yml
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://cake-partner-domain.com/api/
|
5
|
+
uri: https://cake-partner-domain.com/api/6/track.asmx
|
6
6
|
body:
|
7
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/6/">
|
11
11
|
<env:Header/>
|
12
12
|
<env:Body>
|
13
|
-
<cake:
|
13
|
+
<cake:UpdateConversionEvents>
|
14
14
|
<cake:api_key>cake-api-key</cake:api_key>
|
15
15
|
<cake:add_to_existing_payout>false</cake:add_to_existing_payout>
|
16
16
|
<cake:received_option>total_revenue</cake:received_option>
|
@@ -23,37 +23,51 @@ http_interactions:
|
|
23
23
|
<cake:conversion_id>145211</cake:conversion_id>
|
24
24
|
<cake:offer_id>5032</cake:offer_id>
|
25
25
|
<cake:payout>0.75</cake:payout>
|
26
|
-
</cake:
|
26
|
+
</cake:UpdateConversionEvents>
|
27
27
|
</env:Body>
|
28
28
|
</env:Envelope>
|
29
29
|
headers:
|
30
30
|
Content-Type:
|
31
31
|
- application/soap+xml;charset=UTF-8
|
32
|
+
Accept-Encoding:
|
33
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
34
|
+
Accept:
|
35
|
+
- "*/*"
|
36
|
+
User-Agent:
|
37
|
+
- Ruby
|
32
38
|
response:
|
33
39
|
status:
|
34
40
|
code: 200
|
35
41
|
message: OK
|
36
42
|
headers:
|
43
|
+
Access-Control-Allow-Credentials:
|
44
|
+
- 'true'
|
45
|
+
Access-Control-Allow-Headers:
|
46
|
+
- Origin, X-Requested-With, Content-Type, Accept
|
47
|
+
Access-Control-Allow-Methods:
|
48
|
+
- POST,GET,OPTIONS,PUT,DELETE
|
49
|
+
Access-Control-Max-Age:
|
50
|
+
- '1728000'
|
37
51
|
Cache-Control:
|
38
52
|
- private, max-age=0
|
53
|
+
Content-Length:
|
54
|
+
- '470'
|
39
55
|
Content-Type:
|
40
56
|
- application/soap+xml; charset=utf-8
|
41
|
-
|
42
|
-
-
|
57
|
+
Date:
|
58
|
+
- Mon, 20 Jan 2020 14:34:11 GMT
|
43
59
|
X-Aspnet-Version:
|
44
60
|
- 4.0.30319
|
45
61
|
X-Powered-By:
|
46
62
|
- ASP.NET
|
47
|
-
|
48
|
-
-
|
49
|
-
Content-Length:
|
50
|
-
- '446'
|
63
|
+
Connection:
|
64
|
+
- close
|
51
65
|
body:
|
52
66
|
encoding: UTF-8
|
53
67
|
string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
|
54
|
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><
|
55
|
-
xmlns="http://cakemarketing.com/api/
|
56
|
-
Updated</message></
|
68
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><UpdateConversionEventsResponse
|
69
|
+
xmlns="http://cakemarketing.com/api/6/"><UpdateConversionEventsResult><success>true</success><message>Conversion
|
70
|
+
Updated</message></UpdateConversionEventsResult></UpdateConversionEventsResponse></soap:Body></soap:Envelope>
|
57
71
|
http_version:
|
58
|
-
recorded_at: Mon,
|
59
|
-
recorded_with: VCR
|
72
|
+
recorded_at: Mon, 20 Jan 2020 14:34:12 GMT
|
73
|
+
recorded_with: VCR 4.0.0
|
@@ -15,7 +15,7 @@ RSpec.describe SoapyCake::AdminTrack do
|
|
15
15
|
|
16
16
|
describe '#update_conversion' do
|
17
17
|
let(:service) { :track }
|
18
|
-
let(:cake_method) { :
|
18
|
+
let(:cake_method) { :update_conversion_events }
|
19
19
|
let(:method) { :update_conversion }
|
20
20
|
let(:cake_opts) { described_class::CONVERSION_DEFAULTS.merge(opts) }
|
21
21
|
let(:opts) { { offer_id: 42, payout: 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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ad2games GmbH
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|