From 7ca412e6c6f0ca651e670ee0fc3ce8c657ce917d Mon Sep 17 00:00:00 2001 From: Yuri Zubov Date: Tue, 14 Apr 2026 15:01:38 +0300 Subject: [PATCH] Reduce gem size by excluding test files --- CHANGELOG.md | 1 + grape-entity.gemspec | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f434ffc..7173497 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ #### Features * [#400](https://github.com/ruby-grape/grape-entity/pull/400): Switch to danger-pr-comment for PR checks - [@numbata](https://github.com/numbata). +* [#397](https://github.com/ruby-grape/grape-entity/pull/397): Reduce gem size by excluding test files - [@yuri-zubov](https://github.com/yuri-zubov). * Your contribution here. #### Fixes diff --git a/grape-entity.gemspec b/grape-entity.gemspec index 3dc3d8e..295241f 100644 --- a/grape-entity.gemspec +++ b/grape-entity.gemspec @@ -18,7 +18,6 @@ Gem::Specification.new do |s| s.add_dependency 'activesupport', '>= 3.0.0' - s.files = `git ls-files`.split("\n") - s.test_files = `git ls-files -- {test,spec}/*`.split("\n") + s.files = `git ls-files lib`.split("\n") + ['CHANGELOG.md', 'LICENSE', 'README.md'] s.require_paths = ['lib'] end