diff options
author | Samuel E. Giddins <segiddins@segiddins.me> | 2015-05-16 20:26:36 -0700 |
---|---|---|
committer | Samuel E. Giddins <segiddins@segiddins.me> | 2015-05-16 21:25:22 -0700 |
commit | edec4c324aed86858005336d144d3474f29182fd (patch) | |
tree | b70e7ee67109fb4becbdbc1553281457840caecf /lib/bundler/source | |
parent | 7536f442674f3a8d8407fdf72719559340783a77 (diff) | |
download | bundler-seg-validate-path-gemspecs.tar.gz |
[Path] Validate the gemspecs we find when globbingseg-validate-path-gemspecs
Diffstat (limited to 'lib/bundler/source')
-rw-r--r-- | lib/bundler/source/path.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bundler/source/path.rb b/lib/bundler/source/path.rb index 862fbcb97a..9d2cbb708d 100644 --- a/lib/bundler/source/path.rb +++ b/lib/bundler/source/path.rb @@ -132,8 +132,7 @@ module Bundler if File.directory?(expanded_path) # We sort depth-first since `<<` will override the earlier-found specs Dir["#{expanded_path}/#{@glob}"].sort_by { |p| -p.split(File::SEPARATOR).size }.each do |file| - spec = Bundler.load_gemspec(file) - if spec + if spec = Bundler.load_and_validate_gemspec(file, true) spec.loaded_from = file.to_s spec.source = self index << spec |