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

Improve the independence of bundler specs from rubygems #3995

Merged
merged 2 commits into from Oct 6, 2020

Conversation

deivid-rodriguez
Copy link
Member

@deivid-rodriguez deivid-rodriguez commented Oct 5, 2020

What was the end-user or developer problem that led to this PR?

While creating the release PR for the next bundler version, I got a failure because I hadn't backport a rubygems PR. I shouldn't need to backport any rubygems specific PRs to get the CI green on the stable branch.

What is your fix for the problem, implemented in this PR?

I made the spec detect whether the rubygems version it's running against has the fix it needs, and skip the spec otherwise.

Also, since the :rubygems filter was unused, I removed it, since I feel it's best to always do this kind of feature detection rather than hardcoding version checks.

Make sure he following tasks are checked

All of our specs should pass against all supported versions. We should
ideally backport fixes to bundler if needed and use feature detection in
specs rather than filtering against specific rubygems versions, which is
brittle.
@deivid-rodriguez deivid-rodriguez merged commit d0794df into master Oct 6, 2020
@deivid-rodriguez deivid-rodriguez deleted the improve_spec_independance branch October 6, 2020 11:18
deivid-rodriguez added a commit that referenced this pull request Oct 6, 2020
Improve the independence of bundler specs from rubygems

(cherry picked from commit d0794df)
deivid-rodriguez added a commit that referenced this pull request Oct 6, 2020
Improve the independence of bundler specs from rubygems

(cherry picked from commit d0794df)
deivid-rodriguez added a commit that referenced this pull request Oct 6, 2020
Improve the independence of bundler specs from rubygems

(cherry picked from commit d0794df)
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

2 participants