source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
opentofu/spec/dependabot/opentofu/update_checker/latest_version_resolver_spec.rb
Ruby
mit
5,556
main
3,662
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/opentofu/update_checker/latest_version_resolver" RSpec.describe Dependabot::Opentofu::UpdateChecker::LatestVersionResolver do let(:credentials) { [Dependabot::Credential.new(type: "git_source", token: "test-token")] } let(:depe...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
opentofu/spec/dependabot/opentofu/package/package_details_fetcher_spec.rb
Ruby
mit
5,556
main
3,057
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/opentofu/package/package_details_fetcher" require "dependabot/dependency" require "dependabot/credential" require "dependabot/git_commit_checker" require "dependabot/git_tag_with_detail" require "excon" RSpec.describe Dependabot::Op...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
opentofu/lib/dependabot/opentofu.rb
Ruby
mit
5,556
main
1,062
# typed: strict # frozen_string_literal: true # These all need to be required so the various classes can be registered in a # lookup table of package manager names to concrete classes. require "dependabot/opentofu/file_fetcher" require "dependabot/opentofu/file_parser" require "dependabot/opentofu/update_checker" requ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
opentofu/lib/dependabot/opentofu/file_updater.rb
Ruby
mit
5,556
main
17,952
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/file_updaters" require "dependabot/file_updaters/base" require "dependabot/errors" require "dependabot/opentofu/file_selector" require "dependabot/shared_helpers" module Dependabot module Opentofu class FileUpdater < Dep...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
opentofu/lib/dependabot/opentofu/file_selector.rb
Ruby
mit
5,556
main
2,238
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/opentofu/file_filter" module Dependabot module Opentofu module FileSelector extend T::Sig extend T::Helpers TF_EXTENSION = ".tf" TOFU_EXTENSION = ".tofu" OVERRIDE_TF_EXTENSION = "override.t...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
opentofu/lib/dependabot/opentofu/file_fetcher.rb
Ruby
mit
5,556
main
4,211
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/file_fetchers" require "dependabot/file_fetchers/base" require "dependabot/opentofu/file_selector" require "dependabot/file_filtering" module Dependabot module Opentofu class FileFetcher < Dependabot::FileFetchers::Base ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
opentofu/lib/dependabot/opentofu/requirements_updater.rb
Ruby
mit
5,556
main
8,070
# typed: strict # frozen_string_literal: true #################################################################### # For more details on OpenTofu version constraints, see: # # https://opentofu.org/docs/language/modules/#published-modules # ##################################################################...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
opentofu/lib/dependabot/opentofu/registry_client.rb
Ruby
mit
5,556
main
10,634
# typed: strict # frozen_string_literal: true require "dependabot/dependency" require "dependabot/errors" require "dependabot/registry_client" require "dependabot/source" require "dependabot/opentofu/version" module Dependabot module Opentofu # Opentofu::RegistryClient is a basic API client to interact with a ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
opentofu/lib/dependabot/opentofu/file_filter.rb
Ruby
mit
5,556
main
496
# typed: strong # frozen_string_literal: true require "sorbet-runtime" module Dependabot module Opentofu module FileFilter extend T::Sig private sig { params(file_name: String).returns(T::Boolean) } def terragrunt_file?(file_name) !lockfile?(file_name) && file_name.end_with?("....
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
opentofu/lib/dependabot/opentofu/requirement.rb
Ruby
mit
5,556
main
2,166
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/requirement" require "dependabot/utils" require "dependabot/opentofu/version" # Just ensures that OpenTofu requirements use OpenTofu versions module Dependabot module Opentofu class Requirement < Dependabot::Requirement ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
opentofu/lib/dependabot/opentofu/metadata_finder.rb
Ruby
mit
5,556
main
1,577
# typed: strict # frozen_string_literal: true require "excon" require "json" require "dependabot/metadata_finders" require "dependabot/metadata_finders/base" require "dependabot/opentofu/registry_client" require "dependabot/shared_helpers" require "sorbet-runtime" module Dependabot module Opentofu class Metadat...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
opentofu/lib/dependabot/opentofu/package_manager.rb
Ruby
mit
5,556
main
1,056
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/ecosystem" require "dependabot/opentofu/version" module Dependabot module Opentofu ECOSYSTEM = "opentofu" PACKAGE_MANAGER = "opentofu" SUPPORTED_OPENTOFU_VERSIONS = T.let([].freeze, T::Array[Dependabot::Version]) ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
opentofu/lib/dependabot/opentofu/file_parser.rb
Ruby
mit
5,556
main
17,432
# typed: strict # frozen_string_literal: true require "excon" require "nokogiri" require "open3" require "digest" require "sorbet-runtime" require "dependabot/dependency" require "dependabot/file_parsers" require "dependabot/file_parsers/base" require "dependabot/git_commit_checker" require "dependabot/shared_helpers"...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
opentofu/lib/dependabot/opentofu/update_checker.rb
Ruby
mit
5,556
main
9,296
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/update_checkers" require "dependabot/update_checkers/base" require "dependabot/git_commit_checker" require "dependabot/opentofu/requirements_updater" require "dependabot/opentofu/requirement" require "dependabot/opentofu/versio...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
opentofu/lib/dependabot/opentofu/version.rb
Ruby
mit
5,556
main
1,612
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/utils" require "dependabot/version" module Dependabot module Opentofu class Version < Dependabot::Version extend T::Sig sig { override.params(version: VersionParameter).void } def initialize(version) ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
opentofu/lib/dependabot/opentofu/update_checker/latest_version_resolver.rb
Ruby
mit
5,556
main
9,070
# typed: strong # frozen_string_literal: true require "dependabot/update_checkers/base" require "dependabot/opentofu/package/package_details_fetcher" require "sorbet-runtime" require "dependabot/git_commit_checker" module Dependabot module Opentofu class UpdateChecker < Dependabot::UpdateCheckers::Base cl...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
opentofu/lib/dependabot/opentofu/package/package_details_fetcher.rb
Ruby
mit
5,556
main
5,739
# typed: strict # frozen_string_literal: true require "json" require "time" require "cgi" require "excon" require "sorbet-runtime" require "dependabot/swift" module Dependabot module Opentofu module Package class PackageDetailsFetcher extend T::Sig RELEASES_URL_GIT = "https://api.github.c...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/Gemfile
Ruby
mit
5,556
main
2,521
# frozen_string_literal: true source "https://rubygems.org" gem "dependabot-bazel", path: "../bazel" gem "dependabot-bun", path: "../bun" gem "dependabot-bundler", path: "../bundler" gem "dependabot-cargo", path: "../cargo" gem "dependabot-common", path: "../common" gem "dependabot-composer", path: "../composer" gem ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/fetched_files.rb
Ruby
mit
5,556
main
609
# typed: strong # frozen_string_literal: true require "sorbet-runtime" module Dependabot class FetchedFiles extend T::Sig sig { returns(T::Array[Dependabot::DependencyFile]) } attr_reader :dependency_files sig { returns(String) } attr_reader :base_commit_sha sig { params(dependency_files:...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/opentelemetry.rb
Ruby
mit
5,556
main
4,180
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "opentelemetry/sdk" require "opentelemetry-logs-sdk" require "opentelemetry-metrics-sdk" module Dependabot module OpenTelemetry extend T::Sig module Attributes JOB_ID = "dependabot.job.id" WARN_TYPE = "dependabot.job...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/dependency_change.rb
Ruby
mit
5,556
main
8,772
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/errors" require "dependabot/pull_request_creator/message_builder" # This class describes a change to the project's Dependencies which has been # determined by a Dependabot operation. # # It includes a list of changed Dependabot...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/dependency_snapshot.rb
Ruby
mit
5,556
main
12,240
# typed: strict # frozen_string_literal: true require "base64" require "sorbet-runtime" require "dependabot/fetched_files" require "dependabot/file_parsers" require "dependabot/notices_helpers" # This class describes the dependencies obtained from a project at a specific commit SHA # including both the Dependabot::D...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/updater.rb
Ruby
mit
5,556
main
2,915
# typed: strong # frozen_string_literal: true require "sorbet-runtime" # Dependabot components require "dependabot/dependency_change" require "dependabot/dependency_change_builder" require "dependabot/environment" require "dependabot/experiments" require "dependabot/file_fetchers" require "dependabot/logger" require ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/environment.rb
Ruby
mit
5,556
main
3,217
# typed: strict # frozen_string_literal: true require "sorbet-runtime" module Dependabot module Environment extend T::Sig extend T::Generic sig { returns(String) } def self.job_id @job_id ||= T.let(environment_variable("DEPENDABOT_JOB_ID"), T.nilable(String)) end sig { returns(String...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/setup.rb
Ruby
mit
5,556
main
2,525
# typed: strict # frozen_string_literal: true require "sentry-ruby" require "sorbet-runtime" require "dependabot/environment" require "dependabot/logger" require "dependabot/logger/formats" require "dependabot/opentelemetry" require "dependabot/sentry" require "dependabot/sorbet/runtime" Dependabot.logger = Logger.n...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/job.rb
Ruby
mit
5,556
main
27,121
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "wildcard_matcher" require "dependabot/config/ignore_condition" require "dependabot/config/update_config" require "dependabot/credential" require "dependabot/dependency_group_engine" require "dependabot/experiments" require "dependabot/req...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/file_fetcher_command.rb
Ruby
mit
5,556
main
15,413
# typed: strict # frozen_string_literal: true require "dependabot/base_command" require "dependabot/fetched_files" require "dependabot/errors" require "dependabot/git_metadata_fetcher" require "dependabot/opentelemetry" require "dependabot/updater" require "octokit" require "sorbet-runtime" module Dependabot class ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/update_files_command.rb
Ruby
mit
5,556
main
6,644
# typed: strict # frozen_string_literal: true require "base64" require "json" require "dependabot/base_command" require "dependabot/fetched_files" require "dependabot/dependency_snapshot" require "dependabot/errors" require "dependabot/opentelemetry" require "dependabot/updater" require "github_api/dependency_submiss...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/service.rb
Ruby
mit
5,556
main
10,811
# typed: strict # frozen_string_literal: true require "sentry-ruby" require "sorbet-runtime" require "terminal-table" require "dependabot/api_client" require "dependabot/errors" require "dependabot/opentelemetry" require "dependabot/experiments" # This class provides an output adapter for the Dependabot Service whic...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/dependency_attribution.rb
Ruby
mit
5,556
main
3,475
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/dependency" # Extension to add attribution metadata to Dependency objects # for group membership enforcement observability and debugging module Dependabot module DependencyAttribution extend T::Sig # Selection reason...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/dependency_change_builder.rb
Ruby
mit
5,556
main
6,794
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/dependency" require "dependabot/dependency_change" require "dependabot/file_updaters" require "dependabot/dependency_group" # This class is responsible for generating a DependencyChange for a given # set of dependencies and dep...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/dependency_group_engine.rb
Ruby
mit
5,556
main
9,339
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/dependency_group" require "dependabot/updater/pattern_specificity_calculator" # This class implements our strategy for keeping track of and matching dependency # groups that are defined by users in their dependabot config file...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/notices_helpers.rb
Ruby
mit
5,556
main
2,248
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/notices" require "dependabot/ecosystem" require "debug" # This module extracts helpers for notice generations that can be used # for showing notices in logs, pr messages and alert ui page. module Dependabot module NoticesHelp...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/update_graph_processor.rb
Ruby
mit
5,556
main
8,783
# typed: strict # frozen_string_literal: true require "sorbet-runtime" # Dependabot components require "dependabot/environment" require "dependabot/experiments" require "dependabot/dependency_graphers" require "dependabot/logger" # Updater components require "dependabot/updater/error_handler" require "github_api/dep...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/sentry.rb
Ruby
mit
5,556
main
626
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/sentry/exception_sanitizer_processor" require "dependabot/sentry/sentry_context_processor" module Dependabot module Sentry extend T::Sig # The default processor chain. # This chain is applied in the order of the ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/base_command.rb
Ruby
mit
5,556
main
3,702
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/api_client" require "dependabot/errors" require "dependabot/service" require "dependabot/logger" require "dependabot/logger/formats" require "dependabot/environment" module Dependabot class RunFailure < StandardError; end ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/pull_request.rb
Ruby
mit
5,556
main
4,147
# typed: strict # frozen_string_literal: true require "sorbet-runtime" module Dependabot class PullRequest extend T::Sig class Dependency extend T::Sig sig { returns(String) } attr_reader :name sig { returns(T.nilable(String)) } attr_reader :version sig { returns(T::B...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/api_client.rb
Ruby
mit
5,556
main
19,896
# typed: strict # frozen_string_literal: true require "excon" require "dependabot/job" require "dependabot/opentelemetry" require "sorbet-runtime" require "dependabot/errors" # Provides a client to access the internal Dependabot Service's API # # The Service acts as a relay to Core's GitHub API adapters while providi...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/update_graph_command.rb
Ruby
mit
5,556
main
4,224
# typed: strict # frozen_string_literal: true require "json" require "dependabot/base_command" require "dependabot/fetched_files" require "dependabot/dependency_snapshot" require "dependabot/errors" require "dependabot/opentelemetry" require "dependabot/update_graph_processor" require "github_api/dependency_submission...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/sorbet/runtime.rb
Ruby
mit
5,556
main
814
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/api_client" require "dependabot/service" module Dependabot module Sorbet module Runtime class InformationalError < StandardError; end extend T::Sig sig { void } def self.silently_report_errors! ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/sentry/exception_sanitizer_processor.rb
Ruby
mit
5,556
main
1,082
# typed: strong # frozen_string_literal: true require "sentry-ruby" require "sorbet-runtime" require "dependabot/sentry/processor" # ExceptionSanitizer filters potential secrets/PII from exception payloads class ExceptionSanitizer < ::Dependabot::Sentry::Processor extend T::Sig REPO = %r{[\w.\-]+/([\w.\-]+)} ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/sentry/processor.rb
Ruby
mit
5,556
main
484
# typed: strong # frozen_string_literal: true require "sorbet-runtime" module Dependabot module Sentry class Processor extend T::Sig extend T::Helpers abstract! # Process an event before it is sent to Sentry sig do abstract .params( event: ::Sentry::...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/sentry/sentry_context_processor.rb
Ruby
mit
5,556
main
580
# typed: strict # frozen_string_literal: true require "sentry-ruby" require "sorbet-runtime" require "dependabot/sentry/processor" class SentryContext < ::Dependabot::Sentry::Processor sig do override .params( event: ::Sentry::Event, hint: T::Hash[Symbol, T.untyped] ) .returns...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/logger/formats.rb
Ruby
mit
5,556
main
1,576
# typed: strong # frozen_string_literal: true require "logger" # Provides Logger::Formatter classes specific to the Updater project to augment # the global log helper defined in common/lib/dependabot/logger.rb module Dependabot module Logger TIME_FORMAT = "%Y/%m/%d %H:%M:%S" class BasicFormatter < ::Logger...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/updater/errors.rb
Ruby
mit
5,556
main
492
# typed: strong # frozen_string_literal: true module Dependabot class Updater class SubprocessFailed < StandardError extend T::Sig sig { returns(T::Hash[Symbol, T.untyped]) } attr_reader :sentry_context sig { params(message: String, sentry_context: T::Hash[Symbol, T.untyped]).void } ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/updater/group_update_refreshing.rb
Ruby
mit
5,556
main
3,882
# typed: strong # frozen_string_literal: true require "sorbet-runtime" # This module contains the methods required to refresh (upsert or recreate) # existing grouped pull requests. # # When included in an Operation it expects the following to be available: # - job: the current Dependabot::Job object # - dependency_sn...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/updater/dependency_group_change_batch.rb
Ruby
mit
5,556
main
5,864
# typed: strict # frozen_string_literal: true require "pathname" require "sorbet-runtime" # This class is responsible for aggregating individual DependencyChange objects # by tracking changes to individual files and the overall dependency list. module Dependabot class Updater class DependencyGroupChangeBatch ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/updater/group_update_creation.rb
Ruby
mit
5,556
main
29,348
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/dependency_change_builder" require "dependabot/updater/dependency_group_change_batch" require "dependabot/workspace" require "dependabot/updater/security_update_helpers" require "dependabot/notices" # This module contains the ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/updater/error_handler.rb
Ruby
mit
5,556
main
9,124
# typed: strict # frozen_string_literal: true require "dependabot/errors" require "dependabot/updater/errors" require "octokit" # This class is responsible for determining how to present a Dependabot::Error # to the Service and Logger. # # TODO: Iterate further on leaner error handling # # This class is a coarse abst...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/updater/group_dependency_selector.rb
Ruby
mit
5,556
main
17,258
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "wildcard_matcher" require "dependabot/utils" require "dependabot/dependency_attribution" require "dependabot/dependency_change" require "dependabot/dependency_group" require "dependabot/dependency_snapshot" require "dependabot/updater/patt...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/updater/operations.rb
Ruby
mit
5,556
main
2,992
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/updater/operations/create_security_update_pull_request" require "dependabot/updater/operations/group_update_all_versions" require "dependabot/updater/operations/refresh_group_update_pull_request" require "dependabot/updater/ope...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/updater/update_type_helper.rb
Ruby
mit
5,556
main
5,231
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/config/ignore_condition" require "dependabot/utils" module Dependabot class Updater # UpdateTypeHelper provides utilities for determining the update type (major, minor, patch) # of a dependency change. It works with d...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/updater/pattern_specificity_calculator.rb
Ruby
mit
5,556
main
9,170
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "wildcard_matcher" module Dependabot class Updater # PatternSpecificityCalculator handles the calculation of pattern specificity scores # for dependency group patterns. This enables proper prioritization when a dependency # m...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/updater/security_update_helpers.rb
Ruby
mit
5,556
main
8,282
# typed: strong # frozen_string_literal: true require "sorbet-runtime" # This module extracts all helpers required to perform additional update job # error recording and logging for Security Updates since they are shared # between a few operations. module Dependabot class Updater module SecurityUpdateHelpers ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/updater/operations/refresh_version_update_pull_request.rb
Ruby
mit
5,556
main
12,183
# typed: strong # frozen_string_literal: true require "dependabot/updater/security_update_helpers" require "dependabot/notices" # This class implements our strategy for 'refreshing' an existing Pull Request # that updates a dependnency to the latest permitted version. # # It will determine if the existing diff is sti...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/updater/operations/update_all_versions.rb
Ruby
mit
5,556
main
14,448
# typed: strong # frozen_string_literal: true require "dependabot/updater/security_update_helpers" require "dependabot/notices" # This class implements our strategy for iterating over all of the dependencies # for a specific project folder to find those that are out of date and create # a single PR per Dependency. mo...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/updater/operations/refresh_security_update_pull_request.rb
Ruby
mit
5,556
main
13,748
# typed: strong # frozen_string_literal: true require "dependabot/updater/security_update_helpers" require "dependabot/notices" # This class implements our strategy for 'refreshing' an existing Pull Request # that updates an insecure dependency. # # TODO: copyedit # # It will determine if the existing diff is still r...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/updater/operations/create_group_update_pull_request.rb
Ruby
mit
5,556
main
6,409
# typed: strong # frozen_string_literal: true require "dependabot/updater/group_update_creation" require "dependabot/updater/group_dependency_selector" require "sorbet-runtime" # This class implements our strategy for creating a single Pull Request which # updates all outdated Dependencies within a specific project f...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/updater/operations/group_update_all_versions.rb
Ruby
mit
5,556
main
5,653
# typed: strict # frozen_string_literal: true require "dependabot/updater/operations/create_group_update_pull_request" require "dependabot/updater/operations/update_all_versions" # This class is responsible for coordinating the creation and upkeep of Pull Requests for # a given folder's defined DependencyGroups. # # ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/updater/operations/create_security_update_pull_request.rb
Ruby
mit
5,556
main
13,856
# typed: strict # frozen_string_literal: true require "dependabot/updater/security_update_helpers" require "dependabot/notices" # This class implements our strategy for updating a single, insecure dependency # to a secure version. We attempt to make the smallest version update possible, # i.e. semver patch-level incr...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/dependabot/updater/operations/refresh_group_update_pull_request.rb
Ruby
mit
5,556
main
7,984
# typed: strict # frozen_string_literal: true require "dependabot/updater/group_update_creation" require "dependabot/updater/group_update_refreshing" require "dependabot/updater/group_dependency_selector" require "sorbet-runtime" # This class implements our strategy for refreshing a single Pull Request which # update...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/github_api/ecosystem_mapper.rb
Ruby
mit
5,556
main
1,623
# typed: strong # frozen_string_literal: true # Maps Dependabot package manager names to Dependency Graph ecosystem identifiers. # # Any Dependabot package manager that hasn't been configured for snapshotting will # return an ecosystem value of 'other'. module GithubApi class EcosystemMapper extend T::Sig U...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/lib/github_api/dependency_submission.rb
Ruby
mit
5,556
main
5,648
# typed: strong # frozen_string_literal: true require "dependabot/dependency_graphers" require "dependabot/environment" require "github_api/ecosystem_mapper" # This class provides a data object that can be submitted to a repository's dependency submission # REST API. # # See: # https://docs.github.com/en/rest/depen...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/bin/update_graph.rb
Ruby
mit
5,556
main
1,298
# typed: strict # frozen_string_literal: true $LOAD_PATH.unshift(__dir__ + "/../lib") $stdout.sync = true require "dependabot/api_client" require "dependabot/environment" require "dependabot/service" require "dependabot/setup" require "dependabot/file_fetcher_command" require "dependabot/update_graph_command" requir...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/bin/update_files.rb
Ruby
mit
5,556
main
1,298
# typed: strict # frozen_string_literal: true $LOAD_PATH.unshift(__dir__ + "/../lib") $stdout.sync = true require "dependabot/api_client" require "dependabot/environment" require "dependabot/service" require "dependabot/setup" require "dependabot/file_fetcher_command" require "dependabot/update_files_command" requir...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/spec_helper.rb
Ruby
mit
5,556
main
2,919
# typed: false # frozen_string_literal: true require "dependabot/logger" require "logger" require "rspec/sorbet" require "vcr" require "webmock/rspec" require "webmock/http_lib_adapters/excon_adapter" require "yaml" # Load common spec helpers for build_tmp_repo common_dir = Gem::Specification.find_by_name("dependabot...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/github_api/dependency_submission_spec.rb
Ruby
mit
5,556
main
6,481
# typed: false # frozen_string_literal: true require "spec_helper" require "support/dependency_file_helpers" require "dependabot/bundler" require "dependabot/dependency_file" require "dependabot/dependency_snapshot" require "dependabot/job" require "github_api/dependency_submission" require "github_api/ecosystem_map...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/github_api/ecosystem_mapper_spec.rb
Ruby
mit
5,556
main
1,112
# typed: false # frozen_string_literal: true require "spec_helper" require "github_api/ecosystem_mapper" RSpec.describe GithubApi::EcosystemMapper do describe ".ecosystem_for" do { "bundler" => "rubygems", "npm_and_yarn" => "npm", "bun" => "npm", "pip" => "pypi", "uv" => "pypi", ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/notices_helpers_spec.rb
Ruby
mit
5,556
main
5,999
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/updater" require "dependabot/ecosystem" require "dependabot/notices" require "dependabot/notices_helpers" # A stub package manager for testing purposes. class StubVersionManager < Dependabot::Ecosystem::VersionManager def initial...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/update_graph_command_spec.rb
Ruby
mit
5,556
main
8,147
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/update_graph_command" require "dependabot/bundler" require "tmpdir" RSpec.describe Dependabot::UpdateGraphCommand do subject(:job) { described_class.new(fetched_files) } let(:service) do instance_double( Dependabot::...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/environment_spec.rb
Ruby
mit
5,556
main
1,182
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/environment" RSpec.describe Dependabot::Environment do subject(:environment) { described_class } describe "::debug_enabled?" do after do # Reset the memoisation after each test environment.remove_instance_vari...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/update_graph_processor_spec.rb
Ruby
mit
5,556
main
27,023
# typed: false # frozen_string_literal: true require "spec_helper" require "support/dependency_file_helpers" require "dependabot/bundler" require "dependabot/service" require "dependabot/update_graph_processor" RSpec.describe Dependabot::UpdateGraphProcessor do subject(:update_graph_processor) do described_cl...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/dependency_change_builder_spec.rb
Ruby
mit
5,556
main
9,332
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency_change_builder" require "dependabot/dependency_file" require "dependabot/job" require "dependabot/bundler" RSpec.describe Dependabot::DependencyChangeBuilder do let(:job) do instance_double( Dependabot::Job,...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/updater_spec.rb
Ruby
mit
5,556
main
90,298
# typed: false # frozen_string_literal: true require "spec_helper" require "bundler/compact_index_client" require "bundler/compact_index_client/updater" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/dependency_snapshot" require "dependabot/file_fetchers" require "dependabot/u...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/job_spec.rb
Ruby
mit
5,556
main
36,589
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/job" require "dependabot/dependency" require "support/dummy_package_manager/dummy" require "dependabot/bundler" RSpec.describe Dependabot::Job do subject(:job) { described_class.new(attributes) } let(:attributes) do { ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/update_files_command_spec.rb
Ruby
mit
5,556
main
14,149
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/update_files_command" require "dependabot/bundler" require "tmpdir" RSpec.describe Dependabot::UpdateFilesCommand do subject(:job) { described_class.new(fetched_files) } let(:service) do instance_double( Dependabot::...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/service_spec.rb
Ruby
mit
5,556
main
23,238
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/api_client" require "dependabot/dependency" require "dependabot/dependency_change" require "dependabot/dependency_file" require "dependabot/dependency_snapshot" require "dependabot/errors" require "dependabot/pull_request_creator" r...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/dependency_snapshot_spec.rb
Ruby
mit
5,556
main
17,906
# typed: false # frozen_string_literal: true require "spec_helper" require "support/dependency_file_helpers" require "dependabot/dependency_file" require "dependabot/errors" require "dependabot/fetched_files" require "dependabot/dependency_snapshot" require "dependabot/job" require "dependabot/bundler" RSpec.descr...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/dependency_attribution_spec.rb
Ruby
mit
5,556
main
6,077
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_attribution" RSpec.describe Dependabot::DependencyAttribution do let(:dependency) do Dependabot::Dependency.new( name: "test-dependency", requirements: [], package_...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/file_fetcher_command_spec.rb
Ruby
mit
5,556
main
26,886
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/file_fetcher_command" require "dependabot/errors" require "tmpdir" require "fileutils" require "support/dummy_package_manager/dummy" require "dependabot/bundler" RSpec.describe Dependabot::FileFetcherCommand do subject(:job) { ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/api_client_spec.rb
Ruby
mit
5,556
main
24,609
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_change" require "dependabot/dependency_file" require "dependabot/pull_request_creator" require "dependabot/api_client" RSpec.describe Dependabot::ApiClient do subject(:client) { describe...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/dependency_group_engine_spec.rb
Ruby
mit
5,556
main
30,915
# typed: false # frozen_string_literal: true require "spec_helper" require "support/dependency_file_helpers" require "dependabot/dependency" require "dependabot/dependency_group_engine" require "dependabot/dependency_snapshot" require "dependabot/job" require "dependabot/experiments" RSpec.describe Dependabot::Depen...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/pull_request_spec.rb
Ruby
mit
5,556
main
9,354
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/pull_request" RSpec.describe Dependabot::PullRequest do context "when there are different formats from the job" do let(:existing_pull_requests) do [[{ "dependency-name" => "foo", "dependency-version" => "1.0.0", "direct...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/dependency_change_spec.rb
Ruby
mit
5,556
main
15,507
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/pull_request_creator" require "dependabot/dependency_change" require "dependabot/job" require "dependabot/pull_request" RSpec.describe Dependabot::DependencyChang...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/updater/pattern_specificity_calculator_spec.rb
Ruby
mit
5,556
main
17,108
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_group" require "dependabot/updater/pattern_specificity_calculator" RSpec.describe Dependabot::Updater::PatternSpecificityCalculator do let(:calculator) { described_class.new } describ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/updater/pull_request_helpers_spec.rb
Ruby
mit
5,556
main
2,263
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/updater" require "dependabot/ecosystem" require "dependabot/notices" require "dependabot/service" RSpec.describe Dependabot::Updater::PullRequestHelpers do let(:dummy_class) do Class.new do include Dependabot::Updater::...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/updater/group_dependency_selector_spec.rb
Ruby
mit
5,556
main
58,676
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_group" require "dependabot/job" require "dependabot/updater/group_dependency_selector" RSpec.describe Dependabot::Updater::GroupDependencySelector do let(:group_name) { "backend-dependen...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/updater/error_handler_spec.rb
Ruby
mit
5,556
main
14,950
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_group" require "dependabot/errors" require "dependabot/job" require "dependabot/service" require "dependabot/shared_helpers" require "dependabot/updater/error_handler" RSpec.describe Depe...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/updater/dependency_group_change_batch_spec.rb
Ruby
mit
5,556
main
2,120
# typed: false # frozen_string_literal: true require "dependabot/dependency_file" require "dependabot/job" require "dependabot/source" require "dependabot/updater/operations" require "spec_helper" RSpec.describe Dependabot::Updater::DependencyGroupChangeBatch do describe "current_dependency_files" do let(:file...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/updater/group_update_creation_spec.rb
Ruby
mit
5,556
main
26,357
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/updater/group_update_creation" require "dependabot/dependency_snapshot" require "dependabot/updater/error_handler" require "dependabot/job" require "dependabot/dependency_group" require "dependabot/dependency" require "dependabot/up...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/updater/update_type_helper_spec.rb
Ruby
mit
5,556
main
7,677
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/updater/update_type_helper" require "support/dummy_package_manager/version" RSpec.describe Dependabot::Updater::UpdateTypeHelper do # Create a test class that includes the module let(:helper_class) do Class.new do inc...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/updater/operations_spec.rb
Ruby
mit
5,556
main
6,425
# typed: false # frozen_string_literal: true require "dependabot/job" require "dependabot/updater/operations" require "spec_helper" RSpec.describe Dependabot::Updater::Operations do describe "::class_for" do after do Dependabot::Experiments.reset! end it "returns the UpdateAllVersions class when...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/updater/operations/group_update_all_versions_spec.rb
Ruby
mit
5,556
main
14,254
# typed: false # frozen_string_literal: true require "spec_helper" require "support/dummy_pkg_helpers" require "support/dependency_file_helpers" require "dependabot/dependency_change" require "dependabot/dependency_snapshot" require "dependabot/service" require "dependabot/fetched_files" require "dependabot/updater/e...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/updater/operations/refresh_security_update_pull_request_spec.rb
Ruby
mit
5,556
main
12,783
# typed: false # frozen_string_literal: true require "spec_helper" require "support/dummy_pkg_helpers" require "support/dependency_file_helpers" require "dependabot/fetched_files" require "dependabot/dependency_change" require "dependabot/dependency_snapshot" require "dependabot/service" require "dependabot/updater/er...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/updater/operations/refresh_version_update_pull_request_spec.rb
Ruby
mit
5,556
main
11,391
# typed: false # frozen_string_literal: true require "spec_helper" require "support/dummy_pkg_helpers" require "support/dependency_file_helpers" require "dependabot/dependency_change" require "dependabot/dependency_snapshot" require "dependabot/service" require "dependabot/updater/error_handler" require "dependabot/u...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/updater/operations/refresh_group_update_pull_request_spec.rb
Ruby
mit
5,556
main
25,812
# typed: false # frozen_string_literal: true require "spec_helper" require "support/dummy_pkg_helpers" require "support/dependency_file_helpers" require "dependabot/dependency_change" require "dependabot/dependency_snapshot" require "dependabot/service" require "dependabot/updater/error_handler" require "dependabot/u...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/updater/operations/create_group_update_pull_request_spec.rb
Ruby
mit
5,556
main
8,750
# typed: false # frozen_string_literal: true require "spec_helper" require "support/dummy_pkg_helpers" require "support/dependency_file_helpers" require "dependabot/dependency_change" require "dependabot/dependency_snapshot" require "dependabot/service" require "dependabot/updater/error_handler" require "dependabot/u...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/updater/operations/update_all_versions_spec.rb
Ruby
mit
5,556
main
14,254
# typed: false # frozen_string_literal: true require "spec_helper" require "support/dummy_pkg_helpers" require "support/dependency_file_helpers" require "dependabot/dependency_change" require "dependabot/dependency_snapshot" require "dependabot/service" require "dependabot/updater/error_handler" require "dependabot/u...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/updater/operations/create_security_update_pull_request_spec.rb
Ruby
mit
5,556
main
14,526
# typed: false # frozen_string_literal: true require "spec_helper" require "support/dummy_pkg_helpers" require "support/dependency_file_helpers" require "dependabot/dependency_change" require "dependabot/dependency_snapshot" require "dependabot/service" require "dependabot/updater/error_handler" require "dependabot/u...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/logger/basic_formatter_spec.rb
Ruby
mit
5,556
main
684
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/logger/formats" RSpec.describe Dependabot::Logger::BasicFormatter do describe "#call" do it "returns a formatted log line" do formatter = described_class.new log_line = formatter.call("INFO", Time.now, "progname",...