workos 2.5.0 → 2.5.1
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 +2 -2
- data/lib/workos/client.rb +1 -1
- data/lib/workos/version.rb +1 -1
- data/spec/support/shared_examples/client_spec.rb +14 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: efe8fb9e00262c08d11cebcc39e65ad5728771bb1f132ea88302c78205134a3b
|
|
4
|
+
data.tar.gz: 1532164858cc02a9e46d9cb8ac0c10b0e5401812da204840cd3760342462bfb7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bd4c7ada118af7b5ee60d28db25844264bda9a8249b0b3d0a33c11696c77f57d020cfe6e7410d4661bb7c3832e0ec83af2acc0468b4dc4b21e633a5af12bec16
|
|
7
|
+
data.tar.gz: 8ecebf2811768a093ae87518124b4e1ff8bb3caefbc3ed1ff36ea0a81243030968bf204d535c63422e43718d811f13c682ad058c33e132977b283509457e30f3
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
workos (2.5.
|
|
4
|
+
workos (2.5.1)
|
|
5
5
|
sorbet-runtime (~> 0.5)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -60,7 +60,7 @@ GEM
|
|
|
60
60
|
simplecov_json_formatter (0.1.2)
|
|
61
61
|
sorbet (0.5.6388)
|
|
62
62
|
sorbet-static (= 0.5.6388)
|
|
63
|
-
sorbet-runtime (0.5.
|
|
63
|
+
sorbet-runtime (0.5.10323)
|
|
64
64
|
sorbet-static (0.5.6388-universal-darwin-14)
|
|
65
65
|
sorbet-static (0.5.6388-universal-darwin-15)
|
|
66
66
|
sorbet-static (0.5.6388-universal-darwin-16)
|
data/lib/workos/client.rb
CHANGED
|
@@ -13,7 +13,7 @@ module WorkOS
|
|
|
13
13
|
http_client.use_ssl = true
|
|
14
14
|
http_client.open_timeout = WorkOS.config.timeout
|
|
15
15
|
http_client.read_timeout = WorkOS.config.timeout
|
|
16
|
-
http_client.write_timeout = WorkOS.config.timeout
|
|
16
|
+
http_client.write_timeout = WorkOS.config.timeout if RUBY_VERSION >= '2.6.0'
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
|
data/lib/workos/version.rb
CHANGED
|
@@ -13,4 +13,18 @@ RSpec.shared_examples 'client' do
|
|
|
13
13
|
it 'returns new instance' do
|
|
14
14
|
expect(described_class.client.object_id).to_not eq described_class.client.object_id
|
|
15
15
|
end
|
|
16
|
+
|
|
17
|
+
if RUBY_VERSION >= '2.6.0'
|
|
18
|
+
it 'sets the timeouts, including the write timeout' do
|
|
19
|
+
expect(described_class.client.open_timeout).to_not be_nil
|
|
20
|
+
expect(described_class.client.read_timeout).to_not be_nil
|
|
21
|
+
expect(described_class.client.write_timeout).to_not be_nil
|
|
22
|
+
end
|
|
23
|
+
else
|
|
24
|
+
it 'sets the open and read timeouts, but not the write timeout' do
|
|
25
|
+
expect(described_class.client.open_timeout).to_not be_nil
|
|
26
|
+
expect(described_class.client.read_timeout).to_not be_nil
|
|
27
|
+
expect(described_class.client.write_timeout).to be_nil
|
|
28
|
+
end
|
|
29
|
+
end
|
|
16
30
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: workos
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.5.
|
|
4
|
+
version: 2.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- WorkOS
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-08-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sorbet-runtime
|
|
@@ -388,7 +388,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
388
388
|
- !ruby/object:Gem::Version
|
|
389
389
|
version: '0'
|
|
390
390
|
requirements: []
|
|
391
|
-
rubygems_version: 3.3.
|
|
391
|
+
rubygems_version: 3.3.20
|
|
392
392
|
signing_key:
|
|
393
393
|
specification_version: 4
|
|
394
394
|
summary: API client for WorkOS
|