rubycdp / ferrum

Headless Chrome Ruby API
https://ferrum.rubycdp.com
MIT License
1.69k stars 120 forks source link

Doesn't work on ruby 3.2 #408

Closed mcolyer closed 8 months ago

mcolyer commented 9 months ago

It looks like the supported version is >= 2.6.0 but it doesn't seem to work on 3.2.2.

It looks like Pathname was removed in 3.2.0 (src). Not sure if there are other changes or not.

ttilberg commented 9 months ago

Hey Matt, I use Ferrum with Ruby 3.2.2, so you should be good. It looks like you're using a small code path that does require Pathname to be present. Pathname comes from a default gem. It requires a require. It should be an easy fix in the gem, but in the meantime, try adding a require 'pathname' to your script before launching Ferrum.