authlogic-connect-andrewacove 0.5.2 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -6,7 +6,7 @@ require 'rake/gempackagetask'
6
6
  spec = Gem::Specification.new do |s|
7
7
  s.name = "authlogic-connect-andrewacove"
8
8
  s.authors = ['Lance Pollard', 'Andrew Cove']
9
- s.version = '0.5.2'
9
+ s.version = '0.5.4'
10
10
  s.summary = "Personal fork of Authlogic Connect: Oauth and OpenID made dead simple"
11
11
  s.homepage = "http://github.com/andrewacove/authlogic-connect"
12
12
  s.email = "andrewacove@gmail.com"
@@ -17,19 +17,14 @@ class OauthToken < AccessToken
17
17
  end
18
18
 
19
19
  def get(path, options = {})
20
- credentials = self.class.send(:credentials)
21
- puts "DEBUG: credentials #{credentials.to_yaml}"
22
- config_options = credentials[:options] unless credentials.nil?
23
- puts "DEBUG: config_options #{config_options.to_yaml}"
20
+ config_options = self.class.send(:credentials)[:options]
24
21
  api_version = config_options[:api_version] unless config_options.nil?
25
- puts "DEBUG: api_version #{api_version.to_yaml}"
26
22
  path.insert(0, "/#{api_version}") unless api_version.nil?
27
23
  client.get(path, options)
28
24
  end
29
25
 
30
26
  def post(path, body='', headers ={})
31
- credentials = self.class.send(:credentials)
32
- config_options = credentials[:options] unless credentials.nil?
27
+ config_options = self.class.send(:credentials)[:options]
33
28
  api_version = config_options[:api_version] unless config_options.nil?
34
29
  path.insert(0, "/#{api_version}") unless api_version.nil?
35
30
  client.post(path, body, headers)
@@ -18,8 +18,11 @@ class OauthToken < AccessToken
18
18
 
19
19
  def get(path, options = {})
20
20
  credentials = self.class.send(:credentials)
21
+ puts "DEBUG: credentials #{credentials.to_yaml}"
21
22
  config_options = credentials[:options] unless credentials.nil?
23
+ puts "DEBUG: config_options #{config_options.to_yaml}"
22
24
  api_version = config_options[:api_version] unless config_options.nil?
25
+ puts "DEBUG: api_version #{api_version.to_yaml}"
23
26
  path.insert(0, "/#{api_version}") unless api_version.nil?
24
27
  client.get(path, options)
25
28
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authlogic-connect-andrewacove
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 2
10
- version: 0.5.2
9
+ - 4
10
+ version: 0.5.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lance Pollard
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-06-29 00:00:00 -07:00
19
+ date: 2010-06-30 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency