neh 0.0.17 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/neh/cli/base.rb +7 -1
- data/lib/neh/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c98adee45058fca1fd2d8ad4d4b986e9273d053336e380fa9cdc3e745bc2d25
|
4
|
+
data.tar.gz: a2a97a95699a29cde7e0374be428613d34caf49cbba52610917f3e147bf32798
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02773dbfef6e5f43f48fd77d7f71587a5c3e8b811e4acbeaa47d529504257f714f5c0952e8e515bd8f90c359058fb0c4f591f54cab37ddc5f961a0bb99cafe12
|
7
|
+
data.tar.gz: 48f77eebdb4b7c6b94ea5a449c39db3e56465c916d37cfd7084b46386a767302c7157b9921375742603b224abd454e13fbf0978e315f67ec238321526f6af937
|
data/lib/neh/cli/base.rb
CHANGED
@@ -59,8 +59,14 @@ class Neh::Cli::Base
|
|
59
59
|
case type
|
60
60
|
when 'welcome'
|
61
61
|
subscribe(connection)
|
62
|
-
when 'confirm_subscription'
|
62
|
+
when 'confirm_subscription', 'ping'
|
63
63
|
on_subscribed
|
64
|
+
when 'disconnect'
|
65
|
+
puts "Connection has been disconnected. Reason: #{message[:reason]}"
|
66
|
+
close(connection)
|
67
|
+
else
|
68
|
+
puts "Unknown message type: #{type}. Closing connection."
|
69
|
+
close(connection)
|
64
70
|
end
|
65
71
|
end
|
66
72
|
|
data/lib/neh/version.rb
CHANGED