sesh 0.3.0 → 0.3.1

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: 874c4775437a219acbe216d2f96876483e81f38d
4
- data.tar.gz: 292433cee503cfe8458341acf001b0c87b3c39c3
3
+ metadata.gz: 546e6932a2c132c08be11a6ccff7c3b714778c53
4
+ data.tar.gz: 7fd7d50aaa96646c42e13f16e1d15f08de70a779
5
5
  SHA512:
6
- metadata.gz: 0e5f7543613803df60a7acb83f2802fd6791caf9c7e994a2190b1a65207702abd13ba1aadefb74e53fcbd916d908d1280d9de472edbae59f5e01bfa1deead3aa
7
- data.tar.gz: f317cfcdace6ddc0f0f7dda8911a49cff671a7a43ff0f87e850b41a01059b4428b702bb61a1e30ec9e25f77ed89b2b576bed7633a2ef9a534a26a22b8a5fd727
6
+ metadata.gz: e45ff4af504372588601386ebeeee68889952bc0ec29d7b7c5d64d811a02d68415ab639dfc4c28dff61879028f8f354ea5de14b5bbba2d2f7f2602718d2ab9cf
7
+ data.tar.gz: f1ffaddb8feb4fc0261011529e9a71610302dcd531301f08d66aea59948c0dfe191e93ffdc5c3e852e7bd997b099f34a1ba47478b08b9cc15a62e88ebe9b260c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sesh (0.3.0)
4
+ sesh (0.3.1)
5
5
  awesome_print
6
6
  colorize
7
7
  deep_merge
@@ -123,6 +123,7 @@ module Sesh
123
123
  def disconnect_client_by_index!(index)
124
124
  disconnect_client_by_device! connected_client_devices[index] end
125
125
  def disconnect_client!(identifier)
126
+ identifier = '127.0.0.1' if identifier.nil? || identifier.length == 0
126
127
  if identifier.to_i.to_s == identifier.to_s # It's an integer
127
128
  disconnect_client_by_index! identifier.to_i - 1
128
129
  elsif identifier =~ /[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/ # It's an ip
data/lib/sesh/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sesh
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sesh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - MacKinley Smith