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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/sesh/tmux_control.rb +1 -0
- data/lib/sesh/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 546e6932a2c132c08be11a6ccff7c3b714778c53
|
4
|
+
data.tar.gz: 7fd7d50aaa96646c42e13f16e1d15f08de70a779
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e45ff4af504372588601386ebeeee68889952bc0ec29d7b7c5d64d811a02d68415ab639dfc4c28dff61879028f8f354ea5de14b5bbba2d2f7f2602718d2ab9cf
|
7
|
+
data.tar.gz: f1ffaddb8feb4fc0261011529e9a71610302dcd531301f08d66aea59948c0dfe191e93ffdc5c3e852e7bd997b099f34a1ba47478b08b9cc15a62e88ebe9b260c
|
data/Gemfile.lock
CHANGED
data/lib/sesh/tmux_control.rb
CHANGED
@@ -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