mitchellh/vagrant — Issue #599: `vagrant help` on master breaks on Ruby 1.8.7
Author: charles-dyfis-net
Created: 2011-12-20 18:31:11+00:00
State: open
Labels: bug

`lib/vagrant/cli.rb` assumes that keywords are comparable; however, in Ruby 1.8.7, attempting to sort keywords yields the following error:

NoMethodError: undefined method `<=>` for :foo:Symbol

This can be resolved by changing the line

keys.sort.each do |key|

to

keys.sort {|x,y| x.to_s <=> y.to_s}.each do |key|