Use Gem::Version class to ensure expected comparison results

This commit is contained in:
Chris Roberts 2017-02-01 13:22:23 -08:00
parent a8966187af
commit 255275061c
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ To have backward compatibility:
```ruby
config.vm.provider 'virtualbox' do |v|
v.linked_clone = true if Vagrant::VERSION >= '1.8.0'
v.linked_clone = true if Gem::Version.new(Vagrant::VERSION) >= Gem::Version.new('1.8.0')
end
```