sinatra-websocket 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Makes it easy to upgrade any request to a websocket connection.
4
4
 
5
- SinatraWebsocket is a fork of [Skinny](https://github.com/sj26/skinny) merged with [Rack WebSocket](https://github.com/igrigorik/em-websocket). It provides helpers methods to detect if an request is a WebSocket request and defer to an EM::WebSocket::Connection.
5
+ SinatraWebsocket is a fork of [Skinny](https://github.com/sj26/skinny) merged with [Rack WebSocket](https://github.com/imanel/websocket-rack). It provides helpers methods to detect if a request is a WebSocket request and defer to an [EM::WebSocket::Connection](https://github.com/igrigorik/em-websocket).
6
6
 
7
7
 
8
8
  ## Put this in your pipe ...
@@ -97,6 +97,10 @@ module SinatraWebsocket
97
97
  debug [:initialize]
98
98
  end
99
99
 
100
+ def get_peername
101
+ @socket.get_peername
102
+ end
103
+
100
104
  # Overwrite dispath from em-websocket
101
105
  # we already have request headers parsed so
102
106
  # we can skip it and call build_with_request
@@ -1,4 +1,4 @@
1
1
  module SinatraWebsocket
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-websocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
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-04-25 00:00:00.000000000 Z
12
+ date: 2012-05-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine