lib/fog/dns/dnsimple.rb in fog-0.9.0 vs lib/fog/dns/dnsimple.rb in fog-0.10.0

- old
+ new

@@ -50,11 +50,11 @@ end class Real def initialize(options={}) - require 'json' + require 'multi_json' @dnsimple_email = options[:dnsimple_email] @dnsimple_password = options[:dnsimple_password] if options[:dnsimple_url] uri = URI.parse(options[:dnsimple_url]) @@ -80,10 +80,10 @@ "Content-Type" => "application/json" }) response = @connection.request(params.merge!({:host => @host})) unless response.body.empty? - response.body = JSON.parse(response.body) + response.body = MultiJson.decode(response.body) end response end end end