Skip to content

Commit a44854d

Browse files
Ralin Chimevjoshuaclayton
authored andcommitted
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.
1 parent 282b293 commit a44854d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

factory_girl_rails.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
1010
factory_girl and rails 3 or newer (currently just automatic factory definition
1111
loading)}
1212

13-
s.files = `git ls-files`.split("\n")
13+
s.files = Dir['**/*'].keep_if { |file| File.file?(file) }
1414
s.require_paths = ["lib"]
1515
s.executables = []
1616
s.license = "MIT"

0 commit comments

Comments
 (0)