Skip to content

Commit f0ce29a

Browse files
committed
Reduce data size of the package
1 parent edd261f commit f0ce29a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

prawn-emoji.gemspec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ Gem::Specification.new do |spec|
1313

1414
spec.required_ruby_version = '>= 2.4'
1515

16-
spec.files = `git ls-files`.split("\n")
17-
spec.test_files = `git ls-files -- {test}/*`.split("\n")
16+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
17+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^test/}) }
18+
end
1819
spec.require_path = 'lib'
1920

2021
spec.add_runtime_dependency 'prawn', '~> 2.2.0'

0 commit comments

Comments
 (0)