soapy_cake 1.6.0 → 1.6.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2d46dab966a8ad1aa46895f6c860b97568a9d910
|
|
4
|
+
data.tar.gz: 044eb21898e409c2ec38e108d34f506722f8932b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d2c7c8f96c241f95e8f8b34292ce24ba40d84986f7e05aeca319a4b6278e656eac043ce1eca68574139b648a9d5cbfd6a196a6902e72a219683673d444cfe938
|
|
7
|
+
data.tar.gz: b44e08bbb55e1a0c89ff007408fd270ebb232df84fd443fad0a1cb9cb3c8846c29440d5f066c0d8d31fac27781effd36d979d45365005349cb0ae09f1cc24eee
|
data/lib/soapy_cake/const.rb
CHANGED
|
@@ -36,13 +36,14 @@ module SoapyCake
|
|
|
36
36
|
fixed: 4,
|
|
37
37
|
revshare: 5
|
|
38
38
|
},
|
|
39
|
+
# The ID mapping in the API docs is wrong, these values are taken from the UI.
|
|
39
40
|
conversion_behaviour_id: {
|
|
40
41
|
system: 0,
|
|
41
42
|
adv_off: 1,
|
|
42
43
|
adv_no_aff: 2,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
no_adv_aff: 3,
|
|
45
|
+
no_adv_no_aff: 4,
|
|
46
|
+
ignore: 5
|
|
46
47
|
},
|
|
47
48
|
cap_type_id: {
|
|
48
49
|
click: 1,
|
data/lib/soapy_cake/version.rb
CHANGED
|
@@ -32,8 +32,8 @@ http_interactions:
|
|
|
32
32
|
<cake:thankyou_link>http://www.example.com/</cake:thankyou_link>
|
|
33
33
|
<cake:from_lines>from</cake:from_lines>
|
|
34
34
|
<cake:subject_lines>subject</cake:subject_lines>
|
|
35
|
-
<cake:conversion_cap_behavior>
|
|
36
|
-
<cake:conversion_behavior_on_redirect>
|
|
35
|
+
<cake:conversion_cap_behavior>5</cake:conversion_cap_behavior>
|
|
36
|
+
<cake:conversion_behavior_on_redirect>5</cake:conversion_behavior_on_redirect>
|
|
37
37
|
<cake:advertiser_id>15886</cake:advertiser_id>
|
|
38
38
|
<cake:vertical_id>41</cake:vertical_id>
|
|
39
39
|
<cake:postback_url_ms_delay>60</cake:postback_url_ms_delay>
|
|
@@ -94,7 +94,7 @@ http_interactions:
|
|
|
94
94
|
X-Powered-By:
|
|
95
95
|
- ASP.NET
|
|
96
96
|
Date:
|
|
97
|
-
- Thu, 02 Apr 2015
|
|
97
|
+
- Thu, 02 Apr 2015 11:05:58 GMT
|
|
98
98
|
Content-Length:
|
|
99
99
|
- '563'
|
|
100
100
|
body:
|
|
@@ -102,7 +102,7 @@ http_interactions:
|
|
|
102
102
|
string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
|
|
103
103
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><OfferResponse
|
|
104
104
|
xmlns="http://cakemarketing.com/api/5/"><OfferResult><success>true</success><message>Offer
|
|
105
|
-
|
|
105
|
+
9655 Created</message><success_info><offer_id>9655</offer_id><offer_contract_id>4161</offer_contract_id><campaign_id>16013</campaign_id><creative_id>10175</creative_id></success_info></OfferResult></OfferResponse></soap:Body></soap:Envelope>
|
|
106
106
|
http_version:
|
|
107
107
|
recorded_at: Tue, 17 Feb 2015 12:00:00 GMT
|
|
108
108
|
recorded_with: VCR 2.9.3
|
|
@@ -54,11 +54,9 @@ RSpec.describe 'ADDEDIT integration test' do
|
|
|
54
54
|
testing_instructions: 'TEST4'
|
|
55
55
|
)
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
offer_id: 9613
|
|
61
|
-
)
|
|
57
|
+
%i(creative_id offer_contract_id offer_id).each do |key|
|
|
58
|
+
expect(result[key]).to be > 0
|
|
59
|
+
end
|
|
62
60
|
end
|
|
63
61
|
|
|
64
62
|
it 'updates an offer', :vcr do
|