Merge pull request #8252 from nsidc/fix-install-local-pre

Add gem_version to plugin_info for local installs
This commit is contained in:
Chris Roberts 2017-02-09 09:48:54 -08:00 committed by GitHub
commit 6a4d41d0c9
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ module Vagrant
plugin_source = Gem::Source::SpecificFile.new(path)
plugin_info = {
plugin_source.spec.name => {
"gem_version" => plugin_source.spec.version.to_s,
"local_source" => plugin_source,
"sources" => opts.fetch(:sources, Gem.sources.map(&:to_s))
}