Skip to content

Commit

Permalink
Explicitly require pathname (#409)
Browse files Browse the repository at this point in the history
`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 <[email protected]>
Co-authored-by: Dmitry Vorotilin <[email protected]>
  • Loading branch information
3 people authored Nov 9, 2023
1 parent 14a0c6c commit afd29cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/ferrum/page.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require "forwardable"
require "pathname"
require "ferrum/event"
require "ferrum/mouse"
require "ferrum/keyboard"
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down

0 comments on commit afd29cc

Please sign in to comment.