kitty 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +9 -0
- data/bin/kitty +18 -1
- data/kitty.gemspec +1 -1
- data/pkg/kitty-0.0.2.gem +0 -0
- metadata +4 -3
data/README.md
CHANGED
@@ -3,6 +3,15 @@ Installation:
|
|
3
3
|
(sudo) gem install kitty
|
4
4
|
|
5
5
|
Then run `kitty` to brighten up your day!
|
6
|
+
|
7
|
+
|
8
|
+
Now with more options!:
|
9
|
+
=======================
|
10
|
+
kitty -c 5 # Prints 5 kitties
|
11
|
+
kitty -c 100 # Unbelievably prints 100 kitties!
|
12
|
+
|
13
|
+
kitty -h # Prints help menu
|
14
|
+
|
6
15
|
--------------------------------------------------------
|
7
16
|
|
8
17
|
bryanwoods4e@bryan-woodss-macbook-pro:~$ kitty
|
data/bin/kitty
CHANGED
@@ -273,6 +273,23 @@ class Kitty
|
|
273
273
|
end
|
274
274
|
end
|
275
275
|
|
276
|
+
require 'optparse'
|
277
|
+
|
278
|
+
options = { :count => 1 }
|
279
|
+
OptionParser.new do |opts|
|
280
|
+
opts.banner = "Usage #{__FILE__} [options]"
|
281
|
+
opts.on("-c N", "--count N", "How many kitties do you want?") do |count|
|
282
|
+
options[:count] = count.to_i
|
283
|
+
end
|
284
|
+
|
285
|
+
opts.on_tail("-h", "--help", "Show this message") do
|
286
|
+
puts opts
|
287
|
+
exit
|
288
|
+
end
|
289
|
+
end.parse!
|
290
|
+
|
276
291
|
kitty = Kitty.new
|
277
|
-
|
292
|
+
options[:count].times do
|
293
|
+
kitty.random_kitty
|
294
|
+
end
|
278
295
|
|
data/kitty.gemspec
CHANGED
data/pkg/kitty-0.0.2.gem
ADDED
Binary file
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 3
|
9
|
+
version: 0.0.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Bryan Woods
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-07-14 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|
@@ -30,6 +30,7 @@ files:
|
|
30
30
|
- bin/kitty
|
31
31
|
- kitty.gemspec
|
32
32
|
- pkg/kitty-0.0.1.gem
|
33
|
+
- pkg/kitty-0.0.2.gem
|
33
34
|
- README.md
|
34
35
|
has_rdoc: true
|
35
36
|
homepage: http://github.com/bryanwoods/kitty
|