Module: Dependabot::Utils
- Defined in:
- lib/dependabot/utils.rb,
lib/dependabot/utils/go/version.rb,
lib/dependabot/utils/elm/version.rb,
lib/dependabot/utils/php/version.rb,
lib/dependabot/utils/java/version.rb,
lib/dependabot/utils/rust/version.rb,
lib/dependabot/utils/dotnet/version.rb,
lib/dependabot/utils/elixir/version.rb,
lib/dependabot/utils/go/requirement.rb,
lib/dependabot/utils/python/version.rb,
lib/dependabot/utils/elm/requirement.rb,
lib/dependabot/utils/php/requirement.rb,
lib/dependabot/utils/go/shared_helper.rb,
lib/dependabot/utils/java/requirement.rb,
lib/dependabot/utils/ruby/requirement.rb,
lib/dependabot/utils/rust/requirement.rb,
lib/dependabot/utils/go/path_converter.rb,
lib/dependabot/utils/dotnet/requirement.rb,
lib/dependabot/utils/elixir/requirement.rb,
lib/dependabot/utils/python/requirement.rb,
lib/dependabot/utils/java_script/version.rb,
lib/dependabot/utils/java_script/requirement.rb,
lib/dependabot/utils/docker/credentials_finder.rb
Defined Under Namespace
Modules: Docker, Dotnet, Elixir, Elm, Go, Java, JavaScript, Php, Python, Ruby, Rust
Class Method Summary
collapse
Class Method Details
.register_requirement_class(package_manager, requirement_class) ⇒ Object
80
81
82
|
# File 'lib/dependabot/utils.rb', line 80
def self.register_requirement_class(package_manager, requirement_class)
@requirement_classes[package_manager] = requirement_class
end
|
.register_version_class(package_manager, version_class) ⇒ Object
52
53
54
|
# File 'lib/dependabot/utils.rb', line 52
def self.register_version_class(package_manager, version_class)
@version_classes[package_manager] = version_class
end
|
.requirement_class_for_package_manager(package_manager) ⇒ Object
73
74
75
76
77
78
|
# File 'lib/dependabot/utils.rb', line 73
def self.requirement_class_for_package_manager(package_manager)
requirement_class = @requirement_classes[package_manager]
return requirement_class if requirement_class
raise "Unsupported package_manager #{package_manager}"
end
|
.version_class_for_package_manager(package_manager) ⇒ Object
45
46
47
48
49
50
|
# File 'lib/dependabot/utils.rb', line 45
def self.version_class_for_package_manager(package_manager)
version_class = @version_classes[package_manager]
return version_class if version_class
raise "Unsupported package_manager #{package_manager}"
end
|