1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
From: Daniel Leidert <dleidert@debian.org>
Date: Thu, 14 May 2020 15:03:35 +0200
Subject: Don't run git in gemspec
Avoid to run git and use pure Ruby instead.
Forwarded: not-needed
---
jekyll-toc.gemspec | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/jekyll-toc.gemspec b/jekyll-toc.gemspec
index 0540ccb..b4f148a 100644
--- a/jekyll-toc.gemspec
+++ b/jekyll-toc.gemspec
@@ -20,11 +20,7 @@ Gem::Specification.new do |spec|
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
- spec.files = Dir.chdir(__dir__) do
- `git ls-files -z`.split("\x0").reject do |f|
- (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
- end
- end
+ spec.files = Dir.glob("**/*").select {|v| v !~ /^debian/}
spec.required_ruby_version = '>= 2.6'
|