invoker icon indicating copy to clipboard operation
invoker copied to clipboard

Setup command fails on ruby 3.2.2

Open arrrnas opened this issue 1 year ago • 1 comments

How to reproduce:

bundle exec invoker setup
bundler: failed to load command: invoker (/Users/arnas/.rbenv/versions/3.2.2/bin/invoker)
/Users/arnas/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/invoker-1.5.8/lib/invoker/power/setup.rb:59:in `check_if_setup_can_run?': undefined method `exists?' for File:Class (NoMethodError)

        !File.exists?(Invoker::Power::Config.config_file)
             ^^^^^^^^
Did you mean?  exist?

arrrnas avatar Jul 28 '23 10:07 arrrnas

This is tied to the removal of the deprecation of exists? in favor of exist?.

Someone has a branch cut with this patched in it, but unless this gem is patched, it will not work beyond Ruby 3.1

jbrodie avatar Apr 02 '24 18:04 jbrodie