access 2.0.13 → 2.0.14

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: 0ec93230386c5fab3046bd406a7e15d32dfc8ba5
4
- data.tar.gz: 5511ac00dcc0e85e9f160ef4ec7dd513a53f3f02
3
+ metadata.gz: 9cbad816c0654510e7932e067697298bb9738233
4
+ data.tar.gz: 72e7977cc67db986b20e98baaa15b1daf6904dbe
5
5
  SHA512:
6
- metadata.gz: ea5df8c2f50a5e9094c0347ceb9d7ccf27033dbf412af11f18576bf4b9f609b15f6a520951446f628007c63cca89d98891dd95166e8f9f0bec25e905bce4dc79
7
- data.tar.gz: 517e30a0c574b6d5f39a5e6f013941cc995231eb340e6a07691d32bc333a68cc38efc6abd6e76dd53a8ddaaf5a6e32d1011ec3e769eff2fcf35b4628d71a8df7
6
+ metadata.gz: 3fbd8dccf4d3cb15de60fbee42b86b1d518f6a4154055c14e75bd56b664973575dda27429d710f3182f52c1509704ac935d15fdf2e3906144372c9e759e8aa9f
7
+ data.tar.gz: ba32c2111aa34182bcbf285b5d009ab542ffaf94cb28b4441682f5a1a935fa8e369a8a4b38cd21cd6daedb0ddab2793323edecbe136ff4dc1e8753c4a1dbe5be
data/lib/access/error.rb CHANGED
@@ -4,6 +4,7 @@ module Access
4
4
  class NoAccessToken < AuthenticationError; end
5
5
  class InvalidResponseFormat < TypeError; end
6
6
  class Timeout < Timeout::Error ; end
7
+ class NoData < EOFError; end
7
8
 
8
9
  attr_reader :message, :status_code, :status
9
10
 
data/lib/access/member.rb CHANGED
@@ -16,7 +16,7 @@ module Access
16
16
  Access::Api.new.member_registration options
17
17
  end
18
18
 
19
- def self.authenticate(options = {})
19
+ def self.authenticate(options = {})3
20
20
  Access::Api.new.member_authentication options
21
21
  end
22
22
  end
@@ -13,6 +13,7 @@ module Access
13
13
  rescue Net::ReadTimeout, Net::OpenTimeout
14
14
  # block.call({"message"=>"Request Timeout Error", "status"=>408})
15
15
  raise Access::Error::Timeout
16
+
16
17
  end
17
18
 
18
19
  def post(path, api_type, options={}, &block)
@@ -26,6 +27,8 @@ module Access
26
27
  rescue Net::ReadTimeout, Net::OpenTimeout
27
28
  # block.call({"message"=>"Request Timeout Error", "status"=>408})
28
29
  raise Access::Error::Timeout
30
+ rescue EOFError
31
+ raise Access::Error::NoData
29
32
  end
30
33
 
31
34
  def get_for_filter(path, api_type, filter, options={}, &block)
@@ -1,4 +1,4 @@
1
1
  module Access
2
- VERSION = "2.0.13"
2
+ VERSION = "2.0.14"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: access
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.13
4
+ version: 2.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Eggett
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-10-07 00:00:00.000000000 Z
13
+ date: 2015-10-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler