shell-base 0.1.0 → 0.1.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: f9b78e3438680d50f8451f0f148e1fdeca5f6bb4
4
- data.tar.gz: 579d5264ebe68ab5641a6ee367f8266ff9f70f27
3
+ metadata.gz: fa79fe78424802c99dbcd0d71c9d98663c2ce978
4
+ data.tar.gz: 38acfc0732dfbde7045ac5b33614e8bf661e00a0
5
5
  SHA512:
6
- metadata.gz: a9692848ebd5a75c62b628ca37f0fb9037159c098c709c3a0d0c50750430e9bf1bfe20c228c0cf3d4ba257c4e285d858c905829e663e3bc64e08def8b6981e0d
7
- data.tar.gz: e75c1cf3651a62ee3ff4c8f85411226316a4361d71df497b75bf7855be9a4c46a3a3e29b2f0f9f7ee90c3c6f575a03c158c91338808b2b5390c3d8f824e57e75
6
+ metadata.gz: 24bbca9a3a50afa14f04ca899ede765ea9a3d3057b23814eeb699ce64d8981e5eb63dd48ad0c111c862855a6648d08d374d9a295d1fd8ffd4f19fcdde84d4f22
7
+ data.tar.gz: 07a25afc2f0bb5ed2ea9dd9c57f01a6804bce6404c44dd093544e6d5b44354b51b3f0d73127cdd5b51288fa97177200df7288fc37d539cf83c136e83cdac9613
@@ -1,3 +1,3 @@
1
1
  class ShellBase
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/shell_base.rb CHANGED
@@ -17,7 +17,7 @@ class ShellBase
17
17
 
18
18
  return if cmd == 'exit'
19
19
  if respond_to? cmd
20
- send(cmd, input)
20
+ send(cmd, *input)
21
21
  else
22
22
  puts cmd + ": Command not found"
23
23
  end
@@ -4,6 +4,9 @@ describe ShellBase do
4
4
  before do
5
5
  class ExampleShell < ShellBase
6
6
  prompt "$ "
7
+ def test
8
+ puts "Test is success!"
9
+ end
7
10
  end
8
11
  end
9
12
  it { ExampleShell.new }
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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - myun2