soapy_cake 1.4.0 → 1.5.0

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: cd9650087f25d594328017d9adf7455f3d6b3763
4
- data.tar.gz: 91a2b6a9eef7ee1b47d2389a7468e43de79b191f
3
+ metadata.gz: 63cbcc04e20f7fbe8cf51ceaba0b6d42874caee6
4
+ data.tar.gz: e203b1955f3ff6cc0dad787d0105ed771168106b
5
5
  SHA512:
6
- metadata.gz: d6eb4e5f4cba2ce09552f8f37671ee22fa4cb64522dadcae33156894a81fa3eea5a1b9aaf03cc241b09811b59ba03cc14ae4eb5d4b02df80c3626ed1364a3e97
7
- data.tar.gz: 7e2c571cf58d813ca780dfd56272f41aca615e04b97f7e1d8e1a20bdc820b82a78003c13efb0379b0d04f3217f44d71961b1df074171df5afd838e28ad44d5c7
6
+ metadata.gz: c3e2017089a8eb0fd1893c4dfc8d7bc81197c51d69ef0a4f666175238c7aa42a9dac1d4aa7b663df7b424e8ac158f739a35bfca55f8afa787d75a211c2ebda11
7
+ data.tar.gz: bd253fbebfcd9c3d4d15e9c55e913f516c9655329d3d7338eaa1ab4c7b6b86236a42e87bd9639b5ecc3aba3b44618c257bd5d869ee2d018c1a554c52e29c8571
data/Gemfile CHANGED
@@ -1,8 +1,8 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in soapy_cake.gemspec
4
3
  gemspec
5
4
 
6
- group :test do
5
+ group :development, :test do
6
+ gem 'rubocop-ci', github: 'ad2games/rubocop-ci'
7
7
  gem 'codeclimate-test-reporter', require: false
8
8
  end
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'bundler/gem_tasks'
2
2
  require 'rspec/core/rake_task'
3
+ require 'rubocop-ci'
3
4
 
4
5
  RSpec::Core::RakeTask.new(:spec)
5
6
 
@@ -0,0 +1,3 @@
1
+ test:
2
+ pre:
3
+ - bundle exec rake rubocop
@@ -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: '',
@@ -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
@@ -1,3 +1,3 @@
1
1
  module SoapyCake
2
- VERSION = '1.4.0'
2
+ VERSION = '1.5.0'
3
3
  end
@@ -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, 06 Mar 2015 13:46:57 GMT
85
+ - Fri, 27 Mar 2015 10:53:05 GMT
86
86
  Content-Length:
87
- - '562'
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
- 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>
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: 9619,
56
- offer_contract_id: 2018,
57
- offer_id: 9098,
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.0
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-17 00:00:00.000000000 Z
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