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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d7cc850230017aca820954075577d29db6dc8ca5
4
- data.tar.gz: e13d1fe429af915a1c21773ceabd7a548a6853d3
3
+ metadata.gz: 3a33a64c0edbfba997b08e484c91ad09c242a226
4
+ data.tar.gz: f0fc18b56057c753231598756f36cec047892ead
5
5
  SHA512:
6
- metadata.gz: 4c67456aeeffee1d176e0fc72691856f4812cfc64a006eda38f646ef956c40487ee6d9091ee99a4894a3154f9802151151f876b9b112c5b734efd5460850fc6e
7
- data.tar.gz: d73034783b842a04558227caa530c3539f1ba9056d2ced1e448c8aa91ae50cef6165bef110d049316f443161518e1d95c572d9e933795c6b0d1a9a98f5dad93e
6
+ metadata.gz: 287d60134e175381f81c4d25c28ca9d078f240ff60907cd6ecabe4bd4050229051aa51e413628b3a4ab00731d601367dbfb611f399ae5799865027c848cbcbed
7
+ data.tar.gz: abbe9a05c31836398e7da770d2161a3a2130f060d27f20793aa2a4eedae49897e94665479d81ca2ea7d77c951e457c20848b6fe2e608fa0c4e5d65be54c2006b
@@ -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 < Exception; end
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 < Exception; end
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 < Exception; end
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 < Exception; end
49
+ class JsonParseException < StandardError; end
50
50
 
51
51
  # Raised when backend HTTP API returns a 404
52
- class NotFoundException < Exception; end
52
+ class NotFoundException < StandardError; end
53
53
 
54
54
  # @!attribute [r] http
55
55
  # @return [Object] http client, by default this is Typhoeus
@@ -2,7 +2,8 @@ module BBC
2
2
  module Redux
3
3
 
4
4
  # Library version
5
- VERSION = '0.4.11'
5
+
6
+ VERSION = '0.4.12'
6
7
 
7
8
  end
8
9
  end
@@ -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(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.11
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-02-10 00:00:00.000000000 Z
13
+ date: 2016-07-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake