devise_ott 0.0.2 → 0.0.3

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8aed49018c61ba2d240337012f4cd2efaea8d736
4
- data.tar.gz: fafef4d619522ffb6387743e5a4f7b249eca425c
3
+ metadata.gz: a55342cc96a9ffaad894f0dee19bdaeb922d85ac
4
+ data.tar.gz: d12e832a72eebbfcb841f8a5d664e985509ab0f2
5
5
  SHA512:
6
- metadata.gz: 204622c6def2426ddd247bbd42c70f0b3386c5b218bbac4ffd42a623935be1e007bd9a4f117e7a1935f7fa4f9c53c4d61733efb641c741fcee108444b5a80d98
7
- data.tar.gz: 8a3409786a9496a9c5b48d5306eb6e3517e53e71b64277599b541372b51300b8e9d5a48d0038b3c94c8c90fc8c909bd138a4d15e17e3aebf82b23fe8b5379e15
6
+ metadata.gz: 4c24bbf7c7748cfdddd822939f5ab5ecec87dbc55dab84c5f95ca449a371406b7af58b198e66574330ba74c3ddb9b80f7cf6275e7e291e3102fa2ff41453ed1b
7
+ data.tar.gz: 11dff1e86aa589c091e400497ccf198cae21afb4e75b6e498d6d2a4c442c340f4319228e168526e1c54865aa20d49fe40f394b551c30485bf7115d891d871e77
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- devise_ott (0.0.1)
4
+ devise_ott (0.0.2)
5
5
  devise
6
6
  redis
7
7
 
@@ -8,11 +8,11 @@ module DeviseOtt
8
8
  def authenticate!
9
9
  ott_token = params[:ott_token]
10
10
 
11
- return fail! unless mapping.to.respond_to?(:find_for_ott_authentication) # Dont try to authenticate if module is not included
11
+ return unless mapping.to.respond_to?(:find_for_ott_authentication) # Dont try to authenticate if module is not included
12
12
 
13
13
  resource = mapping.to.find_for_ott_authentication(ott_token)
14
14
 
15
- return fail! unless resource
15
+ return unless resource
16
16
 
17
17
  if validate(resource){ resource.ott_allowed?(ott_token, resource.email) }
18
18
  success!(resource)
@@ -1,3 +1,3 @@
1
1
  module DeviseOtt
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_ott
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Iuri Gagnidze
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-22 00:00:00.000000000 Z
11
+ date: 2014-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise