Skip to content

Commit 65d41f1

Browse files
authored
Reduce gem size by excluding test files (#397)
Only ship lib/ and essential files (CHANGELOG, LICENSE, README) instead of everything tracked by git.
1 parent e78b76b commit 65d41f1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#### Features
44

55
* [#400](https://github.com/ruby-grape/grape-entity/pull/400): Switch to danger-pr-comment for PR checks - [@numbata](https://github.com/numbata).
6+
* [#397](https://github.com/ruby-grape/grape-entity/pull/397): Reduce gem size by excluding test files - [@yuri-zubov](https://github.com/yuri-zubov).
67
* Your contribution here.
78

89
#### Fixes

grape-entity.gemspec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Gem::Specification.new do |s|
1818

1919
s.add_dependency 'activesupport', '>= 3.0.0'
2020

21-
s.files = `git ls-files`.split("\n")
22-
s.test_files = `git ls-files -- {test,spec}/*`.split("\n")
21+
s.files = `git ls-files lib`.split("\n") + ['CHANGELOG.md', 'LICENSE', 'README.md']
2322
s.require_paths = ['lib']
2423
end

0 commit comments

Comments
 (0)