oneroster 2.3.21 → 2.3.22

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: 110d42e408fdfbda9b0e67a1926bd25b9bf29323374812657d344fc508b5de57
4
- data.tar.gz: 5a05a3a6ea62d2097f8e69b2a11e830fe5af454c05beefe4b9bc3b70684fb827
3
+ metadata.gz: f8821dcc5cc69331582a7e5376535f393f06e6b40336ff0964bc392ac1f6af32
4
+ data.tar.gz: 5379eb502d459fda6cb3b4e1d5501ee8671b4d287c099c1aa077319ba2585fe6
5
5
  SHA512:
6
- metadata.gz: 63c48c635ce71a8cad5f964eb34af6914b70303ec2221322c56babedb928b646a4fc58b5cb09f60e93177d0df5c8b16a3ad65e285317fc6aca261f58cef417b6
7
- data.tar.gz: 59f0a398376e91285067ead1ae5a3c34c8bce04463719065295a3ead21620e2ecbe479a59251f8df0b48868b4791cde5b334874d6ac9a0ee1b7da55009de8729
6
+ metadata.gz: fac41ad6bfd1ebd3944706865416b5df6b27c4ca6e6d4df7c545981f59be292768c33a4f2c9459a6a86d044a0418134f23dff560d3014aaa93bb6b6e74a9c3cf
7
+ data.tar.gz: f8dfdbd4059d025131df9ca9c7e57500fdbff4e6d91468e32fbadcea6e56d7e4af301692ad3a10f4a1c0751426082515b95f2eed66117a76d4e20f92364b2d55
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- oneroster (2.3.21)
4
+ oneroster (2.3.22)
5
5
  dry-inflector (~> 1.0.0)
6
6
  faraday
7
7
  faraday_middleware
@@ -17,7 +17,7 @@ GEM
17
17
  diff-lcs (1.3)
18
18
  docile (1.4.1)
19
19
  dry-inflector (1.0.0)
20
- faraday (1.10.3)
20
+ faraday (1.10.4)
21
21
  faraday-em_http (~> 1.0)
22
22
  faraday-em_synchrony (~> 1.0)
23
23
  faraday-excon (~> 1.1)
@@ -33,14 +33,14 @@ GEM
33
33
  faraday-em_synchrony (1.0.0)
34
34
  faraday-excon (1.1.0)
35
35
  faraday-httpclient (1.0.1)
36
- faraday-multipart (1.0.4)
37
- multipart-post (~> 2)
38
- faraday-net_http (1.0.1)
36
+ faraday-multipart (1.1.0)
37
+ multipart-post (~> 2.0)
38
+ faraday-net_http (1.0.2)
39
39
  faraday-net_http_persistent (1.2.0)
40
40
  faraday-patron (1.0.0)
41
41
  faraday-rack (1.0.0)
42
42
  faraday-retry (1.0.3)
43
- faraday_middleware (1.2.0)
43
+ faraday_middleware (1.2.1)
44
44
  faraday (~> 1.0)
45
45
  hashie (5.0.0)
46
46
  json (2.9.1)
@@ -49,7 +49,7 @@ GEM
49
49
  method_source (0.8.2)
50
50
  mocha (1.8.0)
51
51
  metaclass (~> 0.0.1)
52
- multipart-post (2.3.0)
52
+ multipart-post (2.4.1)
53
53
  oauth (1.1.0)
54
54
  oauth-tty (~> 1.0, >= 1.0.1)
55
55
  snaky_hash (~> 2.0)
@@ -114,7 +114,7 @@ GEM
114
114
  unicode-display_width (3.1.4)
115
115
  unicode-emoji (~> 4.0, >= 4.0.4)
116
116
  unicode-emoji (4.0.4)
117
- version_gem (1.1.3)
117
+ version_gem (1.1.6)
118
118
 
119
119
  PLATFORMS
120
120
  ruby
@@ -24,6 +24,7 @@ module OneRoster
24
24
  'response.http_status' => response.status,
25
25
  'response.raw_body' => response.raw_body
26
26
  )
27
+ raise GatewayTimeoutError if response.timed_out?
27
28
  end
28
29
 
29
30
  response
@@ -113,5 +114,7 @@ module OneRoster
113
114
  **{ extra: payload }
114
115
  )
115
116
  end
117
+
118
+ class GatewayTimeoutError < StandardError; end
116
119
  end
117
120
  end
@@ -24,6 +24,10 @@ module OneRoster
24
24
  @status == 200
25
25
  end
26
26
 
27
+ def timed_out?
28
+ @status == 504
29
+ end
30
+
27
31
  private
28
32
 
29
33
  def resource_type(faraday_response)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OneRoster
4
- VERSION = '2.3.21'
4
+ VERSION = '2.3.22'
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.21
4
+ version: 2.3.22
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: 2025-03-12 00:00:00.000000000 Z
11
+ date: 2025-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -251,7 +251,7 @@ licenses:
251
251
  - MIT
252
252
  metadata:
253
253
  allowed_push_host: https://rubygems.org
254
- post_install_message:
254
+ post_install_message:
255
255
  rdoc_options: []
256
256
  require_paths:
257
257
  - lib
@@ -267,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
267
267
  version: '0'
268
268
  requirements: []
269
269
  rubygems_version: 3.1.6
270
- signing_key:
270
+ signing_key:
271
271
  specification_version: 4
272
272
  summary: Wrapper for the OneRoster API.
273
273
  test_files: []