lib/ppds/tumblr.rb in grumblr-2.3.7 vs lib/ppds/tumblr.rb in grumblr-2.3.8

- old
+ new

@@ -1,10 +1,12 @@ require 'ppds/class_factory' require 'rest_client' require 'xml' module Ppds + puts "Running RestClient #{RestClient.version}" + class User < ClassFactory attr_accessor :can_ask_question, :can_upload_aiff, :can_upload_audio, :can_upload_video, @@ -79,10 +81,10 @@ end def query(action, data) raise 'Cannot authenticate without credentials' unless data[:email] and data[:password] response = RestClient.post(API_URL + action, data.stringify_keys!) - dump(response) if DEBUG + dump(response) if $DEBUG response.to_str rescue RestClient::RequestFailed => e raise 'Query failed: %s' % e.response.body rescue RestClient::RequestTimeout raise 'Timeout occured'