diff options
-rw-r--r-- | ext/win32/win32-registry.gemspec | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/win32/win32-registry.gemspec b/ext/win32/win32-registry.gemspec index cbac30f221..ac5ff103d3 100644 --- a/ext/win32/win32-registry.gemspec +++ b/ext/win32/win32-registry.gemspec @@ -15,10 +15,13 @@ Gem::Specification.new do |spec| # Specify which files should be added to the gem when it is released. # The `git ls-files -z` loads the files in the RubyGem that have been added into git. + excludes = %w[ + bin/ test/ spec/ features/ rakelib/ + .git .github .mailmap appveyor Rakefile Gemfile + ] spec.files = Dir.chdir(__dir__) do `git ls-files -z`.split("\x0").reject do |f| - (File.expand_path(f) == __FILE__) || - f.start_with?(*%w[bin/ test/ spec/ features/ .git .github .mailmap appveyor Gemfile]) + File.identical?(f, __FILE__) || f.start_with?(*excludes) end end spec.bindir = "exe" |