Skip to content

Commit

Permalink
Exclude spec files from gem package
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda authored and postmodern committed Aug 2, 2024
1 parent 77a8b9d commit eb3bf9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion digest-crc.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Gem::Specification.new do |gem|

glob = lambda { |patterns| gem.files & Dir[*patterns] }

gem.files = `git ls-files`.split($/)
gem.files = `git ls-files`.split($/).grep_v(/^spec\//)
gem.files = glob[gemspec['files']] if gemspec['files']

gem.executables = gemspec.fetch('executables') do
Expand Down

0 comments on commit eb3bf9e

Please sign in to comment.