websocket-driver 0.2.3-java → 0.3.0-java
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/lib/websocket/driver/client.rb +5 -0
- metadata +6 -6
data/CHANGELOG.md
CHANGED
@@ -56,6 +56,11 @@ module WebSocket
|
|
56
56
|
headers << "Sec-WebSocket-Protocol: #{@protocols * ', '}"
|
57
57
|
end
|
58
58
|
|
59
|
+
if uri.user
|
60
|
+
auth = Base64.encode64([uri.user, uri.password] * ':').gsub(/\n/, '')
|
61
|
+
headers << "Authorization: Basic #{auth}"
|
62
|
+
end
|
63
|
+
|
59
64
|
(headers + [@headers.to_s, '']).join("\r\n")
|
60
65
|
end
|
61
66
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: websocket-driver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: java
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-09-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: eventmachine
|
@@ -31,15 +31,15 @@ dependencies:
|
|
31
31
|
name: rake-compiler
|
32
32
|
version_requirements: !ruby/object:Gem::Requirement
|
33
33
|
requirements:
|
34
|
-
- -
|
34
|
+
- - ~>
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version:
|
36
|
+
version: 0.8.0
|
37
37
|
none: false
|
38
38
|
requirement: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- -
|
40
|
+
- - ~>
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
42
|
+
version: 0.8.0
|
43
43
|
none: false
|
44
44
|
prerelease: false
|
45
45
|
type: :development
|