booker_ruby 3.3.17 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/booker/client.rb +5 -1
- data/lib/booker/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7937c06c7715dd99a4ffef1d690b077caacfa602707acac9a0130f9efd41b4c
|
4
|
+
data.tar.gz: cb6415126f8245095aa198ebe7369e438e0016d1a3da8aca130407e306080dcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47631077ee4304b02f6004ce9b9c70f067ee12df6bb88f905c96717751c9c63b85a35f7ddb3fc8777508dd6dbef8233dae67cb1640b5995c2d3228e439095b8f
|
7
|
+
data.tar.gz: db8020522d8f62462f25f1868cab34088b8bdf83159e18637ba495bf71fd274b3c8d71cc49c4bcc0db016ee5698c2d2054b5a91cf91686bf5efe229e1a524bc2
|
data/lib/booker/client.rb
CHANGED
@@ -96,7 +96,11 @@ module Booker
|
|
96
96
|
|
97
97
|
puts "fetching #{path} with #{params.except(:access_token)}. #{fetched.length} results so far."
|
98
98
|
|
99
|
-
|
99
|
+
begin
|
100
|
+
results = self.send(method, path, params, model)
|
101
|
+
rescue Net::ReadTimeout
|
102
|
+
results = nil
|
103
|
+
end
|
100
104
|
|
101
105
|
unless results.is_a?(Array)
|
102
106
|
error_msg = "Result from paginated request to #{path} with params: #{params} is not a collection"
|
data/lib/booker/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: booker_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frederick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -245,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
245
245
|
- !ruby/object:Gem::Version
|
246
246
|
version: '0'
|
247
247
|
requirements: []
|
248
|
-
rubygems_version: 3.
|
248
|
+
rubygems_version: 3.0.6
|
249
249
|
signing_key:
|
250
250
|
specification_version: 4
|
251
251
|
summary: Ruby client for the Booker API - https://developers.booker.com
|