bbc_redux 0.4.11 → 0.4.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bbc/redux/client.rb +5 -5
- data/lib/bbc/redux/version.rb +2 -1
- data/spec/bbc/redux/asset_spec.rb +0 -4
- data/spec/bbc/redux/client_spec.rb +1 -1
- 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: 3a33a64c0edbfba997b08e484c91ad09c242a226
|
4
|
+
data.tar.gz: f0fc18b56057c753231598756f36cec047892ead
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 287d60134e175381f81c4d25c28ca9d078f240ff60907cd6ecabe4bd4050229051aa51e413628b3a4ab00731d601367dbfb611f399ae5799865027c848cbcbed
|
7
|
+
data.tar.gz: abbe9a05c31836398e7da770d2161a3a2130f060d27f20793aa2a4eedae49897e94665479d81ca2ea7d77c951e457c20848b6fe2e608fa0c4e5d65be54c2006b
|
data/lib/bbc/redux/client.rb
CHANGED
@@ -34,22 +34,22 @@ module BBC
|
|
34
34
|
|
35
35
|
# Raised when you try to login and you account has been marked as
|
36
36
|
# compromised
|
37
|
-
class AccountCompromisedException <
|
37
|
+
class AccountCompromisedException < StandardError; end
|
38
38
|
|
39
39
|
# Raised when backend HTTP API returns a 403, indicates you are either
|
40
40
|
# trying to access some content that is unavailable to you, or your token
|
41
41
|
# and session has expired.
|
42
|
-
class ForbiddenException <
|
42
|
+
class ForbiddenException < StandardError; end
|
43
43
|
|
44
44
|
# Raised when backend HTTP API returns a 4XX or 5XX status other than
|
45
45
|
# 403, indicates an error within the HTTP API or bug in this library
|
46
|
-
class HttpException <
|
46
|
+
class HttpException < StandardError; end
|
47
47
|
|
48
48
|
# Raised when backend HTTP API returns a body that does not parse as json
|
49
|
-
class JsonParseException <
|
49
|
+
class JsonParseException < StandardError; end
|
50
50
|
|
51
51
|
# Raised when backend HTTP API returns a 404
|
52
|
-
class NotFoundException <
|
52
|
+
class NotFoundException < StandardError; end
|
53
53
|
|
54
54
|
# @!attribute [r] http
|
55
55
|
# @return [Object] http client, by default this is Typhoeus
|
data/lib/bbc/redux/version.rb
CHANGED
@@ -41,10 +41,6 @@ describe BBC::Redux::Asset do
|
|
41
41
|
its(attribute) { should eq(value) }
|
42
42
|
end
|
43
43
|
|
44
|
-
it 'should works' do
|
45
|
-
p subject.to_json
|
46
|
-
end
|
47
|
-
|
48
44
|
BBC::Redux::MediaUrl::TEMPLATES.each do |type|
|
49
45
|
describe "##{type}_url" do
|
50
46
|
it 'returns url of the correct type using the asset reference and key' do
|
@@ -32,7 +32,7 @@ describe BBC::Redux::Client do
|
|
32
32
|
|
33
33
|
it 'should raise a generic exception with an unknown http status' do
|
34
34
|
expect(http_client).to receive(:post).and_return(unknown_response)
|
35
|
-
expect { subject }.to raise_exception(
|
35
|
+
expect { subject }.to raise_exception(StandardError)
|
36
36
|
end
|
37
37
|
|
38
38
|
it 'should raise a json parse error when backend returns junk' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bbc_redux
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JamesHarrison
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-07-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|