soapy_cake 1.4.0 → 1.5.0
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 +2 -2
- data/Rakefile +1 -0
- data/circle.yml +3 -0
- data/lib/soapy_cake/admin_addedit.rb +5 -0
- data/lib/soapy_cake/const.rb +9 -9
- data/lib/soapy_cake/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/ADDEDIT_integration_test/offers/creates_an_offer.yml +5 -5
- data/spec/lib/soapy_cake/addedit_integration_spec.rb +7 -4
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63cbcc04e20f7fbe8cf51ceaba0b6d42874caee6
|
4
|
+
data.tar.gz: e203b1955f3ff6cc0dad787d0105ed771168106b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3e2017089a8eb0fd1893c4dfc8d7bc81197c51d69ef0a4f666175238c7aa42a9dac1d4aa7b663df7b424e8ac158f739a35bfca55f8afa787d75a211c2ebda11
|
7
|
+
data.tar.gz: bd253fbebfcd9c3d4d15e9c55e913f516c9655329d3d7338eaa1ab4c7b6b86236a42e87bd9639b5ecc3aba3b44618c257bd5d869ee2d018c1a554c52e29c8571
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/circle.yml
ADDED
@@ -108,6 +108,11 @@ module SoapyCake
|
|
108
108
|
|
109
109
|
translate_values!(opts, %i(currency_id offer_status_id offer_type_id price_format_id))
|
110
110
|
|
111
|
+
%i(conversion_cap_behavior conversion_behavior_on_redirect).each do |key|
|
112
|
+
next unless opts[key]
|
113
|
+
opts[key] = const_lookup(:conversion_behaviour_id, opts[key])
|
114
|
+
end
|
115
|
+
|
111
116
|
opts.reverse_merge!(
|
112
117
|
offer_name: '',
|
113
118
|
third_party_name: '',
|
data/lib/soapy_cake/const.rb
CHANGED
@@ -4,37 +4,37 @@ module SoapyCake
|
|
4
4
|
account_status_id: {
|
5
5
|
active: 1,
|
6
6
|
inactive: 2,
|
7
|
-
pending: 3
|
7
|
+
pending: 3
|
8
8
|
},
|
9
9
|
offer_status_id: {
|
10
10
|
public: 1,
|
11
11
|
private: 2,
|
12
12
|
apply_to_run: 3,
|
13
|
-
inactive: 4
|
13
|
+
inactive: 4
|
14
14
|
},
|
15
15
|
offer_type_id: {
|
16
16
|
hosted: 1,
|
17
17
|
host_n_post: 2,
|
18
|
-
third_party: 3
|
18
|
+
third_party: 3
|
19
19
|
},
|
20
20
|
currency_id: {
|
21
21
|
usd: 1,
|
22
22
|
eur: 2,
|
23
23
|
gbd: 3,
|
24
24
|
aud: 4,
|
25
|
-
cad: 5
|
25
|
+
cad: 5
|
26
26
|
},
|
27
27
|
payment_setting_id: {
|
28
28
|
system_default: 1,
|
29
29
|
offer_currency: 2,
|
30
|
-
affiliate_currency: 3
|
30
|
+
affiliate_currency: 3
|
31
31
|
},
|
32
32
|
price_format_id: {
|
33
33
|
cpa: 1,
|
34
34
|
cpc: 2,
|
35
35
|
cpm: 3,
|
36
36
|
fixed: 4,
|
37
|
-
revshare: 5
|
37
|
+
revshare: 5
|
38
38
|
},
|
39
39
|
conversion_behaviour_id: {
|
40
40
|
system: 0,
|
@@ -42,17 +42,17 @@ module SoapyCake
|
|
42
42
|
adv_no_aff: 2,
|
43
43
|
ignore: 3,
|
44
44
|
no_adv_aff: 4,
|
45
|
-
no_adv_no_aff: 5
|
45
|
+
no_adv_no_aff: 5
|
46
46
|
},
|
47
47
|
cap_type_id: {
|
48
48
|
click: 1,
|
49
|
-
conversion: 2
|
49
|
+
conversion: 2
|
50
50
|
},
|
51
51
|
cap_interval_id: {
|
52
52
|
disabled: 0,
|
53
53
|
daily: 1,
|
54
54
|
weekly: 2,
|
55
|
-
monthly: 3
|
55
|
+
monthly: 3
|
56
56
|
}
|
57
57
|
}
|
58
58
|
end
|
data/lib/soapy_cake/version.rb
CHANGED
@@ -32,6 +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
37
|
<cake:advertiser_id>15886</cake:advertiser_id>
|
36
38
|
<cake:vertical_id>41</cake:vertical_id>
|
37
39
|
<cake:postback_url_ms_delay>60</cake:postback_url_ms_delay>
|
@@ -51,8 +53,6 @@ http_interactions:
|
|
51
53
|
<cake:redirect_offer_contract_id>0</cake:redirect_offer_contract_id>
|
52
54
|
<cake:pixel_html/>
|
53
55
|
<cake:postback_url/>
|
54
|
-
<cake:conversion_cap_behavior>0</cake:conversion_cap_behavior>
|
55
|
-
<cake:conversion_behavior_on_redirect>0</cake:conversion_behavior_on_redirect>
|
56
56
|
<cake:expiration_date>2115-01-24T01:00:00</cake:expiration_date>
|
57
57
|
<cake:expiration_date_modification_type>do_not_change</cake:expiration_date_modification_type>
|
58
58
|
<cake:offer_contract_name/>
|
@@ -82,15 +82,15 @@ http_interactions:
|
|
82
82
|
X-Powered-By:
|
83
83
|
- ASP.NET
|
84
84
|
Date:
|
85
|
-
- Fri,
|
85
|
+
- Fri, 27 Mar 2015 10:53:05 GMT
|
86
86
|
Content-Length:
|
87
|
-
- '
|
87
|
+
- '563'
|
88
88
|
body:
|
89
89
|
encoding: UTF-8
|
90
90
|
string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
|
91
91
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><OfferResponse
|
92
92
|
xmlns="http://cakemarketing.com/api/4/"><OfferResult><success>true</success><message>Offer
|
93
|
-
|
93
|
+
9497 Created</message><success_info><offer_id>9497</offer_id><offer_contract_id>3552</offer_contract_id><campaign_id>15404</campaign_id><creative_id>10018</creative_id></success_info></OfferResult></OfferResponse></soap:Body></soap:Envelope>
|
94
94
|
http_version:
|
95
95
|
recorded_at: Tue, 17 Feb 2015 12:00:00 GMT
|
96
96
|
recorded_with: VCR 2.9.3
|
@@ -34,6 +34,9 @@ RSpec.describe 'ADDEDIT integration test' do
|
|
34
34
|
from_lines: 'from',
|
35
35
|
subject_lines: 'subject',
|
36
36
|
|
37
|
+
conversion_cap_behavior: :ignore,
|
38
|
+
conversion_behavior_on_redirect: :ignore,
|
39
|
+
|
37
40
|
advertiser_id: advertiser_id,
|
38
41
|
vertical_id: vertical_id,
|
39
42
|
postback_url_ms_delay: 60,
|
@@ -52,9 +55,9 @@ RSpec.describe 'ADDEDIT integration test' do
|
|
52
55
|
)
|
53
56
|
|
54
57
|
expect(result).to include(
|
55
|
-
creative_id:
|
56
|
-
offer_contract_id:
|
57
|
-
offer_id:
|
58
|
+
creative_id: 10018,
|
59
|
+
offer_contract_id: 3552,
|
60
|
+
offer_id: 9497
|
58
61
|
)
|
59
62
|
end
|
60
63
|
|
@@ -105,7 +108,7 @@ RSpec.describe 'ADDEDIT integration test' do
|
|
105
108
|
countries: %w(AT CH),
|
106
109
|
redirects: {
|
107
110
|
'AT' => redirect_offer_contract_id,
|
108
|
-
'CH' => redirect_offer_contract_id
|
111
|
+
'CH' => redirect_offer_contract_id
|
109
112
|
},
|
110
113
|
allow_countries: false
|
111
114
|
)
|
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: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ad2games GmbH
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -179,6 +179,7 @@ files:
|
|
179
179
|
- README.md
|
180
180
|
- Rakefile
|
181
181
|
- api_versions.yml
|
182
|
+
- circle.yml
|
182
183
|
- lib/soapy_cake.rb
|
183
184
|
- lib/soapy_cake/admin.rb
|
184
185
|
- lib/soapy_cake/admin_addedit.rb
|