knife-inspect 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93d11b775e0d0a9c62affe93ccf80f97e76ba075
4
- data.tar.gz: 0840a56e0c61e3e8aeae5964fd861f55719124cc
3
+ metadata.gz: 608b6f567c14d1acc4050055b55135c26ba012a7
4
+ data.tar.gz: 4387aaaf508725bf67d3e93cb05ebd1e9a3bfe02
5
5
  SHA512:
6
- metadata.gz: 5437694f23d11c9c5eb948e32f8532c29f77d52fc30acf275552fdd16572d293563deaa36af45483c1040f2860f3fc0e017abbb4d3331b552cebbfb9a4051833
7
- data.tar.gz: b9e3d09b260fc0762c20215eece40f710a511e94c34dc5793192e17239b9dc266468b3067d0960874e35779838d1016c681248ccc3a6d70b22a789475c049bb5
6
+ metadata.gz: b3ee1759814c36e62c058754a9424c8f6716e05917988286466cf2b359f5f937feea458c566aa8bb73127fa92522287bcb5852553de1d54d57c7a8a284e4c4f5
7
+ data.tar.gz: 0bd7fb3ca37b2b465851ea0a65ab100469b67e7095ad1fe75605827095f39665b82bc9405c4f98b157024058806f4b7ee7ce398f3192e2b72e34370fc1547fef
data/.travis.yml CHANGED
@@ -2,10 +2,7 @@ language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
4
  env:
5
- - CHEF_VERSION=10.24.0
6
- - CHEF_VERSION=10.26.0
7
- - CHEF_VERSION=11.4.0
8
- - CHEF_VERSION=11.4.4
9
- - CHEF_VERSION=11.6.0
5
+ - CHEF_VERSION=10.30.2
6
+ - CHEF_VERSION=11.8.2
10
7
  before_script:
11
8
  - chef-client --version
data/HISTORY.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.7.1 ( 2014-01-06 )
2
+
3
+ * Small bug fix: `knife data bag inspect` returned the status code only for
4
+ data bag items, not data bags.
5
+
1
6
  ## 0.7.0 ( 2014-01-03 )
2
7
 
3
8
  > It's alive! Thanks a lot to Ben Marini for starting this project!
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  [![Build Status](https://secure.travis-ci.org/bmarini/knife-inspect.png)](http://travis-ci.org/bmarini/knife-inspect)
2
+ [![Code Climate](https://codeclimate.com/github/bmarini/knife-inspect.png)](https://codeclimate.com/github/bmarini/knife-inspect)
2
3
 
3
4
  ## Summary
4
5
 
@@ -41,3 +42,12 @@ So far it checks if...
41
42
  * your data bag items are in sync
42
43
  * your environments are in sync
43
44
  * your roles are in sync
45
+
46
+ ## Contributing
47
+
48
+ 1. Fork it
49
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
50
+ 3. Do not bump the version number
51
+ 4. Commit your changes (`git commit -am 'Add some feature'`)
52
+ 5. Push to the branch (`git push origin my-new-feature`)
53
+ 6. Create new Pull Request
@@ -26,8 +26,8 @@ class Chef
26
26
  exit validator.validate_item( validator.load_item(bag_name) )
27
27
 
28
28
  when 0 # We are inspecting all the data bags
29
- HealthInspector::Checklists::DataBags.run(self)
30
- exit HealthInspector::Checklists::DataBagItems.run(self)
29
+ exit HealthInspector::Checklists::DataBags.run(self) &&
30
+ HealthInspector::Checklists::DataBagItems.run(self)
31
31
  end
32
32
  end
33
33
  end
@@ -1,3 +1,3 @@
1
1
  module HealthInspector
2
- VERSION = '0.7.0'
2
+ VERSION = '0.7.1'
3
3
  end
@@ -2,5 +2,5 @@ require 'spec_helper'
2
2
 
3
3
  describe HealthInspector::Checklists::DataBagItem do
4
4
  it_behaves_like "a chef model"
5
- it_behaves_like "a chef model that can be respresented in json"
5
+ it_behaves_like "a chef model that can be represented in json"
6
6
  end
@@ -4,7 +4,7 @@ describe HealthInspector::Checklists::Environment do
4
4
  let(:pairing) { described_class.new(health_inspector_context) }
5
5
 
6
6
  it_behaves_like "a chef model"
7
- it_behaves_like "a chef model that can be respresented in json"
7
+ it_behaves_like "a chef model that can be represented in json"
8
8
 
9
9
  it "should ignore _default environment if it only exists on server" do
10
10
  pairing.name = "_default"
data/spec/role_spec.rb CHANGED
@@ -2,5 +2,5 @@ require 'spec_helper'
2
2
 
3
3
  describe HealthInspector::Checklists::Role do
4
4
  it_behaves_like "a chef model"
5
- it_behaves_like "a chef model that can be respresented in json"
5
+ it_behaves_like "a chef model that can be represented in json"
6
6
  end
data/spec/spec_helper.rb CHANGED
@@ -49,7 +49,7 @@ shared_examples "a chef model" do
49
49
  end
50
50
  end
51
51
 
52
- shared_examples "a chef model that can be respresented in json" do
52
+ shared_examples "a chef model that can be represented in json" do
53
53
  let(:pairing) { described_class.new(health_inspector_context, :name => "dummy") }
54
54
 
55
55
  it "should detect if an item is different" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-inspect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Karékinian
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-03 00:00:00.000000000 Z
12
+ date: 2014-01-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -120,8 +120,6 @@ files:
120
120
  - lib/health_inspector/inspector.rb
121
121
  - lib/health_inspector/pairing.rb
122
122
  - lib/health_inspector/version.rb
123
- - spec/chef-repo/.chef/client.pem
124
- - spec/chef-repo/.chef/knife.rb
125
123
  - spec/cookbook_spec.rb
126
124
  - spec/data_bag_item_spec.rb
127
125
  - spec/data_bag_spec.rb
@@ -153,8 +151,6 @@ signing_key:
153
151
  specification_version: 4
154
152
  summary: Inspect your chef repo as it is compared to what is on your chef server
155
153
  test_files:
156
- - spec/chef-repo/.chef/client.pem
157
- - spec/chef-repo/.chef/knife.rb
158
154
  - spec/cookbook_spec.rb
159
155
  - spec/data_bag_item_spec.rb
160
156
  - spec/data_bag_spec.rb
File without changes
@@ -1,7 +0,0 @@
1
- chef_repo_dir = File.expand_path( "../", File.dirname(__FILE__) )
2
-
3
- client_key "#{chef_repo_dir}/.chef/client.pem"
4
- log_level :info
5
- log_location STDOUT
6
- cache_type "BasicFile"
7
- cookbook_path [ "#{chef_repo_dir}/cookbooks" ]