guard / guard-bundler

Guard::Bundler automatically install/update your gem bundle when needed
https://rubygems.org/gems/guard-bundler
MIT License
117 stars 22 forks source link

Fix compatibility issue with ruby 3.2 #45

Closed edouard closed 1 year ago

edouard commented 1 year ago

As reported in #44 guard-bundler doesn't work with ruby 3.2. It fails with error:

Guard::Bundler failed to achieve its <start>, exception was:
> [#fb2815b9936d] NoMethodError: undefined method `exists?' for File:Class

This PR replaces File.exists? with File.exist?. File.exists? was deprecated in ruby 2.1.0 and was removed in ruby 3.2.0.