Skip to content

Commit 9267284

Browse files
committed
Remove unneeded files from the gem package
There are a bunch of files in the gem package that aren't useful for downstream projects. Removing these reduces the gem package size from 14K to 8.5K.
1 parent d724105 commit 9267284

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rails_autolink.gemspec

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,9 @@ Gem::Specification.new do |s|
1717
s.required_ruby_version = '>= 1.9.3'
1818
s.license = 'MIT'
1919

20-
s.files = Dir.glob("{test,lib/**/*}") + `git ls-files -z`.split("\0")
20+
s.files = Dir.chdir(__dir__) do
21+
`git ls-files -z`.split("\x0").select do |file|
22+
file.start_with?('lib', 'CHANGELOG', 'LICENSE', 'README')
23+
end
24+
end
2125
end

0 commit comments

Comments
 (0)