diff --git a/inspec-bin/Gemfile b/inspec-bin/Gemfile new file mode 100644 index 000000000..129149897 --- /dev/null +++ b/inspec-bin/Gemfile @@ -0,0 +1,2 @@ +source "https://rubygems.org" +gemspec \ No newline at end of file diff --git a/inspec-bin/LICENSE b/inspec-bin/LICENSE new file mode 100644 index 000000000..06da87657 --- /dev/null +++ b/inspec-bin/LICENSE @@ -0,0 +1,13 @@ +Copyright (c) 2019 Chef Software Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/bin/inspec b/inspec-bin/bin/inspec similarity index 100% rename from bin/inspec rename to inspec-bin/bin/inspec diff --git a/inspec-bin/inspec-bin.gemspec b/inspec-bin/inspec-bin.gemspec new file mode 100644 index 000000000..b3ac4c07f --- /dev/null +++ b/inspec-bin/inspec-bin.gemspec @@ -0,0 +1,23 @@ +lib = File.expand_path('../lib', __FILE__) +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +require 'inspec/version' # Always match inspec version + +Gem::Specification.new do |spec| + spec.name = 'inspec-bin' + spec.version = Inspec::VERSION + spec.authors = ['Chef InSpec Core Engineering '] + spec.email = ['inspec@chef.io'] + spec.summary = 'Infrastructure and compliance testing.' + spec.description = 'InSpec executable for inspec gem. Use of this executable requires a commercial relationship Chef Software.' + spec.homepage = 'https://github.com/inspec/inspec' + spec.license = 'Apache-2.0' + + # the gemfile and gemspec are necessary for appbundler so don't remove it + spec.files = %w{Gemfile inspec-bin.gemspec LICENSE} + Dir.glob( + '{bin,lib}/**/*', File::FNM_DOTMATCH + ).reject { |f| File.directory?(f) } + + spec.require_paths = ['lib'] + + spec.required_ruby_version = '>= 2.4' +end