workos 5.14.0 → 5.15.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 871af49aaa91bda4ef8ed6cd6479f5855dfe52bdbdc03d7a8cb84f3d0e11f9a2
|
4
|
+
data.tar.gz: fb3bf68d67de00de307abce4b445409669caf263c66b1b1c1a0cb602d33178ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a3d8dc580bdffa940144de274775e8fe29b88a35ee0d6db0b2f47b44307a1b9431caca2f611ff26f0808dada9bad049716590c3a2d824a65eb111e71590fb66
|
7
|
+
data.tar.gz: fec16fc1694cefb315caa7699d2386ed9b6a2f678891c20bd2ff1c393cd2d69abb1bff51c0155a25cbdc8d1ed9b490c2bd954050e612abc9fca0622ed2fe3c91
|
data/Gemfile.lock
CHANGED
data/lib/workos/user.rb
CHANGED
@@ -8,7 +8,7 @@ module WorkOS
|
|
8
8
|
include HashProvider
|
9
9
|
|
10
10
|
attr_accessor :id, :email, :first_name, :last_name, :email_verified,
|
11
|
-
:profile_picture_url, :created_at, :updated_at
|
11
|
+
:profile_picture_url, :last_sign_in_at, :created_at, :updated_at
|
12
12
|
|
13
13
|
def initialize(json)
|
14
14
|
hash = JSON.parse(json, symbolize_names: true)
|
@@ -19,6 +19,7 @@ module WorkOS
|
|
19
19
|
@last_name = hash[:last_name]
|
20
20
|
@email_verified = hash[:email_verified]
|
21
21
|
@profile_picture_url = hash[:profile_picture_url]
|
22
|
+
@last_sign_in_at = hash[:last_sign_in_at]
|
22
23
|
@created_at = hash[:created_at]
|
23
24
|
@updated_at = hash[:updated_at]
|
24
25
|
end
|
@@ -31,6 +32,7 @@ module WorkOS
|
|
31
32
|
last_name: last_name,
|
32
33
|
email_verified: email_verified,
|
33
34
|
profile_picture_url: profile_picture_url,
|
35
|
+
last_sign_in_at: last_sign_in_at,
|
34
36
|
created_at: created_at,
|
35
37
|
updated_at: updated_at,
|
36
38
|
}
|
data/lib/workos/version.rb
CHANGED
@@ -229,6 +229,12 @@ describe WorkOS::UserManagement do
|
|
229
229
|
|
230
230
|
expect(user.id.instance_of?(String))
|
231
231
|
expect(user.instance_of?(WorkOS::User))
|
232
|
+
expect(user.first_name).to eq('Bob')
|
233
|
+
expect(user.last_name).to eq('Loblaw')
|
234
|
+
expect(user.email).to eq('bob@example.com')
|
235
|
+
expect(user.email_verified).to eq(false)
|
236
|
+
expect(user.profile_picture_url).to eq(nil)
|
237
|
+
expect(user.last_sign_in_at).to eq('2024-02-06T23:13:18.137Z')
|
232
238
|
end
|
233
239
|
end
|
234
240
|
end
|
@@ -76,7 +76,7 @@ http_interactions:
|
|
76
76
|
- cloudflare
|
77
77
|
body:
|
78
78
|
encoding: ASCII-8BIT
|
79
|
-
string: '{"object":"user","id":"user_01HP0B4ZV2FWWVY0BF16GFDAER","email":"bob@example.com","email_verified":false,"first_name":"Bob","last_name":"Loblaw","profile_picture_url":null,"created_at":"2024-02-06T23:13:18.137Z","updated_at":"2024-02-06T23:13:36.946Z"}'
|
79
|
+
string: '{"object":"user","id":"user_01HP0B4ZV2FWWVY0BF16GFDAER","email":"bob@example.com","email_verified":false,"first_name":"Bob","last_name":"Loblaw","profile_picture_url":null,"last_sign_in_at":"2024-02-06T23:13:18.137Z","created_at":"2024-02-06T23:13:18.137Z","updated_at":"2024-02-06T23:13:36.946Z"}'
|
80
80
|
http_version:
|
81
81
|
recorded_at: Tue, 06 Feb 2024 23:16:59 GMT
|
82
82
|
recorded_with: VCR 5.0.0
|
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.
|
4
|
+
version: 5.15.0
|
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-
|
11
|
+
date: 2025-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: encryptor
|