Merge pull request #217 from chef/tball/gem_spec

Not using git in the gemspec file
This commit is contained in:
Dominik Richter 2015-11-05 11:07:51 +01:00
commit 1373496560

View file

@ -13,8 +13,9 @@ Gem::Specification.new do |spec|
spec.homepage = 'https://github.com/chef/inspec' spec.homepage = 'https://github.com/chef/inspec'
spec.license = 'Apache 2.0' spec.license = 'Apache 2.0'
spec.files = `hash git 2>/dev/null && git ls-files -z`.split("\x0").find_all { |x| x !~ /^\.delivery/ } spec.files = %w(README.md Rakefile MAINTAINERS.toml MAINTAINERS.md LICENSE inspec.gemspec Gemfile CHANGELOG.md .rubocop.yml) +
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } Dir.glob("{bin,docs,examples,lib,tasks,test}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) }
spec.executables = %w( inspec )
spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib'] spec.require_paths = ['lib']