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

Update to Rails 6 #2018

Merged
merged 12 commits into from Oct 24, 2019
Merged

Update to Rails 6 #2018

merged 12 commits into from Oct 24, 2019

Conversation

sonalkr132
Copy link
Member

@sonalkr132 sonalkr132 commented Jun 1, 2019

TODO:

Deprecation

  • render file: should be given the absolute path to a file (called from block (2 levels) in render_not_found at /home/aditya/rubygems.org/app/controllers/application_controller.rb:74, 100)

TODO when we are on rails 6. needs rails 6 new framework config updates.

  • .DEPRECATION WARNING: Sending mail with DeliveryJob and Parameterized::DeliveryJob is deprecated and will be removed in Rails 6.1. Please use MailDeliveryJob instead. (called from call at /home/aditya/rubygems.org/lib/clearance_backdoor.rb:9)

  • DEPRECATION WARNING: Rails 6.1 will return Content-Type header without modification. If you want just the MIME type, please use #media_type instead. (called from block in class:DashboardTest at /home/travis/build/rubygems/rubygems.org/test/integration/dashboard_test.rb:43)

Rails 6 release notes

@sonalkr132 sonalkr132 added this to the Rails 6 update milestone Jun 1, 2019
This commit won't be released. Adding it to test rails rc.

delayed_job 4.1.6 - In Progress
=================
* Allow Rails 6.0
* Update failed message to be more clear
Updates rails from 5.2.1 to 6.0.0.rc1.
rails-i18n couldn't be update seperatly as it depends on railties (>= 6.0.0.beta1, < 7)
Chose not to overwrite config/locales/en.yml, config/initializers/content_security_policy.rb
and config/routes.rb. The files get overridden to prestine rails app config,
with no meaningful changes.
We have commented `require "active_model/railtie"` besides things
not required by default.
Kept small fixes in comments.

config.cache_store = :mem_cache_store,
'localhost:11211',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this default value now?

Copy link
Member

@simi simi Oct 24, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems it was default value for whole time, anyway is still in current version -> https://github.com/rails/rails/blob/v6.0.0/activesupport/lib/active_support/cache/mem_cache_store.rb#L70

Copy link
Member

@simi simi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

@sonalkr132 sonalkr132 merged commit db88e23 into rubygems:master Oct 24, 2019
@sonalkr132 sonalkr132 deleted the rails-6 branch October 24, 2019 15:52
sonalkr132 added a commit to sonalkr132/rubygems.org that referenced this pull request Nov 6, 2019
This reverts commit db88e23, reversing
changes made to e01d3df.
sonalkr132 added a commit that referenced this pull request Nov 6, 2019
Revert "Merge pull request #2018 from sonalkr132/rails-6"
@rubygems-deployer rubygems-deployer temporarily deployed to staging November 6, 2019 05:01 Inactive
@sonalkr132 sonalkr132 temporarily deployed to production November 6, 2019 05:28 Inactive
sonalkr132 added a commit to sonalkr132/rubygems.org that referenced this pull request Nov 18, 2019
sonalkr132 added a commit that referenced this pull request Nov 18, 2019
Revert "Revert "Merge pull request #2018 from sonalkr132/rails-6""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants