websocket-rails 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # WebsocketRails Change Log
2
2
 
3
+ March 12 2013
4
+
5
+ ## Version 0.4.3
6
+
7
+ * Change the log output in Channel#trigger_event. Fixes issue #61.
8
+ * Cancel the ping timer when removing disconnecting a Connection.
9
+ * Fix uninitialized constant WebsocketRails::Internal controller error.
10
+
3
11
  March 1 2013
4
12
 
5
13
  ## Version 0.4.2
@@ -28,11 +28,12 @@ module WebsocketRails
28
28
 
29
29
  event = Event.new event_name, options
30
30
 
31
+ info "[#{name}] #{event.data.inspect}"
31
32
  send_data event
32
33
  end
33
34
 
34
35
  def trigger_event(event)
35
- info "(processing_channel_event) name: #{event.name} namespace: #{event.namespace} connection: #{event.connection.id}"
36
+ info "[#{name}] #{event.data.inspect}"
36
37
  send_data event
37
38
  end
38
39
 
@@ -124,6 +124,7 @@ module WebsocketRails
124
124
 
125
125
  def close_connection
126
126
  @data_store.destroy!
127
+ @ping_timer.try(:cancel)
127
128
  dispatcher.connection_manager.close_connection self
128
129
  end
129
130
 
@@ -61,7 +61,7 @@ module WebsocketRails
61
61
  def reload!(controller)
62
62
  return unless defined?(Rails) and !Rails.configuration.cache_classes
63
63
  # we don't reload our own controller as we assume it provide as 'library'
64
- unless controller == WebsocketRails::InternalController
64
+ unless controller.name == "WebsocketRails::InternalController"
65
65
  class_name = controller.name
66
66
  filename = class_name.underscore
67
67
  load "#{filename}.rb"
@@ -1,3 +1,3 @@
1
1
  module WebsocketRails
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
@@ -1138,3 +1138,4 @@ Connecting to database specified by database.yml
1138
1138
  Connecting to database specified by database.yml
1139
1139
  Connecting to database specified by database.yml
1140
1140
  Connecting to database specified by database.yml
1141
+ Connecting to database specified by database.yml
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.4.2
4
+ version: 0.4.3
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-03-01 00:00:00.000000000 Z
14
+ date: 2013-03-13 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -300,7 +300,7 @@ files:
300
300
  - CHANGELOG.md
301
301
  homepage: http://danknox.github.com/websocket-rails/
302
302
  licenses: []
303
- post_install_message: ! " Welcome to WebsocketRails v0.4.2!\n\n There have been
303
+ post_install_message: ! " Welcome to WebsocketRails v0.4.3!\n\n There have been
304
304
  a few significant changes in the public\n API, so if you are upgrading please be
305
305
  sure to read the\n CHANGELOG located at:\n\n http://github.com/DanKnox/websocket-rails/CHANGELOG.md\n"
306
306
  rdoc_options: []
@@ -314,7 +314,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
314
314
  version: '0'
315
315
  segments:
316
316
  - 0
317
- hash: -583640166619624554
317
+ hash: -1144546358314647981
318
318
  required_rubygems_version: !ruby/object:Gem::Requirement
319
319
  none: false
320
320
  requirements:
@@ -323,7 +323,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
323
323
  version: '0'
324
324
  segments:
325
325
  - 0
326
- hash: -583640166619624554
326
+ hash: -1144546358314647981
327
327
  requirements: []
328
328
  rubyforge_project: websocket-rails
329
329
  rubygems_version: 1.8.25