devise_google_authenticator 0.3.11 → 0.3.12

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTAyYjJhN2FmYzFjZjA2MDViZWZiZGNlYTgxNjUxYTMyZTljNGUyNQ==
4
+ NTE5MmFhODRkZThiZDQwOWNmNzRmNWIyZTM2YTZmY2IxMzNhM2JkOA==
5
5
  data.tar.gz: !binary |-
6
- ZDY3ZjZkOTZlMjE3ODA1ZjU2MDk5YmVmMzA4MDgwNDQyNGEyZGJmNg==
6
+ Y2NlZGJjMDg4YTdiN2Q0ZDEyMzMyYTliZDY4ZTcxODZjMzkzNWQwYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NThkZDVlNWJhZDY4NzM1OGVmMzJiMjYwNjc0MWZmODJkYWZjZWJkNTE2YzQy
10
- OTI1YmFmZWNkMGRmOTNjMzIwOWU3Y2U3NzBhZGViZWQwNzgwMGExMWNkOGE4
11
- NmEyNzQ1MTViMmRhYTBhMGRiMDJmODUxOWFiNmUwMDQ0NzgxZGM=
9
+ NTQ3MmM0YzE2MGU5ZDEzZDBlMGE5OTAxYzg0ZTE2ZGM1Mjc0YTUyZmE3YTUz
10
+ ZjhkYzQxMzM4NmVjNzlhOTIxNDlmZGI4ZTQyNDUzYjkxOGQzZmY0NmE4Mzk3
11
+ OGFkMWRiYzcyNDE1MjlkM2I2ZTYyMTNkZWFmNWMyNzliNzMzNjc=
12
12
  data.tar.gz: !binary |-
13
- NTlmMGIyYTc1ODFkZjUzYWU1MDNjZGZhYjkwOWI2NDY5MTMwZjZiMGM0NWNj
14
- M2ZjMTYxOTA3ZDIzMjk4ZDBmZTdhNjU1NGYwMGFlOTIzMTE1YmZlZWU2NWM0
15
- MmM3NTE4MWU3ZWJkOTI2ZjEwNGU4OWMzNTQ3ZmVmM2U2NzQyMGU=
13
+ ZmZlZDgwYmM4NTRhNjQ1ZGFkZmRiMjY1MGJmNDA5YzM0YjFiOTQ0ZTU1MGM4
14
+ NDI1NDQ3MzQwMjRlZmIzZTIwMDA3MzNlNmQ5MTQ0MGNkZTFjY2FkNmQ2ZmI2
15
+ OTM5NGY2ZTJhZTM0NzhjMWYzMzZhYWJiZThmYThmNDkxZDMwZWQ=
data/README.rdoc CHANGED
@@ -7,7 +7,7 @@ This is a devise[https://github.com/plataformatec/devise] extension to allow you
7
7
  Add the gem to your Gemfile (don't forget devise too):
8
8
 
9
9
  * gem 'devise'
10
- * gem 'devise_google_authenticator', '0.3.11'
10
+ * gem 'devise_google_authenticator', '0.3.12'
11
11
 
12
12
  Don't forget to "bundle install"
13
13
 
@@ -79,6 +79,7 @@ With this extension enabled, the following is expected behaviour:
79
79
  The install generator also installs an english copy of a Devise Google Authenticator i18n file. This can be modified (or used to create other language versions) and is located at: config/locales/devise.google_authenticator.en.yml
80
80
 
81
81
  == Changes
82
+ * Version 0.3.12 - Re-introduced Warden's after_authentication callback. Thanks Sunny Ng for the pull.
82
83
  * Version 0.3.11 - Fixed a bug where if the Devise module was included within something else, such as Active Admin, rewriting back to the CheckGA functionality was broken. This update addresses https://github.com/AsteriskLabs/devise_google_authenticator/issues/7
83
84
  * Version 0.3.10 - Added support for Mongoid ORM in addition to ActiveRecord. (Still no appropriate testing for, but I've run this on vanilla Rails 4.0.4 and Devise 3.2.3 apps)
84
85
  * Version 0.3.9 - Merging fix from zhenyuchen (deprecated ActiveRecord query grammar) - also, re-tested against Rails 4.0.4 and Devise 3.2.3
@@ -21,6 +21,7 @@ class Devise::CheckgaController < Devise::SessionsController
21
21
  if resource.validate_token(params[resource_name]['gauth_token'].to_i)
22
22
  set_flash_message(:notice, :signed_in) if is_navigational_format?
23
23
  sign_in(resource_name,resource)
24
+ warden.manager._run_callbacks(:after_set_user, resource, warden, {:event => :authentication})
24
25
  respond_with resource, :location => after_sign_in_path_for(resource)
25
26
 
26
27
  if not resource.class.ga_remembertime.nil?
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.11
4
+ version: 0.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Frichot