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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ae645240552ea6009be14b5f433d2049b40ed16d78dbb78402a4dd336865a7c
4
- data.tar.gz: 3cf78ee86c19dacfadd60c0921008aecce938242fa8f8ffbfec9e41123f94adf
3
+ metadata.gz: 5230427f1fdf1aa0bd9a9777f41de102d50c238f82fd8191965e8919646da34a
4
+ data.tar.gz: 27d001fe4f66714e380a25947aaa52c8a614f79782ba2ac45fa465a3fae11666
5
5
  SHA512:
6
- metadata.gz: 784e8c5e414a314667182df2374ae6b1d4a44471c16b88a008dba0ae660b5934cbdc61b8012d0a83e059d9f3061a4c5c2d3a9dd13f0b453d7d4f04720e273d06
7
- data.tar.gz: 0ff3291fbd153ad6ebf3b35e2247ff7a829b87b8ed6256b38f4d0854334db5fffbc6a2091ce414c0d7608cd50a70ef0815ca7d37e766992f19cd8c6c9bb1ca15
6
+ metadata.gz: 7040eb8ac1b8b4462c5410ebd32232e69a88ecbc39f7a988b2c60522139829dcabea00412a88eb94d02d328c81dd9536b66673eb5af4bc63c966d2440d1552e4
7
+ data.tar.gz: d49a4e1d633c207187f6c67146def8e2ca7823084aad3bf5d003916a3aa531aa9acd22e2e8f6a8d3ffb81f3efaf9247913598f015402246d4cc9c0a4b637ff2b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- psu_identity (0.7.1)
4
+ psu_identity (0.7.2)
5
5
  faraday (~> 2.0)
6
6
  json
7
7
  oauth2
@@ -1,29 +1,22 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # @abstract Client for querying Penn State's identity API: https://identity.apps.psu.edu/search-service/resources
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("#{base_url}/people", args)
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("#{base_url}/people/userid/#{userid}")
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://identity.apps.psu.edu')
50
+ @endpoint ||= ENV.fetch('IDENTITY_ENDPOINT', 'https://search-service.k8s.psu.edu')
58
51
  end
59
52
  end
60
53
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PsuIdentity
4
- VERSION = '0.7.1'
4
+ VERSION = '0.7.2'
5
5
  end
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.1
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-06-06 00:00:00.000000000 Z
10
+ date: 2025-08-14 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: faraday