Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(ci): handle 'unknown' version from RubyGems for first-time publishes

Devin AIf0bda82e7054
diff --git a/.github/scripts/check_version_has_incremented.py b/.github/scripts/check_version_has_incremented.py
index 707d1b632..242a38f74 100644
--- a/.github/scripts/check_version_has_incremented.py
+++ b/.github/scripts/check_version_has_incremented.py
@@ -93,6 +93,8 @@ def get_rubygems_version(package_name: str) -> str:
if response.status_code == 404:
return "0.0.0"
version = response.json()['version']
+ if version == "unknown":
+ return "0.0.0"
return version.strip()
def get_maven_central_version(package_name: str) -> str: