Skip to content

Commit

Permalink
Remove unused files from package
Browse files Browse the repository at this point in the history
  • Loading branch information
f440 committed Aug 2, 2024
1 parent bfdb5ce commit 3cda71d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion activerecord-multi-tenant.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = '>= 3.0.0'
spec.metadata = { 'rubygems_mfa_required' => 'true' }

spec.files = `git ls-files`.split("\n")
gemspec = File.basename(__FILE__)
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 Appraisals appveyor Gemfile])
end
end
spec.require_paths = ['lib']
spec.homepage = 'https://github.com/citusdata/activerecord-multi-tenant'
spec.license = 'MIT'
Expand Down

0 comments on commit 3cda71d

Please sign in to comment.