authpds 0.0.15 → 0.0.16
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.
@@ -33,7 +33,7 @@ module Authpds
|
|
33
33
|
(params["#{institution_param_key}"].nil? or InstitutionList.instance.get(params["#{institution_param_key}"]).nil?) ?
|
34
34
|
(primary_institution_from_ip.nil?) ?
|
35
35
|
(current_user.nil? or current_user.primary_institution.nil?) ?
|
36
|
-
InstitutionList.instance.
|
36
|
+
InstitutionList.instance.defaults.first :
|
37
37
|
current_user.primary_institution :
|
38
38
|
primary_institution_from_ip :
|
39
39
|
InstitutionList.instance.get(params["#{institution_param_key}"]) :
|
@@ -22,8 +22,8 @@ class InstitutionList
|
|
22
22
|
end
|
23
23
|
|
24
24
|
# Returns an array of Institutions
|
25
|
-
def
|
26
|
-
return institutions.values.find_all {|institution| institution.
|
25
|
+
def defaults
|
26
|
+
return institutions.values.find_all {|institution| institution.default == true}
|
27
27
|
end
|
28
28
|
|
29
29
|
# Returns an array of Institutions
|
data/lib/authpds/version.rb
CHANGED
@@ -2,7 +2,7 @@ NYU:
|
|
2
2
|
login_attributes:
|
3
3
|
link_code: NYU
|
4
4
|
logout_url: 'http://bobcat.library.nyu.edu'
|
5
|
-
|
5
|
+
default: false
|
6
6
|
display_name: NYU Libraries
|
7
7
|
view_attributes:
|
8
8
|
test_view_attribute1: test_attribute1_nyu
|
@@ -16,7 +16,7 @@ NYU:
|
|
16
16
|
- 128.238.*.*
|
17
17
|
|
18
18
|
NYUAD:
|
19
|
-
|
19
|
+
default: true
|
20
20
|
display_name: NYUAD Library
|
21
21
|
view_attributes:
|
22
22
|
test_view_attribute1: test_attribute1_nyuad
|
@@ -28,7 +28,7 @@ NYSID:
|
|
28
28
|
login_attributes:
|
29
29
|
link_code: NYSID
|
30
30
|
logout_url: 'http://bobcat.library.nyu.edu/nysid'
|
31
|
-
|
31
|
+
default: false
|
32
32
|
display_name: New York School of Interior Design Library
|
33
33
|
view_attributes:
|
34
34
|
test_view_attribute1: test_attribute1_nysid
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authpds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-03-07 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &2151877240 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.2.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2151877240
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: authlogic
|
27
|
-
requirement: &
|
27
|
+
requirement: &2151876040 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2151876040
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: nokogiri
|
38
|
-
requirement: &
|
38
|
+
requirement: &2151869520 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2151869520
|
47
47
|
description: Libraries that use Ex Libris products, can integrate Rails application
|
48
48
|
with PDS to provide single sign-on across systems.
|
49
49
|
email:
|