diff --git a/dotnet_sdk/lib/dependabot/dotnet_sdk/package_manager.rb b/dotnet_sdk/lib/dependabot/dotnet_sdk/package_manager.rb new file mode 100644 index 0000000000..cd031849e1 --- /dev/null +++ b/dotnet_sdk/lib/dependabot/dotnet_sdk/package_manager.rb @@ -0,0 +1,51 @@ +# typed: strong +# frozen_string_literal: true + +require "sorbet-runtime" +require "dependabot/nudotnet_sdkget/version" +require "dependabot/ecosystem" +require "dependabot/dotnet_sdk/requirement" + +module Dependabot + module DotnetSdk + ECOSYSTEM = "dotnet-sdk" + + SUPPORTED_VERSIONS = T.let([].freeze, T::Array[Dependabot::Version]) + + DEPRECATED_VERSIONS = T.let([].freeze, T::Array[Dependabot::Version]) + + class DotNetPackageManager < Dependabot::Ecosystem::VersionManager + extend T::Sig + + NAME = "nuget" + + SUPPORTED_VERSIONS = T.let([].freeze, T::Array[Dependabot::Version]) + + DEPRECATED_VERSIONS = T.let([].freeze, T::Array[Dependabot::Version]) + + sig do + params( + raw_version: T.nilable(String) + ).void + end + def initialize(raw_version) + super( + NAME, + Version.new(raw_version), + SUPPORTED_VERSIONS, + DEPRECATED_VERSIONS + ) + end + + sig { override.returns(T::Boolean) } + def deprecated? + false + end + + sig { override.returns(T::Boolean) } + def unsupported? + false + end + end + end +end