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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "lspace"
3
- s.version = "0.5"
3
+ s.version = "0.6"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.author = "Conrad Irwin"
6
6
  s.email = "conrad.irwin@gmail.com"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lspace
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.5'
4
+ version: '0.6'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: