lib/fiveruns/dash/update.rb in fiveruns-dash-ruby-0.8.3 vs lib/fiveruns/dash/update.rb in fiveruns-dash-ruby-0.8.4

- old
+ new

@@ -25,11 +25,11 @@ http.verify_mode = OpenSSL::SSL::VERIFY_NONE multipart = Fiveruns::Dash::Store::HTTP::Multipart.new(payload.io, payload.params) response = http.post("/apps/#{token}/ping", multipart.to_s, "Content-Type" => multipart.content_type) case response.code.to_i when 201 - data = JSON.load(response.body) + data = ::Fiveruns::JSON.load(response.body) [:success, "Found application '#{data['name']}'"] else # Error message [:failed, response.body.to_s] end @@ -131,12 +131,12 @@ def params {} end - def to_json - @data.to_json + def to_fjson + @data.to_fjson end ####### private ####### @@ -144,10 +144,10 @@ def timestamp Time.now.utc.rfc2822 end def compressed - Zlib::Deflate.deflate(to_json) + Zlib::Deflate.deflate(to_fjson) end end class InfoPayload < Payload \ No newline at end of file