Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 5 #224

Open
connorshea opened this issue Jul 12, 2016 · 10 comments · May be fixed by #780 or #1305
Open

Rails 5 #224

connorshea opened this issue Jul 12, 2016 · 10 comments · May be fixed by #780 or #1305

Comments

@connorshea
Copy link
Contributor

connorshea commented Jul 12, 2016

I wanted to suggest upgrading Helpy to Rails 5, or at least get a conversation started about it.

I've been keeping track of our progress getting to the upgrade at GitLab, figured you may find all my notes useful :)

Some notes based on a quick look through your Gemfile:

  • Devise needs to be upgraded to 4.0+
  • quiet_assets can be replaced by a sprockets-rails config option now (wait until Rails 4.2.7 for that, though)
  • Rspec will need to be updated to 3.5.0
  • acts-as-taggable-on is a blocker at the moment
  • kaminari should be updated to 0.17.0
  • route_translator needs to be upgraded to 5.0.0
  • sass-rails needs 5.0.5
  • globalize needs a new version released

Lots of information on upgrading those gems, etc. is available in the issue I linked above. This project looks awesome, kudos!

Best,
Connor

@scott
Copy link
Member

scott commented Jul 12, 2016

Thanks Connor, your tracking of this is really appreciated. I have been tracking Globalize since thats a really big blocker for us to go to Rails 5. I plan to start an official branch where we can start to work out the upgrade.

@connorshea
Copy link
Contributor Author

👍 to my knowledge we're the largest open source Rails app and have somehow managed to not fall behind on Rails releases, so I figured it'd be useful to track the progress in-depth for everyone else to learn from :)

Feel free to ping me if you run into any problems, I might be able to help - or at least know to look out for the problem in GitLab!

@olliebennett
Copy link
Member

olliebennett commented Jul 16, 2016

Great - thanks for kicking this off, @connorshea.

@scott it may be worth setting up a GitHub milestone for this. Until then, I'll track the related PRs here:

PR #230 - Update 'rails' and dependencies to 4.2.7
PR #231 - Replace 'quiet_assets' gem with config
PR #232 - Remove RSpec
Issue #233 - Update acts-as-taggable gem for Rails 5
PR #234 - Update 'kaminari' gem
PR #235 - Update sass-rails gem
PR #236 - Update 'devise' gem
Issue #237 - Update 'globalize' gem for Rails 5

Note: some PRs may need rebasing for conflicts in Gemfile so will do so as we go.

Once the PRs are merged in, I'll create a Rails 5 PR (with Gemfile temporarily pointing to git repo for unreleased gems) to see what else breaks! :)

@scott scott added this to the Rails 5 Update milestone Jul 16, 2016
@scott
Copy link
Member

scott commented Jul 16, 2016

As you can see, I set up a milestone. I will start to tick off these PRs as time allows. Most hopefully most will go in fairly easily.

@connorshea
Copy link
Contributor Author

connorshea commented Jul 18, 2016

@scott @olliebennett with Devise you can update to 4.0 for now, which has Rails 5 support and just a deprecation warning for the omniauth change.

See heartcombo/devise#3985

@connorshea
Copy link
Contributor Author

You'll also need to upgrade the Gemfile to use at least Ruby 2.2.2 (right now it's 2.2.1), I'd recommend the latest patch release in the 2.2 series.

@scott
Copy link
Member

scott commented Jul 19, 2016

Thanks @connorshea

@connorshea
Copy link
Contributor Author

Also worth looking at rails5-spec-converter gem, because this change may cause a lot of deprecation warnings otherwise.

@connorshea
Copy link
Contributor Author

Also with regards to Devise, here's how we fixed the deprecation warnings: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5331

@connorshea
Copy link
Contributor Author

After a bit of sleuthing it also looks like you'll need to upgrade devise_invitable for Devise 4.1/4.2 support, though 4.0 is fine on the current version: https://github.com/scambra/devise_invitable/blob/master/CHANGELOG

@scott scott added the Rails 5 label Aug 16, 2016
@scott scott linked a pull request Feb 2, 2018 that will close this issue
@scott scott linked a pull request May 24, 2019 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants