Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify the "version already exists" check by using RubyGems v2 API (#…
…11712) The v2 API has endpoints specific to each version: https://guides.rubygems.org/rubygems-org-api-v2/ Benefits: 1. Less data gets returned over the wire Compare: * https://rubygems.org/api/v1/versions/dependabot-omnibus.json * https://rubygems.org/api/v2/rubygems/dependabot-omnibus/versions/0.299.1.json 2. Less brittle since we no longer parse the `response.body` 3. Faster since we only check `response.code` I verified that sending a non-existent version returns a `404`: https://rubygems.org/api/v2/rubygems/dependabot-omnibus/versions/0.7.1.json
- Loading branch information