biola_wcms_components 0.25.2 → 0.25.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08f057cd72ef31f9c6c6859de0446819808e19af
4
- data.tar.gz: a847ab856b8a12763358d884a6e0a9de105b79b8
3
+ metadata.gz: 5af65c50c478235d6b57eebe072f2ad1b012db00
4
+ data.tar.gz: 7a22ad89b3ec921a47888e32914873644bd12768
5
5
  SHA512:
6
- metadata.gz: 5c41ec02388c8bac7bb2a73fb215fb3cccf3cc97ae1f734a983c04758b9c71eb47bdd9ca44efae26e1eda258d3d8e8b555a3f07d72d390619466121f0817be3f
7
- data.tar.gz: a8fad43b098232738fd2423c7019e88c6292c3150297389f5ffcabe893a89e05815081e1012a10e830ff3958bc4af91523bea8a739e81993707b281cbdb23556
6
+ metadata.gz: baeb6bfb00b197553a99b6e51410748bfac4d5c632bb272d6638d85d985a26de6a3d87a457494737affe443d8629e75141a57d447e80ac424737151bb8764618
7
+ data.tar.gz: 14e3985ea176150d4e681f71eec200124a33104239e0825bce879ec126988eee49d0f8201e617cf19ed755f178766ac209937f27e0907d5dc7aefd5cffd1915f
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ### Master (unreleased)
4
4
 
5
+ ### 0.25.3
6
+
7
+ * Minor updates to CAS to handle possible use cases
8
+
5
9
  ### 0.25.2
6
10
 
7
11
  * Only update CAS attributes if they exist
@@ -1,3 +1,3 @@
1
1
  module BiolaWcmsComponents
2
- VERSION = '0.25.2'.freeze
2
+ VERSION = '0.25.3'.freeze
3
3
  end
@@ -41,7 +41,8 @@ class CasAuthentication
41
41
  end
42
42
 
43
43
  def new_user?
44
- user.try(:new_record?)
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.2
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-09-30 00:00:00.000000000 Z
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