soapy_cake 1.3.5 → 1.3.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f902772b754c9f495f1d003b88db03b35134e03f
4
- data.tar.gz: a9aa816a8054713d70405483548982b3d439b2e5
3
+ metadata.gz: 830ff2900a4ace7abce4a1d8e4248838bdda3624
4
+ data.tar.gz: 57bc6180452370286040dcdbfbe01df3a018bf94
5
5
  SHA512:
6
- metadata.gz: afcb85ac96e0cc31d585f7159e77704db026cbc81c39529df7405300c81a20db94ac6b5746a1916292db430e62c1696431f4a17a28a2e5d7423c10ead81c99f7
7
- data.tar.gz: 054e3f9c884b9b4970d4fc895187ab0a160450cd18fa32b1a076520b7dc72a071d9027ae7804eaf5f9e01c992959d83edf13519a0d21205fa25ab03e878cfcf4
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
@@ -1,3 +1,3 @@
1
1
  module SoapyCake
2
- VERSION = '1.3.5'
2
+ VERSION = '1.3.6'
3
3
  end
@@ -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
- - Tue, 17 Feb 2015 13:18:40 GMT
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
- 8910 Created</message><success_info><offer_id>8910</offer_id><offer_contract_id>1455</offer_contract_id><campaign_id>13301</campaign_id><creative_id>9431</creative_id></success_info></OfferResult></OfferResponse></soap:Body></soap:Envelope>
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 13:18:43 GMT
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: 9431,
55
- offer_contract_id: 1455,
56
- offer_id: 8910
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'] = 'cake-api-key' if ENV['CAKE_API_KEY'].blank?
39
- ENV['CAKE_DOMAIN'] = 'cake-partner-domain.com' if ENV['CAKE_DOMAIN'].blank?
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|
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.3.5
4
+ version: 1.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ad2games GmbH