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

Use optimistic Rails version constraint in plugins #42685

Merged

Conversation

jonathanhefner
Copy link
Member

A pessimistic Rails version constraint makes sense for an app, but plugins often must be compatible with multiple minor and major versions of Rails. Therefore, default to an optimistic constraint for plugins.

@rails-bot rails-bot bot added the railties label Jul 2, 2021
Comment on lines +409 to +403
def rails_version_specifier(gem_version = Rails.gem_version)
[">= #{gem_version}"]
end
Copy link
Member Author

Choose a reason for hiding this comment

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

@rails-bot
Copy link

rails-bot bot commented Sep 30, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Thank you for your contributions.

@rails-bot rails-bot bot added the stale label Sep 30, 2021
@rails-bot rails-bot bot closed this Oct 7, 2021
@jonathanhefner jonathanhefner reopened this Oct 9, 2021
@rails-bot rails-bot bot removed the stale label Oct 9, 2021
A pessimistic Rails version constraint makes sense for an app, but
plugins often must be compatible with multiple minor and major versions
of Rails.  Therefore, default to an optimistic constraint for plugins.
@rafaelfranca rafaelfranca merged commit 92a639f into rails:main Dec 8, 2021
rafaelfranca added a commit that referenced this pull request Dec 9, 2021
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

2 participants