Skip to content

Commit

Permalink
Merge pull request #646 from orien/reduce-gem-contents
Browse files Browse the repository at this point in the history
Remove development and test files from the gem package
  • Loading branch information
flyerhzm committed Jun 24, 2023
2 parents 5e9e07f + 2d89ac4 commit 41d713f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bullet.gemspec
Expand Up @@ -27,7 +27,11 @@ Gem::Specification.new do |s|
s.add_runtime_dependency 'activesupport', '>= 3.0.0'
s.add_runtime_dependency 'uniform_notifier', '~> 1.11'

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.files = Dir.chdir(__dir__) do
`git ls-files -z`.split("\x0").reject do |file|
file.start_with?(*%w[.git .rspec Gemfile Guardfile Hacking Rakefile
bullet.gemspec perf rails spec test.sh update.sh])
end
end
s.require_paths = ['lib']
end

0 comments on commit 41d713f

Please sign in to comment.