biola_wcms_components 0.17.0 → 0.18.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a9bb27b429697559d26500a1762637eefeebd945
|
|
4
|
+
data.tar.gz: aaa5605ca103c18177b000f482dcc66d04c8ccf4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: edbbbc1ae62cfdf0418e5707d703033bc467d8712c6986a6b926cfd7748c15cf2c04491a7082fd8b9e40e2cb50266019d6a0bd098556657d9adc16b0c1d93838
|
|
7
|
+
data.tar.gz: 36aefa4292820ede7a893f6471e69e01579ba38a48aa009fd11e2ccd70a05b95ce06682ab905e0ea6fb1d10dbc356806b2b0f2009ae743cef44782b88858ba9f
|
data/CHANGELOG.md
CHANGED
|
@@ -7,12 +7,14 @@ ruby:
|
|
|
7
7
|
text_method ||= nil
|
|
8
8
|
multiple ||= nil
|
|
9
9
|
prompt ||= nil
|
|
10
|
+
include_blank ||= nil
|
|
10
11
|
selected ||= nil
|
|
11
12
|
|
|
12
13
|
options = {}
|
|
13
14
|
html_options = {class: 'form-control bs-multiselect'}
|
|
14
15
|
html_options[:multiple] = 'multiple' if multiple
|
|
15
16
|
options[:prompt] = prompt if prompt && form
|
|
17
|
+
options[:include_blank] = include_blank if include_blank && form # does not work with select_tags
|
|
16
18
|
html_options[:prompt] = prompt if prompt && !form
|
|
17
19
|
|
|
18
20
|
div
|
|
@@ -49,13 +49,13 @@ class CasAuthentication
|
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
def update_extra_attributes!
|
|
52
|
-
user.biola_id = extra_attr(:employeeId)
|
|
53
|
-
user.first_name = extra_attr(:eduPersonNickname)
|
|
54
|
-
user.last_name = extra_attr(:sn)
|
|
55
|
-
user.email = extra_attr(:mail)
|
|
56
|
-
user.photo_url = extra_attr(:url)
|
|
57
|
-
user.entitlements = extra_attrs(:eduPersonEntitlement)
|
|
58
|
-
user.affiliations = extra_attrs(:eduPersonAffiliation)
|
|
52
|
+
user.biola_id = extra_attr(:employeeId) if extra_attr_has_key?(:employeeId)
|
|
53
|
+
user.first_name = extra_attr(:eduPersonNickname) if extra_attr_has_key?(:eduPersonNickname)
|
|
54
|
+
user.last_name = extra_attr(:sn) if extra_attr_has_key?(:sn)
|
|
55
|
+
user.email = extra_attr(:mail) if extra_attr_has_key?(:mail)
|
|
56
|
+
user.photo_url = extra_attr(:url) if extra_attr_has_key?(:url)
|
|
57
|
+
user.entitlements = extra_attrs(:eduPersonEntitlement) if extra_attr_has_key?(:eduPersonEntitlement)
|
|
58
|
+
user.affiliations = extra_attrs(:eduPersonAffiliation) if extra_attr_has_key?(:eduPersonAffiliation)
|
|
59
59
|
user.save
|
|
60
60
|
end
|
|
61
61
|
alias :create_user! :update_extra_attributes!
|
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.
|
|
4
|
+
version: 0.18.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan Hall
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-09
|
|
11
|
+
date: 2015-10-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ace-rails-ap
|