net-http-follow_tail 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -78,7 +78,7 @@ class Net::HTTP::FollowTail
78
78
 
79
79
  begin
80
80
  head_response = head_request
81
- rescue Timeout::Error, SocketError, EOFError, Errno::ETIMEDOUT => err
81
+ rescue Timeout::Error, SocketError, EOFError, Errno::ETIMEDOUT, Errno::ENETUNREACH => err
82
82
  return Result.new(state: :error, method: :head, error: err)
83
83
  end
84
84
 
@@ -91,7 +91,7 @@ class Net::HTTP::FollowTail
91
91
 
92
92
  begin
93
93
  get_response = get_request(size_now)
94
- rescue Timeout::Error, SocketError, EOFError, Errno::ETIMEDOUT => err
94
+ rescue Timeout::Error, SocketError, EOFError, Errno::ETIMEDOUT, Errno::ENETUNREACH => err
95
95
  return Result.new(state: :error, method: :get, error: err)
96
96
  end
97
97
 
@@ -1,7 +1,7 @@
1
1
  module Net
2
2
  module HTTP
3
3
  module FollowTail
4
- VERSION = '0.0.3'
4
+ VERSION = '0.0.4'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-http-follow_tail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-15 00:00:00.000000000 Z
12
+ date: 2013-07-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: exponential-backoff