class Dependabot::GitSubmodules::UpdateChecker

Public Instance Methods

latest_resolvable_version() click to toggle source
# File lib/dependabot/git_submodules/update_checker.rb, line 15
def latest_resolvable_version
  # Resolvability isn't an issue for submodules.
  latest_version
end
latest_resolvable_version_with_no_unlock() click to toggle source
# File lib/dependabot/git_submodules/update_checker.rb, line 20
def latest_resolvable_version_with_no_unlock
  # No concept of "unlocking" for submodules
  latest_version
end
latest_version() click to toggle source
# File lib/dependabot/git_submodules/update_checker.rb, line 11
def latest_version
  @latest_version ||= fetch_latest_version
end
updated_requirements() click to toggle source
# File lib/dependabot/git_submodules/update_checker.rb, line 25
def updated_requirements
  # Submodule requirements are the URL and branch to use for the
  # submodule. We never want to update either.
  dependency.requirements
end

Private Instance Methods

fetch_latest_version() click to toggle source
# File lib/dependabot/git_submodules/update_checker.rb, line 42
def fetch_latest_version
  git_commit_checker = Dependabot::GitCommitChecker.new(
    dependency: dependency,
    credentials: credentials
  )

  git_commit_checker.head_commit_for_current_branch
end
latest_version_resolvable_with_full_unlock?() click to toggle source
# File lib/dependabot/git_submodules/update_checker.rb, line 33
def latest_version_resolvable_with_full_unlock?
  # Full unlock checks aren't relevant for submodules
  false
end
updated_dependencies_after_full_unlock() click to toggle source
# File lib/dependabot/git_submodules/update_checker.rb, line 38
def updated_dependencies_after_full_unlock
  raise NotImplementedError
end