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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dcadf1cadd1bdcb83293225449d10532537319dc7d68ef188ab6f3622aa774ab
4
- data.tar.gz: 5337416c560efb53b659d02ec9171b5da99895df6cd0cc73a7236b639753637a
3
+ metadata.gz: c7937c06c7715dd99a4ffef1d690b077caacfa602707acac9a0130f9efd41b4c
4
+ data.tar.gz: cb6415126f8245095aa198ebe7369e438e0016d1a3da8aca130407e306080dcc
5
5
  SHA512:
6
- metadata.gz: 90690641ab08679a5e71216a6408e1ca3fd8a0a559a8836c42b14f417fa42713735c282e644c9cd06f257dd53b834bee003ac9affc29f16d25a1f7ae526fb073
7
- data.tar.gz: 6a0cb0af203e894a5239452205286fff0805326d45fd5b70651be1731656410687d67db3d578aac69613ad2ae2837afc056ecdee190409d07119ec78be12467e
6
+ metadata.gz: 47631077ee4304b02f6004ce9b9c70f067ee12df6bb88f905c96717751c9c63b85a35f7ddb3fc8777508dd6dbef8233dae67cb1640b5995c2d3228e439095b8f
7
+ data.tar.gz: db8020522d8f62462f25f1868cab34088b8bdf83159e18637ba495bf71fd274b3c8d71cc49c4bcc0db016ee5698c2d2054b5a91cf91686bf5efe229e1a524bc2
@@ -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
- results = self.send(method, path, params, model)
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"
@@ -1,3 +1,3 @@
1
1
  module Booker
2
- VERSION = '3.3.17'
2
+ VERSION = '3.4.0'
3
3
  end
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.3.17
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-06-25 00:00:00.000000000 Z
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.1.2
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