faye-websocket 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


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

File without changes
File without changes
@@ -66,7 +66,7 @@ module Faye
66
66
 
67
67
  @env = env
68
68
  @url = WebSocket.determine_url(@env)
69
- @driver = ::WebSocket::Driver.rack(self, :protocols => protocols)
69
+ @driver = ::WebSocket::Driver.rack(self, :max_length => options[:max_length], :protocols => protocols)
70
70
  @stream = Stream.new(self)
71
71
 
72
72
  if callback = @env['async.callback']
@@ -34,7 +34,7 @@ module Faye
34
34
  @driver.on(:close) { |e| finalize(e.reason, e.code) }
35
35
 
36
36
  @driver.on(:error) do |error|
37
- event = Event.new('error')
37
+ event = Event.new('error', :message => error.message)
38
38
  event.init_event('error', false, false)
39
39
  dispatch_event(event)
40
40
  end
@@ -9,7 +9,7 @@ module Faye
9
9
  def initialize(url, protocols = nil, options = {})
10
10
  @url = url
11
11
  @uri = URI.parse(url)
12
- @driver = ::WebSocket::Driver.client(self, :protocols => protocols)
12
+ @driver = ::WebSocket::Driver.client(self, :max_length => options[:max_length], :protocols => protocols)
13
13
 
14
14
  [:open, :error].each do |event|
15
15
  @driver.on(event) do
@@ -26,7 +26,7 @@ module Faye
26
26
  conn.parent = self
27
27
  end
28
28
  rescue => error
29
- event = Event.new('error')
29
+ event = Event.new('error', :message => "Network error: #{url}: #{error.message}")
30
30
  event.init_event('error', false, false)
31
31
  dispatch_event(event)
32
32
  finalize(error.message, 1006)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faye-websocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.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: 2013-09-09 00:00:00.000000000 Z
12
+ date: 2013-12-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - ! '>='
36
36
  - !ruby/object:Gem::Version
37
- version: 0.3.0
37
+ version: 0.3.1
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
- version: 0.3.0
45
+ version: 0.3.1
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: progressbar
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -107,6 +107,22 @@ dependencies:
107
107
  - - ! '>='
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: rspec-eventmachine
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
110
126
  - !ruby/object:Gem::Dependency
111
127
  name: rainbows
112
128
  requirement: !ruby/object:Gem::Requirement
@@ -196,13 +212,18 @@ files:
196
212
  - examples/config.ru
197
213
  - examples/rainbows.conf
198
214
  - examples/sse.html
215
+ - examples/log/passenger.8003.log
216
+ - examples/log/passenger.7000.log
199
217
  - examples/app.rb
200
218
  - examples/server.rb
201
219
  - examples/client.rb
220
+ - examples/tmp/pids/passenger.7000.pid.lock
221
+ - examples/tmp/pids/passenger.8003.pid.lock
202
222
  - examples/haproxy.conf
203
223
  - examples/autobahn_client.rb
204
224
  homepage: http://github.com/faye/faye-websocket-ruby
205
- licenses: []
225
+ licenses:
226
+ - MIT
206
227
  post_install_message:
207
228
  rdoc_options:
208
229
  - --main