socket.io-client-simple 1.1.3 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +3 -2
- data/Gemfile.lock +11 -8
- data/History.txt +6 -1
- data/lib/socket.io-client-simple/client.rb +6 -0
- data/lib/socket.io-client-simple/version.rb +1 -1
- data/socket.io-client-simple.gemspec +1 -1
- data/test/test_socket.io.rb +9 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e6d673e30e37562235d4edb27d7791ae7b6778c
|
4
|
+
data.tar.gz: 382a19c571e2f9e94c824541bfff09003575916b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 075786363f386f74e492bfe9b148ec90a70a1ad810c5acb12714d11ae26d187454b61aa75bb9b4f8f81aa5f5de8162e640095011613c919435ba0d851c58c35d
|
7
|
+
data.tar.gz: 69033e6a0c40d6598d1c634f964bef246528d035df134805cec14ccbbbe5be751b5ce3de97abde4ed56a83731a339518edbfbbd1dd72bc5068c64cabcab0c176
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,25 +1,25 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
socket.io-client-simple (1.
|
4
|
+
socket.io-client-simple (1.2.0)
|
5
5
|
event_emitter
|
6
6
|
httparty
|
7
7
|
json
|
8
|
-
websocket-client-simple (>= 0.2.
|
8
|
+
websocket-client-simple (>= 0.2.5)
|
9
9
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
13
|
event_emitter (0.2.5)
|
14
|
-
httparty (0.13.
|
14
|
+
httparty (0.13.7)
|
15
15
|
json (~> 1.8)
|
16
16
|
multi_xml (>= 0.5.2)
|
17
|
-
json (1.8.
|
18
|
-
minitest (5.
|
17
|
+
json (1.8.3)
|
18
|
+
minitest (5.8.4)
|
19
19
|
multi_xml (0.5.5)
|
20
|
-
rake (10.
|
21
|
-
websocket (1.2.
|
22
|
-
websocket-client-simple (0.2.
|
20
|
+
rake (10.5.0)
|
21
|
+
websocket (1.2.2)
|
22
|
+
websocket-client-simple (0.2.5)
|
23
23
|
event_emitter
|
24
24
|
websocket
|
25
25
|
|
@@ -31,3 +31,6 @@ DEPENDENCIES
|
|
31
31
|
minitest
|
32
32
|
rake
|
33
33
|
socket.io-client-simple!
|
34
|
+
|
35
|
+
BUNDLED WITH
|
36
|
+
1.11.2
|
data/History.txt
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency "minitest"
|
24
24
|
|
25
25
|
spec.add_dependency "json"
|
26
|
-
spec.add_dependency "websocket-client-simple", '>= 0.2.
|
26
|
+
spec.add_dependency "websocket-client-simple", '>= 0.2.5'
|
27
27
|
spec.add_dependency "httparty"
|
28
28
|
spec.add_dependency "event_emitter"
|
29
29
|
end
|
data/test/test_socket.io.rb
CHANGED
@@ -48,4 +48,13 @@ class TestSocketIOClientSimple < MiniTest::Test
|
|
48
48
|
assert_equal result, user
|
49
49
|
end
|
50
50
|
|
51
|
+
def test_disconnect
|
52
|
+
socket = SocketIO::Client::Simple.connect TestServer.url
|
53
|
+
|
54
|
+
socket.on :connect do
|
55
|
+
socket.disconnect
|
56
|
+
end
|
57
|
+
sleep 0.5
|
58
|
+
assert_equal socket.open?, false
|
59
|
+
end
|
51
60
|
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.
|
4
|
+
version: 1.2.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:
|
11
|
+
date: 2016-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.2.
|
75
|
+
version: 0.2.5
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.2.
|
82
|
+
version: 0.2.5
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: httparty
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
version: '0'
|
156
156
|
requirements: []
|
157
157
|
rubyforge_project:
|
158
|
-
rubygems_version: 2.
|
158
|
+
rubygems_version: 2.4.5
|
159
159
|
signing_key:
|
160
160
|
specification_version: 4
|
161
161
|
summary: A simple ruby client for Node.js's Socket.IO v1.1.x, Supports only WebSocket.
|