authpds 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,11 +20,11 @@ module Authpds
20
20
  def current_primary_institution
21
21
  @current_primary_institution ||=
22
22
  (institution_param.nil? or all_institutions[institution_param].nil?) ?
23
- (primary_institution_from_ip.nil?) ?
24
- (@current_user.nil? or current_user.primary_institution.nil?) ?
23
+ ((primary_institution_from_ip.nil?) ?
24
+ ((@current_user.nil? or current_user.primary_institution.nil?) ?
25
25
  Institutions.defaults.first :
26
- current_user.primary_institution :
27
- primary_institution_from_ip :
26
+ current_user.primary_institution) :
27
+ primary_institution_from_ip) :
28
28
  all_institutions[institution_param]
29
29
  end
30
30
 
@@ -1,3 +1,3 @@
1
1
  module Authpds
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
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.2.5
4
+ version: 0.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -211,7 +211,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
211
211
  version: '0'
212
212
  segments:
213
213
  - 0
214
- hash: 3075631609703829384
214
+ hash: -1209841432727385260
215
215
  required_rubygems_version: !ruby/object:Gem::Requirement
216
216
  none: false
217
217
  requirements:
@@ -220,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
220
  version: '0'
221
221
  segments:
222
222
  - 0
223
- hash: 3075631609703829384
223
+ hash: -1209841432727385260
224
224
  requirements: []
225
225
  rubyforge_project:
226
226
  rubygems_version: 1.8.24