saucelabs / sauce_whisk

ActiveRecord style client for the Sauce Labs RESTful API
https://opensource.saucelabs.com/sauce_whisk/
MIT License
20 stars 17 forks source link

Compatibility with Ruby 3.2.2 #67

Open geoffswift opened 1 year ago

geoffswift commented 1 year ago

There seems to be a bug with the sauce_whisk gem against Ruby 3.2.2. When I tried it out it crashes like so... /usr/local/rvm/gems/ruby-3.2.2/gems/sauce_whisk-0.3.2/lib/sauce_whisk.rb:144:in block in load_options_from_yaml': undefined methodexists?' for File:Class (NoMethodError)

if File.exists? path

This article suggests it's a problem with backwards compatibility in Ruby 3.2 https://stackoverflow.com/questions/14351272/undefined-method-exists-for-fileclass-nomethoderror

david-lake commented 6 months ago

I am having the same issue anyone working on a fix?

titusfortner commented 6 months ago

Unfortunately we do not have resources to update and maintain this repo, and we will likely be archiving it soon. Sorry for the inconvenience involved.

In the meantime you could monkey patch File to have #exists? alias #exist?