soapy_cake 1.6.1 → 1.6.2

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: 2d46dab966a8ad1aa46895f6c860b97568a9d910
4
- data.tar.gz: 044eb21898e409c2ec38e108d34f506722f8932b
3
+ metadata.gz: 44bacc7d6de87ed84dbc8e23b745dca5d18eae2a
4
+ data.tar.gz: 34bc2ecf4d6f8fda40071318b762ec5b32af727f
5
5
  SHA512:
6
- metadata.gz: d2c7c8f96c241f95e8f8b34292ce24ba40d84986f7e05aeca319a4b6278e656eac043ce1eca68574139b648a9d5cbfd6a196a6902e72a219683673d444cfe938
7
- data.tar.gz: b44e08bbb55e1a0c89ff007408fd270ebb232df84fd443fad0a1cb9cb3c8846c29440d5f066c0d8d31fac27781effd36d979d45365005349cb0ae09f1cc24eee
6
+ metadata.gz: f7df540bd81cec97d9532caf5c2d7940c1aed32d1b72fce18c4f738f143fb2a3b07f1bd44a05bb758ebdbb367fb1999d9ce75d128fda8dfae337f45b5329a62d
7
+ data.tar.gz: fc3cac215c4b0eaa1f64d497a8c1f9c9721a335018bffd1a001cf19be52a9ac304ec1ee1b05e7517f65cd8c3547b695f9b3fab268a74564d4e2a392d853896ff
@@ -92,6 +92,10 @@ module SoapyCake
92
92
  run Request.new(:admin, :addedit, :campaign, opts)
93
93
  end
94
94
 
95
+ def add_blacklist(opts = {})
96
+ run Request.new(:admin, :addedit, :blacklist, opts)
97
+ end
98
+
95
99
  def affiliate_signup(opts = {})
96
100
  run Request.new(:admin, :signup, :affiliate, opts)
97
101
  end
@@ -111,5 +115,9 @@ module SoapyCake
111
115
  def payment_types
112
116
  run Request.new(:admin, :get, :payment_types, {})
113
117
  end
118
+
119
+ def blacklist_reasons(*)
120
+ run Request.new(:admin, :get, :blacklist_reasons, {})
121
+ end
114
122
  end
115
123
  end
@@ -5,8 +5,8 @@ module SoapyCake
5
5
  def initialize(opts = {})
6
6
  @domain = opts.fetch(:domain, ENV['CAKE_DOMAIN']) || fail(Error, 'Cake domain missing')
7
7
  @api_key = opts.fetch(:api_key, ENV['CAKE_API_KEY']) || fail(Error, 'Cake API key missing')
8
- @time_offset = opts.fetch(:time_offset, ENV['CAKE_TIME_OFFSET']) \
9
- || fail(Error, 'Cake time offset missing')
8
+ @time_offset = opts.fetch(:time_offset, ENV['CAKE_TIME_OFFSET']) ||
9
+ fail(Error, 'Cake time offset missing')
10
10
  @opts = opts
11
11
  end
12
12
 
@@ -1,3 +1,3 @@
1
1
  module SoapyCake
2
- VERSION = '1.6.1'
2
+ VERSION = '1.6.2'
3
3
  end
@@ -154,6 +154,12 @@ RSpec.describe SoapyCake::Admin do
154
154
  let(:cake_opts) { {} }
155
155
  it_behaves_like 'a cake admin method'
156
156
  end
157
+
158
+ describe '#blacklist_reasons' do
159
+ let(:method) { :blacklist_reasons }
160
+ let(:cake_opts) { {} }
161
+ it_behaves_like 'a cake admin method'
162
+ end
157
163
  end
158
164
 
159
165
  describe 'addedit service' do
@@ -170,6 +176,12 @@ RSpec.describe SoapyCake::Admin do
170
176
  let(:cake_method) { :campaign }
171
177
  it_behaves_like 'a cake admin method'
172
178
  end
179
+
180
+ describe '#add_blacklist' do
181
+ let(:method) { :add_blacklist }
182
+ let(:cake_method) { :blacklist }
183
+ it_behaves_like 'a cake admin method'
184
+ end
173
185
  end
174
186
 
175
187
  describe 'signup service' do
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.6.1
4
+ version: 1.6.2
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-04-02 00:00:00.000000000 Z
11
+ date: 2015-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport