diff --git a/un_used_methods.gemspec b/un_used_methods.gemspec index e83aee7..aa1f76e 100644 --- a/un_used_methods.gemspec +++ b/un_used_methods.gemspec @@ -26,7 +26,8 @@ Gem::Specification.new do |spec| spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls| ls.readlines("\x0", chomp: true).reject do |f| (f == gemspec) || - f.start_with?(*%w[bin/ test/ spec/ features/ .git .github appveyor Gemfile]) + f.start_with?(*%w[bin/ test/ spec/ features/ .git .github appveyor Gemfile]) || + f.end_with?("#{spec.name}-#{spec.version}.gem") end end spec.bindir = "exe"