zombie_passenger_killer 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -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 Smusher::VERSION; exit}
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{zombie_passenger_killer}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Grosser"]
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: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Grosser