gibbon 0.5.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of gibbon might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/gibbon.gemspec +1 -1
- data/lib/gibbon/api.rb +2 -2
- data/spec/gibbon/gibbon_spec.rb +5 -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: fa771e412f415ea41ed7c1c8b3001547eb3b6f34
|
4
|
+
data.tar.gz: d9356cbcf29824214e53493007b9ba6e34106ce3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 081aebc10e892289dcc9c46011bfb593386afde84d7f0ba78c8ab0c30dd7407c5a30ce24b281a1d587cf2ee49c14e02c0476d51335878c099eba929194ac02a2
|
7
|
+
data.tar.gz: f1f8887a10798308eb61409aa11b15d634c04d22def16f30502a9f8f673b4aed6c395e990ccf3b56e650fbf451f41bac424897ba6256b9afa3ae5786f1cedcac
|
data/gibbon.gemspec
CHANGED
data/lib/gibbon/api.rb
CHANGED
@@ -8,7 +8,7 @@ module Gibbon
|
|
8
8
|
|
9
9
|
@api_endpoint = default_parameters.delete(:api_endpoint) || self.class.api_endpoint
|
10
10
|
@timeout = default_parameters.delete(:timeout) || self.class.timeout
|
11
|
-
@throws_exceptions = default_parameters.delete(:throws_exceptions)
|
11
|
+
@throws_exceptions = default_parameters.has_key?(:throws_exceptions) ? default_parameters.delete(:throws_exceptions) : self.class.throws_exceptions
|
12
12
|
|
13
13
|
@default_params = {apikey: @api_key}.merge(default_parameters)
|
14
14
|
end
|
@@ -31,4 +31,4 @@ module Gibbon
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
34
|
-
end
|
34
|
+
end
|
data/spec/gibbon/gibbon_spec.rb
CHANGED
@@ -44,6 +44,11 @@ describe Gibbon do
|
|
44
44
|
@gibbon = Gibbon::API.new(@api_key, :api_endpoint => api_endpoint)
|
45
45
|
expect(api_endpoint).to eq(@gibbon.api_endpoint)
|
46
46
|
end
|
47
|
+
|
48
|
+
it "sets the 'throws_exceptions' option from initializer parameters" do
|
49
|
+
@gibbon = Gibbon::API.new(@api_key, :throws_exceptions => false)
|
50
|
+
expect(false).to eq(@gibbon.throws_exceptions)
|
51
|
+
end
|
47
52
|
end
|
48
53
|
|
49
54
|
describe "build api url" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gibbon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amro Mousa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|