Merge pull request #112 from figsoda/unused

This commit is contained in:
Sandro 2022-11-24 01:46:58 +01:00 committed by GitHub
commit da3c17a614
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -142,7 +142,6 @@ def update_version(
raise UpdateError(
"Could not find a url in the derivations src attribute"
)
version
if preference != VersionPreference.BRANCH:
branch = None
elif version == "branch":

View File

@ -13,7 +13,7 @@ def fetch_rubygem_versions(url: ParseResult) -> List[Version]:
return []
parts = url.path.split("/")
gem = parts[-1]
gem_name, rest = gem.rsplit("-")
gem_name, _ = gem.rsplit("-")
versions_url = f"https://rubygems.org/api/v1/versions/{gem_name}.json"
info(f"fetch {versions_url}")
resp = urllib.request.urlopen(versions_url)