lib/authlogic_connect/oauth/tokens/oauth_token.rb~ in authlogic-connect-andrewacove-0.5.4 vs lib/authlogic_connect/oauth/tokens/oauth_token.rb~ in authlogic-connect-andrewacove-0.5.5

- old
+ new

@@ -15,22 +15,17 @@ def oauth_version self.class.oauth_version end def get(path, options = {}) - credentials = self.class.send(:credentials) - puts "DEBUG: credentials #{credentials.to_yaml}" - config_options = credentials[:options] unless credentials.nil? - puts "DEBUG: config_options #{config_options.to_yaml}" + config_options = self.class.send(:credentials)[:options] api_version = config_options[:api_version] unless config_options.nil? - puts "DEBUG: api_version #{api_version.to_yaml}" path.insert(0, "/#{api_version}") unless api_version.nil? client.get(path, options) end def post(path, body='', headers ={}) - credentials = self.class.send(:credentials) - config_options = credentials[:options] unless credentials.nil? + config_options = self.class.send(:credentials)[:options] api_version = config_options[:api_version] unless config_options.nil? path.insert(0, "/#{api_version}") unless api_version.nil? client.post(path, body, headers) end