workos 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -2
- data/lib/workos/portal.rb +5 -1
- data/lib/workos/types.rb +3 -8
- data/lib/workos/version.rb +1 -1
- data/workos.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6627870ab8fdcca1876529c6015ae2794b6263e3ff1a44e0c3024a9f9ff0099
|
4
|
+
data.tar.gz: 006bee4fe1b3e5505465e9ee03bbafe45650b918358f59bfc5ec940ee1a98b64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81041e45a168bc2d106e384a20d495bbcbd2bad1d0dd2bf7296f4657ae347353f984f2903214e3406d96497328ba0880fcf892c6775a9fc2774bdf6e81666e58
|
7
|
+
data.tar.gz: ecd2429724de1d5f069f529df5094860139b008631dfe3b55aea3377be252b5807fc9c26cc5c44e66f10be47bd14c09ddf3c883082b1bc13ee1872782d77531d
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
workos (0.
|
4
|
+
workos (0.8.0)
|
5
|
+
require_all (~> 3.0.0)
|
5
6
|
sorbet-runtime (~> 0.5)
|
6
7
|
|
7
8
|
GEM
|
@@ -26,6 +27,7 @@ GEM
|
|
26
27
|
public_suffix (4.0.2)
|
27
28
|
rainbow (3.0.0)
|
28
29
|
rake (13.0.1)
|
30
|
+
require_all (3.0.0)
|
29
31
|
rspec (3.9.0)
|
30
32
|
rspec-core (~> 3.9.0)
|
31
33
|
rspec-expectations (~> 3.9.0)
|
@@ -54,7 +56,7 @@ GEM
|
|
54
56
|
simplecov-html (0.12.2)
|
55
57
|
sorbet (0.5.5560)
|
56
58
|
sorbet-static (= 0.5.5560)
|
57
|
-
sorbet-runtime (0.5.
|
59
|
+
sorbet-runtime (0.5.5923)
|
58
60
|
sorbet-static (0.5.5560-universal-darwin-14)
|
59
61
|
unicode-display_width (1.6.0)
|
60
62
|
vcr (5.0.0)
|
data/lib/workos/portal.rb
CHANGED
@@ -103,8 +103,12 @@ module WorkOS
|
|
103
103
|
|
104
104
|
parsed_response = JSON.parse(response.body)
|
105
105
|
|
106
|
+
organizations = parsed_response['data'].map do |organization|
|
107
|
+
::WorkOS::Organization.new(organization.to_json)
|
108
|
+
end
|
109
|
+
|
106
110
|
WorkOS::Types::ListStruct.new(
|
107
|
-
data:
|
111
|
+
data: organizations,
|
108
112
|
list_metadata: parsed_response['listMetadata'],
|
109
113
|
)
|
110
114
|
end
|
data/lib/workos/types.rb
CHANGED
@@ -1,16 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
2
|
+
|
3
|
+
require 'require_all'
|
3
4
|
|
4
5
|
module WorkOS
|
5
6
|
# WorkOS believes strongly in typed languages,
|
6
7
|
# so we're using Sorbet throughout this Ruby gem.
|
7
8
|
module Types
|
8
|
-
|
9
|
-
require_relative 'types/intent_enum'
|
10
|
-
require_relative 'types/list_struct'
|
11
|
-
require_relative 'types/organization_struct'
|
12
|
-
require_relative 'types/passwordless_session_struct'
|
13
|
-
require_relative 'types/profile_struct'
|
14
|
-
require_relative 'types/provider_enum'
|
9
|
+
require_all 'lib/workos/types'
|
15
10
|
end
|
16
11
|
end
|
data/lib/workos/version.rb
CHANGED
data/workos.gemspec
CHANGED
@@ -22,6 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
23
23
|
spec.require_paths = ['lib']
|
24
24
|
|
25
|
+
spec.add_dependency 'require_all', '~> 3.0.0'
|
25
26
|
spec.add_dependency 'sorbet-runtime', '~> 0.5'
|
26
27
|
|
27
28
|
spec.add_development_dependency 'bundler', '>= 2.0.1'
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- WorkOS
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: require_all
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.0.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.0.0
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: sorbet-runtime
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|