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

Upgrade rails autoloader version to 6.0 #2392

Merged

Conversation

RajeshPaul38
Copy link
Contributor

@RajeshPaul38 RajeshPaul38 commented Nov 23, 2021

Description

Rails 6 has introduced a new autoloader: zeitwerk which is the default autoloader in autoloader version 6

Issues Resolved

#2378

Check List

@RajeshPaul38 RajeshPaul38 requested review from a team as code owners November 23, 2021 08:00
@netlify
Copy link

netlify bot commented Nov 23, 2021

👷 Deploy Preview for chef-supermarket processing.

🔨 Explore the source changes: 13a50ac

🔍 Inspect the deploy log: https://app.netlify.com/sites/chef-supermarket/deploys/619ca258fe0948000838b89f

@RajeshPaul38
Copy link
Contributor Author

RajeshPaul38 commented Nov 23, 2021

@github-actions
Copy link

Simplecov Report

Covered Threshold
98.32% 90%

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>
@RajeshPaul38 RajeshPaul38 changed the title WIP: Upgrade rails autoloader version to 6.0 Upgrade rails autoloader version to 6.0 Nov 23, 2021
Copy link
Contributor

@saghoshprogress saghoshprogress left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@saghoshprogress saghoshprogress merged commit db1483b into main Nov 24, 2021
@saghoshprogress saghoshprogress deleted the rajeshPaul38--upgrade-rails-autoloader-version-2378 branch November 24, 2021 07:07
@@ -16,7 +16,7 @@ gem "sidekiq-cron"
gem "aws-sdk-s3"
gem "chef", "~> 17.7", require: false
gem "compass-rails"
gem "ddtrace", require: false
gem "ddtrace", "0.53.0", require: false
Copy link
Contributor Author

Choose a reason for hiding this comment

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

pinned to 0.53 because 0.54 has some breaking change

@@ -2,7 +2,7 @@
require "openssl"

module Supermarket
class FIPS
class Fips
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The new autoloader zeitwerk imposes some strict naming conventions. Hence this change.

@@ -84,7 +84,7 @@
cookbook_version = cookbook.cookbook_versions.where(
version: "0.#{version_number}.0"
).first_or_initialize(
description: Faker::Lorem.sentences(1).first,
description: Faker::Lorem.sentences(number: 1).first,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

new syntax for faker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants