This matches the code referenced in the comment https://github.com/bundler/bundler/blob/ce04e469b883dc74e2338aba055bec38036ad29e/lib/bundler/source/rubygems.rb#L148-154