zombie_passenger_killer 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/bin/zombie_passenger_killer +1 -1
- data/spec/zombie_passenger_killer_spec.rb +8 -0
- data/zombie_passenger_killer.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/bin/zombie_passenger_killer
CHANGED
@@ -26,7 +26,7 @@ BANNER
|
|
26
26
|
opts.on("-i", "--interval [SECONDS]", Integer, "Check every SECONDS (default: 10)") {|i| options[:interval]=i }
|
27
27
|
opts.on("-p", "--pattern [PATTERN]", String, "Find processes with this pattern (default: ' Rack: ')") {|i| options[:pattern]=i }
|
28
28
|
opts.on("-h", "--help","Show this.") { puts opts; exit }
|
29
|
-
opts.on('-v', '--version','Show Version'){ puts
|
29
|
+
opts.on('-v', '--version','Show Version'){ puts ZombiePassengerKiller::VERSION; exit}
|
30
30
|
end.parse!
|
31
31
|
|
32
32
|
$stdout.sync = true
|
@@ -55,4 +55,12 @@ describe ZombiePassengerKiller do
|
|
55
55
|
killer.should_receive(:kill_zombie).with(111)
|
56
56
|
killer.hunt_zombies
|
57
57
|
end
|
58
|
+
|
59
|
+
it "prints its version" do
|
60
|
+
`./bin/zombie_passenger_killer -v`.should =~ /^\d+\.\d+\.\d+$/m
|
61
|
+
end
|
62
|
+
|
63
|
+
it "prints help" do
|
64
|
+
`./bin/zombie_passenger_killer -h`.should include('Usage')
|
65
|
+
end
|
58
66
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zombie_passenger_killer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Grosser
|