Skip to content

Commit

Permalink
Merge pull request #1598 from dansdantas/reduce-gem-package-size
Browse files Browse the repository at this point in the history
Reduce gem package size
  • Loading branch information
troessner authored Apr 26, 2021
2 parents 4663a1b + 33d4d9b commit 1fdc300
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion reek.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ Gem::Specification.new do |s|
s.license = 'MIT'
s.email = ['[email protected]']
s.extra_rdoc_files = ['CHANGELOG.md', 'License.txt']
s.files = `git ls-files -z`.split("\0")
s.files = Dir.chdir(File.expand_path(__dir__)) do
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|samples|docs|tasks)/}) }
end

s.executables = s.files.grep(%r{^bin/}).map { |path| File.basename(path) }
s.homepage = 'https://github.com/troessner/reek'
s.rdoc_options = %w(--main README.md -x assets/|bin/|config/|features/|spec/|tasks/)
Expand Down

0 comments on commit 1fdc300

Please sign in to comment.