Class: Dependabot::PackageManagerBase

Inherits:
Object
  • Object
show all
Extended by:
T::Helpers, T::Sig
Defined in:
lib/dependabot/package_manager.rb

Instance Method Summary collapse

Instance Method Details

#deprecated?Boolean

Returns:

  • (Boolean)


57
58
59
# File 'lib/dependabot/package_manager.rb', line 57

def deprecated?
  deprecated_versions.include?(version)
end

#deprecated_versionsObject



30
31
32
# File 'lib/dependabot/package_manager.rb', line 30

def deprecated_versions
  []
end

#nameObject



17
# File 'lib/dependabot/package_manager.rb', line 17

def name; end

#support_later_versions?Boolean

Returns:

  • (Boolean)


80
81
82
# File 'lib/dependabot/package_manager.rb', line 80

def support_later_versions?
  false
end

#supported_versionsObject



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

def supported_versions
  []
end

#unsupported?Boolean

Returns:

  • (Boolean)


66
67
68
69
70
71
72
73
# File 'lib/dependabot/package_manager.rb', line 66

def unsupported?
  return true if unsupported_versions.include?(version)

  supported_versions = self.supported_versions
  return version < supported_versions.first if supported_versions.any?

  false
end

#unsupported_versionsObject



39
40
41
# File 'lib/dependabot/package_manager.rb', line 39

def unsupported_versions
  []
end

#versionObject



23
# File 'lib/dependabot/package_manager.rb', line 23

def version; end