ucb_rails_user 4.0.3 → 4.0.4

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
  SHA256:
3
- metadata.gz: c9eb42cd87a9e36ca72c3cd6b781205f7a4854acd673b00b784d8a58c2136ea6
4
- data.tar.gz: 75af2810f84a6ab8fc2af39ac6b633de8bf2d746d4cd94a9f77d7808ec92a141
3
+ metadata.gz: 460c4ebc80d80dbc43a3e1f1653216dec1a5dab89a8f53ad42d073059b48af25
4
+ data.tar.gz: beb96b35fc53bf4d8890a71696aaf36280d92869d286ce4272b0ce21c5feaa1f
5
5
  SHA512:
6
- metadata.gz: 0c8e290178f63d2d1764d6bcc25d1fa2110fbe26cb2c78e8435225e54d757432619542e246cff58232f53926403ea783834d6ff5fe82df5c2fcf67e1f93847aa
7
- data.tar.gz: 38dec97a527ac71b2142e252d42d69a4452a973881011cc090af264d7d27176e731316c01b5ccfc4b17cda1ab699900942a3d0925f591b7b316e4c89442cbf9e
6
+ metadata.gz: 7ab0216db3aef410c94b8c66df26d9c1064412908645a8fa57a1fcbc0c5283e66f8e57e4220bf2ebdef7bd92af4d3b6a8e2139fad6e86b73fb2ed83229f1dc0c
7
+ data.tar.gz: 844cc55820bfff87edacf6bc72fb946a80e8a2f2b3ddb1bd8cc0f079209bcd6beb632831041518414b401f1882f4b0a44c9cbb2a1728c6f796db5dd596051b7e
data/README.md CHANGED
@@ -16,7 +16,7 @@ This engine also includes the [Datatables](https://datatables.net/) JQuery plug-
16
16
 
17
17
  Version 2.0 and greater of this gem sets a user's `employee_id` to the new UCPath employee id, rather than the legacy HCM employee id. If you need to use the older ID, use version 1.1.3 of this gem, or lower.
18
18
 
19
- ## Upgrading to version 3.0 from version 2.x
19
+ ## Upgrading to version 3.0+ from version 2.x
20
20
 
21
21
  See [this wiki page](https://github.com/ucb-ist-eas/ucb_rails_user/wiki/Upgrading-to-version-3.0) for details.
22
22
 
@@ -2,7 +2,7 @@ module UcbRailsUser::Concerns::HomeController
2
2
  extend ActiveSupport::Concern
3
3
 
4
4
  included do
5
- skip_before_action :ensure_authenticated_user
5
+ skip_before_action :ensure_authenticated_user, raise: false
6
6
  end
7
7
 
8
8
  def index
@@ -2,7 +2,7 @@ module UcbRailsUser::Concerns::SessionsController
2
2
  extend ActiveSupport::Concern
3
3
 
4
4
  included do
5
- skip_before_action :ensure_authenticated_user, :log_request
5
+ skip_before_action :ensure_authenticated_user, :log_request, raise: false
6
6
  end
7
7
 
8
8
  # Redirects to authentication provider
@@ -4,7 +4,7 @@ module UcbRailsUser::Concerns::UsersController
4
4
  included do
5
5
  before_action :find_user, :only => [:edit, :update, :destroy]
6
6
  before_action :ensure_admin_user
7
- skip_before_action :ensure_admin_user, if: ->{ action_name == "toggle_superuser" && Rails.env.development? }
7
+ skip_before_action :ensure_admin_user, if: ->{ action_name == "toggle_superuser" && Rails.env.development? }, raise: false
8
8
  end
9
9
 
10
10
  def index
@@ -76,7 +76,7 @@ module UcbRailsUser::Concerns::UsersController
76
76
  def ldap_search
77
77
  # FIXME: this was retrofitted to support typeahead ajax json queries
78
78
  if(query = params[:query])
79
- @lps_entries = UcbRails::OmniUserTypeahead.new.ldap_results(query)
79
+ @lps_entries = UcbRailsUser::OmniUserTypeahead.new.ldap_results(query)
80
80
  @lps_entries.map!{|entry|
81
81
  attrs = entry.attributes.tap{|attrs| attrs["first_last_name"] = "#{attrs['first_name']} #{attrs['last_name']}" }
82
82
  attrs.as_json
@@ -85,13 +85,13 @@ module UcbRailsUser::Concerns::UsersController
85
85
  render json: @lps_entries
86
86
 
87
87
  else
88
- @lps_entries = UcbRails::LdapPerson::Finder.find_by_first_last(
88
+ @lps_entries = UcbRailsUser::LdapPerson::Finder.find_by_first_last(
89
89
  params.fetch(:first_name),
90
90
  params.fetch(:last_name),
91
91
  :sort => :last_first_downcase
92
92
  )
93
93
  @lps_existing_uids = User.where(ldap_uid: @lps_entries.map(&:uid)).pluck(:uid)
94
- render 'lps/search'
94
+ render 'ucb_rails_user/lps/search'
95
95
  end
96
96
 
97
97
  end
@@ -17,6 +17,8 @@ Rails.application.routes.draw do
17
17
  as: "admin_user_search", via: [:get]
18
18
  match "/admin/users/impersonate_search", to: UcbRailsUser::UsersController.action(:impersonate_search),
19
19
  as: "admin_user_impersonate_search", via: [:get]
20
+ match "/admin/users/ldap_search", to: UcbRailsUser::UsersController.action(:ldap_search),
21
+ as: "admin_user_ldap_search", via: [:get]
20
22
  resources :users, controller: "ucb_rails_user/users", path: "admin/users", as: :admin_users
21
23
 
22
24
  resources :impersonations, controller: "ucb_rails_user/impersonations", path: "admin/impersonations", as: :admin_impersonations
@@ -1,3 +1,3 @@
1
1
  module UcbRailsUser
2
- VERSION = '4.0.3'
2
+ VERSION = '4.0.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ucb_rails_user
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.3
4
+ version: 4.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Downey
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2020-07-09 00:00:00.000000000 Z
14
+ date: 2021-01-08 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails