lib/cap_reserve.rb in cap_reserve-0.1.8 vs lib/cap_reserve.rb in cap_reserve-0.1.9

- old
+ new

@@ -1,10 +1,8 @@ -gem 'yajl-ruby', '= 1.0.0' - require 'open-uri' require 'uri' -require 'yajl' +require 'json' $:.unshift File.dirname(__FILE__) class String @@ -47,10 +45,10 @@ params << "#{URI.escape(k.to_s)}=#{URI.escape(v.to_s)}&" end params.chop! # trailing & json = open("#{full_url}?#{params}").read - Yajl::Parser.parse(json) + JSON.parse(json) end desc "Reserve environment using RESERVE=minutes" task :default do begin