bookingsync-api 0.1.6 → 0.1.7

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: b4bdc178f4f613906121ad78aad98201367df968
4
- data.tar.gz: 2b8d7e57f9214e6c95723e063214f32ce12f5fc6
3
+ metadata.gz: fd120b6e3150316627f5707d653b7ba4ad0ac02e
4
+ data.tar.gz: 8a2d82b0e26ea7d259b5dded328afbfd8ec6dac5
5
5
  SHA512:
6
- metadata.gz: 62d73a7a7549eb864acdb2264704f773426a3846f39a3e614f5ba0faa7f3cb12422d570a7209d4b74b2c7f6b2f7bc697466e0c7a1d2c9d58c32018dfc7dae990
7
- data.tar.gz: e34023ccf4e35aca1a5b1be1fa1e9f0deebb46e31cecf6e9dd965609e702923eb931722f7a4651e5ab28f8126749648ccc7bb4e125f372eda92322af12e583e9
6
+ metadata.gz: 56f0a86137e3d620449d66777b3020448faea701837111047ec7d120eaf5d0e0e02b2b1ca4e4dfdfaffa7df511a7d493d25d693c4c427694d7896aad94c4636f
7
+ data.tar.gz: 126339a64b04e8c34e0baff0a0cfb94c3c67c65f04b40fd375a415b4491e8909ea8ec865ca2d3637e1243fafcaade6302e1cd1eb1edf2ad49cb26e88f14cc652
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 0.1.7 - 2017-11-30
6
+
7
+ - Add workaround to avoid `Net::HTTP::Persistent too many connection resets error`
8
+
5
9
  ## 0.1.6 - 2017-10-30
6
10
 
7
11
  - Add support for addition and removal of bookings_fees
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  lib = File.expand_path("../lib", __FILE__)
2
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
4
  require "bookingsync/api/version"
@@ -43,6 +43,7 @@ require "bookingsync/api/resource"
43
43
  require "bookingsync/api/serializer"
44
44
  require "logger"
45
45
  require "addressable/template"
46
+ require "net/http/persistent"
46
47
 
47
48
  module BookingSync::API
48
49
  class Client
@@ -273,6 +274,7 @@ module BookingSync::API
273
274
 
274
275
  def middleware
275
276
  Faraday::RackBuilder.new do |builder|
277
+ builder.use ::Faraday::Request::Retry, max: 1, exceptions: [::Net::HTTP::Persistent::Error]
276
278
  builder.use :logger, logger
277
279
  builder.adapter :net_http_persistent
278
280
  end
@@ -1,5 +1,5 @@
1
1
  module BookingSync
2
2
  module API
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookingsync-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Grosjean
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-30 00:00:00.000000000 Z
11
+ date: 2017-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -589,4 +589,3 @@ test_files:
589
589
  - spec/fixtures/files/test.jpg
590
590
  - spec/spec_helper.rb
591
591
  - spec/support/vcr_helper.rb
592
- has_rdoc: