fizx-proxymachine 1.7.0 → 1.7.1
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/fizx-proxymachine.gemspec +2 -1
- data/lib/proxymachine/warning_server_connection.rb +22 -0
- metadata +41 -37
data/fizx-proxymachine.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'fizx-proxymachine'
|
16
|
-
s.version = '1.7.
|
16
|
+
s.version = '1.7.1'
|
17
17
|
s.date = '2011-05-07'
|
18
18
|
s.rubyforge_project = 'fizx-proxymachine'
|
19
19
|
|
@@ -73,6 +73,7 @@ Gem::Specification.new do |s|
|
|
73
73
|
lib/proxymachine/callback_server_connection.rb
|
74
74
|
lib/proxymachine/client_connection.rb
|
75
75
|
lib/proxymachine/server_connection.rb
|
76
|
+
lib/proxymachine/warning_server_connection.rb
|
76
77
|
test/configs/simple.rb
|
77
78
|
test/proxymachine_test.rb
|
78
79
|
test/test_helper.rb
|
@@ -0,0 +1,22 @@
|
|
1
|
+
class ProxyMachine
|
2
|
+
class WarningServerConnection < ServerConnection
|
3
|
+
|
4
|
+
def initialize(conn)
|
5
|
+
@warning_timeout = conn.inactivity_warning_timeout
|
6
|
+
@warning_callback = conn.inactivity_warning_triggered
|
7
|
+
super(conn)
|
8
|
+
end
|
9
|
+
|
10
|
+
def post_init
|
11
|
+
if @warning_timeout
|
12
|
+
@timer = EventMachine::Timer.new(@warning_timeout, &@warning_callback)
|
13
|
+
end
|
14
|
+
super
|
15
|
+
end
|
16
|
+
|
17
|
+
def unbind
|
18
|
+
@timer && @timer.cancel
|
19
|
+
super
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
metadata
CHANGED
@@ -1,49 +1,50 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: fizx-proxymachine
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.0
|
3
|
+
version: !ruby/object:Gem::Version
|
5
4
|
prerelease:
|
5
|
+
version: 1.7.1
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Tom Preston-Werner
|
9
9
|
- Kyle Maxwell
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
|
14
|
+
date: 2011-05-07 00:00:00 Z
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
16
17
|
name: eventmachine
|
17
|
-
|
18
|
+
prerelease: false
|
19
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
20
|
none: false
|
19
|
-
requirements:
|
20
|
-
- -
|
21
|
-
- !ruby/object:Gem::Version
|
21
|
+
requirements:
|
22
|
+
- - ">="
|
23
|
+
- !ruby/object:Gem::Version
|
22
24
|
version: 0.12.10
|
23
25
|
type: :runtime
|
24
|
-
|
25
|
-
|
26
|
-
- !ruby/object:Gem::Dependency
|
26
|
+
version_requirements: *id001
|
27
|
+
- !ruby/object:Gem::Dependency
|
27
28
|
name: shoulda
|
28
|
-
|
29
|
+
prerelease: false
|
30
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
29
31
|
none: false
|
30
|
-
requirements:
|
32
|
+
requirements:
|
31
33
|
- - ~>
|
32
|
-
- !ruby/object:Gem::Version
|
34
|
+
- !ruby/object:Gem::Version
|
33
35
|
version: 2.11.3
|
34
36
|
type: :development
|
35
|
-
|
36
|
-
|
37
|
-
description: ProxyMachine is a simple content aware (layer 7) TCP routing proxy written
|
38
|
-
in Ruby with EventMachine.
|
37
|
+
version_requirements: *id002
|
38
|
+
description: ProxyMachine is a simple content aware (layer 7) TCP routing proxy written in Ruby with EventMachine.
|
39
39
|
email: tom@mojombo.com
|
40
|
-
executables:
|
40
|
+
executables:
|
41
41
|
- proxymachine
|
42
42
|
extensions: []
|
43
|
-
|
43
|
+
|
44
|
+
extra_rdoc_files:
|
44
45
|
- README.md
|
45
46
|
- LICENSE
|
46
|
-
files:
|
47
|
+
files:
|
47
48
|
- Gemfile
|
48
49
|
- History.txt
|
49
50
|
- LICENSE
|
@@ -59,33 +60,36 @@ files:
|
|
59
60
|
- lib/proxymachine/callback_server_connection.rb
|
60
61
|
- lib/proxymachine/client_connection.rb
|
61
62
|
- lib/proxymachine/server_connection.rb
|
63
|
+
- lib/proxymachine/warning_server_connection.rb
|
62
64
|
- test/configs/simple.rb
|
63
65
|
- test/proxymachine_test.rb
|
64
66
|
- test/test_helper.rb
|
65
67
|
homepage: http://github.com/fizx/proxymachine
|
66
68
|
licenses: []
|
69
|
+
|
67
70
|
post_install_message:
|
68
|
-
rdoc_options:
|
71
|
+
rdoc_options:
|
69
72
|
- --charset=UTF-8
|
70
|
-
require_paths:
|
73
|
+
require_paths:
|
71
74
|
- lib
|
72
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
75
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
73
76
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version:
|
78
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: "0"
|
81
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
82
|
none: false
|
80
|
-
requirements:
|
81
|
-
- -
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version:
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: "0"
|
84
87
|
requirements: []
|
88
|
+
|
85
89
|
rubyforge_project: fizx-proxymachine
|
86
90
|
rubygems_version: 1.8.10
|
87
91
|
signing_key:
|
88
92
|
specification_version: 2
|
89
93
|
summary: ProxyMachine is a simple content aware (layer 7) TCP routing proxy.
|
90
|
-
test_files:
|
94
|
+
test_files:
|
91
95
|
- test/proxymachine_test.rb
|