lspace 0.5 → 0.6
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/lib/lspace/eventmachine.rb +9 -0
- data/lspace.gemspec +1 -1
- metadata +1 -1
data/lib/lspace/eventmachine.rb
CHANGED
@@ -19,6 +19,15 @@ module EventMachine
|
|
19
19
|
@acceptors[s][0].in_lspace
|
20
20
|
s
|
21
21
|
end
|
22
|
+
|
23
|
+
if method_defined?(:attach_server)
|
24
|
+
alias_method :attach_server_without_lspace, :attach_server
|
25
|
+
def attach_server(*args, &block)
|
26
|
+
s = attach_server_without_lspace(*args, &(block ? block.in_lspace : nil))
|
27
|
+
@acceptors[s][0].in_lspace
|
28
|
+
s
|
29
|
+
end
|
30
|
+
end
|
22
31
|
end
|
23
32
|
|
24
33
|
# Many EM APIs (e.g. em-http-request) are based on deferrables. Preserving lspace for
|
data/lspace.gemspec
CHANGED