Skip to content

Commit

Permalink
Remove 'test_files' to reduce gem package size
Browse files Browse the repository at this point in the history
Seems that `test_files` attribute has been deprecated. If we can remove it from gemspec file, it would reduce distribute gem package size.

Related:

* [Documentation about 'test_files' is confusing rubygems/guides#90](rubygems/guides#90)
* https://docs.rubocop.org/rubocop/cops_gemspec.html#gemspecdeprecatedattributeassignment
  • Loading branch information
lucascaton committed Sep 3, 2022
1 parent 30b5eec commit 3bcfa00
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion enumerate_it.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Gem::Specification.new do |gem|
gem.license = 'MIT'

gem.files = `git ls-files`.split("\n")
gem.test_files = `git ls-files -- spec/*`.split("\n")
gem.name = 'enumerate_it'
gem.require_paths = ['lib']
gem.version = EnumerateIt::VERSION
Expand Down

0 comments on commit 3bcfa00

Please sign in to comment.