Skip to content

Commit

Permalink
Excluded the generated gem file
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhamo1107 committed Aug 16, 2024
1 parent e30dc8a commit e07bcfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion un_used_methods.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e07bcfa

Please sign in to comment.