psu_identity 0.7.1 → 0.7.2
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/psu_identity/search_service/client.rb +4 -11
- data/lib/psu_identity/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5230427f1fdf1aa0bd9a9777f41de102d50c238f82fd8191965e8919646da34a
|
4
|
+
data.tar.gz: 27d001fe4f66714e380a25947aaa52c8a614f79782ba2ac45fa465a3fae11666
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7040eb8ac1b8b4462c5410ebd32232e69a88ecbc39f7a988b2c60522139829dcabea00412a88eb94d02d328c81dd9536b66673eb5af4bc63c966d2440d1552e4
|
7
|
+
data.tar.gz: d49a4e1d633c207187f6c67146def8e2ca7823084aad3bf5d003916a3aa531aa9acd22e2e8f6a8d3ffb81f3efaf9247913598f015402246d4cc9c0a4b637ff2b
|
data/Gemfile.lock
CHANGED
@@ -1,29 +1,22 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# @abstract Client for querying Penn State's identity API: https://
|
3
|
+
# @abstract Client for querying Penn State's identity API: https://search-service.k8s.psu.edu/
|
4
4
|
module PsuIdentity::SearchService
|
5
5
|
class Error < StandardError; end
|
6
6
|
|
7
7
|
class NotFound < StandardError; end
|
8
8
|
|
9
9
|
class Client
|
10
|
-
attr_reader :base_url
|
11
|
-
|
12
|
-
# @param [String] base_url
|
13
|
-
def initialize(base_url: '/search-service/resources')
|
14
|
-
@base_url = base_url
|
15
|
-
end
|
16
|
-
|
17
10
|
# @param [Hash] args of options to pass to the endpoint
|
18
11
|
# @option args [String] :text to search for
|
19
12
|
def search(**args)
|
20
|
-
process_response connection.get(
|
13
|
+
process_response connection.get('/people', args)
|
21
14
|
end
|
22
15
|
|
23
16
|
# @param [Hash] args of options to pass to the endpoint
|
24
17
|
# @option args [String] :userid of the person
|
25
18
|
def userid(userid)
|
26
|
-
process_userid_response connection.get("
|
19
|
+
process_userid_response connection.get("/people/userid/#{userid}")
|
27
20
|
end
|
28
21
|
|
29
22
|
private
|
@@ -54,7 +47,7 @@ module PsuIdentity::SearchService
|
|
54
47
|
end
|
55
48
|
|
56
49
|
def endpoint
|
57
|
-
@endpoint ||= ENV.fetch('IDENTITY_ENDPOINT', 'https://
|
50
|
+
@endpoint ||= ENV.fetch('IDENTITY_ENDPOINT', 'https://search-service.k8s.psu.edu')
|
58
51
|
end
|
59
52
|
end
|
60
53
|
end
|
data/lib/psu_identity/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: psu_identity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Kiessling
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-08-14 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: faraday
|