Module: Dependabot

Defined in:
lib/dependabot/utils.rb,
lib/dependabot.rb,
lib/dependabot/config.rb,
lib/dependabot/errors.rb,
lib/dependabot/logger.rb,
lib/dependabot/source.rb,
lib/dependabot/version.rb,
lib/dependabot/dependency.rb,
lib/dependabot/config/file.rb,
lib/dependabot/file_parsers.rb,
lib/dependabot/clients/azure.rb,
lib/dependabot/file_fetchers.rb,
lib/dependabot/file_updaters.rb,
lib/dependabot/notifications.rb,
lib/dependabot/shared_helpers.rb,
lib/dependabot/dependency_file.rb,
lib/dependabot/update_checkers.rb,
lib/dependabot/metadata_finders.rb,
lib/dependabot/clients/bitbucket.rb,
lib/dependabot/file_parsers/base.rb,
lib/dependabot/security_advisory.rb,
lib/dependabot/clients/codecommit.rb,
lib/dependabot/file_fetchers/base.rb,
lib/dependabot/file_updaters/base.rb,
lib/dependabot/git_commit_checker.rb,
lib/dependabot/config/file_fetcher.rb,
lib/dependabot/config/update_config.rb,
lib/dependabot/git_metadata_fetcher.rb,
lib/dependabot/pull_request_creator.rb,
lib/dependabot/pull_request_updater.rb,
lib/dependabot/update_checkers/base.rb,
lib/dependabot/metadata_finders/base.rb,
lib/dependabot/config/ignore_condition.rb,
lib/dependabot/pull_request_creator/azure.rb,
lib/dependabot/pull_request_updater/azure.rb,
lib/dependabot/clients/github_with_retries.rb,
lib/dependabot/clients/gitlab_with_retries.rb,
lib/dependabot/pull_request_creator/github.rb,
lib/dependabot/pull_request_creator/gitlab.rb,
lib/dependabot/pull_request_updater/github.rb,
lib/dependabot/pull_request_updater/gitlab.rb,
lib/dependabot/file_updaters/vendor_updater.rb,
lib/dependabot/pull_request_creator/labeler.rb,
lib/dependabot/pull_request_creator/message.rb,
lib/dependabot/clients/bitbucket_with_retries.rb,
lib/dependabot/pull_request_creator/bitbucket.rb,
lib/dependabot/pull_request_creator/codecommit.rb,
lib/dependabot/update_checkers/version_filters.rb,
lib/dependabot/file_parsers/base/dependency_set.rb,
lib/dependabot/pull_request_creator/branch_namer.rb,
lib/dependabot/pull_request_creator/commit_signer.rb,
lib/dependabot/metadata_finders/base/commits_finder.rb,
lib/dependabot/metadata_finders/base/release_finder.rb,
lib/dependabot/pull_request_creator/message_builder.rb,
lib/dependabot/pull_request_creator/pr_name_prefixer.rb,
lib/dependabot/metadata_finders/base/changelog_finder.rb,
lib/dependabot/metadata_finders/base/changelog_pruner.rb,
lib/dependabot/pull_request_creator/message_builder/issue_linker.rb,
lib/dependabot/pull_request_creator/message_builder/metadata_presenter.rb,
lib/dependabot/pull_request_creator/message_builder/link_and_mention_sanitizer.rb

Overview

rubocop:disable Metrics/ClassLength

Defined Under Namespace

Modules: Clients, Config, FileFetchers, FileParsers, FileUpdaters, MetadataFinders, Notifications, SharedHelpers, UpdateCheckers, Utils Classes: AllVersionsIgnored, BranchNotFound, DependabotError, Dependency, DependencyFile, DependencyFileNotEvaluatable, DependencyFileNotFound, DependencyFileNotParseable, DependencyFileNotResolvable, GitCommitChecker, GitDependenciesNotReachable, GitDependencyReferenceNotFound, GitMetadataFetcher, GoModulePathMismatch, InconsistentRegistryResponse, MissingEnvironmentVariable, NotImplemented, OutOfDisk, OutOfMemory, PathDependenciesNotReachable, PrivateSourceAuthenticationFailure, PrivateSourceCertificateFailure, PrivateSourceTimedOut, PullRequestCreator, PullRequestUpdater, RepoNotFound, SecurityAdvisory, Source, UnexpectedExternalCode

Constant Summary collapse

VERSION =
"0.162.1"

Class Method Summary collapse

Class Method Details

.instrument(name, payload = {}) ⇒ Object


10
11
12
# File 'lib/dependabot/notifications.rb', line 10

def self.instrument(name, payload = {})
  ActiveSupport::Notifications.instrument(name, payload)
end

.loggerObject


6
7
8
# File 'lib/dependabot/logger.rb', line 6

def self.logger
  @logger ||= Logger.new(nil)
end

.logger=(logger) ⇒ Object


10
11
12
# File 'lib/dependabot/logger.rb', line 10

def self.logger=(logger)
  @logger = logger
end

.subscribe(pattern = nil, callback = nil, &block) ⇒ Object


14
15
16
# File 'lib/dependabot/notifications.rb', line 14

def self.subscribe(pattern = nil, callback = nil, &block)
  ActiveSupport::Notifications.subscribe(pattern, callback, &block)
end