From 689a41680974c5df215af8e51218d6c203bada8d Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 13 May 2010 13:00:00 -0700 Subject: [PATCH] Fixed issue with JSON 1.4.3 [closes GH-62] --- Gemfile | 4 ++-- lib/vagrant/config.rb | 4 ++-- lib/vagrant/provisioners/chef.rb | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Gemfile b/Gemfile index 4dc65e273..9018dc64f 100644 --- a/Gemfile +++ b/Gemfile @@ -1,10 +1,10 @@ source :gemcutter # Gems required for the lib to even run -gem "virtualbox", "~> 0.6.2" +gem "virtualbox", :git => "git://github.com/mitchellh/virtualbox.git" gem "net-ssh", ">= 2.0.19" gem "net-scp", ">= 1.0.2" -gem "json", ">= 1.2.0" +gem "json", ">= 1.2.4" gem "archive-tar-minitar", "= 0.5.2" gem "mario", "~> 0.0.6" diff --git a/lib/vagrant/config.rb b/lib/vagrant/config.rb index c75b6ac26..9cd8c32a2 100644 --- a/lib/vagrant/config.rb +++ b/lib/vagrant/config.rb @@ -47,8 +47,8 @@ module Vagrant send(key) end - def to_json - instance_variables_hash.to_json + def to_json(*a) + instance_variables_hash.to_json(*a) end def instance_variables_hash diff --git a/lib/vagrant/provisioners/chef.rb b/lib/vagrant/provisioners/chef.rb index 2be95980b..f554fd98a 100644 --- a/lib/vagrant/provisioners/chef.rb +++ b/lib/vagrant/provisioners/chef.rb @@ -59,12 +59,12 @@ module Vagrant run_list << name end - def to_json + def to_json(*a) # Overridden so that the 'json' key could be removed, since its just # merged into the config anyways data = instance_variables_hash data.delete(:json) - data.to_json + data.to_json(*a) end end