Remove usage of git from gemspec
authorPirate Praveen <praveen@debian.org>
Tue, 7 Jan 2020 18:48:41 +0000 (18:48 +0000)
committerSruthi Chandran <srud@debian.org>
Tue, 7 Jan 2020 18:48:41 +0000 (18:48 +0000)
Author: Pirate Praveen <praveen@debian.org>
Gbp-Pq: Name 001-remove-git-in-gemspec.patch

hamlit.gemspec

index b58c5ceaed758f41eeaf00ae027ad44f104837b1..597e8dc8694ec0c3be71fe970f66c4575ee9326a 100644 (file)
@@ -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