1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
From: Antonio Terceiro <terceiro@debian.org>
Date: Fri, 14 Oct 2016 20:13:48 -0300
Subject: gemspec: remove git usage
---
fog-libvirt.gemspec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: ruby-fog-libvirt/fog-libvirt.gemspec
===================================================================
--- ruby-fog-libvirt.orig/fog-libvirt.gemspec
+++ ruby-fog-libvirt/fog-libvirt.gemspec
@@ -43,7 +43,7 @@ Gem::Specification.new do |s|
s.add_development_dependency("mocha", ">= 1.15", "< 3")
# Let's not ship dot files and gemfiles
- git_files = `git ls-files`.split("\n")
+ git_files = Dir.glob('**/*') - Dir.glob('debian/**/*')
s.files = git_files.delete_if{ |f| f =~ /^\..*/ || f =~ /^gemfiles\/*/ }
- s.test_files = `git ls-files -- {spec,tests}/*`.split("\n")
+ s.test_files = Dir.glob('{spec,tests}/**/*')
end
|