File: 0007-remove-git-usage-in-gemspec.patch

package info (click to toggle)
yard 0.9.28-2%2Bdeb12u2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,696 kB
  • sloc: ruby: 30,842; javascript: 7,556; makefile: 21
file content (22 lines) | stat: -rw-r--r-- 890 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: =?utf-8?q?C=C3=A9dric_Boutillier?= <boutil@debian.org>
Date: Tue, 25 Feb 2020 23:35:13 +0100
Subject: remove git usage in gemspec

---
 yard.gemspec | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/yard.gemspec b/yard.gemspec
index 6b2d921..2bb9543 100644
--- a/yard.gemspec
+++ b/yard.gemspec
@@ -15,7 +15,8 @@ Gem::Specification.new do |s|
   s.email         = "lsegal@soen.ca"
   s.homepage      = "http://yardoc.org"
   s.platform      = Gem::Platform::RUBY
-  s.files         = `git ls-files`.strip.split(/\s+/).reject {|f| f.match(%r{^spec/}) }
+  s.files         = Dir.glob("{docs,bin,lib,spec,templates,benchmarks}/**/*") +
+                    ['CHANGELOG.md', 'LICENSE', 'LEGAL', 'README.md', 'Rakefile', '.yardopts', __FILE__]
   s.require_paths = ['lib']
   s.executables   = ['yard', 'yardoc', 'yri']
   s.license = 'MIT' if s.respond_to?(:license=)