Class: Dependabot::Pub::PubPackageManager

Inherits:
Ecosystem::VersionManager
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dependabot/pub/package_manager.rb

Constant Summary collapse

NAME =
"pub"
VERSION =
"0.0"
SUPPORTED_VERSIONS =
T.let([].freeze, T::Array[Dependabot::Version])
DEPRECATED_VERSIONS =
T.let([].freeze, T::Array[Dependabot::Version])

Instance Method Summary collapse

Constructor Details

#initialize(raw_version) ⇒ PubPackageManager

Returns a new instance of PubPackageManager.



32
33
34
35
36
37
38
39
# File 'lib/dependabot/pub/package_manager.rb', line 32

def initialize(raw_version)
  super(
    name: NAME,
    version: Version.new(raw_version),
    deprecated_versions: DEPRECATED_VERSIONS,
    supported_versions: SUPPORTED_VERSIONS
 )
end

Instance Method Details

#deprecated?Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/dependabot/pub/package_manager.rb', line 42

def deprecated?
  false
end

#unsupported?Boolean

Returns:

  • (Boolean)


47
48
49
# File 'lib/dependabot/pub/package_manager.rb', line 47

def unsupported?
  false
end