From afd29ccefd16e73501b30f86ec6779f7fd20b252 Mon Sep 17 00:00:00 2001 From: Tim Tilberg Date: Thu, 9 Nov 2023 00:16:57 -0600 Subject: [PATCH] Explicitly require `pathname` (#409) `Pathname` moved from stdlib to default gems in 3.0, and isn't loaded by default. https://rubyreferences.github.io/rubychanges/3.0.html#libraries-promoted-to-default-gems Co-authored-by: Tim Tilberg Co-authored-by: Dmitry Vorotilin --- lib/ferrum/page.rb | 1 + spec/spec_helper.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/ferrum/page.rb b/lib/ferrum/page.rb index d8362af2..0e34ff23 100644 --- a/lib/ferrum/page.rb +++ b/lib/ferrum/page.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true require "forwardable" +require "pathname" require "ferrum/event" require "ferrum/mouse" require "ferrum/keyboard" diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 303b7a75..9f94527b 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -2,6 +2,7 @@ require "bundler/setup" require "rspec" +require "pathname" PROJECT_ROOT = File.expand_path("..", __dir__) %w[/lib /spec].each { |p| $LOAD_PATH.unshift(p) }