forked from inspec/inspec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename inspec-bin gems to cinc-auditor-bin
We need the ability to publish our own rubygems which include the cinc-auditor binary. This will also assist in allowing us easily to install this into other products (Cinc Client, Cinc Workstation, etc) which rely on gems for their omnibus installation. In addition, this pulls in our lib/inspec/dist.rb which provides fixes for the Chef trademarks.
- Loading branch information
Showing
8 changed files
with
73 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
source "https://rubygems.org" | ||
main_gemspec = File.expand_path("inspec-bin.gemspec", __dir__) | ||
main_gemspec = File.expand_path("cinc-auditor-bin.gemspec", __dir__) | ||
if File.exist?(main_gemspec) | ||
gemspec name: "inspec-bin" | ||
gemspec name: "cinc-auditor-bin" | ||
else | ||
gemspec name: "inspec-core-bin" | ||
gemspec name: "cinc-auditor-core-bin" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
lib = File.expand_path("lib", __dir__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require "inspec-bin/version" | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "cinc-auditor-bin" | ||
spec.version = InspecBin::VERSION | ||
spec.authors = ["Chef InSpec Core Engineering", "Cinc Project"] | ||
spec.email = ["[email protected]", "[email protected]"] | ||
spec.summary = "Infrastructure and compliance testing." | ||
spec.description = "Cinc Auditor (a community distribution of InSpec) executable for inspec gem." | ||
spec.homepage = "https://gitlab.com/cinc-project/auditor" | ||
spec.license = "Apache-2.0" | ||
|
||
spec.require_paths = ["lib"] | ||
spec.required_ruby_version = ">= 3.1.0" | ||
|
||
spec.add_dependency "inspec", "= #{InspecBin::VERSION}" | ||
spec.add_development_dependency "rake" | ||
|
||
spec.files = %w{README.md LICENSE Gemfile} + Dir.glob("*.gemspec") + | ||
Dir.glob("{lib,bin}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) } | ||
|
||
spec.bindir = "bin" | ||
spec.executables = %w{cinc-auditor} | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
lib = File.expand_path("lib", __dir__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require "inspec-bin/version" | ||
|
||
# This is just link inspec-bin, but relies on inspec-core instead of inspec | ||
# inspec-core is a stripped-down version of the inspec gem with fewer exotic dependencies | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "cinc-auditor-core-bin" # dallas multi-pass | ||
spec.version = InspecBin::VERSION | ||
spec.authors = ["Chef InSpec Core Engineering", "Cinc Project"] | ||
spec.email = ["[email protected]", "[email protected]"] | ||
spec.summary = "Infrastructure and compliance testing." | ||
spec.description = "Cinc Auditor (a community distribution of InSpec) executable for inspec-core gem." | ||
spec.homepage = "https://gitlab.com/cinc-project/auditor" | ||
spec.license = "Apache-2.0" | ||
|
||
spec.require_paths = ["lib"] | ||
|
||
spec.required_ruby_version = ">= 3.1.0" | ||
|
||
spec.add_dependency "inspec-core", "= #{InspecBin::VERSION}" | ||
spec.add_development_dependency "rake" | ||
|
||
spec.files = %w{README.md LICENSE Gemfile} + ["cinc-auditor-core-bin.gemspec"] + | ||
Dir.glob("{lib,bin}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) } | ||
|
||
spec.bindir = "bin" | ||
spec.executables = %w{cinc-auditor} | ||
|
||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters