capcoauth 0.3.3 → 0.4.0
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 +4 -4
- data/lib/capcoauth/rails/helpers.rb +2 -2
- data/lib/capcoauth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f3219f2f066b3f768660b18dc93573735aae8597
|
|
4
|
+
data.tar.gz: 3c1915a11faccc0dabedea935d1ff6652f62d16b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 540cbf8a0ea52e8e98474065f57432de4db5c7533746ca6fdc538fcfcf61a6aa875d6a58b4998eeb727226d571de7b249e102349eaa3e515387903487250de26
|
|
7
|
+
data.tar.gz: ac54859312f5f47b2fb05a2ca8fe006317c73dffb630c77274727cfb897111ebe4c08e0ac8d8aae8882c34e61d8d376d8c96ac21b1ffbe89dd17ad1fb2883c46
|
|
@@ -19,13 +19,13 @@ module Capcoauth
|
|
|
19
19
|
session.delete(:capcoauth_access_token)
|
|
20
20
|
session.delete(:capcoauth_user_id)
|
|
21
21
|
end
|
|
22
|
-
handle_unauthorized
|
|
22
|
+
handle_unauthorized unless performed?
|
|
23
23
|
rescue OAuth::TokenVerifier::OtherError
|
|
24
24
|
if handle_sessions?
|
|
25
25
|
session.delete(:capcoauth_access_token)
|
|
26
26
|
session.delete(:capcoauth_user_id)
|
|
27
27
|
end
|
|
28
|
-
handle_internal_server_error
|
|
28
|
+
handle_internal_server_error unless performed?
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
def current_user
|
data/lib/capcoauth/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capcoauth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adam Robertson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-05-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|