socket.io-client-simple 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 50a078ab4570719f46273add06d388b0ce58db48
4
- data.tar.gz: 332855f1fe15af38a2594b020897ea6880025633
3
+ metadata.gz: 6293cae06f3938964054ea93f5837c3ee3fe920a
4
+ data.tar.gz: 103d3bd06faea135bdcba6c59e96a47de8c8e0df
5
5
  SHA512:
6
- metadata.gz: bf78878c9ca070fe802161173f70ee694ac809474247536236eea26e22e42e8d58bafcc9e210d7edeb8bd4542c1e0cf6b1074b6bf042677aad32e791670ab499
7
- data.tar.gz: 5f3889fbbd2c2f5f2a5f5f2289d4c20675779f1ff9214372f5b2b010f3f5630881a8f83afefd82aef11f7ba810f302c9410a1f20fa530910e9aa37972d65111e
6
+ metadata.gz: ff36295267269bb7f87e5748eecdce1d6e02ef5c279ddef9481e81792ffec5f940cc342accafb91fe51710210da2ce9da3dd671b757291854f59b4a768e86362
7
+ data.tar.gz: 3120faf19a55589c9a8eae733b58a4c069a3c5b5a67985da176f6bb189dcb0eab354658b516295e9c81c8a7ee58ee0f1c42b049c32c13aa0ea3a91e6bf33bc56
@@ -15,10 +15,10 @@ GEM
15
15
  json (~> 1.8)
16
16
  multi_xml (>= 0.5.2)
17
17
  json (1.8.1)
18
- minitest (5.3.4)
18
+ minitest (5.4.2)
19
19
  multi_xml (0.5.5)
20
20
  rake (10.3.2)
21
- websocket (1.1.4)
21
+ websocket (1.2.1)
22
22
  websocket-client-simple (0.2.0)
23
23
  event_emitter
24
24
  websocket
@@ -1,3 +1,7 @@
1
+ === 1.1.0 2014-10-04
2
+
3
+ * support Socket.IO v1.1x
4
+
1
5
  === 1.0.0 2014-07-03
2
6
 
3
7
  * support Socket.IO v1.0.x #4
data/README.md CHANGED
@@ -8,7 +8,7 @@ A simple ruby client for Node.js's Socket.IO v1.0.x, Supports only WebSocket.
8
8
 
9
9
  ## Install
10
10
 
11
- gem intsall
11
+ gem install
12
12
 
13
13
  % gem install socket.io-client-simple # latest version, supports Socket.IO v1.0.x
14
14
 
@@ -63,7 +63,7 @@ module SocketIO
63
63
 
64
64
  @websocket.on :message do |msg|
65
65
  next unless msg.data =~ /^\d+/
66
- code, body = msg.data.unpack('U*').pack('C*').force_encoding('utf-8').scan(/^(\d+)(.*)$/)[0]
66
+ code, body = msg.data.scan(/^(\d+)(.*)$/)[0]
67
67
  code = code.to_i
68
68
  case code
69
69
  when 0 ## socket.io connect
@@ -107,7 +107,7 @@ module SocketIO
107
107
  return unless open?
108
108
  return unless @state == :connect
109
109
  data.unshift event_name
110
- @websocket.send "42#{data.to_json}".unpack('C*').pack('U*')
110
+ @websocket.send "42#{data.to_json}"
111
111
  end
112
112
 
113
113
  end
@@ -1,7 +1,7 @@
1
1
  module SocketIO
2
2
  module Client
3
3
  module Simple
4
- VERSION = "1.0.0"
4
+ VERSION = "1.1.0"
5
5
  end
6
6
  end
7
7
  end
@@ -6,8 +6,8 @@
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/shokai/ruby-socket.io-client-simple",
8
8
  "dependencies": {
9
- "socket.io": "~1.0",
10
- "socket.io-client": "~1.0",
9
+ "socket.io": "^1.1",
10
+ "socket.io-client": "^1.1",
11
11
  "coffee-script": "*"
12
12
  },
13
13
  "devDependencies": {},
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = SocketIO::Client::Simple::VERSION
9
9
  spec.authors = ["Sho Hashimoto"]
10
10
  spec.email = ["hashimoto@shokai.org"]
11
- spec.description = "A simple ruby client for Node.js's Socket.IO v1.0.x, Supports only WebSocket."
11
+ spec.description = "A simple ruby client for Node.js's Socket.IO v1.1.x, Supports only WebSocket."
12
12
  spec.summary = spec.description
13
13
  spec.homepage = "https://github.com/shokai/ruby-socket.io-client-simple"
14
14
  spec.license = "MIT"
@@ -21,7 +21,7 @@ class TestSocketIOClientSimple < MiniTest::Test
21
21
  result = data
22
22
  end
23
23
 
24
- post_data = {"msg" => "hello", "at" => Time.now.to_s}
24
+ post_data = {"msg" => "hello", "at" => Time.now.to_s, "あいさつ" => "こんにちは"}
25
25
  socket.on :connect do
26
26
  socket.emit :chat, post_data
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: socket.io-client-simple
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Hashimoto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-03 00:00:00.000000000 Z
11
+ date: 2014-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -108,7 +108,7 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
- description: A simple ruby client for Node.js's Socket.IO v1.0.x, Supports only WebSocket.
111
+ description: A simple ruby client for Node.js's Socket.IO v1.1.x, Supports only WebSocket.
112
112
  email:
113
113
  - hashimoto@shokai.org
114
114
  executables: []
@@ -155,10 +155,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  version: '0'
156
156
  requirements: []
157
157
  rubyforge_project:
158
- rubygems_version: 2.0.14
158
+ rubygems_version: 2.2.2
159
159
  signing_key:
160
160
  specification_version: 4
161
- summary: A simple ruby client for Node.js's Socket.IO v1.0.x, Supports only WebSocket.
161
+ summary: A simple ruby client for Node.js's Socket.IO v1.1.x, Supports only WebSocket.
162
162
  test_files:
163
163
  - test/server.rb
164
164
  - test/test_helper.rb