soapy_cake 1.1.0 → 1.1.1
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 +4 -0
- data/lib/soapy_cake/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/Integration_test/raises_if_there_is_an_error.yml +3 -3
- data/spec/fixtures/vcr_cassettes/Integration_test/returns_a_clicks_report_with_a_defined_time_range.yml +3 -3
- data/spec/fixtures/vcr_cassettes/Integration_test/returns_an_affiliate_with_correct_data_types.yml +3 -3
- data/spec/lib/soapy_cake/admin_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0728cabc19259dfb626aeb8dd24ab295a119ff5a
|
4
|
+
data.tar.gz: 54887456bbd16addb8c74c1d9cca0b51931a4c3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42490e20e3ab8a1760544a2bf69bce55174b08810baa99f80b9c2ec0e634b957f8c2f7f08de9e7fb5df10c5838c06cc3acaadd21278666dbd0860c02f7ffa0c8
|
7
|
+
data.tar.gz: 9f9702b8977794ec8876992030fee2cdc2ab10254b6001519c0d9e3f3c3b66ebfa21f1f734ce3d1019a29d1e0e34c72610254ef5a8ff16136a44b1b1b0ad676c
|
data/lib/soapy_cake/admin.rb
CHANGED
@@ -80,6 +80,10 @@ module SoapyCake
|
|
80
80
|
run Request.new(:admin, :addedit, :creative, opts)
|
81
81
|
end
|
82
82
|
|
83
|
+
def update_campaign(opts = {})
|
84
|
+
run Request.new(:admin, :addedit, :campaign, opts)
|
85
|
+
end
|
86
|
+
|
83
87
|
def update_offer(opts = {})
|
84
88
|
run Request.new(:admin, :addedit, :offer, opts)
|
85
89
|
end
|
data/lib/soapy_cake/version.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://cake-partner-domain.com
|
5
|
+
uri: https://cake-partner-domain.com/api/5/export.asmx
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: |
|
@@ -35,7 +35,7 @@ http_interactions:
|
|
35
35
|
X-Powered-By:
|
36
36
|
- ASP.NET
|
37
37
|
Date:
|
38
|
-
-
|
38
|
+
- Fri, 13 Feb 2015 14:29:40 GMT
|
39
39
|
Content-Length:
|
40
40
|
- '542'
|
41
41
|
body:
|
@@ -46,5 +46,5 @@ http_interactions:
|
|
46
46
|
in XML document (7, 52). ---> Input string was not in a correct format.</soap:Text></soap:Reason><soap:Detail
|
47
47
|
/></soap:Fault></soap:Body></soap:Envelope>
|
48
48
|
http_version:
|
49
|
-
recorded_at:
|
49
|
+
recorded_at: Fri, 13 Feb 2015 14:29:52 GMT
|
50
50
|
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://cake-partner-domain.com
|
5
|
+
uri: https://cake-partner-domain.com/api/7/reports.asmx
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: |
|
@@ -37,7 +37,7 @@ http_interactions:
|
|
37
37
|
X-Powered-By:
|
38
38
|
- ASP.NET
|
39
39
|
Date:
|
40
|
-
-
|
40
|
+
- Fri, 13 Feb 2015 14:29:42 GMT
|
41
41
|
Content-Length:
|
42
42
|
- '2151'
|
43
43
|
body:
|
@@ -61,5 +61,5 @@ http_interactions:
|
|
61
61
|
xmlns="API:id_name_store">Amazon.Com Inc.</isp_name></isp><disposition>Base
|
62
62
|
Tracking Domain Redirect</disposition><total_clicks>1</total_clicks></click></clicks></ClicksResult></ClicksResponse></soap:Body></soap:Envelope>
|
63
63
|
http_version:
|
64
|
-
recorded_at:
|
64
|
+
recorded_at: Fri, 13 Feb 2015 14:29:53 GMT
|
65
65
|
recorded_with: VCR 2.9.3
|
data/spec/fixtures/vcr_cassettes/Integration_test/returns_an_affiliate_with_correct_data_types.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://cake-partner-domain.com
|
5
|
+
uri: https://cake-partner-domain.com/api/5/export.asmx
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: |
|
@@ -35,7 +35,7 @@ http_interactions:
|
|
35
35
|
X-Powered-By:
|
36
36
|
- ASP.NET
|
37
37
|
Date:
|
38
|
-
-
|
38
|
+
- Fri, 13 Feb 2015 14:29:41 GMT
|
39
39
|
Content-Length:
|
40
40
|
- '4618'
|
41
41
|
body:
|
@@ -145,5 +145,5 @@ http_interactions:
|
|
145
145
|
YXRlcz48L0FmZmlsaWF0ZXNSZXN1bHQ+PC9BZmZpbGlhdGVzUmVzcG9uc2U+
|
146
146
|
PC9zb2FwOkJvZHk+PC9zb2FwOkVudmVsb3BlPg==
|
147
147
|
http_version:
|
148
|
-
recorded_at:
|
148
|
+
recorded_at: Fri, 13 Feb 2015 14:29:52 GMT
|
149
149
|
recorded_with: VCR 2.9.3
|
@@ -141,6 +141,12 @@ RSpec.describe SoapyCake::Admin do
|
|
141
141
|
it_behaves_like 'a cake admin method'
|
142
142
|
end
|
143
143
|
|
144
|
+
describe '#update_campaign' do
|
145
|
+
let(:method) { :update_campaign }
|
146
|
+
let(:cake_method) { :campaign }
|
147
|
+
it_behaves_like 'a cake admin method'
|
148
|
+
end
|
149
|
+
|
144
150
|
describe '#update_creative' do
|
145
151
|
let(:method) { :update_offer }
|
146
152
|
let(:cake_method) { :offer }
|