File: 001-remove-git-in-gemspec.patch

package info (click to toggle)
ruby-hamlit 2.9.2-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,332 kB
  • sloc: ruby: 10,583; ansic: 550; sh: 23; makefile: 9
file content (18 lines) | stat: -rw-r--r-- 754 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Remove usage of git from gemspec
Author: Pirate Praveen <praveen@debian.org>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/hamlit.gemspec
+++ b/hamlit.gemspec
@@ -14,9 +14,9 @@ Gem::Specification.new do |spec|
   spec.homepage      = 'https://github.com/k0kubun/hamlit'
   spec.license       = 'MIT'
 
-  spec.files         = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|sample)/}) }
+  spec.files         = Dir['lib/**/*']+Dir['ext/**/*']+Dir['sample/**/*']+['REFERENCE.md']
   spec.bindir        = 'exe'
-  spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
+  spec.executables   = 'hamlit'
   spec.require_paths = ['lib']
 
   if /java/ === RUBY_PLATFORM