diff --git a/ridgepole.gemspec b/ridgepole.gemspec index 40897ee5..a2a7fe37 100644 --- a/ridgepole.gemspec +++ b/ridgepole.gemspec @@ -14,9 +14,12 @@ Gem::Specification.new do |spec| spec.homepage = 'https://github.com/ridgepole/ridgepole' spec.license = 'MIT' - spec.files = `git ls-files -z`.split("\x0") + spec.files = Dir.chdir(File.expand_path(__dir__)) do + `git ls-files -z`.split("\x0").reject do |f| + f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)}) + end + end spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } - spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ['lib'] spec.required_ruby_version = Gem::Requirement.new('>= 2.2.7') # rubocop:disable Gemspec/RequiredRubyVersion