Skip to content

Commit

Permalink
Make idp_id for Profiles nilable (#45)
Browse files Browse the repository at this point in the history
* Make `idp_id` nilable

* Bump gem to 0.4.2

* Make `idp_id` nil in initialize

Co-authored-by: Willman Duffy <willman@workos.com>
  • Loading branch information
Rohan Jadvani and willmanduffy authored Aug 17, 2020
1 parent 360f71e commit 31442fe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
workos (0.4.1)
workos (0.4.2)
sorbet-runtime (~> 0.5)

GEM
Expand Down Expand Up @@ -56,7 +56,7 @@ GEM
simplecov-html (0.10.2)
sorbet (0.5.5560)
sorbet-static (= 0.5.5560)
sorbet-runtime (0.5.5862)
sorbet-runtime (0.5.5870)
sorbet-static (0.5.5560-universal-darwin-14)
unicode-display_width (1.6.0)
url (0.3.2)
Expand Down
2 changes: 1 addition & 1 deletion lib/workos/profile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def initialize(profile_json)
@first_name = raw.first_name
@last_name = raw.last_name
@connection_type = T.let(raw.connection_type, String)
@idp_id = T.let(raw.idp_id, String)
@idp_id = raw.idp_id
end

sig { returns(String) }
Expand Down
2 changes: 1 addition & 1 deletion lib/workos/types/profile_struct.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ProfileStruct < T::Struct
const :first_name, T.nilable(String)
const :last_name, T.nilable(String)
const :connection_type, String
const :idp_id, String
const :idp_id, T.nilable(String)
end
end
end
2 changes: 1 addition & 1 deletion lib/workos/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# typed: strong

module WorkOS
VERSION = '0.4.1'
VERSION = '0.4.2'
end

0 comments on commit 31442fe

Please sign in to comment.