proxylocal 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/lib/client.rb +6 -2
- data/proxylocal.gemspec +2 -2
- metadata +4 -4
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/client.rb
CHANGED
@@ -4,7 +4,7 @@ require 'eventmachine'
|
|
4
4
|
require 'bert'
|
5
5
|
|
6
6
|
module ProxyLocal
|
7
|
-
VERSION = '0.2.
|
7
|
+
VERSION = '0.2.1'
|
8
8
|
|
9
9
|
module Serializer
|
10
10
|
def self.dump(object)
|
@@ -87,6 +87,7 @@ module ProxyLocal
|
|
87
87
|
end
|
88
88
|
connection.on_unbind do
|
89
89
|
@@logger.info("Connection closed")
|
90
|
+
@connections.delete(id)
|
90
91
|
send_object(BERT::Tuple[:close, id])
|
91
92
|
end
|
92
93
|
@connections[id] = connection
|
@@ -95,7 +96,10 @@ module ProxyLocal
|
|
95
96
|
@connections[id].send_data(data)
|
96
97
|
when :close
|
97
98
|
_, id = message
|
98
|
-
@connections
|
99
|
+
connection = @connections.delete(id)
|
100
|
+
connection.close_connection_after_writing if connection
|
101
|
+
else
|
102
|
+
@@logger.info("Received #{message.inspect}")
|
99
103
|
end
|
100
104
|
end
|
101
105
|
|
data/proxylocal.gemspec
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{proxylocal}
|
5
|
-
s.version = "0.2.
|
5
|
+
s.version = "0.2.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Just Lest"]
|
9
9
|
s.cert_chain = ["/Users/lest/.gem/gem-public_cert.pem"]
|
10
|
-
s.date = %q{2010-12-
|
10
|
+
s.date = %q{2010-12-12}
|
11
11
|
s.default_executable = %q{proxylocal}
|
12
12
|
s.description = %q{Proxy your local web-server and make it publicly available over the internet}
|
13
13
|
s.email = %q{just.lest@gmail.com}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: proxylocal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Just Lest
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
9HkV98wF6vQ=
|
37
37
|
-----END CERTIFICATE-----
|
38
38
|
|
39
|
-
date: 2010-12-
|
39
|
+
date: 2010-12-12 00:00:00 +02:00
|
40
40
|
default_executable:
|
41
41
|
dependencies:
|
42
42
|
- !ruby/object:Gem::Dependency
|
metadata.gz.sig
CHANGED
Binary file
|