soapy_cake 1.3.5 → 1.3.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 830ff2900a4ace7abce4a1d8e4248838bdda3624
|
|
4
|
+
data.tar.gz: 57bc6180452370286040dcdbfbe01df3a018bf94
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c1d08a4890790afb01f34c693b4c8c88af8a3b888610fb4043b37a10f3f209c44c59f6d30e947cc868dd09cd9a2f7fae25fae14fe83c0ecce59c663b1dc6c9a2
|
|
7
|
+
data.tar.gz: 93b81c448ff6f2bfdeaf28632f0dacb555a3e9d9568563b71e267655a032503588e6fb04c12f1814b147b570b37faf4751b2ecd8ba88aca2ac16d09d181075f5
|
|
@@ -81,6 +81,8 @@ module SoapyCake
|
|
|
81
81
|
advertiser_id vertical_id postback_url_ms_delay offer_contract_hidden
|
|
82
82
|
price_format_id received received_percentage payout tags))
|
|
83
83
|
|
|
84
|
+
opts[:tags] = Array(opts[:tags]).join(', ')
|
|
85
|
+
|
|
84
86
|
opts.each do |k, v|
|
|
85
87
|
opts[k] = 'on' if v == true
|
|
86
88
|
opts[k] = 'off' if v == false
|
data/lib/soapy_cake/version.rb
CHANGED
|
@@ -40,7 +40,7 @@ http_interactions:
|
|
|
40
40
|
<cake:received>2.0</cake:received>
|
|
41
41
|
<cake:received_percentage>off</cake:received_percentage>
|
|
42
42
|
<cake:payout>1.5</cake:payout>
|
|
43
|
-
<cake:tags
|
|
43
|
+
<cake:tags>some, tags</cake:tags>
|
|
44
44
|
<cake:offer_name>Test Offer</cake:offer_name>
|
|
45
45
|
<cake:offer_description>TEST1</cake:offer_description>
|
|
46
46
|
<cake:restrictions>TEST2</cake:restrictions>
|
|
@@ -82,7 +82,7 @@ http_interactions:
|
|
|
82
82
|
X-Powered-By:
|
|
83
83
|
- ASP.NET
|
|
84
84
|
Date:
|
|
85
|
-
-
|
|
85
|
+
- Fri, 06 Mar 2015 13:46:57 GMT
|
|
86
86
|
Content-Length:
|
|
87
87
|
- '562'
|
|
88
88
|
body:
|
|
@@ -90,7 +90,7 @@ http_interactions:
|
|
|
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
|
+
9098 Created</message><success_info><offer_id>9098</offer_id><offer_contract_id>2018</offer_contract_id><campaign_id>13866</campaign_id><creative_id>9619</creative_id></success_info></OfferResult></OfferResponse></soap:Body></soap:Envelope>
|
|
94
94
|
http_version:
|
|
95
|
-
recorded_at: Tue, 17 Feb 2015
|
|
95
|
+
recorded_at: Tue, 17 Feb 2015 12:00:00 GMT
|
|
96
96
|
recorded_with: VCR 2.9.3
|
|
@@ -42,7 +42,7 @@ RSpec.describe 'ADDEDIT integration test' do
|
|
|
42
42
|
received_percentage: false,
|
|
43
43
|
payout: 1.5,
|
|
44
44
|
|
|
45
|
-
tags:
|
|
45
|
+
tags: %w(some tags),
|
|
46
46
|
offer_name: 'Test Offer',
|
|
47
47
|
offer_description: 'TEST1',
|
|
48
48
|
restrictions: 'TEST2',
|
|
@@ -51,9 +51,9 @@ RSpec.describe 'ADDEDIT integration test' do
|
|
|
51
51
|
)
|
|
52
52
|
|
|
53
53
|
expect(result).to include(
|
|
54
|
-
creative_id:
|
|
55
|
-
offer_contract_id:
|
|
56
|
-
offer_id:
|
|
54
|
+
creative_id: 9619,
|
|
55
|
+
offer_contract_id: 2018,
|
|
56
|
+
offer_id: 9098,
|
|
57
57
|
)
|
|
58
58
|
end
|
|
59
59
|
|
data/spec/spec_helper.rb
CHANGED
|
@@ -35,8 +35,8 @@ RSpec.configure do |config|
|
|
|
35
35
|
config.expose_dsl_globally = false
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
-
ENV['CAKE_API_KEY'] = '
|
|
39
|
-
ENV['CAKE_DOMAIN'] = '
|
|
38
|
+
ENV['CAKE_API_KEY'] = 'piljvSwWlHlmGoqSEiSx7UuHxWWD2J' if ENV['CAKE_API_KEY'].blank?
|
|
39
|
+
ENV['CAKE_DOMAIN'] = 'network-staging.ad2games.com' if ENV['CAKE_DOMAIN'].blank?
|
|
40
40
|
ENV['CAKE_TIME_OFFSET'] = '1' if ENV['CAKE_TIME_OFFSET'].blank?
|
|
41
41
|
|
|
42
42
|
VCR.configure do |c|
|