sauce_whisk icon indicating copy to clipboard operation
sauce_whisk copied to clipboard

Compatibility with Ruby 3.2.2

Open geoffswift opened this issue 1 year ago • 2 comments

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 method exists?' 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

geoffswift avatar May 24 '23 21:05 geoffswift

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

david-lake avatar Mar 26 '24 13:03 david-lake

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?

titusfortner avatar Mar 26 '24 14:03 titusfortner