Hi. I realise ruby 1.8.x is still the norm for running Chef. I tried uploading the windows cookbook from an instance of knife running under ruby 1.9.2. There were (only) three syntax errors stopping it from working. This commit fixes those ruby 1.9 related syntax errors.
made it work with ruby 1.9
Thanks - I got the same stuff with Ruby 1.9.
This should be merged into the master.