workos 5.15.0 → 5.16.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 871af49aaa91bda4ef8ed6cd6479f5855dfe52bdbdc03d7a8cb84f3d0e11f9a2
4
- data.tar.gz: fb3bf68d67de00de307abce4b445409669caf263c66b1b1c1a0cb602d33178ba
3
+ metadata.gz: 7b3d0f546e7d03bca6169b86c38bab7339a34d2e22fe38352b803abaca7d9712
4
+ data.tar.gz: 5b391564cb175789adb059ebfff7a1216c5bc5647ba5cadd87dce0ed969c67c4
5
5
  SHA512:
6
- metadata.gz: 1a3d8dc580bdffa940144de274775e8fe29b88a35ee0d6db0b2f47b44307a1b9431caca2f611ff26f0808dada9bad049716590c3a2d824a65eb111e71590fb66
7
- data.tar.gz: fec16fc1694cefb315caa7699d2386ed9b6a2f678891c20bd2ff1c393cd2d69abb1bff51c0155a25cbdc8d1ed9b490c2bd954050e612abc9fca0622ed2fe3c91
6
+ metadata.gz: 9141d8d3e16e0cb26ff94e9df1814ca1c03cc0e410d41c76c869b7aa0fc42033ef19e207159d253d0aff2db642ae60b1f11895c5650db7949178789111d44af3
7
+ data.tar.gz: 31a27cb3e479dbbf1f55d830ee33939325d3c5cb9b33f7665e41219eb99eefb2b056bb2237550bc8ddff52a2d3100a32b7d1400692afb367145ecdef8d384fe1
@@ -21,7 +21,7 @@ jobs:
21
21
  - '3.2'
22
22
  steps:
23
23
  - uses: actions/checkout@v4
24
- - uses: ruby/setup-ruby@v1
24
+ - uses: ruby/setup-ruby@1a615958ad9d422dd932dc1d5823942ee002799f # v1.227.0
25
25
  with:
26
26
  ruby-version: ${{ matrix.ruby }}
27
27
  bundler-cache: true
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- workos (5.15.0)
4
+ workos (5.16.1)
5
5
  encryptor (~> 3.0)
6
6
  jwt (~> 2.8)
7
7
 
@@ -31,7 +31,8 @@ GEM
31
31
  racc (1.8.1)
32
32
  rainbow (3.1.1)
33
33
  regexp_parser (2.10.0)
34
- rexml (3.2.6)
34
+ rexml (3.3.3)
35
+ strscan
35
36
  rspec (3.9.0)
36
37
  rspec-core (~> 3.9.0)
37
38
  rspec-expectations (~> 3.9.0)
@@ -58,6 +59,7 @@ GEM
58
59
  rubocop-ast (1.37.0)
59
60
  parser (>= 3.3.1.0)
60
61
  ruby-progressbar (1.13.0)
62
+ strscan (3.1.0)
61
63
  unicode-display_width (3.1.4)
62
64
  unicode-emoji (~> 4.0, >= 4.0.4)
63
65
  unicode-emoji (4.0.4)
@@ -7,7 +7,7 @@ module WorkOS
7
7
  class DirectoryUser < DeprecatedHashWrapper
8
8
  include HashProvider
9
9
 
10
- attr_accessor :id, :idp_id, :emails, :first_name, :last_name, :job_title, :username, :state,
10
+ attr_accessor :id, :idp_id, :email, :emails, :first_name, :last_name, :job_title, :username, :state,
11
11
  :groups, :role, :custom_attributes, :raw_attributes, :directory_id, :organization_id,
12
12
  :created_at, :updated_at
13
13
 
@@ -19,10 +19,20 @@ module WorkOS
19
19
  @directory_id = hash[:directory_id]
20
20
  @organization_id = hash[:organization_id]
21
21
  @idp_id = hash[:idp_id]
22
+ @email = hash[:email]
23
+ # @deprecated Will be removed in a future major version.
24
+ # Enable the `emails` custom attribute in dashboard and pull from customAttributes instead.
25
+ # See https://workos.com/docs/directory-sync/attributes/custom-attributes/auto-mapped-attributes for details.
22
26
  @emails = hash[:emails]
23
27
  @first_name = hash[:first_name]
24
28
  @last_name = hash[:last_name]
29
+ # @deprecated Will be removed in a future major version.
30
+ # Enable the `job_title` custom attribute in dashboard and pull from customAttributes instead.
31
+ # See https://workos.com/docs/directory-sync/attributes/custom-attributes/auto-mapped-attributes for details.
25
32
  @job_title = hash[:job_title]
33
+ # @deprecated Will be removed in a future major version.
34
+ # Enable the `username` custom attribute in dashboard and pull from customAttributes instead.
35
+ # See https://workos.com/docs/directory-sync/attributes/custom-attributes/auto-mapped-attributes for details.
26
36
  @username = hash[:username]
27
37
  @state = hash[:state]
28
38
  @groups = hash[:groups]
@@ -42,6 +52,7 @@ module WorkOS
42
52
  directory_id: directory_id,
43
53
  organization_id: organization_id,
44
54
  idp_id: idp_id,
55
+ email: email,
45
56
  emails: emails,
46
57
  first_name: first_name,
47
58
  last_name: last_name,
@@ -57,6 +68,7 @@ module WorkOS
57
68
  }
58
69
  end
59
70
 
71
+ # @deprecated Will be removed in a future major version. Use {#email} instead.
60
72
  def primary_email
61
73
  primary_email = (emails || []).find { |email| email[:primary] }
62
74
  return primary_email[:value] if primary_email
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WorkOS
4
- VERSION = '5.15.0'
4
+ VERSION = '5.16.1'
5
5
  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: 5.15.0
4
+ version: 5.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - WorkOS
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-20 00:00:00.000000000 Z
11
+ date: 2025-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: encryptor