File: no-git-in-gemspecs.patch

package info (click to toggle)
ruby-haml-rails 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 212 kB
  • sloc: ruby: 308; makefile: 3
file content (19 lines) | stat: -rw-r--r-- 713 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: remove git usage in gemspec
 gem2deb/metadata.rb should take care of that
 but there seems to be an encoding problem
 See bug report
Bug-Debian: https://bugs.debian.org/920953
Author: Cédric Boutillier <boutil@debian.org>
Last-Update: 2019-02-14
--- a/haml-rails.gemspec
+++ b/haml-rails.gemspec
@@ -26,7 +26,7 @@
   s.add_development_dependency "rake"
   s.add_development_dependency 'appraisal', '~> 1.0'
 
-  s.files        = `git ls-files`.split("\n")
-  s.executables  = `git ls-files`.split("\n").select{|f| f =~ /^bin/}
+  s.files        =  (Dir["**/*"] - Dir["debian/**/*"] - Dir["*.gemspec.gem2deb"]).select { |f| !File.directory?(f) }
+  s.executables  = []
   s.require_path = 'lib'
 end