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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed8cf60d589d4b695bb7caf6576457d7e0f43b67
4
- data.tar.gz: a7a109fe5ebe3ef4fac5e0571d8de1a354ed3eb8
3
+ metadata.gz: 6d110b2543846097937591347d0acaf442ef8883
4
+ data.tar.gz: 297d5a53578e2dead80e45db09d78d82672224e1
5
5
  SHA512:
6
- metadata.gz: 89120005b61e65cc602d1b18fc6e8fefb176704d4ced0152e297686ebc94653c920aa3d222a70e6b9040424a319f71b27ef713189ae5efe53ba4a502a2a37bb7
7
- data.tar.gz: 164dc852525cab1539ec2d6b601b67edc1e9d8eabb6410dac8efdcf8e7e86107eb58fb3d45d81b290237d000f9d4ec5d1ce2adf8aa944454532d0118353840a5
6
+ metadata.gz: d56885b5410e7d512d49d3901d0792ebc2d4ab2bacd9e1863e7c3e621e17d1bd3f36dd18fa7e0a3eab9f3292e0112b43175e617fc425229d3db54461868f1e1d
7
+ data.tar.gz: 0b2956f87e9b45ffd6e9de45a7288bff88bb177c43934723c63e4ea3d73e597aad1d1d5bf538ab1287c39f8682157b80fcc4e83e5afc0ae15301f321aa2a847e
@@ -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
- begin
28
- send(cmd, *input)
29
- rescue Exit
30
- return false
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
@@ -1,3 +1,3 @@
1
1
  class ShellBase
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shell-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - myun2