rubygems / bundler

Manage your Ruby application's gem dependencies
https://bundler.io
MIT License
4.88k stars 1.99k forks source link

Fix resolving specs when run against a dev ruby snapshot #7649

Closed deivid-rodriguez closed 4 years ago

deivid-rodriguez commented 4 years ago

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

The problem is that in some dev ruby builds, RUBY_PATCHLEVEL is -1, so the spec crashes because of an ill-formed requirement.

See for example https://github.com/rubygems/rubygems/pull/3077/checks?check_run_id=457988784.

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

My fix is to change the spec to respect a RUBY_PATCHLEVEL equal to -1, by reusing code that handles that case.

deivid-rodriguez commented 4 years ago

@bundlerbot merge

ghost commented 4 years ago

Build succeeded