Skip to content

Commit 2cccafe

Browse files
authored
Require 'net/http' from WorkOS::DirectorySync (#44)
* Require 'net/http' from WorkOS::DirectorySync * Encountered an issue in a simple example Sinatra app where calling `WorkOS::DirectorySync.list_directories` would encounter an issue with `Net` being an undefined constant. Adding this require resolves the issue. * Bump gem to 0.4.1
1 parent 89f14fb commit 2cccafe

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
workos (0.4.0)
4+
workos (0.4.1)
55
sorbet-runtime (~> 0.5)
66

77
GEM
@@ -56,7 +56,7 @@ GEM
5656
simplecov-html (0.10.2)
5757
sorbet (0.5.5560)
5858
sorbet-static (= 0.5.5560)
59-
sorbet-runtime (0.5.5858)
59+
sorbet-runtime (0.5.5862)
6060
sorbet-static (0.5.5560-universal-darwin-14)
6161
unicode-display_width (1.6.0)
6262
url (0.3.2)

lib/workos/directory_sync.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# frozen_string_literal: true
22
# typed: true
33

4+
require 'net/http'
5+
46
module WorkOS
57
# The Directory Sync module provides convenience methods for working with the
68
# WorkOS Directory Sync platform. You'll need a valid API key and to have

lib/workos/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# typed: strong
33

44
module WorkOS
5-
VERSION = '0.4.0'
5+
VERSION = '0.4.1'
66
end

0 commit comments

Comments
 (0)