websocket-rails 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,15 @@
2
2
 
3
3
  ## Version 0.6.0
4
4
 
5
+ ## Version 0.6.1
6
+
7
+ September 6 2013
8
+
9
+ * Fixed the loading of event routes when launched in the production
10
+ environment.
11
+
12
+ ## Version 0.6.0
13
+
5
14
  September 3 2013
6
15
 
7
16
  * Added the UserManager accessible through the `WebsocketRails.users`
@@ -49,8 +49,6 @@ require 'websocket_rails/connection_adapters'
49
49
  require 'websocket_rails/connection_adapters/http'
50
50
  require 'websocket_rails/connection_adapters/web_socket'
51
51
 
52
- load "#{Rails.root}/config/events.rb" if File.exists?("#{Rails.root}/config/events.rb")
53
-
54
52
  # Exceptions
55
53
  class WebsocketRails::InvalidConnectionError < StandardError
56
54
  def rack_response
@@ -13,6 +13,10 @@ module WebsocketRails
13
13
  paths["config/routes"] << "lib/rails/config/routes.rb"
14
14
  end
15
15
 
16
+ initializer 'websocket_rails.load_event_routes', :before => :preload_frameworks do |app|
17
+ load "#{Rails.root}/config/events.rb" if File.exists?("#{Rails.root}/config/events.rb")
18
+ end
19
+
16
20
  rake_tasks do
17
21
  require 'websocket-rails'
18
22
  load 'rails/tasks/websocket_rails.tasks'
@@ -1,3 +1,3 @@
1
1
  module WebsocketRails
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: websocket-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-09-05 00:00:00.000000000 Z
14
+ date: 2013-09-06 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -309,7 +309,7 @@ files:
309
309
  homepage: http://danknox.github.com/websocket-rails/
310
310
  licenses:
311
311
  - MIT
312
- post_install_message: Welcome to WebsocketRails v0.6.0!
312
+ post_install_message: Welcome to WebsocketRails v0.6.1!
313
313
  rdoc_options: []
314
314
  require_paths:
315
315
  - lib
@@ -321,7 +321,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
321
321
  version: '0'
322
322
  segments:
323
323
  - 0
324
- hash: -1613820515143330234
324
+ hash: -1481679817274698257
325
325
  required_rubygems_version: !ruby/object:Gem::Requirement
326
326
  none: false
327
327
  requirements:
@@ -330,7 +330,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
330
330
  version: '0'
331
331
  segments:
332
332
  - 0
333
- hash: -1613820515143330234
333
+ hash: -1481679817274698257
334
334
  requirements: []
335
335
  rubyforge_project: websocket-rails
336
336
  rubygems_version: 1.8.25