diff options
Diffstat (limited to 'lib/bundler/source/path.rb')
-rw-r--r-- | lib/bundler/source/path.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bundler/source/path.rb b/lib/bundler/source/path.rb index 2900b3f939..4b01496aac 100644 --- a/lib/bundler/source/path.rb +++ b/lib/bundler/source/path.rb @@ -144,6 +144,10 @@ module Bundler SharedHelpers.in_bundle? && app_cache_path.exist? end + def validate_spec(spec) + Bundler.rubygems.validate(spec) + end + def load_spec_files index = Index.new @@ -155,7 +159,7 @@ module Bundler Bundler.rubygems.set_installed_by_version(spec) # Validation causes extension_dir to be calculated, which depends # on #source, so we validate here instead of load_gemspec - Bundler.rubygems.validate(spec) + validate_spec(spec) index << spec end |