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 CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.3.0 / 2013-09-09
2
+
3
+ * Support client URLs with Basic Auth credentials
4
+
1
5
  ### 0.2.3 / 2013-08-04
2
6
 
3
7
  * Fix bug in EventEmitter#emit when listeners are removed
@@ -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.2.3
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-08-04 00:00:00.000000000 Z
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: '0'
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: '0'
42
+ version: 0.8.0
43
43
  none: false
44
44
  prerelease: false
45
45
  type: :development