net-ptth 0.0.7 → 0.0.8

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.7)
4
+ net-ptth (0.0.8)
5
5
  celluloid-io (~> 0.15.0)
6
6
  http_parser.rb (~> 0.5.3)
7
7
  rack (~> 1.4.5)
data/lib/net/ptth.rb CHANGED
@@ -45,7 +45,7 @@ class Net::PTTH
45
45
  #
46
46
  def close
47
47
  @keep_alive = false
48
- socket.close if socket
48
+ socket.close if socket.open?
49
49
  end
50
50
 
51
51
  # Public: Access to the PTTH::Socket
@@ -146,7 +146,7 @@ class Net::PTTH
146
146
  while @keep_alive do
147
147
  # All you need is love. Something to keep alive the connection of that
148
148
  # given socket
149
- socket.write("<3")
149
+ socket.write("<3") if socket.open?
150
150
  sleep 1
151
151
  end
152
152
  end
@@ -4,7 +4,7 @@ class Net::PTTH
4
4
  Socket = Struct.new(:host, :port) do
5
5
  include Celluloid::IO
6
6
 
7
- def read(bytes = 1024)
7
+ def read(bytes = 4096*10)
8
8
  raw_socket.readpartial(bytes)
9
9
  end
10
10
 
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.7"
3
+ s.version = "0.0.8"
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.7
4
+ version: 0.0.8
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-03 00:00:00.000000000 Z
12
+ date: 2013-10-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack