codemancers / invoker

An awesome utility to manage all your processes in development environment
http://invoker.c9s.dev/
MIT License
460 stars 59 forks source link

Setup command fails on ruby 3.2.2 #246

Open arrrnas opened 1 year ago

arrrnas commented 1 year ago

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?
jbrodie commented 8 months ago

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