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 8.0 #73

Closed
wants to merge 1 commit into from

Conversation

leoarnold
Copy link

No description provided.

@leoarnold
Copy link
Author

This PR is a draft because it is waiting for cgriego/active_attr#205 to be released.

@rmm5t rmm5t marked this pull request as ready for review November 10, 2024 16:42
spec.add_runtime_dependency "activemodel", ">= 3.0", "< 8.0"
spec.add_development_dependency "active_attr", "~> 0.15"
spec.add_runtime_dependency "activemodel", ">= 3.0", "< 8.1"
spec.add_development_dependency "active_attr", ">= 0.15.0", "< 0.19"
Copy link
Owner

Choose a reason for hiding this comment

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

[QUESTION] Please help me understand why this active_attr restriction was necessary as compared to ~> 0.15 (considering the latest release of active_attr is 0.17).

Copy link
Author

Choose a reason for hiding this comment

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

Because we need cgriego/active_attr#205 which will (probably) be published as active_attr v0.18.0.

Copy link
Owner

Choose a reason for hiding this comment

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

That doesn't explain the difference between "~> 0.15" and ">= 0.15.0", "< 0.19"

[PLEASE REVERT] back to ~> 0.15

source "https://rubygems.org"

gem "activemodel", "~> 8.0.0"
gem "active_attr", github: "leoarnold/active_attr", branch: "leoarnold/rails-8"
Copy link
Owner

@rmm5t rmm5t Nov 10, 2024

Choose a reason for hiding this comment

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

I'm inclined to merge this PR even though the test suite relies on your private branch at the moment. Would you mind coming back to submit another PR after your active_attr PR is merged?

Copy link
Author

Choose a reason for hiding this comment

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

I marked this PR as a draft specifically to prevent premature merging. The reason I put up the draft is so that other developers can see that this effort is already in progress and they don't need to investigate themselves (or open issues).

Copy link
Owner

@rmm5t rmm5t Nov 10, 2024

Choose a reason for hiding this comment

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

Why would a "premature" merge be a problem? This gem doesn't have a required runtime dependency on active_attr. ActiveAttr is an optional dependency.

We should be able to merge this PR and when active_attr is updated, projects will get its dependency benefits when it also supports rails 8.

Copy link
Owner

Choose a reason for hiding this comment

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

i.e. Keeping this PR as a draft just holds back those projects that depend on strip_attributes but don't have a dependency on active_attr.

@leoarnold leoarnold marked this pull request as draft November 10, 2024 16:54
@rmm5t rmm5t closed this in #74 Nov 10, 2024
@leoarnold leoarnold deleted the leoarnold/rails-8 branch November 10, 2024 21:00
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