Remove usage of git from gemspec
authorPirate Praveen <praveen@debian.org>
Thu, 14 Feb 2019 13:07:54 +0000 (13:07 +0000)
committerCédric Boutillier <boutil@debian.org>
Thu, 14 Feb 2019 13:07:54 +0000 (13:07 +0000)
Author: Pirate Praveen <praveen@debian.org>
Gbp-Pq: Name 001-remove-git-in-gemspec.patch

hamlit.gemspec

index bb0931c637c5308afb485fe9100668ca2327e332..c891a19017b48930c0ff621e457bbb90331431bb 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