oneroster 2.3.3 → 2.3.5

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
- SHA1:
3
- metadata.gz: 22cfb219341af86583ad0be1601058826784c557
4
- data.tar.gz: 419847c21f7e5bec0e3d85e98fefcb47834a7cac
2
+ SHA256:
3
+ metadata.gz: f0eb863f19f9722d3c2f53f0f66d822aa8fd198914de2dd191d1de5e90eea0a9
4
+ data.tar.gz: b7915d245392cf5a4a184212093138cb4d336aa77ef106296f8936ef3ccea669
5
5
  SHA512:
6
- metadata.gz: 7f27a2372bc742484d796a40f3e26fa3c8cdc8694cf58ed9797a9023244b7eec3503df68075a0227dc23cc11d0bcb8f3cbd44ba179f655644895e6792e9ef5a0
7
- data.tar.gz: f443a111507f5d03ee8f089a0fdb5163077229d70d76d4b45e96ea5d9f8deff79d06fb2f49fe4144f4f0b61a228567127d43b920df2cb91efd43f068bc39f40b
6
+ metadata.gz: 5cfde8ae36c6226dc0646ba58ba5070bc06c9be1fc6439a51b2f5070284985be5e1bc89515684efe604199d8746b94278046fac593c0598a5b967260570c89e4
7
+ data.tar.gz: 594b2daf5595fff0122b2797acdec30a8599c86e10aa75dcb6369a1a2022bcf5526ee377836fe8bd63c7c02c26f1fb0e6c00499dca6bd0f2fa8d7a5bbca2efb7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- oneroster (2.3.3)
4
+ oneroster (2.3.5)
5
5
  dry-inflector
6
6
  faraday
7
7
  faraday_middleware
@@ -16,10 +16,31 @@ GEM
16
16
  coderay (1.1.2)
17
17
  diff-lcs (1.3)
18
18
  docile (1.3.1)
19
- dry-inflector (0.2.0)
20
- faraday (1.0.1)
21
- multipart-post (>= 1.2, < 3)
22
- faraday_middleware (1.0.0)
19
+ dry-inflector (0.3.0)
20
+ faraday (1.10.0)
21
+ faraday-em_http (~> 1.0)
22
+ faraday-em_synchrony (~> 1.0)
23
+ faraday-excon (~> 1.1)
24
+ faraday-httpclient (~> 1.0)
25
+ faraday-multipart (~> 1.0)
26
+ faraday-net_http (~> 1.0)
27
+ faraday-net_http_persistent (~> 1.0)
28
+ faraday-patron (~> 1.0)
29
+ faraday-rack (~> 1.0)
30
+ faraday-retry (~> 1.0)
31
+ ruby2_keywords (>= 0.0.4)
32
+ faraday-em_http (1.0.0)
33
+ faraday-em_synchrony (1.0.0)
34
+ faraday-excon (1.1.0)
35
+ faraday-httpclient (1.0.1)
36
+ faraday-multipart (1.0.4)
37
+ multipart-post (~> 2)
38
+ faraday-net_http (1.0.1)
39
+ faraday-net_http_persistent (1.2.0)
40
+ faraday-patron (1.0.0)
41
+ faraday-rack (1.0.0)
42
+ faraday-retry (1.0.3)
43
+ faraday_middleware (1.2.0)
23
44
  faraday (~> 1.0)
24
45
  jaro_winkler (1.5.2)
25
46
  json (2.2.0)
@@ -27,8 +48,8 @@ GEM
27
48
  method_source (0.8.2)
28
49
  mocha (1.8.0)
29
50
  metaclass (~> 0.0.1)
30
- multipart-post (2.1.1)
31
- oauth (0.5.4)
51
+ multipart-post (2.2.3)
52
+ oauth (0.5.10)
32
53
  parallel (1.15.0)
33
54
  parser (2.6.2.0)
34
55
  ast (~> 2.4.0)
@@ -66,6 +87,7 @@ GEM
66
87
  ruby-progressbar (~> 1.7)
67
88
  unicode-display_width (>= 1.4.0, < 1.6)
68
89
  ruby-progressbar (1.10.0)
90
+ ruby2_keywords (0.0.5)
69
91
  simple_oauth (0.3.1)
70
92
  simplecov (0.16.1)
71
93
  docile (~> 1.1)
@@ -2,7 +2,7 @@
2
2
 
3
3
  module OneRoster
4
4
  class Client
5
- attr_accessor :app_id, :app_token, :api_url,
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
8
8
 
@@ -128,7 +128,14 @@ module OneRoster
128
128
  end
129
129
 
130
130
  def token
131
- connection.execute("#{api_url}/token", :post)
131
+ url = token_url || "#{api_url}/token"
132
+
133
+ if roster_app == 'infinite_campus'
134
+ connection.execute(url, :post, { grant_type: 'client_credentials',
135
+ scope: 'https://purl.imsglobal.org/spec/or/v1p1/scope/roster-core.readonly' })
136
+ else
137
+ connection.execute(url, :post)
138
+ end
132
139
  end
133
140
 
134
141
  def set_auth_headers(token, cookie)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OneRoster
4
- VERSION = '2.3.3'
4
+ VERSION = '2.3.5'
5
5
  end
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.3
4
+ version: 2.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Julius
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-23 00:00:00.000000000 Z
11
+ date: 2023-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -250,7 +250,7 @@ licenses:
250
250
  - MIT
251
251
  metadata:
252
252
  allowed_push_host: https://rubygems.org
253
- post_install_message:
253
+ post_install_message:
254
254
  rdoc_options: []
255
255
  require_paths:
256
256
  - lib
@@ -265,9 +265,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
265
265
  - !ruby/object:Gem::Version
266
266
  version: '0'
267
267
  requirements: []
268
- rubyforge_project:
269
- rubygems_version: 2.6.11
270
- signing_key:
268
+ rubygems_version: 3.1.6
269
+ signing_key:
271
270
  specification_version: 4
272
271
  summary: Wrapper for the OneRoster API.
273
272
  test_files: []