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
891 stars 263 forks source link

Fix deprecation warnings #602

Closed DeeDeeG closed 4 years ago

DeeDeeG commented 4 years ago

We have the following deprecation warnings in Travis CI:

/usr/local/bundle/gems/simplecov-0.7.1/lib/simplecov/configuration.rb:168: warning: constant ::Fixnum is deprecated
/usr/local/bundle/gems/simplecov-0.7.1/lib/simplecov/source_file.rb:29: warning: constant ::Fixnum is deprecated
/usr/local/bundle/gems/simplecov-0.7.1/lib/simplecov/source_file.rb:30: warning: constant ::Fixnum is deprecated

DEPRECATION WARNING: The success? predicate is deprecated and will be removed in Rails 6.0. Please use successful? as provided by Rack::Response::Helpers. (called from block (2 levels) in <top (required)> at /refugerestrooms/spec/api/v1/restrooms_spec.rb:27)

EPRECATION WARNING: Delegating missing near_scope_options method to Restroom. Accessibility of private/protected class methods in :scope is deprecated and will be removed in Rails 6.0. (called from list_restrooms at /refugerestrooms/app/controllers/restrooms_controller.rb:69)

DEPRECATION WARNING: Directly including `PgSearch` into an Active Record model is deprecated and will be removed in pg_search 3.0.

Please replace `include PgSearch` with `include PgSearch::Model`.
 (called from include at /refugerestrooms/app/models/restroom.rb:7)
Joranhezon commented 4 years ago

Hi! I would like to work on this issue, if possible.

I also noticed that the slack link in the wiki and readme file is no longer active, do you guys still use slack?

DeeDeeG commented 4 years ago

@Joranhezon thanks so much for volunteering, we'd appreciate that!

The Slack is pretty quiet these days. (Truth be told, I haven't seen anything posted in over a month! Yep, things are pretty quiet around here in general, but this project is definitely still alive and kicking.)

I just generated this invite link for the Slack, so it should work: https://join.slack.com/t/refugelgbt/shared_invite/zt-3zaagpad-DvyfAPcepuRzFBJix1uYkg

DeeDeeG commented 4 years ago

Okay, the Slack invite links around the Wiki should be updated. The link in README.md will be updated in pull request #631. Edit: done.

DeeDeeG commented 4 years ago

Well, this can be closed now, I think! Thank you @Joranhezon for pointing out that the last warnings from this Pull Request are gone... Maybe we can try to upgrade to Rails 6 some time soon!