From a97bf0d7fc7f05b366ba785a478902e22c784f93 Mon Sep 17 00:00:00 2001 From: Nikita Bulai Date: Wed, 20 May 2020 13:30:11 +0300 Subject: [PATCH] Skip files for gem --- .gitignore | 1 + doorkeeper-openid_connect.gemspec | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 92e461a..85877ce 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /spec/examples.txt /pkg gemfiles/*.lock +*.gem diff --git a/doorkeeper-openid_connect.gemspec b/doorkeeper-openid_connect.gemspec index 13eed64..660594f 100644 --- a/doorkeeper-openid_connect.gemspec +++ b/doorkeeper-openid_connect.gemspec @@ -13,9 +13,12 @@ Gem::Specification.new do |spec| spec.description = 'OpenID Connect extension for Doorkeeper.' spec.license = 'MIT' - spec.files = `git ls-files -z`.split("\x0").reject do |f| - f.match(%r{^(test|spec|features)/}) - end + spec.files = Dir[ + "{app,config,lib}/**/*", + "CHANGELOG.md", + "LICENSE.txt", + "README.md", + ] spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ['lib']