fbk 1.4.2 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fbk.rb +4 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd503e4e5cc1e16092e566a8189ed4f98eb0596d
4
- data.tar.gz: e5811007d0a7d70aa71e6ce12077b30f9b49f84a
3
+ metadata.gz: caa1df1fbb831ae2dd2a87a528ab618c56fda3f0
4
+ data.tar.gz: 144e15125f2917d12d02bcb6982312e9cdd0912c
5
5
  SHA512:
6
- metadata.gz: eb746341c19affb953de9452900032a75039e5b628a62f0fbc46d423b8757e78dff190e639d05f470ec51a823d9cd4430ad58c5efc2c2dfd8f3d2e3a1c78cfb2
7
- data.tar.gz: 699f7abf6e4afa909e8ebdffc1d132445903950308382d577a2f7394be182d174144925bf6ab698f4e896624fa6cfc683d772ebcbcefd0ca8e9718c932272583
6
+ metadata.gz: be99623af508a46bf0aa50cadf8766fe3794d273773ecc70420909526ea586c4f0b80aa7046338b5da5bdfd5c1954825f40994fd12629cbd6769cf98049edcef
7
+ data.tar.gz: 9be927aaffbc9d28a032f6111dba930d5b4f9a7d9f9350f7e43217fc0093a7999050fd41adda00225ae72e4dfa73f892d3dab09c725716f7456305e8bb507de7
data/lib/fbk.rb CHANGED
@@ -70,12 +70,13 @@ module FBK
70
70
  end
71
71
 
72
72
  def get(endpoint)
73
- response = Nestful.get(endpoint).body
74
- JSON.parse(response, symbolize_names: true)
73
+ response = Nestful::Request.new(endpoint, timeout: 3).execute
74
+ JSON.parse(response.body, symbolize_names: true)
75
75
  rescue Nestful::BadRequest,
76
76
  Nestful::SSLError,
77
77
  Nestful::ServerError,
78
- Nestful::ErrnoError => error
78
+ Nestful::ErrnoError,
79
+ Nestful::TimeoutError => error
79
80
  raise FBK::Error.new(error.message)
80
81
  end
81
82
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fbk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Gimenez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-10 00:00:00.000000000 Z
11
+ date: 2016-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nestful