Skip to content

Commit

Permalink
gemspec: Remove test files, Gemfile from package (#437)
Browse files Browse the repository at this point in the history
* gemspec: Remove test files, Gemfile, and ChangeLog from package

* Update spec.files to include CHANGELOG and use newer bundler method
  • Loading branch information
f440 authored Jul 15, 2024
1 parent e178cbf commit 3eb9345
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions acts_as_list.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ Gem::Specification.new do |s|
end

# Load Paths...
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
gemspec = File.basename(__FILE__)
s.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])
end
end
s.executables = `git ls-files -- bin/*`.split("\n").map {|f| File.basename(f)}
s.require_paths = ["lib"]

Expand Down

0 comments on commit 3eb9345

Please sign in to comment.