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 +4 -4
- data/lib/soapy_cake/admin.rb +8 -0
- data/lib/soapy_cake/client.rb +2 -2
- data/lib/soapy_cake/version.rb +1 -1
- data/spec/lib/soapy_cake/admin_spec.rb +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44bacc7d6de87ed84dbc8e23b745dca5d18eae2a
|
4
|
+
data.tar.gz: 34bc2ecf4d6f8fda40071318b762ec5b32af727f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7df540bd81cec97d9532caf5c2d7940c1aed32d1b72fce18c4f738f143fb2a3b07f1bd44a05bb758ebdbb367fb1999d9ce75d128fda8dfae337f45b5329a62d
|
7
|
+
data.tar.gz: fc3cac215c4b0eaa1f64d497a8c1f9c9721a335018bffd1a001cf19be52a9ac304ec1ee1b05e7517f65cd8c3547b695f9b3fab268a74564d4e2a392d853896ff
|
data/lib/soapy_cake/admin.rb
CHANGED
@@ -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
|
data/lib/soapy_cake/client.rb
CHANGED
@@ -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
|
-
|
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
|
|
data/lib/soapy_cake/version.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2015-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|