Class: Dependabot::GitSubmodules::UpdateChecker

Inherits:
UpdateCheckers::Base
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dependabot/git_submodules/update_checker.rb

Instance Method Summary collapse

Instance Method Details

#latest_resolvable_versionObject



27
28
29
30
# File 'lib/dependabot/git_submodules/update_checker.rb', line 27

def latest_resolvable_version
  # Resolvability isn't an issue for submodules.
  latest_version
end

#latest_resolvable_version_with_no_unlockObject



33
34
35
36
# File 'lib/dependabot/git_submodules/update_checker.rb', line 33

def latest_resolvable_version_with_no_unlock
  # No concept of "unlocking" for submodules
  latest_version
end

#latest_versionObject



18
19
20
21
22
23
24
# File 'lib/dependabot/git_submodules/update_checker.rb', line 18

def latest_version
  @latest_version ||=
    T.let(
      fetch_latest_version,
      T.nilable(T.any(String, Dependabot::Version))
    )
end

#updated_requirementsObject



39
40
41
42
43
# File 'lib/dependabot/git_submodules/update_checker.rb', line 39

def updated_requirements
  # Submodule requirements are the URL and branch to use for the
  # submodule. We never want to update either.
  dependency.requirements
end