thecodecrate / city-state

Simple ruby gem to create form lists with cities and states
MIT License
306 stars 135 forks source link

Not working with ruby 3.2 #54

Closed bcube90 closed 1 year ago

bcube90 commented 1 year ago

if ! File.exists? condition throws an error in the Ruby version later or equal 3.2.0

I was running it in Rails 7.0.4 and the Rails Console suggests Did you mean? exist?

loureirorg commented 1 year ago

@bcube90 Oh, thank you for letting me know that.

I apologize that I won't be able to check this issue until next weekend. I'll make sure to give it a thorough review as soon as I can.

sabiou commented 1 year ago

if ! File.exists? condition throws an error in the Ruby version later or equal 3.2.0

I was running it in Rails 7.0.4 and the Rails Console suggests Did you mean? exist?

Yup it's not working. ran into same issue

kofiasare-dev commented 1 year ago

Just run into this issue. When can we expecting a fix?

kstevens715 commented 1 year ago

I also just ran into this issue. I was able to work around it by pointing my Gemfile directly at GitHub because the issue was already fixed in d5da7f372e06065f5c25368836b9a6b820e92a63. It'd be great if an update to the gem could be released so it wasn't necessary to point right at master though.

gem 'city-state', git: 'https://github.com/thecodecrate/city-state'
loureirorg commented 1 year ago

Sorry for the delay. It's fixed now on 1.1.0.