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: 958007dac1d1831b253d1e5b6a264679070df4a1
4
- data.tar.gz: c7442bc681e1085f0217552921056d22f34a624e
3
+ metadata.gz: 2d46dab966a8ad1aa46895f6c860b97568a9d910
4
+ data.tar.gz: 044eb21898e409c2ec38e108d34f506722f8932b
5
5
  SHA512:
6
- metadata.gz: 71ab8c4c8d1c2f618c6580fadca8efcc857ab0e58d5c20922ad6ac393db55252da7de6573c901ff36da1aead38a477e561341c90a4ce4a27ca1cfdba31e052ce
7
- data.tar.gz: 1afae96d75ad512a0db7ed37d826e503708cb211435b4f6dd92bb82140c41fcccec8599fa829f5deacc91711d7320b37f616e2736abfd932ebd240ed2341c960
6
+ metadata.gz: d2c7c8f96c241f95e8f8b34292ce24ba40d84986f7e05aeca319a4b6278e656eac043ce1eca68574139b648a9d5cbfd6a196a6902e72a219683673d444cfe938
7
+ data.tar.gz: b44e08bbb55e1a0c89ff007408fd270ebb232df84fd443fad0a1cb9cb3c8846c29440d5f066c0d8d31fac27781effd36d979d45365005349cb0ae09f1cc24eee
@@ -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
- ignore: 3,
44
- no_adv_aff: 4,
45
- no_adv_no_aff: 5
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,
@@ -1,3 +1,3 @@
1
1
  module SoapyCake
2
- VERSION = '1.6.0'
2
+ VERSION = '1.6.1'
3
3
  end
@@ -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>3</cake:conversion_cap_behavior>
36
- <cake:conversion_behavior_on_redirect>3</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 09:39:11 GMT
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
- 9613 Created</message><success_info><offer_id>9613</offer_id><offer_contract_id>4000</offer_contract_id><campaign_id>15852</campaign_id><creative_id>10134</creative_id></success_info></OfferResult></OfferResponse></soap:Body></soap:Envelope>
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
- expect(result).to include(
58
- creative_id: 10134,
59
- offer_contract_id: 4000,
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soapy_cake
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ad2games GmbH