Skip to content

Commit

Permalink
[rb] change allowed types for logger methods
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Jan 3, 2024
1 parent 8b5ba75 commit cc85c78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rb/sig/lib/selenium/webdriver/common/logger.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ module Selenium

def io: () -> IO

def ignore: (*Symbol ids) -> Array[Symbol]
def ignore: (*Symbol | Array[Symbol] ids) -> Array[Symbol]

def allow: (*Symbol ids) -> Array[Symbol]
def allow: (*Symbol | Array[Symbol] ids) -> Array[Symbol]

def debug: (String message, ?id: Symbol | Array[Symbol] id) ?{ () -> void } -> void

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def initialize
@create_driver_error_count = 0

$LOAD_PATH.insert(0, root.join('bazel-bin/rb/lib').to_s) if File.exist?(root.join('bazel-bin/rb/lib'))
WebDriver.logger.ignore(%i[logger_info])
WebDriver.logger.ignore(:logger_info)
SeleniumManager.bin_path = root.join('bazel-bin/rb/bin').to_s if File.exist?(root.join('bazel-bin/rb/bin'))

@driver = ENV.fetch('WD_SPEC_DRIVER', 'chrome').tr('-', '_').to_sym
Expand Down

0 comments on commit cc85c78

Please # to comment.