Skip to content

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

fix: resolve merge conflicts in version check script (keep ruby + dotnet + rust)

Devin AI6c130cdfc1cc
diff --cc .github/scripts/check_version_has_incremented.py
index 46f8aed32,5b959a43f..975067eb4
--- a/.github/scripts/check_version_has_incremented.py
+++ b/.github/scripts/check_version_has_incremented.py
@@@ -18,11 -18,11 +18,15 @@@ Local version: 1.0.
Published version: 0.0.0 (0.0.0 means not yet published on Maven Central)
true
+python .github/scripts/check_version_has_incremented.py ruby ./apps/ruby-sdk firecrawl
+Local version: 1.0.0
+Published version: 0.0.0 (0.0.0 means not yet published on RubyGems)
+true
+
+ python .github/scripts/check_version_has_incremented.py dotnet ./apps/.net-sdk/Firecrawl firecrawl-dotnet
+ Local version: 1.0.0
+ Published version: 0.0.0 (0.0.0 means not yet published on NuGet)
+ true
-
python .github/scripts/check_version_has_incremented.py php ./apps/php-sdk firecrawl/firecrawl-php
Local version: 1.0.0
Published version: 0.0.0 (0.0.0 means not yet published on Packagist)
@@@ -181,24 -192,27 +212,32 @@@ if __name__ == "__main__"
current_version = get_gradle_version(os.path.join(package_path, 'build.gradle.kts'))
# Get published version from Maven Central
published_version = get_maven_central_version(package_name)
+ elif package_type == "ruby":
+ # Get current version from lib/firecrawl/version.rb
+ current_version = get_ruby_version(os.path.join(package_path, 'lib', 'firecrawl', 'version.rb'))
+ # Get published version from RubyGems
+ published_version = get_rubygems_version(package_name)
+ elif package_type == "dotnet":
+ # Get current version from .csproj file — look for any .csproj in the directory
+ csproj_files = list(Path(package_path).glob('*.csproj'))
+ if not csproj_files:
+ raise RuntimeError(f"No .csproj file found in {package_path}")
+ current_version = get_csproj_version(str(csproj_files[0]))
+ # Get published version from NuGet
+ published_version = get_nuget_version(package_name)
elif package_type == "php":
# Get current version from src/Version.php
current_version = get_php_version(os.path.join(package_path, 'src', 'Version.php'))
# Get published version from Packagist
published_version = get_packagist_version(package_name)
- # if package_type == "rust":
- # # Get current version from Cargo.toml
- # current_version = get_rust_version(os.path.join(package_path, 'Cargo.toml'))
- # # Get published version from crates.io
- # published_version = get_crates_version(package_name)
+ elif package_type == "rust":
+ # Get current version from Cargo.toml
+ current_version = get_rust_version(os.path.join(package_path, 'Cargo.toml'))
+ # Get published version from crates.io
+ published_version = get_crates_version(package_name)
else:
- raise ValueError("Invalid package type. Use 'python', 'js', 'java', 'ruby', or 'php'.")
- raise ValueError("Invalid package type. Use 'python', 'js', 'java', 'rust', 'dotnet', or 'php'.")
++ raise ValueError("Invalid package type. Use 'python', 'js', 'java', 'ruby', 'rust', 'dotnet', or 'php'.")
# Print versions for debugging
# print(f"Local version: {current_version}")