Merge pull request #3301 from mitchellh/fix-issue-3285
core: fix prerelease gem versions
This commit is contained in:
commit
9c570adbd7
|
@ -72,9 +72,11 @@ module Vagrant
|
|||
install_lambda.call
|
||||
end
|
||||
|
||||
# If the version constraint is just a specific version, don't
|
||||
# If the version constraint is just a specific (non prerelease) version, don't
|
||||
# store the constraint.
|
||||
opts.delete(:version) if opts[:version] && opts[:version] =~ /^\d/
|
||||
if opts[:version] && opts[:version] =~ /^\d/ && !Gem::Requirement.parse(opts[:version])[1].prerelease?
|
||||
opts.delete(:version)
|
||||
end
|
||||
|
||||
# Add the plugin to the state file
|
||||
@user_file.add_plugin(
|
||||
|
|
Loading…
Reference in New Issue