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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d877b249bb882f814168716848be16e5304b2db8
4
- data.tar.gz: 0fe273859157553a5871637df736b144a00da7c1
3
+ metadata.gz: fa771e412f415ea41ed7c1c8b3001547eb3b6f34
4
+ data.tar.gz: d9356cbcf29824214e53493007b9ba6e34106ce3
5
5
  SHA512:
6
- metadata.gz: 4e3b5dce4a2f0e2da5da2e0e0c0ece8330d5347d5162ec8fb2f8469bd46362ae3b9cae42037d1b6ae24261e306eb51cf46db044d7bb23c0277f145e7276620dd
7
- data.tar.gz: cc1109531c71356394808a777474ecaf90aba07eefd4828e931177f347b3888704d553c467b5920fac23dcd098aca29f7fde345a89cff960280f1fbba53f2451
6
+ metadata.gz: 081aebc10e892289dcc9c46011bfb593386afde84d7f0ba78c8ab0c30dd7407c5a30ce24b281a1d587cf2ee49c14e02c0476d51335878c099eba929194ac02a2
7
+ data.tar.gz: f1f8887a10798308eb61409aa11b15d634c04d22def16f30502a9f8f673b4aed6c395e990ccf3b56e650fbf451f41bac424897ba6256b9afa3ae5786f1cedcac
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "gibbon"
6
- s.version = "0.5.0"
6
+ s.version = "1.0.0"
7
7
  s.authors = ["Amro Mousa"]
8
8
  s.email = ["amromousa@gmail.com"]
9
9
  s.homepage = "http://github.com/amro/gibbon"
@@ -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) || self.class.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
@@ -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.5.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-07-23 00:00:00.000000000 Z
11
+ date: 2013-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty