sinatra-websocket 0.1.1 → 0.1.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.
|
@@ -5,7 +5,8 @@ module SinatraWebsocket
|
|
|
5
5
|
|
|
6
6
|
# Taken from skinny https://github.com/sj26/skinny and updated to support Firefox
|
|
7
7
|
def websocket?
|
|
8
|
-
env['HTTP_CONNECTION']
|
|
8
|
+
env['HTTP_CONNECTION'] && env['HTTP_UPGRADE'] &&
|
|
9
|
+
env['HTTP_CONNECTION'].split(',').map(&:strip).map(&:downcase).include?('upgrade') &&
|
|
9
10
|
env['HTTP_UPGRADE'].downcase == 'websocket'
|
|
10
11
|
end
|
|
11
12
|
|
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.
|
|
4
|
+
version: 0.1.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-05
|
|
12
|
+
date: 2012-06-05 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: eventmachine
|
|
@@ -95,3 +95,4 @@ signing_key:
|
|
|
95
95
|
specification_version: 3
|
|
96
96
|
summary: Simple, upgradable WebSockets for Sinatra.
|
|
97
97
|
test_files: []
|
|
98
|
+
has_rdoc:
|