File: 0001-don-t-use-git.patch

package info (click to toggle)
ruby-slim 4.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 796 kB
  • sloc: ruby: 5,635; makefile: 9
file content (23 lines) | stat: -rw-r--r-- 770 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
From: Hideki Yamane <henrich@debian.org>
Date: Sun, 30 Dec 2018 15:20:40 +0900
Subject: don't use git

---
 slim.gemspec | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/slim.gemspec b/slim.gemspec
index 0bbc7ae..d34aae5 100644
--- a/slim.gemspec
+++ b/slim.gemspec
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
   s.homepage          = 'http://slim-lang.com/'
   s.license           = 'MIT'
 
-  s.files             = `git ls-files`.split("\n")
-  s.executables       = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+  s.files             = Dir['**/*'].reject { |f| f =~ %r{^debian/} }
+  s.executables       = Dir['bin/*'].map{ |f| File.basename(f) }
   s.require_paths     = %w(lib)
 
   s.required_ruby_version = '>=2.0.0'