socketio-client 0.0.2 → 0.0.3

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.
Files changed (2) hide show
  1. data/lib/SocketIO.rb +4 -4
  2. metadata +2 -2
@@ -8,7 +8,7 @@ module SocketIO
8
8
  # params [URI, String] uri
9
9
  def self.connect(uri, options = {}, &block)
10
10
  uri = URI(uri)
11
- # handshke
11
+ # handshake
12
12
  response = RestClient.get "#{uri.scheme}://#{uri.host}:#{uri.port}/socket.io/1/"
13
13
  response_array = response.split(':')
14
14
  response_array = [uri] + response_array << options
@@ -18,7 +18,7 @@ module SocketIO
18
18
  end
19
19
 
20
20
  class Client
21
- VERSION = "0.0.2"
21
+ VERSION = "0.0.3"
22
22
 
23
23
  [:INT, :TERM].each do |sig|
24
24
  Signal.trap(sig) do
@@ -82,9 +82,9 @@ module SocketIO
82
82
  message = JSON.parse(decoded[:data])
83
83
  @on_event[message['name']].call message['args'] if @on_event[message['name']]
84
84
  when '6'
85
- @on_error.call decoded[:data] if @on_error
86
- when '7'
87
85
  @on_ack.call if @on_ack
86
+ when '7'
87
+ @on_error.call decoded[:data] if @on_error
88
88
  when '8'
89
89
  @on_noop.call if @on_noop
90
90
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: socketio-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
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: 2012-03-27 00:00:00.000000000 Z
12
+ date: 2012-06-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client