lib/chargify/parser.rb in stefl-chargify-0.3.6 vs lib/chargify/parser.rb in stefl-chargify-0.3.10

- old
+ new

@@ -1,10 +1,12 @@ +require 'crack' + module Chargify class Parser < HTTParty::Parser def parse begin - Crack::JSON.parse(body) + ::Crack::JSON.parse(body) rescue => e raise(Chargify::Error::UnexpectedResponse.new(e.message), body) end end