yourmom 0.0.1 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/yourmom +13 -2
  2. data/lib/yourmom/version.rb +1 -1
  3. metadata +1 -1
@@ -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
- version "yourmom Version #{Gpig::VERSION}\n"
14
- where "My house.\n\n"
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
@@ -1,3 +1,3 @@
1
1
  module Yourmom
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yourmom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: