authlogic-oauth 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.0.7 release 2009-7-20
2
+
3
+ * Fixing a OAuth unauthorized error when updating a user object with new oauth token/secret via the 'Register with OAuth' helper.
4
+
1
5
  == 1.0.6 released 2009-6-29
2
6
 
3
7
  * Any attributes set on the User model before saving, will now be maintained after the user
@@ -49,7 +49,8 @@ module AuthlogicOauth
49
49
  private
50
50
 
51
51
  def authenticating_with_oauth?
52
- (controller.params && !controller.params[:login_with_oauth].blank?) || oauth_response
52
+ # Test for attempted_record with oauth_response to avoid issues with updating a user with new oauth token/secret
53
+ (controller.params && !controller.params[:login_with_oauth].blank?) || (self.attempted_record.nil? && oauth_response)
53
54
  end
54
55
 
55
56
  def authenticate_with_oauth
@@ -41,7 +41,7 @@ module AuthlogicOauth
41
41
 
42
42
  MAJOR = 1
43
43
  MINOR = 0
44
- TINY = 6
44
+ TINY = 7
45
45
 
46
46
  # The current version as a Version instance
47
47
  CURRENT = new(MAJOR, MINOR, TINY)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authlogic-oauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Allison
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-29 00:00:00 -04:00
12
+ date: 2009-07-20 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency