daikon 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{daikon}
8
- s.version = "0.8.0"
8
+ s.version = "0.8.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nick Quaranto"]
@@ -27,5 +27,5 @@ require 'daikon/daemons_hacks'
27
27
  require 'daikon/redis_hacks'
28
28
 
29
29
  module Daikon
30
- VERSION = "0.8.0"
30
+ VERSION = "0.8.1"
31
31
  end
@@ -22,7 +22,7 @@ module Daikon
22
22
  end
23
23
 
24
24
  def validate_deprecated_options
25
- if argv_matches?(/\-h|\-p/)
25
+ if argv_matches?(/^(\-h|\-p)$/)
26
26
  abort "Please use '-u redis://127.0.0.1:6379' format instead to specify redis url"
27
27
  end
28
28
  end
@@ -48,6 +48,14 @@ describe Daikon::Configuration do
48
48
  end
49
49
  end
50
50
 
51
+ it "does not fail if --help option given" do
52
+ capture do
53
+ lambda {
54
+ Daikon::Configuration.new(%w[--help])
55
+ }.should_not raise_error(SystemExit)
56
+ end
57
+ end
58
+
51
59
  it "fails if -p option given" do
52
60
  capture do
53
61
  lambda {
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: daikon
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.8.0
5
+ version: 0.8.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nick Quaranto