jejacks0n / navigasmic

Navigasmic: Semantic navigation for Rails using simple view level or configuration definitions.
322 stars 29 forks source link

Ruby 3.2.x has removed File.exists? method (deprecated long time ago, but was kept around until now) #57

Open kchsieh opened 1 year ago

kchsieh commented 1 year ago

In v1.1.0, the file .../gems/navigasmic-1.1.0/lib/navigasmic/rails/engine.rb is getting an error with the reference to a (ruby 3.2.x) removed method, exists?, it should be exist?

gems/navigasmic-1.1.0/lib/navigasmic/rails/engine.rb:10:in block in <class:Engine>': undefined methodexists?' for File:Class (NoMethodError)

andyundso commented 1 year ago

This code has been adapted a while ago, see https://github.com/jejacks0n/navigasmic/blame/36af0e795783118058697770202d28f8a8e46c71/lib/navigasmic/engine.rb#L11.

@jejacks0n would it be possible to get a new release so we can upgrade our apps to Ruby 3.2?

simi commented 9 months ago

@jejacks0n release would be handy :pray: