health_inspector 0.5.0 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.md CHANGED
@@ -1,10 +1,18 @@
1
+ ## 0.5.2 ( 2012-10-19 )
2
+
3
+ * Make loading of Chef Config a little more robust.
4
+
5
+ ## 0.5.1 ( 2012-10-15 )
6
+
7
+ * Ignore _default environment if it only exists on the server.
8
+
1
9
  ## 0.5.0 ( 2012-10-14 )
2
10
 
3
11
  * Switch to RSpec
4
- * Add some test coverage (still needs much more)
5
- * Add option to suppress terminal output on successful checks
6
- * Add option to not use ansi color output
7
- * Make cookbook version comparison use Chef's native version class
12
+ * Add some test coverage (still needs much more).
13
+ * Add option to suppress terminal output on successful checks.
14
+ * Add option to not use ansi color output.
15
+ * Make cookbook version comparison use Chef's native version class.
8
16
 
9
17
  ## 0.4.1 ( 2012-09-28 )
10
18
 
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Build Status](https://secure.travis-ci.org/bmarini/health_inspector.png)](http://travis-ci.org/bmarini/health_inspector)
2
+
1
3
  ## Summary
2
4
 
3
5
  `health_inspector` is tool to inspect your chef repo as it compares to what is
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
+ s.add_development_dependency "rake"
21
22
  s.add_development_dependency "rspec"
22
23
 
23
24
  s.add_runtime_dependency "thor"
@@ -6,7 +6,7 @@ module HealthInspector
6
6
  title "environments"
7
7
 
8
8
  add_check "local copy exists" do
9
- failure "exists on server but not locally" unless item.local
9
+ failure "exists on server but not locally" unless item.local || item.name == '_default'
10
10
  end
11
11
 
12
12
  add_check "server copy exists" do
@@ -14,7 +14,11 @@ module HealthInspector
14
14
  end
15
15
 
16
16
  def configure
17
- Chef::Config.from_file(config_path)
17
+ begin
18
+ Chef::Config.from_file(config_path)
19
+ rescue LoadError
20
+ Chef::Config.from_file("#{ENV['PWD']}/#{config_path}")
21
+ end
18
22
  Chef::Config
19
23
  end
20
24
 
@@ -1,3 +1,3 @@
1
1
  module HealthInspector
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.2"
3
3
  end
@@ -38,4 +38,10 @@ describe "HealthInspector::Checklists::Environments" do
38
38
  failures.should be_empty
39
39
  end
40
40
 
41
+ it "should ignore _default environment if it only exists on server" do
42
+ obj = item.new("_default", {}, nil)
43
+
44
+ failures = subject.run_checks(obj)
45
+ failures.should be_empty
46
+ end
41
47
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: health_inspector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-14 00:00:00.000000000 Z
12
+ date: 2012-10-19 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: &70096246909580 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: *70096246909580
14
25
  - !ruby/object:Gem::Dependency
15
26
  name: rspec
16
- requirement: &70309192996340 !ruby/object:Gem::Requirement
27
+ requirement: &70096246908800 !ruby/object:Gem::Requirement
17
28
  none: false
18
29
  requirements:
19
30
  - - ! '>='
@@ -21,10 +32,10 @@ dependencies:
21
32
  version: '0'
22
33
  type: :development
23
34
  prerelease: false
24
- version_requirements: *70309192996340
35
+ version_requirements: *70096246908800
25
36
  - !ruby/object:Gem::Dependency
26
37
  name: thor
27
- requirement: &70309192995660 !ruby/object:Gem::Requirement
38
+ requirement: &70096246908060 !ruby/object:Gem::Requirement
28
39
  none: false
29
40
  requirements:
30
41
  - - ! '>='
@@ -32,10 +43,10 @@ dependencies:
32
43
  version: '0'
33
44
  type: :runtime
34
45
  prerelease: false
35
- version_requirements: *70309192995660
46
+ version_requirements: *70096246908060
36
47
  - !ruby/object:Gem::Dependency
37
48
  name: chef
38
- requirement: &70309192994720 !ruby/object:Gem::Requirement
49
+ requirement: &70096246907060 !ruby/object:Gem::Requirement
39
50
  none: false
40
51
  requirements:
41
52
  - - ~>
@@ -43,10 +54,10 @@ dependencies:
43
54
  version: '10.14'
44
55
  type: :runtime
45
56
  prerelease: false
46
- version_requirements: *70309192994720
57
+ version_requirements: *70096246907060
47
58
  - !ruby/object:Gem::Dependency
48
59
  name: yajl-ruby
49
- requirement: &70309192994080 !ruby/object:Gem::Requirement
60
+ requirement: &70096246906480 !ruby/object:Gem::Requirement
50
61
  none: false
51
62
  requirements:
52
63
  - - ! '>='
@@ -54,7 +65,7 @@ dependencies:
54
65
  version: '0'
55
66
  type: :runtime
56
67
  prerelease: false
57
- version_requirements: *70309192994080
68
+ version_requirements: *70096246906480
58
69
  description: A tool to inspect your chef repo as is compares to what is on your chef
59
70
  server
60
71
  email: