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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dbb2aa0d20fb9d4fa99930c63d67240f2bb911613dd48848aa2c89d5dc94fcf7
4
- data.tar.gz: 838ca6771237c0df8acd0e7b1ef59c021f87f8b4c7e94b32a5f6fb83c3158ac9
3
+ metadata.gz: b6627870ab8fdcca1876529c6015ae2794b6263e3ff1a44e0c3024a9f9ff0099
4
+ data.tar.gz: 006bee4fe1b3e5505465e9ee03bbafe45650b918358f59bfc5ec940ee1a98b64
5
5
  SHA512:
6
- metadata.gz: 6bf3d16a8e76427557d5b08dc2897e167730a7b8b81fc96c42b6c04b5db74f64a5c06b24f381784f6b9c845fcff945fc273f3d0ceaf872d97c80c0b1beb6639f
7
- data.tar.gz: 0f33de9781d1df7fd2f02bac813cbb3d192fe17f5690a28804a848400d422575e2d7e91c955259d99ff7fbc5bd60d457a595fe7279128058d3ba0100c1858378
6
+ metadata.gz: 81041e45a168bc2d106e384a20d495bbcbd2bad1d0dd2bf7296f4657ae347353f984f2903214e3406d96497328ba0880fcf892c6775a9fc2774bdf6e81666e58
7
+ data.tar.gz: ecd2429724de1d5f069f529df5094860139b008631dfe3b55aea3377be252b5807fc9c26cc5c44e66f10be47bd14c09ddf3c883082b1bc13ee1872782d77531d
@@ -1,7 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- workos (0.7.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.5909)
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)
@@ -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: parsed_response['data'],
111
+ data: organizations,
108
112
  list_metadata: parsed_response['listMetadata'],
109
113
  )
110
114
  end
@@ -1,16 +1,11 @@
1
1
  # frozen_string_literal: true
2
- # typed: strong
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
- require_relative 'types/connection_struct'
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
@@ -2,5 +2,5 @@
2
2
  # typed: strong
3
3
 
4
4
  module WorkOS
5
- VERSION = '0.7.0'
5
+ VERSION = '0.8.0'
6
6
  end
@@ -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.7.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-17 00:00:00.000000000 Z
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