Add gem_version to plugin_info for local installs

This commit is contained in:
Michael Brandt 2017-02-02 17:58:29 -07:00
parent 88b97d45cd
commit be63ace50f
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))
}