yourmom 0.0.1 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/yourmom +13 -2
- data/lib/yourmom/version.rb +1 -1
- metadata +1 -1
data/bin/yourmom
CHANGED
@@ -4,12 +4,23 @@ require 'yourmom/version'
|
|
4
4
|
require 'trollop'
|
5
5
|
|
6
6
|
opts = Trollop::options do
|
7
|
+
version "yourmom Version #{Yourmom::VERSION}\n"
|
7
8
|
banner <<-EOS
|
8
9
|
--------------------------------------------------------------------------------
|
9
10
|
Your Mom.
|
10
11
|
Guess where she was last night.
|
11
12
|
--------------------------------------------------------------------------------
|
12
13
|
EOS
|
13
|
-
|
14
|
-
|
14
|
+
stop_on ['where']
|
15
|
+
end
|
16
|
+
|
17
|
+
cmd = ARGV.shift # get the subcommand
|
18
|
+
|
19
|
+
case cmd
|
20
|
+
when "where", "where-is-she"
|
21
|
+
puts "my house\n"
|
22
|
+
when "with-who", "with-whom"
|
23
|
+
puts "me\n"
|
24
|
+
else
|
25
|
+
puts "She loves me.\n"
|
15
26
|
end
|
data/lib/yourmom/version.rb
CHANGED