Skip to content

Commit

Permalink
Minor gem cleanup for chef-bin/chef-utils/chef-config
Browse files Browse the repository at this point in the history
Add metadata to chef-config
Update the descriptions for Chef Infra
Move dev deps to the gemfiles so we're consistent in all the gems in this repo
Just dep on rspec since rspec itself is mocks/expectations/core
Add rake dep to chef-bin
Nuke the unused .rspec file in chef-bin

Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 committed Oct 20, 2020
1 parent ec3933f commit c65fb93
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 15 deletions.
2 changes: 0 additions & 2 deletions chef-bin/.rspec

This file was deleted.

4 changes: 4 additions & 0 deletions chef-bin/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ source "https://rubygems.org"

# Specify your gem's dependencies in chef-config.gemspec
gemspec

group(:development, :test) do
gem "rake"
end
6 changes: 5 additions & 1 deletion chef-config/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@ source "https://rubygems.org"

gem "chef-utils", path: File.expand_path("../chef-utils", __dir__) if File.exist?(File.expand_path("../chef-utils", __dir__))

# Specify your gem's dependencies in chef-config.gemspec
gemspec

group(:development, :test) do
gem "rake"
gem "rspec", "~> 3.2"
end
16 changes: 9 additions & 7 deletions chef-config/chef-config.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,20 @@ Gem::Specification.new do |spec|
spec.authors = ["Adam Jacob"]
spec.email = ["[email protected]"]

spec.summary = %q{Chef's default configuration and config loading}
spec.summary = %q{Chef Infra's default configuration and config loading library}
spec.homepage = "https://github.com/chef/chef"
spec.license = "Apache-2.0"

spec.required_ruby_version = ">= 2.6.0"

spec.metadata = {
"bug_tracker_uri" => "https://github.com/chef/chef/issues",
"changelog_uri" => "https://github.com/chef/chef/CHANGELOG.md",
"documentation_uri" => "https://github.com/chef/chef/tree/master/chef-config/README.md",
"homepage_uri" => "https://github.com/chef/chef/tree/master/chef-config",
"source_code_uri" => "https://github.com/chef/chef/tree/master/chef-config",
}

spec.require_paths = ["lib"]

spec.add_dependency "chef-utils", "= #{ChefConfig::VERSION}"
Expand All @@ -23,12 +31,6 @@ Gem::Specification.new do |spec|
spec.add_dependency "addressable"
spec.add_dependency "tomlrb", "~> 1.2"

spec.add_development_dependency "rake"

%w{rspec-core rspec-expectations rspec-mocks}.each do |rspec|
spec.add_development_dependency(rspec, "~> 3.2")
end

spec.files = %w{Rakefile LICENSE} + Dir.glob("*.gemspec") +
Dir.glob("{lib,spec}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) }

Expand Down
2 changes: 1 addition & 1 deletion chef-utils/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ group(:development, :test) do
gem "fauxhai-ng"
gem "rake"
gem "rspec"
end
end
5 changes: 1 addition & 4 deletions chef-utils/chef-utils.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
spec.authors = ["Chef Software, Inc"]
spec.email = ["[email protected]"]

spec.summary = %q{Basic utility functions for Core Chef development}
spec.summary = %q{Basic utility functions for Core Chef Infra development}
spec.homepage = "https://github.com/chef/chef/tree/master/chef-utils"
spec.license = "Apache-2.0"

Expand Down Expand Up @@ -42,7 +42,4 @@ Gem::Specification.new do |spec|

spec.files = %w{Rakefile LICENSE} + Dir.glob("*.gemspec") +
Dir.glob("{lib,spec}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) }

spec.bindir = "bin"
spec.executables = []
end

0 comments on commit c65fb93

Please sign in to comment.