File: remove_git_from_gemspec.patch

package info (click to toggle)
ruby-graphviz 1.2.5-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,220 kB
  • sloc: ruby: 7,685; xml: 26; makefile: 17
file content (26 lines) | stat: -rw-r--r-- 1,211 bytes parent folder | download | duplicates (3)
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
From: Daniel Leidert <dleidert@debian.org>
Date: Thu, 26 Mar 2020 00:44:06 +0100
Subject: Remove git from gemspec

This also fixes the gem installation layout being empty otherwise.
---
 ruby-graphviz.gemspec | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ruby-graphviz.gemspec b/ruby-graphviz.gemspec
index d63ba14..6661d2f 100644
--- a/ruby-graphviz.gemspec
+++ b/ruby-graphviz.gemspec
@@ -15,9 +15,9 @@ Gem::Specification.new do |s|
   s.homepage = "https://github.com/glejeune/Ruby-Graphviz"
   s.description = "Ruby/Graphviz provides an interface to layout and generate images of directed graphs in a variety of formats (PostScript, PNG, etc.) using GraphViz."
 
-  s.files         = `git ls-files`.split("\n")
-  s.test_files    = `git ls-files -- {test,spec,features}/*`.split("\n")
-  s.executables   = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+  s.files         = Dir.glob("**/*").select {|v| v !~ /^debian/}
+  s.test_files    = s.files.grep(%r{^(test|spec|features|examples)/})
+  s.executables   = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
   s.require_paths = ["lib"]
 
   s.extra_rdoc_files = ["README.md", "COPYING.md", "CHANGELOG.md"]