faye-websocket 0.4.4-java → 0.4.5-java

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.

Potentially problematic release.


This version of faye-websocket might be problematic. Click here for more details.

data/CHANGELOG.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 0.4.5 / 2012-04-06
2
+
3
+ * Add WebSocket error code 1011.
4
+ * Handle URLs with no path correctly by sending 'GET /'
5
+
6
+
1
7
  === 0.4.4 / 2012-03-16
2
8
 
3
9
  * Fix installation on JRuby with a platform-specific gem
@@ -27,14 +27,15 @@ module Faye
27
27
  OPENING_OPCODES = OPCODES.values_at(:text, :binary)
28
28
 
29
29
  ERRORS = {
30
- :normal_closure => 1000,
31
- :going_away => 1001,
32
- :protocol_error => 1002,
33
- :unacceptable => 1003,
34
- :encoding_error => 1007,
35
- :policy_violation => 1008,
36
- :too_large => 1009,
37
- :extension_error => 1010
30
+ :normal_closure => 1000,
31
+ :going_away => 1001,
32
+ :protocol_error => 1002,
33
+ :unacceptable => 1003,
34
+ :encoding_error => 1007,
35
+ :policy_violation => 1008,
36
+ :too_large => 1009,
37
+ :extension_error => 1010,
38
+ :unexpected_condition => 1011
38
39
  }
39
40
 
40
41
  ERROR_CODES = ERRORS.values
@@ -17,9 +17,9 @@ module Faye
17
17
 
18
18
  def request_data
19
19
  hostname = @uri.host + (@uri.port ? ":#{@uri.port}" : '')
20
-
20
+ path = (@uri.path == '') ? '/' : @uri.path
21
21
  headers = [
22
- "GET #{@uri.path}#{@uri.query ? '?' : ''}#{@uri.query} HTTP/1.1",
22
+ "GET #{path}#{@uri.query ? '?' : ''}#{@uri.query} HTTP/1.1",
23
23
  "Host: #{hostname}",
24
24
  "Upgrade: websocket",
25
25
  "Connection: Upgrade",
Binary file
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: faye-websocket
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.4
5
+ version: 0.4.5
6
6
  platform: java
7
7
  authors:
8
8
  - James Coglan
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-03-16 00:00:00 Z
13
+ date: 2012-04-06 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: eventmachine
@@ -70,38 +70,38 @@ files:
70
70
  - ext/faye_websocket_mask/faye_websocket_mask.c
71
71
  - ext/faye_websocket_mask/FayeWebsocketMaskService.java
72
72
  - ext/faye_websocket_mask/extconf.rb
73
- - lib/faye/websocket.rb
74
73
  - lib/faye/eventsource.rb
75
- - lib/faye/websocket/draft75_parser.rb
74
+ - lib/faye/websocket.rb
75
+ - lib/faye/adapters/goliath.rb
76
+ - lib/faye/adapters/rainbows.rb
77
+ - lib/faye/adapters/rainbows_client.rb
78
+ - lib/faye/adapters/thin.rb
79
+ - lib/faye/websocket/adapter.rb
80
+ - lib/faye/websocket/api.rb
76
81
  - lib/faye/websocket/client.rb
77
- - lib/faye/websocket/hybi_parser.rb
82
+ - lib/faye/websocket/draft75_parser.rb
78
83
  - lib/faye/websocket/draft76_parser.rb
84
+ - lib/faye/websocket/hybi_parser.rb
79
85
  - lib/faye/websocket/utf8_match.rb
80
- - lib/faye/websocket/api.rb
81
- - lib/faye/websocket/adapter.rb
86
+ - lib/faye/websocket/api/event.rb
87
+ - lib/faye/websocket/api/event_target.rb
82
88
  - lib/faye/websocket/hybi_parser/handshake.rb
83
89
  - lib/faye/websocket/hybi_parser/stream_reader.rb
84
- - lib/faye/websocket/api/event_target.rb
85
- - lib/faye/websocket/api/event.rb
86
- - lib/faye/adapters/thin.rb
87
- - lib/faye/adapters/rainbows.rb
88
- - lib/faye/adapters/goliath.rb
89
- - lib/faye/adapters/rainbows_client.rb
90
90
  - examples/app.rb
91
+ - examples/autobahn_client.rb
91
92
  - examples/client.rb
92
- - examples/haproxy.conf
93
- - examples/sse.html
94
93
  - examples/config.ru
94
+ - examples/haproxy.conf
95
95
  - examples/server.rb
96
+ - examples/sse.html
96
97
  - examples/ws.html
97
- - examples/autobahn_client.rb
98
- - spec/server.key
99
- - spec/server.crt
100
98
  - spec/rainbows.conf
99
+ - spec/server.crt
100
+ - spec/server.key
101
101
  - spec/spec_helper.rb
102
- - spec/faye/websocket/draft75_parser_spec.rb
103
102
  - spec/faye/websocket/client_spec.rb
104
103
  - spec/faye/websocket/draft75_parser_examples.rb
104
+ - spec/faye/websocket/draft75_parser_spec.rb
105
105
  - spec/faye/websocket/draft76_parser_spec.rb
106
106
  - spec/faye/websocket/hybi_parser_spec.rb
107
107
  - lib/faye_websocket_mask.jar