lib/arii/cashier.rb in arii-1.5 vs lib/arii/cashier.rb in arii-1.6

- old
+ new

@@ -15,15 +15,14 @@ # - *seed*: seed data (if available) # def self.verify cache, agent, payload, seed #ARII::Config.log.info(self.class.name) {"Verifying\n\taccess token: #{ARII::Config.access_token}\n\thost: #{ARII::Config.host}\n\tcache: #{cache}\n\tagent: #{agent}\n\tpayload: #{payload}\n\tseed: #{seed}"} begin - response = RestClient.post "#{ARII::Config.host}fluxcapacitor/verify.json", {:access_token => ARII::Config.access_token, :agent => agent[:identifier], :cache => cache, :payload => payload, :seed => seed} - + response = RestClient::Request.execute(:method => 'post', :url => "#{ARII::Config.host}fluxcapacitor/verify.json", :payload => {:access_token => ARII::Config.access_token, :agent => agent[:identifier], :cache => cache, :payload => payload, :seed => seed} ,:verify_ssl => OpenSSL::SSL::VERIFY_NONE ) rescue Exception => e ARII::Config.log.error(self.class.name) { "Cache verification error: #{e}\n#{e.backtrace}" } response = {:status => 400, :error => e} end response end end -end \ No newline at end of file +end