biola_wcms_components 0.25.2 → 0.25.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/biola_wcms_components/version.rb +1 -1
- data/lib/components/cas_authentication.rb +3 -2
- 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: 5af65c50c478235d6b57eebe072f2ad1b012db00
|
|
4
|
+
data.tar.gz: 7a22ad89b3ec921a47888e32914873644bd12768
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: baeb6bfb00b197553a99b6e51410748bfac4d5c632bb272d6638d85d985a26de6a3d87a457494737affe443d8629e75141a57d447e80ac424737151bb8764618
|
|
7
|
+
data.tar.gz: 14e3985ea176150d4e681f71eec200124a33104239e0825bce879ec126988eee49d0f8201e617cf19ed755f178766ac209937f27e0907d5dc7aefd5cffd1915f
|
data/CHANGELOG.md
CHANGED
|
@@ -41,7 +41,8 @@ class CasAuthentication
|
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
def new_user?
|
|
44
|
-
user.
|
|
44
|
+
return unless user.present?
|
|
45
|
+
user.new_record?
|
|
45
46
|
end
|
|
46
47
|
|
|
47
48
|
def authenticated?
|
|
@@ -68,7 +69,7 @@ class CasAuthentication
|
|
|
68
69
|
alias create_user! update_extra_attributes!
|
|
69
70
|
|
|
70
71
|
def username
|
|
71
|
-
(session[:username] || attrs[:user]).downcase
|
|
72
|
+
(session[:username] || attrs[:user]).try(:downcase)
|
|
72
73
|
end
|
|
73
74
|
|
|
74
75
|
def attrs
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: biola_wcms_components
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.25.
|
|
4
|
+
version: 0.25.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan Hall
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-10-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ace-rails-ap
|