devise_google_authenticator 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -8,13 +8,14 @@ This is a devise[https://github.com/plataformatec/devise] extension to allow you
8
8
  * Version 0.3 - first working version! With working generators, tests, and doesnt require changes to Devise's Sign In view
9
9
  * Version 0.3.1 - Slight updated in the dependencies.
10
10
  * Version 0.3.2 - Updated to include support for Devise 2.0.0 and above (no longer supports 1.5.3 or lower), you'll need version 0.3.1 to use older Devise
11
+ * Version 0.3.3 - Updated some of the redirect methods to proper align with Devise 2.1.0. Also tidied up some of the test routines to proper replicate Devise 2.1.0
11
12
 
12
13
  == Installation
13
14
 
14
15
  Add the gem to your Gemfile (don't forget devise too):
15
16
 
16
17
  * gem 'devise'
17
- * gem 'devise_google_authenticator', '0.3.2'
18
+ * gem 'devise_google_authenticator', '0.3.3'
18
19
 
19
20
  Don't forget to "bundle install"
20
21
 
@@ -19,7 +19,7 @@ class Devise::CheckgaController < Devise::SessionsController
19
19
  if resource.validate_token(params[resource_name]['token'].to_i)
20
20
  set_flash_message(:notice, :signed_in) if is_navigational_format?
21
21
  sign_in(resource_name,resource)
22
- respond_with resource, :location => redirect_location(resource_name, resource)
22
+ respond_with resource, :location => after_sign_in_path_for(resource)
23
23
  else
24
24
  redirect_to :root
25
25
  end
@@ -21,7 +21,7 @@ module DeviseGoogleAuthenticator::Patches
21
21
  else #It's not using, or not enabled for Google 2FA - carry on, nothing to see here.
22
22
  set_flash_message(:notice, :signed_in) if is_navigational_format?
23
23
  sign_in(resource_name, resource)
24
- respond_with resource, :location => redirect_location(resource_name, resource)
24
+ respond_with resource, :location => after_sign_in_path_for(resource)
25
25
  end
26
26
 
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_google_authenticator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-19 00:00:00.000000000Z
12
+ date: 2012-05-27 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
- requirement: &70141007631400 !ruby/object:Gem::Requirement
16
+ requirement: &70254961159120 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.1.3
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70141007631400
24
+ version_requirements: *70254961159120
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rails
27
- requirement: &70141007630660 !ruby/object:Gem::Requirement
27
+ requirement: &70254961256220 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -35,10 +35,10 @@ dependencies:
35
35
  version: 3.3.0
36
36
  type: :runtime
37
37
  prerelease: false
38
- version_requirements: *70141007630660
38
+ version_requirements: *70254961256220
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: devise
41
- requirement: &70141007629960 !ruby/object:Gem::Requirement
41
+ requirement: &70254961400040 !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
44
  - - ! '>='
@@ -49,10 +49,10 @@ dependencies:
49
49
  version: 2.1.0
50
50
  type: :runtime
51
51
  prerelease: false
52
- version_requirements: *70141007629960
52
+ version_requirements: *70254961400040
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: rotp
55
- requirement: &70141007629200 !ruby/object:Gem::Requirement
55
+ requirement: &70254961428720 !ruby/object:Gem::Requirement
56
56
  none: false
57
57
  requirements:
58
58
  - - <=
@@ -60,7 +60,7 @@ dependencies:
60
60
  version: 1.3.2
61
61
  type: :runtime
62
62
  prerelease: false
63
- version_requirements: *70141007629200
63
+ version_requirements: *70254961428720
64
64
  description: Devise Google Authenticator Extension, for adding Google's OTP to your
65
65
  Rails apps!
66
66
  email: xntrik@gmail.com
@@ -118,3 +118,4 @@ signing_key:
118
118
  specification_version: 3
119
119
  summary: Devise Google Authenticator Extension
120
120
  test_files: []
121
+ has_rdoc: