net-ptth 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- net-ptth (0.0.13)
4
+ net-ptth (0.0.14)
5
5
  celluloid-io (~> 0.15.0)
6
6
  http_parser.rb (~> 0.5.3)
7
7
  rack (~> 1.5.2)
@@ -11,10 +11,12 @@ class Net::PTTH
11
11
  end
12
12
 
13
13
  def write(data)
14
- retries = 3
14
+ retry_count = 3
15
15
  begin
16
16
  raw_socket.write(data)
17
17
  rescue Errno::EPIPE => e
18
+ close unless open?
19
+
18
20
  retry_count -= 1
19
21
  if retry_count > 0
20
22
  retry
data/net-ptth.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "net-ptth"
3
- s.version = "0.0.13"
3
+ s.version = "0.0.14"
4
4
  s.summary = "Net::HTTP compatible reverse HTTP version"
5
5
  s.description = "PTTH Ruby client. Net::HTTP compatible... kind of"
6
6
  s.authors = ["elcuervo"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-ptth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
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-10-22 00:00:00.000000000 Z
12
+ date: 2013-11-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack