From 98e212b7df5f6970f5e34c1234c06d317a518cbb Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Fri, 2 Aug 2024 19:57:15 +0900 Subject: [PATCH] Exclude spec files from gem package --- omniauth-oauth2.gemspec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/omniauth-oauth2.gemspec b/omniauth-oauth2.gemspec index e436b4c..0884c6a 100644 --- a/omniauth-oauth2.gemspec +++ b/omniauth-oauth2.gemspec @@ -16,8 +16,7 @@ Gem::Specification.new do |gem| gem.licenses = %w[MIT] gem.executables = `git ls-files -- bin/*`.split("\n").collect { |f| File.basename(f) } - gem.files = `git ls-files`.split("\n") - gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") + gem.files = `git ls-files`.split("\n").grep_v(%r{spec/}) gem.name = "omniauth-oauth2" gem.require_paths = %w[lib] gem.version = OmniAuth::OAuth2::VERSION