mirror of
https://github.com/thoughtbot/factory_bot_rails.git
synced 2022-11-09 11:49:18 -05:00
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.
This commit is contained in:
parent
282b293d3f
commit
a44854dc0c
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
||||||
factory_girl and rails 3 or newer (currently just automatic factory definition
|
factory_girl and rails 3 or newer (currently just automatic factory definition
|
||||||
loading)}
|
loading)}
|
||||||
|
|
||||||
s.files = `git ls-files`.split("\n")
|
s.files = Dir['**/*'].keep_if { |file| File.file?(file) }
|
||||||
s.require_paths = ["lib"]
|
s.require_paths = ["lib"]
|
||||||
s.executables = []
|
s.executables = []
|
||||||
s.license = "MIT"
|
s.license = "MIT"
|
||||||
|
|
Loading…
Reference in a new issue