workos 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/workos/client.rb +3 -6
- data/lib/workos/version.rb +1 -1
- data/spec/lib/workos/audit_trail_spec.rb +2 -0
- data/spec/lib/workos/directory_sync_spec.rb +2 -0
- data/spec/lib/workos/organizations_spec.rb +2 -0
- data/spec/lib/workos/passwordless_spec.rb +2 -0
- data/spec/lib/workos/portal_spec.rb +2 -0
- data/spec/lib/workos/sso_spec.rb +2 -0
- data/spec/spec_helper.rb +3 -0
- data/spec/support/shared_examples/client_spec.rb +16 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5aecf9fa40a85a4623e12f1ba6804c87fde006931bed9a443327f6851d714df1
|
4
|
+
data.tar.gz: 63d0daa095bf705643906247371d36a15f7ec9aac2b9d5b04293fb7e135a1d57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6c47e8d64139d4e3452dca04e6466b177b8c029b97779e58b93407d5e08f9c886076a0101a9b272376fe33e9ee16c180464e25b3be42a6089b921108187eeb1
|
7
|
+
data.tar.gz: 577c4b464439eed2216d1011d637d619cd0af9c69f985f5d56f56ce58f6c72deb71f0d2dc66efc1014daa7d973cd2c1d3e95a2f729627658d4235ce2da683184
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
workos (1.5.
|
4
|
+
workos (1.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.9094)
|
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
@@ -9,12 +9,9 @@ module WorkOS
|
|
9
9
|
|
10
10
|
sig { returns(Net::HTTP) }
|
11
11
|
def client
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
@client.use_ssl = true
|
16
|
-
|
17
|
-
@client
|
12
|
+
Net::HTTP.new(WorkOS::API_HOSTNAME, 443).tap do |http_client|
|
13
|
+
http_client.use_ssl = true
|
14
|
+
end
|
18
15
|
end
|
19
16
|
|
20
17
|
sig do
|
data/lib/workos/version.rb
CHANGED
data/spec/lib/workos/sso_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# typed: false
|
3
|
+
|
4
|
+
RSpec.shared_examples 'client' do
|
5
|
+
subject(:client) { described_class.client }
|
6
|
+
|
7
|
+
it { is_expected.to be_kind_of(Net::HTTP) }
|
8
|
+
|
9
|
+
it 'assigns use_ssl' do
|
10
|
+
expect(client.use_ssl?).to be true
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'returns new instance' do
|
14
|
+
expect(described_class.client.object_id).to_not eq described_class.client.object_id
|
15
|
+
end
|
16
|
+
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: 1.5.
|
4
|
+
version: 1.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: 2021-
|
11
|
+
date: 2021-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sorbet-runtime
|
@@ -336,6 +336,7 @@ files:
|
|
336
336
|
- spec/support/fixtures/vcr_cassettes/sso/list_connections/with_organization_id.yml
|
337
337
|
- spec/support/fixtures/vcr_cassettes/sso/profile.yml
|
338
338
|
- spec/support/profile.txt
|
339
|
+
- spec/support/shared_examples/client_spec.rb
|
339
340
|
- workos.gemspec
|
340
341
|
homepage: https://github.com/workos-inc/workos-ruby
|
341
342
|
licenses:
|
@@ -357,7 +358,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
357
358
|
- !ruby/object:Gem::Version
|
358
359
|
version: '0'
|
359
360
|
requirements: []
|
360
|
-
rubygems_version: 3.2.
|
361
|
+
rubygems_version: 3.2.26
|
361
362
|
signing_key:
|
362
363
|
specification_version: 4
|
363
364
|
summary: API client for WorkOS
|
@@ -429,3 +430,4 @@ test_files:
|
|
429
430
|
- spec/support/fixtures/vcr_cassettes/sso/list_connections/with_organization_id.yml
|
430
431
|
- spec/support/fixtures/vcr_cassettes/sso/profile.yml
|
431
432
|
- spec/support/profile.txt
|
433
|
+
- spec/support/shared_examples/client_spec.rb
|