net-ptth 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/lib/net/ptth.rb +2 -2
- data/lib/net/ptth/socket.rb +1 -1
- data/net-ptth.gemspec +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
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
|
data/lib/net/ptth/socket.rb
CHANGED
data/net-ptth.gemspec
CHANGED
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.
|
|
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-
|
|
12
|
+
date: 2013-10-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rack
|