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

Add support for Rails 7 (alpha2) #3

Merged
merged 6 commits into from Oct 26, 2021
Merged

Add support for Rails 7 (alpha2) #3

merged 6 commits into from Oct 26, 2021

Conversation

smudge
Copy link
Member

@smudge smudge commented Oct 26, 2021

/domain @samandmoore @effron
/no-platform

This:

  • Adds an Appraisal entry for 7.0.0.alpha2. (I had to specify multiple gems to get the pre-release dependencies to resolve properly.)
  • Bumps .ruby-version to 2.7, but keeps linting at 2.6. (CI will still run against all of 2.6-3.0)
  • Fixes a deprecation warning about ActiveRecord::Base.default_timezone (switches to ActiveRecord.default_timezone)
  • Fixes some YML-autoloading tests by enabling Zeitwerk in the 7.0 test suite. (The :classic autoloader is no longer used/supported in Rails 7)
  • Autocorrects some new linter rules pulled from the latest version of the linter gem
  • Bumps the version to 0.3.0 and updates the CHANGELOG

@nanda-prbot
Copy link

Needs somebody from @samandmoore and @effron to claim domain review

Use the shovel operator to claim, e.g.:

@myname << domain && platform

HOW TO: Claim a Review

@nanda-prbot
Copy link

Needs somebody from @samandmoore and @effron to claim domain review

Use the shovel operator to claim, e.g.:

@myname << domain && platform

HOW TO: Claim a Review

1 similar comment
@nanda-prbot
Copy link

Needs somebody from @samandmoore and @effron to claim domain review

Use the shovel operator to claim, e.g.:

@myname << domain && platform

HOW TO: Claim a Review

@@ -21,7 +21,7 @@ def start
def on_exit!; end

def interruptable_sleep(seconds)
IO.select([pipe[0]], nil, nil, seconds)
pipe[0].wait_readable(seconds)
Copy link
Member Author

Choose a reason for hiding this comment

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

A nice little autocorrect: rubocop/rubocop#9061

@@ -25,7 +25,7 @@
it 'autoloads the class of an anonymous struct' do
expect {
yaml = "--- !ruby/struct\nn: 1\n"
object = YAML.load(yaml)
object = load_with_delayed_visitor(yaml)
Copy link
Member Author

Choose a reason for hiding this comment

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

This was just a test bug - we want it to use YAML.load_dj(yaml)

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like the same change is currently proposed upstream too: collectiveidea/delayed_job#1152

@@ -150,7 +150,7 @@ def <=>(other)
private

def respond_to_missing?(method_name, include_private = false)
method_name.to_s.end_with?('?') && self.class.names.key?(method_name.to_s[0..-2].to_sym) || super
(method_name.to_s.end_with?('?') && self.class.names.key?(method_name.to_s[0..-2].to_sym)) || super
Copy link
Member Author

Choose a reason for hiding this comment

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

The other linter autocorrect

@effron
Copy link
Contributor

effron commented Oct 26, 2021

<<domainLGTM!

nanda-prbot
nanda-prbot previously approved these changes Oct 26, 2021
Copy link

@nanda-prbot nanda-prbot left a comment

Choose a reason for hiding this comment

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

Approved! 🎏 🎇 🎸

@nanda-prbot
Copy link

This PR requires additional review because of new changes

Please get another domain review from @effron, or another reviewer with write access if unavailable.

smudge added a commit that referenced this pull request Oct 26, 2021
I just realized that we hadn't cross-referenced this in the other direction!

The linter issues are fixed in #3
@effron
Copy link
Contributor

effron commented Oct 26, 2021

domainlgtm

Copy link

@nanda-prbot nanda-prbot left a comment

Choose a reason for hiding this comment

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

Approved! 💯 🔩 🌟

@nanda-prbot
Copy link

Approved! 🌟 🔩 🙏

@smudge smudge merged commit 2d296b9 into Betterment:main Oct 26, 2021
@smudge smudge deleted the rails-7 branch October 26, 2021 19:52
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 this pull request may close these issues.

None yet

3 participants