revent 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/INSTALL +6 -7
- data/README +1 -3
- data/lib/revent/as_r.rb +3 -2
- data/lib/revent/r_r.rb +10 -6
- data/test/as_r/client.swf +0 -0
- metadata +2 -2
data/INSTALL
CHANGED
@@ -1,10 +1,9 @@
|
|
1
|
-
|
1
|
+
== Dependencies
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
EventMachine
|
4
|
+
RMagick
|
5
|
+
Crypt
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
ruby setup.rb --help
|
7
|
+
== Install
|
10
8
|
|
9
|
+
gem install revent
|
data/README
CHANGED
data/lib/revent/as_r.rb
CHANGED
@@ -54,6 +54,7 @@ module Revent
|
|
54
54
|
break if last_size == @dec.stream_position
|
55
55
|
end
|
56
56
|
rescue
|
57
|
+
@me.logger.error($!)
|
57
58
|
close_connection
|
58
59
|
end
|
59
60
|
|
@@ -70,8 +71,8 @@ module Revent
|
|
70
71
|
when TYPE_ERROR
|
71
72
|
@me.on_error(self, cmd, value)
|
72
73
|
end
|
73
|
-
rescue
|
74
|
-
@me.logger.error(
|
74
|
+
rescue
|
75
|
+
@me.logger.error($!)
|
75
76
|
close_connection
|
76
77
|
end
|
77
78
|
|
data/lib/revent/r_r.rb
CHANGED
@@ -134,28 +134,32 @@ module Revent
|
|
134
134
|
|
135
135
|
# Utilities ------------------------------------------------------------------
|
136
136
|
|
137
|
+
def connected?
|
138
|
+
@revent_con.nil? ? false : @revent_con.connected?
|
139
|
+
end
|
140
|
+
|
137
141
|
def session
|
138
|
-
@revent_con.session
|
142
|
+
@revent_con.session if connected?
|
139
143
|
end
|
140
144
|
|
141
145
|
def session=(value)
|
142
|
-
@revent_con.session = value
|
146
|
+
@revent_con.session = value if connected?
|
143
147
|
end
|
144
148
|
|
145
149
|
def remote_ip
|
146
|
-
@revent_con.remote_ip
|
150
|
+
@revent_con.remote_ip if connected?
|
147
151
|
end
|
148
152
|
|
149
153
|
def call(cmd, value)
|
150
|
-
@revent_con.call(cmd, value)
|
154
|
+
@revent_con.call(cmd, value) if connected?
|
151
155
|
end
|
152
156
|
|
153
157
|
def close_connection
|
154
|
-
@revent_con.close_connection
|
158
|
+
@revent_con.close_connection if connected?
|
155
159
|
end
|
156
160
|
|
157
161
|
def close_connection_after_writing
|
158
|
-
@revent_con.close_connection_after_writing
|
162
|
+
@revent_con.close_connection_after_writing if connected?
|
159
163
|
end
|
160
164
|
|
161
165
|
# ----------------------------------------------------------------------------
|
data/test/as_r/client.swf
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: revent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ngoc DAO Thanh
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-03-
|
12
|
+
date: 2008-03-28 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|