From a44854dc0ca813e8b01912f6dfd868978e09858f Mon Sep 17 00:00:00 2001 From: Ralin Chimev Date: Fri, 29 Apr 2016 11:01:25 +0300 Subject: [PATCH] Update Gemspec file to not use `git ls-files` The gem is dependent on Git (factory_girl_rails.gemspec uses git ls-files). Some prod environments do not have git and if you try adding a gem through git or path option in bundler, 'git ls-files' in the .gemspec fails. Instead of using git, we could use pure Ruby code to list the gem files. Fixes #177. --- factory_girl_rails.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/factory_girl_rails.gemspec b/factory_girl_rails.gemspec index 9a4768d..d00bd66 100644 --- a/factory_girl_rails.gemspec +++ b/factory_girl_rails.gemspec @@ -10,7 +10,7 @@ Gem::Specification.new do |s| factory_girl and rails 3 or newer (currently just automatic factory definition loading)} - s.files = `git ls-files`.split("\n") + s.files = Dir['**/*'].keep_if { |file| File.file?(file) } s.require_paths = ["lib"] s.executables = [] s.license = "MIT"