Package: bundler / 1.13.6-2

no-git-in-gemspec Patch series | download
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: Christian Hofstaedtler <zeha@debian.org>
Date: Tue, 5 Jul 2016 11:17:16 +0200
Subject: replace call to git ls-files with Dir.glob

It appears gem2deb munges the gemspec file with a static Encoding of US-ASCII,
but our gemspec is encoded in UTF-8; this causes gem2deb to fail. Avoid the
gem2deb munging by not calling git from the gemspec.

Forwarded: not-needed
Origin: vendor
---
 bundler.gemspec | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

--- a/bundler.gemspec
+++ b/bundler.gemspec
@@ -24,10 +24,7 @@
   s.add_development_dependency "ronn",       "~> 0.7.3"
   s.add_development_dependency "rspec",      "~> 3.5"
 
-  s.files = `git ls-files -z`.split("\x0").reject {|f| f.match(%r{^(test|spec|features)/}) }
-  # we don't check in man pages, but we need to ship them because
-  # we use them to generate the long-form help for each command.
-  s.files += Dir.glob("lib/bundler/man/**/*")
+  s.files = Dir.glob("lib/**") + Dir.glob("exe/*") + Dir.glob("*.md") + Dir.glob("man/*")
 
   s.bindir        = "exe"
   s.executables   = %w(bundle bundler)