websocket-eventmachine-base 1.0.1 → 1.0.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.2
4
+
5
+ - fix bug that raised error about mismatch EventMachine constant
6
+
3
7
  ## 1.0.1
4
8
 
5
9
  - prevent sending messages after connection was closed
@@ -2,10 +2,19 @@ require 'websocket'
2
2
  require 'eventmachine'
3
3
 
4
4
  module WebSocket
5
+
6
+ # Duplicate EventMachine constant with silenced warnings.
7
+ begin
8
+ old_verbose, $VERBOSE = $VERBOSE, nil
9
+ EventMachine = ::EventMachine.dup
10
+ ensure
11
+ $VERBOSE = old_verbose
12
+ end
13
+
5
14
  module EventMachine
6
15
 
7
16
  # WebSocket Base for Client and Server (using EventMachine)
8
- class Base < ::EventMachine::Connection
17
+ class Base < Connection
9
18
 
10
19
  ###########
11
20
  ### API ###
@@ -1,7 +1,7 @@
1
1
  module WebSocket
2
2
  module EventMachine
3
3
  class Base
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: websocket-eventmachine-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-20 00:00:00.000000000 Z
12
+ date: 2012-12-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: websocket