oneroster 2.3.23 → 2.3.25
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/.tool-versions +1 -0
- data/Gemfile.lock +1 -1
- data/lib/one_roster/client.rb +3 -1
- data/lib/one_roster/connection.rb +1 -0
- data/lib/one_roster/version.rb +1 -1
- data/lib/types/student.rb +8 -1
- data/lib/types/teacher.rb +9 -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: 8db39f6cbbcf9c017c6f3e45d1d2c20ce4729e1aaee42c0bab9df7f86c98a5fb
|
4
|
+
data.tar.gz: 287a5336c41d5a331b259fc6f6e868c78407ecf112b316f46614f0ef88f38ed9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2d1839f015badde5414be3101fe12c80f8a69944be704e2ee0ee0ed1cfeae86e0dfc067b9bfeeaba2caf03f0e4f8b0cd763c1dc7be472226ec841a468ec44cb
|
7
|
+
data.tar.gz: 3aef5eece6020dba745992702dbaa71d58e8f4aac97ffb90e997812f69c5ea9c0194d05b7343bccfe2c3d20825390f74650c08f69ce414b7e9d01b210aa5a7a4
|
data/.tool-versions
CHANGED
data/Gemfile.lock
CHANGED
data/lib/one_roster/client.rb
CHANGED
@@ -5,7 +5,9 @@ module OneRoster
|
|
5
5
|
attr_accessor :app_id, :app_token, :api_url, :token_url, :roster_app,
|
6
6
|
:app_secret, :logger, :vendor_key,
|
7
7
|
:username_source, :oauth_strategy, :staff_username_source, :token_content_type,
|
8
|
-
:sentry_client, :only_provision_current_terms
|
8
|
+
:sentry_client, :only_provision_current_terms,
|
9
|
+
:student_username_search_for, :staffer_username_search_for,
|
10
|
+
:student_username_replace_with, :staffer_username_replace_with, :ca_cert_path
|
9
11
|
|
10
12
|
attr_reader :authenticated
|
11
13
|
|
@@ -92,6 +92,7 @@ module OneRoster
|
|
92
92
|
connection.response :logger, @client.logger if @client.logger
|
93
93
|
connection.response :json, content_type: /\bjson$/
|
94
94
|
connection.adapter Faraday.default_adapter
|
95
|
+
connection.ssl[:ca_file] = @client.ca_cert_path if @client.ca_cert_path
|
95
96
|
end
|
96
97
|
end
|
97
98
|
|
data/lib/one_roster/version.rb
CHANGED
data/lib/types/student.rb
CHANGED
@@ -20,9 +20,16 @@ module OneRoster
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def username(client = nil)
|
23
|
+
return @username if defined?(@username)
|
24
|
+
|
23
25
|
username_source = client&.username_source
|
26
|
+
username = presence(username_from(username_source)) || default_username
|
27
|
+
|
28
|
+
if client&.student_username_search_for
|
29
|
+
username = username&.gsub(client.student_username_search_for, client.student_username_replace_with || '')
|
30
|
+
end
|
24
31
|
|
25
|
-
@username
|
32
|
+
@username = username
|
26
33
|
end
|
27
34
|
|
28
35
|
def to_h
|
data/lib/types/teacher.rb
CHANGED
@@ -22,8 +22,16 @@ module OneRoster
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def username(client = nil)
|
25
|
+
return @username if defined?(@username)
|
26
|
+
|
25
27
|
username_source = client&.staff_username_source
|
26
|
-
|
28
|
+
username = presence(username_from(username_source))
|
29
|
+
|
30
|
+
if client&.staffer_username_search_for
|
31
|
+
username = username&.gsub(client.staffer_username_search_for, client.staffer_username_replace_with || '')
|
32
|
+
end
|
33
|
+
|
34
|
+
@username = username
|
27
35
|
end
|
28
36
|
|
29
37
|
def to_h
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oneroster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.25
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Julius
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|