faraday_persistent_excon 0.2.1 → 0.2.2

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: 24c41b214e0a7598075b8bf0d4a8461e352d6b18
4
- data.tar.gz: 8cfdeb145d1dce9b049b7fb6c5d3fdafa1ee26d0
3
+ metadata.gz: bcf8b17c5b371de5744c937229974e5e2b68881d
4
+ data.tar.gz: 4cb644e52301a7d938fb2b56bf21c2e36930320c
5
5
  SHA512:
6
- metadata.gz: ebdf4590de9d8b8d7a3b5e63d8f0f59dd113c17eaddc41f3bfd7653d58210d87b3166901db9f98771b10784ecd309ae1c29d6d2c8bbc656dff0cc0433152c619
7
- data.tar.gz: 99de4dc5faa5089ee938b65be34bdc1ed976dee5bf0dc28035cc3c6929b7a25f4f5919f25803530de8725645ccb0403a4ce9aa0dd7eac8f123f1fdcbf2da6096
6
+ metadata.gz: 8b9303432e6dcb300b0a47aad3db9b8ebbf63b319f3ac1a16401937cb8f629700d8e884e1e3e1583643e9a1a47307326e04e15c26558de159088b6675fc0c0ad
7
+ data.tar.gz: 393aeef700b32f7e47bd035e122be9777e234fd08d74ec6061092f209e57c61776fbf1add05bf8209fe47c29a5c665db3f6c462cd96526258c2e9d72c2b83676
@@ -10,15 +10,7 @@ module FaradayPersistentExcon
10
10
  pool = self.connection_pool_for(url)
11
11
 
12
12
  if pool
13
- begin
14
- pool.with(&block)
15
- rescue ::Excon::Errors::SocketError
16
- pool.shutdown { |conn| conn.reset }
17
- self.__pools.delete(url)
18
- raise
19
- rescue ::ConnectionPool::PoolShuttingDownError => err
20
- raise Faraday::Error::ConnectionFailed, err
21
- end
13
+ pool.with(&block)
22
14
  else
23
15
  # No pool configured. Use normal connection
24
16
  block.call(::Excon.new(url, persistent: false))
@@ -1,3 +1,3 @@
1
1
  module FaradayPersistentExcon
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday_persistent_excon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Schlesinger