rubyconfig / config

Easiest way to add multi-environment yaml settings to Rails, Sinatra, Padrino and other Ruby projects.
Other
2.1k stars 230 forks source link

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

Closed the-teacher closed 1 year ago

the-teacher commented 1 year ago

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!

jcoyne commented 1 year ago

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

9mm commented 1 year ago

+1

MdreW commented 1 year ago

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?

Uaitt commented 1 year ago

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?

cjlarose commented 1 year ago

Released version 4.2.0 with the fix from https://github.com/rubyconfig/config/pull/318

jcoyne commented 1 year ago

@cjlarose Thank you so much! ❤️

cjlarose commented 1 year ago

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. ❤️