RefugeRestrooms / refugerestrooms

REFUGE restrooms indexes and maps safe restroom locations for trans, intersex, and gender nonconforming individuals.
http://www.refugerestrooms.org
GNU Affero General Public License v3.0
894 stars 261 forks source link

Update to Rails 5.1.4 #376

Closed DeeDeeG closed 6 years ago

DeeDeeG commented 7 years ago

Context

Summary of Changes

Checklist

Screenshots

Before

refuge-production-before

After

refuge-vagrant-after

DeeDeeG commented 7 years ago

By the way, there is one "deprecation warning" for outdated code from before Rails 5.1:

DEPRECATION WARNING: ActionView::Template::Handlers::Erubis is deprecated and will be removed
from Rails 5.2. Switch to ActionView::Template::Handlers::ERB::Erubi instead.
(called from <top (required)> at /vagrant/config/application.rb:7)

The line that generates this error (line 7 in config/application.rb) is:

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

So this line imports everything in our Gemfile... but we don't even specify Erubis directly in the Gemfile. It does appear in Gemfile.lock... so I assume one of our actual dependencies depends on erubis. I think, logically, we can expect this dependency to be dropped by the time Rails 5.2 comes around, or by definition, that gem will be completely unusable (because its dependency is unusable).

In other words, I think there's nothing obvious we can do about it besides hunt down whatever depends on erubis and update it, or wait for an appropriate update to come out (such an update may not exist quite yet). and I presume this problem will "fix itself" around the time Rails 5.2 has been out for a few months.

Edit: I believe the gem is better_errors 2.1.1 (depends on 'erubis') which should be updated to better_errors 2.3.3 (requires 'erubi').

DeeDeeG commented 6 years ago

I'm going to delete (and gitignore) some files per your comment above. I can keep iterating until it looks right.

mi-wood commented 6 years ago

@DeeDeeG I'm going to go ahead and merge this. Thanks!