knife-chef-inventory 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e718e13d67cb2cf5c773b660bee9373be4a3958c
4
- data.tar.gz: a42cbab0cd03774bb22c4b1b1062b721b36d1ee2
3
+ metadata.gz: 891a467a33c1abb7858971a44f1fe4bf5a3ca027
4
+ data.tar.gz: 821c5da2b406afddd996d41256c46987fd87408d
5
5
  SHA512:
6
- metadata.gz: f1d757fd3a97ed5268e3f16330d96703a7fd299cd6370c4a05a8ab4ca63aca6e2625bea1bd0a7dccce28beabb7f06779f17bd67153a71c1ac9815ea0cac5fe98
7
- data.tar.gz: 502be5c618bf9e14138cebccc050da6ff665331e088d4c2be45776b3b9fa889b7e7d1386cf2c265b6dacefb41b4b5edca48bf701a6bd9c7588dae5e43e656a29
6
+ metadata.gz: bd37739b7bcd75d96a883690a91cfcfe555e6ef4fa2b5fd5ae9873e6491675ec44a206a44d2e7853759f0562f6b2f511a8bc9c3a7dc544973388041faa0b55f4
7
+ data.tar.gz: f61c912efc5a9db935c6307e8a4a52434922637569327363e8fea9d1f366e19fc3303496e7448cb8076bddde4b6a6e19906b3cf63558a77bea3a36f6598c09cb
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3.1
1
+ 2.1.8
data/CHANGELOG.md CHANGED
@@ -1,10 +1,18 @@
1
1
  # Change Log
2
2
 
3
+ ## [v0.2.0](https://github.com/brentm5/knife-chef-inventory/tree/v0.2.0) (2016-08-16)
4
+ [Full Changelog](https://github.com/brentm5/knife-chef-inventory/compare/v0.1.0...v0.2.0)
5
+
6
+ **Merged pull requests:**
7
+
8
+ - Fix when using ruby 2.1.8 [\#9](https://github.com/brentm5/knife-chef-inventory/pull/9) ([brentm5](https://github.com/brentm5))
9
+
3
10
  ## [v0.1.0](https://github.com/brentm5/knife-chef-inventory/tree/v0.1.0) (2016-08-12)
4
11
  [Full Changelog](https://github.com/brentm5/knife-chef-inventory/compare/v0.0.1...v0.1.0)
5
12
 
6
13
  **Merged pull requests:**
7
14
 
15
+ - Add changelog generator and cleanup naming [\#7](https://github.com/brentm5/knife-chef-inventory/pull/7) ([brentm5](https://github.com/brentm5))
8
16
  - Update banner for inventory\_cookbook.rb [\#6](https://github.com/brentm5/knife-chef-inventory/pull/6) ([afiune](https://github.com/afiune))
9
17
  - Add more information to readme [\#4](https://github.com/brentm5/knife-chef-inventory/pull/4) ([brentm5](https://github.com/brentm5))
10
18
  - Add more to the readme and fix travis [\#3](https://github.com/brentm5/knife-chef-inventory/pull/3) ([brentm5](https://github.com/brentm5))
@@ -17,6 +17,8 @@ Gem::Specification.new do |s|
17
17
  s.files = `git ls-files`.split("\n")
18
18
  s.require_paths = ["lib"]
19
19
 
20
+ s.required_ruby_version = "~> 2.1"
21
+
20
22
  s.add_dependency "chef", "<= 12.11.18"
21
23
 
22
24
  s.add_development_dependency "bundler", "~> 1.6"
@@ -58,7 +58,7 @@ class Chef
58
58
  client_usage = client_usage_per_version[version]
59
59
  return unless client_usage
60
60
 
61
- ui.info "#{version} is used by #{client_usage} hosts" if client_usage.positive?
61
+ ui.info "#{version} is used by #{client_usage} hosts" if client_usage > 0
62
62
  end
63
63
 
64
64
  def time_since(timestamp)
@@ -93,7 +93,7 @@ class Chef
93
93
  def analyze_version(version)
94
94
  cookbook_usage = cookbook_usage_per_version[version]
95
95
  if cookbook_usage
96
- ui.info "#{version} is used by #{cookbook_usage} hosts" if cookbook_usage.positive?
96
+ ui.info "#{version} is used by #{cookbook_usage} hosts" if cookbook_usage > 0
97
97
  end
98
98
  end
99
99
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Knife
3
3
  module ChefInventory
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0".freeze
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-chef-inventory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brent Montague
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-12 00:00:00.000000000 Z
11
+ date: 2016-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef
@@ -111,9 +111,9 @@ require_paths:
111
111
  - lib
112
112
  required_ruby_version: !ruby/object:Gem::Requirement
113
113
  requirements:
114
- - - ">="
114
+ - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: '0'
116
+ version: '2.1'
117
117
  required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  requirements:
119
119
  - - ">="
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  requirements: []
123
123
  rubyforge_project:
124
- rubygems_version: 2.5.1
124
+ rubygems_version: 2.2.5
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: Chef Knife plugin to help cleanup outdated cookbooks