thuss / standalone-migrations

A gem to use Rails Database Migrations in non Rails projects
http://gabrito.com/post/standalone-migrations-using-rails-migrations-in-non-rails-projects
MIT License
992 stars 152 forks source link

Use File.exist? instead of deprecated/removed File.exists? #176

Closed piotaixr closed 1 year ago

piotaixr commented 1 year ago

Fix is available on master branch of https://github.com/piotaixr/standalone-migrations

AlfonsoUceda commented 1 year ago

A workaround if this is not fixed:

class File
  class << self
    alias_method :exists?, :exist?
  end
end
hamza-yusuff commented 1 year ago

Fix is available on master branch of https://github.com/piotaixr/standalone-migrations

@piotaixr @AlfonsoUceda any chance this could be merged to main soon?

owst commented 1 year ago

Ping @thuss - could you take a look and merge this PR please? File.exists? was removed in Ruby 3.2: https://github.com/ruby/ruby/pull/5352

thuss commented 1 year ago

Thanks for the fix @piotaixr and the ping @owst! Published new gem version 7.1.1 with this change.