shell-base 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shell_base.rb +6 -5
- data/lib/shell_base/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: 6d110b2543846097937591347d0acaf442ef8883
|
4
|
+
data.tar.gz: 297d5a53578e2dead80e45db09d78d82672224e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d56885b5410e7d512d49d3901d0792ebc2d4ab2bacd9e1863e7c3e621e17d1bd3f36dd18fa7e0a3eab9f3292e0112b43175e617fc425229d3db54461868f1e1d
|
7
|
+
data.tar.gz: 0b2956f87e9b45ffd6e9de45a7288bff88bb177c43934723c63e4ea3d73e597aad1d1d5bf538ab1287c39f8682157b80fcc4e83e5afc0ae15301f321aa2a847e
|
data/lib/shell_base.rb
CHANGED
@@ -23,11 +23,12 @@ class ShellBase
|
|
23
23
|
def readline
|
24
24
|
input = Readline.readline(prompt, true).split(" ")
|
25
25
|
cmd = input.shift
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
26
|
+
if cmd
|
27
|
+
begin
|
28
|
+
send(cmd, *input)
|
29
|
+
rescue Exit
|
30
|
+
return false
|
31
|
+
end
|
31
32
|
end
|
32
33
|
true
|
33
34
|
end
|
data/lib/shell_base/version.rb
CHANGED