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 +12 -4
- data/README.md +2 -0
- data/health_inspector.gemspec +1 -0
- data/lib/health_inspector/checklists/environments.rb +1 -1
- data/lib/health_inspector/context.rb +5 -1
- data/lib/health_inspector/version.rb +1 -1
- data/spec/environment_spec.rb +6 -0
- metadata +21 -10
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
data/health_inspector.gemspec
CHANGED
@@ -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
|
data/spec/environment_spec.rb
CHANGED
@@ -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.
|
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-
|
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: &
|
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: *
|
35
|
+
version_requirements: *70096246908800
|
25
36
|
- !ruby/object:Gem::Dependency
|
26
37
|
name: thor
|
27
|
-
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: *
|
46
|
+
version_requirements: *70096246908060
|
36
47
|
- !ruby/object:Gem::Dependency
|
37
48
|
name: chef
|
38
|
-
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: *
|
57
|
+
version_requirements: *70096246907060
|
47
58
|
- !ruby/object:Gem::Dependency
|
48
59
|
name: yajl-ruby
|
49
|
-
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: *
|
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:
|