neh 0.0.17 → 0.0.18

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
  SHA256:
3
- metadata.gz: 3fbbad76600f29de32a2230087fa413ff037e8b890fc66d0d1761057e11e457f
4
- data.tar.gz: 60dd8915dd7f3ca9d43334edeec940cd1364f0ad4e5ab2207eaccc09c66d3b01
3
+ metadata.gz: 3a0072dc145f6f3c9465b0ab362284e8524e12714c9fe691e2b3409068053bb2
4
+ data.tar.gz: dc46224b988d300326cb4bde008d244651e67bf0b723194992217db54d7b2f8c
5
5
  SHA512:
6
- metadata.gz: 2fbda86199f54a166cff5dc086ab349c9a56f48cb2c64c67686c67b045bd63128c7c4e37c3bdb34bc3f7429a0904ee2fe9ed6b1bf794ff8072d727cd47e7347a
7
- data.tar.gz: c1ef501a69604b58236d689554f59c9387c9f637a1d281516b0b34daa28bdfac6510e64ffd4799e89279d6a82f75757d12292ac0de467c1d4543a387f832ea1c
6
+ metadata.gz: 53cec3325e390fc4b6d480139178a97f8fd9b3cf656aabe1b88b033091573fd2b59914ac2ddc69596547588b9fe31eff9c5431d08df55e921d4b0fc971d30418
7
+ data.tar.gz: 5a6e101c210e48c84a8c29957e46a761c928e00b3a0a50cd62be7b5f803af195d9f77148e3e766e476a906b348d8f1eedacadc283d5a6adb6eeaa9b444ccb786
data/lib/neh/cli/base.rb CHANGED
@@ -61,6 +61,12 @@ class Neh::Cli::Base
61
61
  subscribe(connection)
62
62
  when 'confirm_subscription'
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Neh
4
- VERSION = "0.0.17"
4
+ VERSION = "0.0.18"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Atsushi Ishida