rubyconfig / config

Easiest way to add multi-environment yaml settings to Rails, Sinatra, Padrino and other Ruby projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Released Version 4.1.0 still uses removed method `File.exists?`

the-teacher opened this issue · comments

ruby 3.2.0 (2022-12-25 revision a528908271) [aarch64-linux]

/usr/local/bundle/gems/config-4.1.0/lib/generators/config/install_generator.rb:21:in
`modify_gitignore': undefined method `exists?' for File:Class (NoMethodError)

create_file '.gitignore' unless File.exists? '.gitignore'

Installing via github solves the problem.

gem 'config', "4.1.0", github: 'rubyconfig/config'

Please release a new version of the code. Thank you!

@cjlarose I'm wondering if you saw this issue? Is there any chance a new release can be made? Thank you ❤️

+1

In the ruby v3.2 exists? method is removed, only exist? method is preserved.
In the main branch has been updated but not the gem.

News?

It's may 3rd and the gem currently can't still be used because of File.exists? in the generator, which has been removed from ruby 3.2.0 😢 .

I'm wondering if there is a way to contact the maintainers in order to update the gem?

Released version 4.2.0 with the fix from #318

@cjlarose Thank you so much! ❤️

Thanks everyone for the pings. It's not always easy to dedicate time to this project, but the bumps on the issue really do help make clear when something is really broken for people. ❤️