repo stringlengths 5 92 | file_url stringlengths 80 287 | file_path stringlengths 5 197 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:37:27 2026-01-04 17:58:21 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/spec/dependabot/bun/file_parser/lockfile_parser_spec.rb | bun/spec/dependabot/bun/file_parser/lockfile_parser_spec.rb | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/bun"
RSpec.describe Dependabot::Bun::FileParser::LockfileParser do
subject(:lockfile_parser) do
described_class.new(dependency_files: dependency_files)
end
describe "#parse" do
subject(:dependencies) { lockfile_parse... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/spec/dependabot/bun/package/registry_finder_spec.rb | bun/spec/dependabot/bun/package/registry_finder_spec.rb | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/credential"
require "dependabot/bun/package/registry_finder"
RSpec.describe Dependabot::Bun::Package::RegistryFinder do
subject(:finder) do
described_class.new(
dependency: dependency,
credentials: credentials,
... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/spec/dependabot/bun/package/package_details_fetcher_spec.rb | bun/spec/dependabot/bun/package/package_details_fetcher_spec.rb | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/credential"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/bun/package/package_details_fetcher"
require "dependabot/bun/version"
require "dependabot/bun/requirement"
require "dependabot/pack... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/spec/dependabot/bun/update_checker/package_latest_version_finder_spec.rb | bun/spec/dependabot/bun/update_checker/package_latest_version_finder_spec.rb | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/bun/update_checker/latest_version_finder"
require "dependabot/credential"
require "dependabot/security_advisory"
require "dependabot/package/release_cooldown_optio... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | true |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/spec/dependabot/bun/update_checker/version_resolver_spec.rb | bun/spec/dependabot/bun/update_checker/version_resolver_spec.rb | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/bun/update_checker/version_resolver"
RSpec.describe Dependabot::Bun::UpdateChecker::VersionResolver do
let(:resolver) do
described_class.new(
dependen... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun.rb | bun/lib/dependabot/bun.rb | # 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/bun/file_fetcher"
require "dependabot/bun/file_parser"
require "dependabot/bun/update_checker"
require "dependabot... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/file_fetcher.rb | bun/lib/dependabot/bun/file_fetcher.rb | # typed: strict
# frozen_string_literal: true
require "json"
require "sorbet-runtime"
require "dependabot/experiments"
require "dependabot/logger"
require "dependabot/file_fetchers"
require "dependabot/file_fetchers/base"
require "dependabot/bun/helpers"
require "dependabot/bun/package_manager"
require "dependabot/bun... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/constraint_helper.rb | bun/lib/dependabot/bun/constraint_helper.rb | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
module Bun
module ConstraintHelper
extend T::Sig
# Regex Components for Semantic Versioning
DIGIT = "\\d+" # Matches a single number (e.g., "1")
PRERELEASE = "(?:-[a-zA-Z... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/language.rb | bun/lib/dependabot/bun/language.rb | # typed: strong
# frozen_string_literal: true
require "dependabot/bun/package_manager"
module Dependabot
module Bun
class Language < Ecosystem::VersionManager
extend T::Sig
NAME = "node"
SUPPORTED_VERSIONS = T.let([].freeze, T::Array[Dependabot::Version])
DEPRECATED_VERSIONS = T.let([... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/file_updater.rb | bun/lib/dependabot/bun/file_updater.rb | # typed: strong
# frozen_string_literal: true
require "dependabot/file_updaters"
require "dependabot/file_updaters/base"
require "dependabot/file_updaters/vendor_updater"
require "dependabot/file_updaters/artifact_updater"
require "dependabot/bun/dependency_files_filterer"
require "dependabot/bun/sub_dependency_files_... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/version.rb | bun/lib/dependabot/bun/version.rb | # typed: strict
# frozen_string_literal: true
require "dependabot/version"
require "dependabot/utils"
require "sorbet-runtime"
# JavaScript pre-release versions use 1.0.1-rc1 syntax, which Gem::Version
# converts into 1.0.1.pre.rc1. We override the `to_s` method to stop that
# alteration.
#
# See https://semver.org/ ... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/requirement.rb | bun/lib/dependabot/bun/requirement.rb | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/requirement"
require "dependabot/utils"
require "dependabot/bun/version"
module Dependabot
module Bun
class Requirement < Dependabot::Requirement
extend T::Sig
AND_SEPARATOR = T.let(/(?<=[a-zA-Z0-9*])\s+(?:&... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/version_selector.rb | bun/lib/dependabot/bun/version_selector.rb | # typed: strict
# frozen_string_literal: true
require "dependabot/shared_helpers"
require "dependabot/bun/constraint_helper"
module Dependabot
module Bun
class VersionSelector
extend T::Sig
extend T::Helpers
# For limited testing, allowing only specific versions defined in engines in package.... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/package_manager.rb | bun/lib/dependabot/bun/package_manager.rb | # typed: strict
# frozen_string_literal: true
require "dependabot/shared_helpers"
require "dependabot/ecosystem"
require "dependabot/bun/requirement"
require "dependabot/bun/version_selector"
require "dependabot/bun/registry_helper"
require "dependabot/bun/bun_package_manager"
require "dependabot/bun/language"
require... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/sub_dependency_files_filterer.rb | bun/lib/dependabot/bun/sub_dependency_files_filterer.rb | # typed: strong
# frozen_string_literal: true
require "dependabot/utils"
require "dependabot/bun/version"
require "dependabot/bun/file_parser/lockfile_parser"
require "sorbet-runtime"
# Used in the sub dependency version resolver and file updater to only run
# yarn/npm helpers on dependency files that require updates... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/update_checker.rb | bun/lib/dependabot/bun/update_checker.rb | # typed: strict
# frozen_string_literal: true
require "dependabot/git_commit_checker"
require "dependabot/requirements_update_strategy"
require "dependabot/shared_helpers"
require "dependabot/update_checkers"
require "dependabot/update_checkers/base"
module Dependabot
module Bun
class UpdateChecker < Dependabot... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/package_name.rb | bun/lib/dependabot/bun/package_name.rb | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
module Bun
class PackageName
extend T::Sig
# NPM package naming rules are defined by the following projects:
# - https://github.com/npm/npm-user-validate
# - https://github.com/npm/validate-npm-pack... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/helpers.rb | bun/lib/dependabot/bun/helpers.rb | # typed: strong
# frozen_string_literal: true
require "dependabot/dependency"
require "dependabot/file_parsers"
require "dependabot/file_parsers/base"
require "dependabot/shared_helpers"
require "sorbet-runtime"
module Dependabot
module Bun
module Helpers
extend T::Sig
# BUN Version Constants
... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/registry_parser.rb | bun/lib/dependabot/bun/registry_parser.rb | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
module Bun
class RegistryParser
extend T::Sig
sig { params(resolved_url: String, credentials: T::Array[Dependabot::Credential]).void }
def initialize(resolved_url:, credentials:)
@resolved_url = r... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/native_helpers.rb | bun/lib/dependabot/bun/native_helpers.rb | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
module Bun
module NativeHelpers
extend T::Sig
sig { returns(String) }
def self.helper_path
"node #{File.join(native_helpers_root, 'run.js')}"
end
sig { returns(String) }
def sel... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/bun_package_manager.rb | bun/lib/dependabot/bun/bun_package_manager.rb | # typed: strong
# frozen_string_literal: true
module Dependabot
module Bun
class BunPackageManager < Ecosystem::VersionManager
extend T::Sig
NAME = "bun"
LOCKFILE_NAME = "bun.lock"
RC_FILENAME = ".npmrc"
# In Bun 1.1.39, the lockfile format was changed from a binary bun.lockb to a... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/pnpm_package_manager.rb | bun/lib/dependabot/bun/pnpm_package_manager.rb | # typed: strong
# frozen_string_literal: true
require "dependabot/bun/package_manager"
module Dependabot
module Bun
class PNPMPackageManager < Ecosystem::VersionManager
extend T::Sig
NAME = "pnpm"
LOCKFILE_NAME = "pnpm-lock.yaml"
PNPM_WS_YML_FILENAME = "pnpm-workspace.yaml"
PNPM_... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/metadata_finder.rb | bun/lib/dependabot/bun/metadata_finder.rb | # typed: strict
# frozen_string_literal: true
require "excon"
require "sorbet-runtime"
require "time"
require "dependabot/metadata_finders"
require "dependabot/metadata_finders/base"
require "dependabot/registry_client"
require "dependabot/bun/package/registry_finder"
require "dependabot/bun/version"
module Dependab... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/registry_helper.rb | bun/lib/dependabot/bun/registry_helper.rb | # typed: strict
# frozen_string_literal: true
require "yaml"
require "dependabot/dependency_file"
require "sorbet-runtime"
module Dependabot
module Bun
class RegistryHelper
extend T::Sig
# Keys for configurations
REGISTRY_KEY = "registry"
AUTH_KEY = "authToken"
# Yarn-specific ke... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/file_parser.rb | bun/lib/dependabot/bun/file_parser.rb | # typed: strict
# frozen_string_literal: true
# See https://docs.npmjs.com/files/package.json for package.json format docs.
require "dependabot/dependency"
require "dependabot/file_parsers"
require "dependabot/file_parsers/base"
require "dependabot/shared_helpers"
require "dependabot/bun/helpers"
require "dependabot/... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/dependency_files_filterer.rb | bun/lib/dependabot/bun/dependency_files_filterer.rb | # typed: strict
# frozen_string_literal: true
require "dependabot/utils"
require "dependabot/bun/file_parser/lockfile_parser"
require "sorbet-runtime"
# Used in the version resolver and file updater to only run yarn/npm helpers on
# dependency files that require updates. This is useful for large monorepos with
# lots... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/file_parser/bun_lock.rb | bun/lib/dependabot/bun/file_parser/bun_lock.rb | # typed: strict
# frozen_string_literal: true
require "yaml"
require "dependabot/errors"
require "dependabot/bun/helpers"
require "sorbet-runtime"
module Dependabot
module Bun
class FileParser < Dependabot::FileParsers::Base
class BunLock
extend T::Sig
sig { params(dependency_file: Depend... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/file_parser/lockfile_parser.rb | bun/lib/dependabot/bun/file_parser/lockfile_parser.rb | # typed: strict
# frozen_string_literal: true
require "dependabot/dependency_file"
require "dependabot/bun/file_parser"
require "dependabot/bun/helpers"
require "sorbet-runtime"
module Dependabot
module Bun
class FileParser < Dependabot::FileParsers::Base
class LockfileParser
extend T::Sig
... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/package/registry_finder.rb | bun/lib/dependabot/bun/package/registry_finder.rb | # typed: strict
# frozen_string_literal: true
require "excon"
require "dependabot/bun/update_checker"
require "dependabot/registry_client"
require "sorbet-runtime"
module Dependabot
module Bun
module Package
class RegistryFinder
extend T::Sig
GLOBAL_NPM_REGISTRY = "https://registry.npmjs.... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/package/package_details_fetcher.rb | bun/lib/dependabot/bun/package/package_details_fetcher.rb | # typed: strict
# frozen_string_literal: true
require "json"
require "excon"
require "time"
require "dependabot/package/package_release"
require "dependabot/package/package_details"
require "dependabot/bun/package/registry_finder"
module Dependabot
module Bun
module Package
class PackageDetailsFetcher
... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/update_checker/conflicting_dependency_resolver.rb | bun/lib/dependabot/bun/update_checker/conflicting_dependency_resolver.rb | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/dependency"
require "dependabot/errors"
require "dependabot/logger"
require "dependabot/bun/file_parser"
require "dependabot/bun/helpers"
require "dependabot/bun/native_helpers"
require "dependabot/bun/update_checker"
require "... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/update_checker/library_detector.rb | bun/lib/dependabot/bun/update_checker/library_detector.rb | # typed: strict
# frozen_string_literal: true
require "excon"
require "sorbet-runtime"
require "dependabot/bun/update_checker"
require "dependabot/shared_helpers"
module Dependabot
module Bun
class UpdateChecker
class LibraryDetector
extend T::Sig
sig do
params(
pac... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/update_checker/latest_version_finder.rb | bun/lib/dependabot/bun/update_checker/latest_version_finder.rb | # typed: strict
# frozen_string_literal: true
require "excon"
require "dependabot/errors"
require "dependabot/shared_helpers"
require "dependabot/package/package_latest_version_finder"
require "dependabot/bun/update_checker"
require "dependabot/update_checkers/version_filters"
require "dependabot/bun/package/registry_... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/update_checker/vulnerability_auditor.rb | bun/lib/dependabot/bun/update_checker/vulnerability_auditor.rb | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "stringio"
require "dependabot/dependency"
require "dependabot/errors"
require "dependabot/logger"
require "dependabot/bun/file_parser"
require "dependabot/bun/helpers"
require "dependabot/bun/native_helpers"
require "dependabot/bun/update... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/update_checker/version_resolver.rb | bun/lib/dependabot/bun/update_checker/version_resolver.rb | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/errors"
require "dependabot/git_commit_checker"
require "dependabot/logger"
require "dependabot/bun/dependency_files_filterer"
require "dependabot/bun/file_parser"
require "dependabot/bun/file_updater/npmrc_builder"
require "de... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/update_checker/requirements_updater.rb | bun/lib/dependabot/bun/update_checker/requirements_updater.rb | # typed: strict
# frozen_string_literal: true
################################################################################
# For more details on npm version constraints, see: #
# https://docs.npmjs.com/misc/semver #
##############################... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/update_checker/subdependency_version_resolver.rb | bun/lib/dependabot/bun/update_checker/subdependency_version_resolver.rb | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/dependency"
require "dependabot/errors"
require "dependabot/logger"
require "dependabot/bun/file_parser"
require "dependabot/bun/helpers"
require "dependabot/bun/native_helpers"
require "dependabot/bun/sub_dependency_files_filt... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/update_checker/dependency_files_builder.rb | bun/lib/dependabot/bun/update_checker/dependency_files_builder.rb | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/bun/file_updater/npmrc_builder"
require "dependabot/bun/file_updater/package_json_preparer"
module Dependabot
module Bun
class UpdateChecker
class DependencyFilesBuilder
extend T::Sig
sig do
... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/file_fetcher/path_dependency_builder.rb | bun/lib/dependabot/bun/file_fetcher/path_dependency_builder.rb | # typed: strict
# frozen_string_literal: true
require "json"
require "dependabot/dependency_file"
require "dependabot/errors"
require "dependabot/bun/file_fetcher"
require "sorbet-runtime"
module Dependabot
module Bun
class FileFetcher
class PathDependencyBuilder
extend T::Sig
sig do
... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/file_updater/bun_lockfile_updater.rb | bun/lib/dependabot/bun/file_updater/bun_lockfile_updater.rb | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/bun/helpers"
require "dependabot/bun/package/registry_finder"
require "dependabot/bun/registry_parser"
require "dependabot/shared_helpers"
module Dependabot
module Bun
class FileUpdater < Dependabot::FileUpdaters::Base
... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/file_updater/npmrc_builder.rb | bun/lib/dependabot/bun/file_updater/npmrc_builder.rb | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/bun/file_updater"
module Dependabot
module Bun
class FileUpdater < Dependabot::FileUpdaters::Base
# Build a .npmrc file from the lockfile content, credentials, and any
# committed .npmrc
# We should ref... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/file_updater/package_json_preparer.rb | bun/lib/dependabot/bun/file_updater/package_json_preparer.rb | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/bun/file_updater"
require "dependabot/bun/file_parser"
module Dependabot
module Bun
class FileUpdater < Dependabot::FileUpdaters::Base
class PackageJsonPreparer
extend T::Sig
sig { params(package_j... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/bun/lib/dependabot/bun/file_updater/package_json_updater.rb | bun/lib/dependabot/bun/file_updater/package_json_updater.rb | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/bun/file_updater"
module Dependabot
module Bun
class FileUpdater < Dependabot::FileUpdaters::Base
class PackageJsonUpdater
extend T::Sig
LOCAL_PACKAGE = T.let([/portal:/, /file:/].freeze, T::Array[... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/nuget/spec/dependabot/nuget_spec.rb | nuget/spec/dependabot/nuget_spec.rb | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/nuget"
require "dependabot/utils"
require "dependabot/pull_request_creator/labeler"
require "dependabot/dependency"
RSpec.describe Dependabot::Nuget do
let(:package_manager) { "nuget" }
describe "registration" do
it "regis... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/nuget/spec/dependabot/nuget/requirement_spec.rb | nuget/spec/dependabot/nuget/requirement_spec.rb | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/nuget/requirement"
require "dependabot/nuget/version"
RSpec.describe Dependabot::Nuget::Requirement do
subject(:requirement) { described_class.new(requirement_string) }
let(:requirement_string) { ">=1.0.0" }
describe ".new"... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/nuget/spec/dependabot/nuget/version_spec.rb | nuget/spec/dependabot/nuget/version_spec.rb | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/nuget/version"
RSpec.describe Dependabot::Nuget::Version do
subject(:version) { described_class.new(version_string) }
let(:version_string) { "1.0.0" }
describe ".correct?" do
subject { described_class.correct?(version_s... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/nuget/lib/dependabot/nuget.rb | nuget/lib/dependabot/nuget.rb | # typed: strict
# frozen_string_literal: true
# These files are part of the Dependabot Core library, which provides
# functionality for managing dependencies across various ecosystems.
# This file specifically handles the NuGet package management system.
require "dependabot/nuget/requirement"
require "dependabot/nuget... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/nuget/lib/dependabot/nuget/version.rb | nuget/lib/dependabot/nuget/version.rb | # typed: strong
# frozen_string_literal: true
require "dependabot/version"
require "dependabot/utils"
require "sorbet-runtime"
# Dotnet pre-release versions use 1.0.1-rc1 syntax, which Gem::Version
# converts into 1.0.1.pre.rc1. We override the `to_s` method to stop that
# alteration.
# Dotnet also supports build ver... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/nuget/lib/dependabot/nuget/requirement.rb | nuget/lib/dependabot/nuget/requirement.rb | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/requirement"
require "dependabot/utils"
require "dependabot/nuget/version"
# For details on .NET version constraints see:
# https://docs.microsoft.com/en-us/nuget/reference/package-versioning
module Dependabot
module Nuget
... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/silent/lib/dependabot/silent.rb | silent/lib/dependabot/silent.rb | # 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/silent/file_fetcher"
require "dependabot/silent/file_parser"
require "dependabot/silent/update_checker"
require "d... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/silent/lib/dependabot/silent/file_fetcher.rb | silent/lib/dependabot/silent/file_fetcher.rb | # typed: strong
# frozen_string_literal: true
require "dependabot/file_fetchers"
require "dependabot/file_fetchers/base"
require "sorbet-runtime"
module SilentPackageManager
class FileFetcher < Dependabot::FileFetchers::Base
extend T::Sig
sig { override.returns(T::Array[Dependabot::DependencyFile]) }
d... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/silent/lib/dependabot/silent/file_updater.rb | silent/lib/dependabot/silent/file_updater.rb | # typed: strict
# frozen_string_literal: true
require "dependabot/file_updaters"
require "dependabot/file_updaters/base"
require "sorbet-runtime"
module SilentPackageManager
class FileUpdater < Dependabot::FileUpdaters::Base
extend T::Sig
sig { override.returns(T::Array[Dependabot::DependencyFile]) }
d... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/silent/lib/dependabot/silent/version.rb | silent/lib/dependabot/silent/version.rb | # typed: strong
# frozen_string_literal: true
require "dependabot/version"
require "dependabot/utils"
module SilentPackageManager
class Version < Dependabot::Version
end
end
Dependabot::Utils
.register_version_class("silent", SilentPackageManager::Version)
| ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/silent/lib/dependabot/silent/requirement.rb | silent/lib/dependabot/silent/requirement.rb | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/requirement"
require "dependabot/utils"
module SilentPackageManager
class Requirement < Dependabot::Requirement
extend T::Sig
AND_SEPARATOR = /(?<=[a-zA-Z0-9*])\s+(?:&+\s+)?(?!\s*[|-])/
sig { override.params(re... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/silent/lib/dependabot/silent/package_manager.rb | silent/lib/dependabot/silent/package_manager.rb | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/silent/version"
require "dependabot/ecosystem"
module Dependabot
module Silent
ECOSYSYEM = "silent"
PACKAGE_MANAGER = "silent"
SUPPORTED_SILENT_VERSIONS = T.let([Version.new("2")].freeze, T::Array[Dependabot::Ver... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/silent/lib/dependabot/silent/update_checker.rb | silent/lib/dependabot/silent/update_checker.rb | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/update_checkers"
require "dependabot/update_checkers/base"
require "dependabot/errors"
require "dependabot/update_checkers/version_filters"
module SilentPackageManager
class UpdateChecker < Dependabot::UpdateCheckers::Base
... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/silent/lib/dependabot/silent/metadata_finder.rb | silent/lib/dependabot/silent/metadata_finder.rb | # typed: strong
# frozen_string_literal: true
require "dependabot/metadata_finders"
require "dependabot/metadata_finders/base"
module Dependabot
module Silent
class MetadataFinder < Dependabot::MetadataFinders::Base
extend T::Sig
sig { returns(String) }
def homepage_url
""
end
... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/silent/lib/dependabot/silent/file_parser.rb | silent/lib/dependabot/silent/file_parser.rb | # typed: strict
# frozen_string_literal: true
require "dependabot/dependency"
require "dependabot/file_parsers"
require "dependabot/file_parsers/base"
require "dependabot/ecosystem"
require "dependabot/silent/package_manager"
require "sorbet-runtime"
module SilentPackageManager
class FileParser < Dependabot::FilePa... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/bin/update_graph.rb | updater/bin/update_graph.rb | # 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... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/bin/update_files.rb | updater/bin/update_files.rb | # 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... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/spec_helper.rb | updater/spec/spec_helper.rb | # typed: false
# frozen_string_literal: true
require "dependabot/logger"
require "logger"
require "rspec/sorbet"
require "vcr"
require "webmock/rspec"
require "yaml"
# Load common spec helpers for build_tmp_repo
common_dir = Gem::Specification.find_by_name("dependabot-common").gem_dir
require "#{common_dir}/spec/spec... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/support/dummy_pkg_helpers.rb | updater/spec/support/dummy_pkg_helpers.rb | # typed: false
# frozen_string_literal: true
require "dependabot/ecosystem"
require "dependabot/dependency_file"
# This module provides some shortcuts for working with our two mock RubyGems packages:
# - https://rubygems.org/gems/dummy-pkg-a
# - https://rubygems.org/gems/dummy-pkg-b
#
module DummyPkgHelpers
def stu... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/support/dependency_file_helpers.rb | updater/spec/support/dependency_file_helpers.rb | # typed: false
# frozen_string_literal: true
module DependencyFileHelpers
def encode_dependency_files(files)
files.map do |file|
base64_file = file.dup
base64_file.content = Base64.encode64(file.content) unless file.binary?
base64_file.to_h
end
end
end
| ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/support/dummy_package_manager/file_fetcher.rb | updater/spec/support/dummy_package_manager/file_fetcher.rb | # typed: false
# frozen_string_literal: true
require "dependabot/file_fetchers"
require "dependabot/file_fetchers/base"
module DummyPackageManager
class FileFetcher < Dependabot::FileFetchers::Base
def fetch_files
[a_dummy, b_dummy].compact
end
private
def a_dummy
fetch_file_if_present... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/support/dummy_package_manager/file_updater.rb | updater/spec/support/dummy_package_manager/file_updater.rb | # typed: false
# frozen_string_literal: true
require "dependabot/file_updaters"
require "dependabot/file_updaters/base"
module DummyPackageManager
class FileUpdater < Dependabot::FileUpdaters::Base
def updated_dependency_files
updated_files = []
dependency_files.each do |file|
next unless re... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/support/dummy_package_manager/version.rb | updater/spec/support/dummy_package_manager/version.rb | # typed: false
# frozen_string_literal: true
require "dependabot/version"
require "dependabot/utils"
module DummyPackageManager
class Version < Dependabot::Version
end
end
Dependabot::Utils
.register_version_class("dummy", DummyPackageManager::Version)
| ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/support/dummy_package_manager/requirement.rb | updater/spec/support/dummy_package_manager/requirement.rb | # typed: false
# frozen_string_literal: true
require "dependabot/requirement"
require "dependabot/utils"
module DummyPackageManager
class Requirement < Dependabot::Requirement
AND_SEPARATOR = /(?<=[a-zA-Z0-9*])\s+(?:&+\s+)?(?!\s*[|-])/
def self.requirements_array(requirement_string)
requirements = re... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/support/dummy_package_manager/update_checker.rb | updater/spec/support/dummy_package_manager/update_checker.rb | # typed: false
# frozen_string_literal: true
require "dependabot/update_checkers"
require "dependabot/update_checkers/base"
require "dependabot/errors"
module DummyPackageManager
class UpdateChecker < Dependabot::UpdateCheckers::Base
def latest_version
"9.9.9"
end
def up_to_date?
false
... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/support/dummy_package_manager/dummy.rb | updater/spec/support/dummy_package_manager/dummy.rb | # typed: false
# frozen_string_literal: true
require_relative "version"
require_relative "requirement"
require_relative "file_fetcher"
require_relative "file_parser"
require_relative "update_checker"
require_relative "file_updater"
require "dependabot/dependency"
Dependabot::Dependency.register_production_check(
"... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/support/dummy_package_manager/file_parser.rb | updater/spec/support/dummy_package_manager/file_parser.rb | # typed: false
# frozen_string_literal: true
require "dependabot/dependency"
require "dependabot/file_parsers"
require "dependabot/file_parsers/base"
module DummyPackageManager
class FileParser < Dependabot::FileParsers::Base
require "dependabot/file_parsers/base/dependency_set"
def parse
dependency_... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/github_api/dependency_submission_spec.rb | updater/spec/github_api/dependency_submission_spec.rb | # 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"
RSpec.shared_examples "dependenc... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/notices_helpers_spec.rb | updater/spec/dependabot/notices_helpers_spec.rb | # 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... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/update_graph_processor_spec.rb | updater/spec/dependabot/update_graph_processor_spec.rb | # 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... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/api_client_spec.rb | updater/spec/dependabot/api_client_spec.rb | # 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... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/dependency_change_spec.rb | updater/spec/dependabot/dependency_change_spec.rb | # 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... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/file_fetcher_command_spec.rb | updater/spec/dependabot/file_fetcher_command_spec.rb | # 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) { ... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/update_files_command_spec.rb | updater/spec/dependabot/update_files_command_spec.rb | # 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::... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/service_spec.rb | updater/spec/dependabot/service_spec.rb | # typed: false
# frozen_string_literal: true
require "ostruct"
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... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/updater_spec.rb | updater/spec/dependabot/updater_spec.rb | # 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... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | true |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/dependency_group_engine_spec.rb | updater/spec/dependabot/dependency_group_engine_spec.rb | # 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... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/dependency_change_builder_spec.rb | updater/spec/dependabot/dependency_change_builder_spec.rb | # 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,... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/dependency_attribution_spec.rb | updater/spec/dependabot/dependency_attribution_spec.rb | # 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_... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/dependency_snapshot_spec.rb | updater/spec/dependabot/dependency_snapshot_spec.rb | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "support/dependency_file_helpers"
require "dependabot/dependency_file"
require "dependabot/errors"
require "dependabot/dependency_snapshot"
require "dependabot/job"
require "dependabot/bundler"
RSpec.describe Dependabot::DependencySnapshot ... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/job_spec.rb | updater/spec/dependabot/job_spec.rb | # 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
{
... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/environment_spec.rb | updater/spec/dependabot/environment_spec.rb | # 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... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/pull_request_spec.rb | updater/spec/dependabot/pull_request_spec.rb | # 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... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/update_graph_command_spec.rb | updater/spec/dependabot/update_graph_command_spec.rb | # 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::... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/sentry/sentry_context_processor_spec.rb | updater/spec/dependabot/sentry/sentry_context_processor_spec.rb | # typed: false
# frozen_string_literal: true
require "sentry-ruby"
require "spec_helper"
require "dependabot/errors"
require "dependabot/sentry/sentry_context_processor"
RSpec.describe SentryContext do
subject { event }
let(:sentry_context) { { foo: "bar" } }
let(:exception) { double(::Dependabot::DependabotE... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/sentry/exception_sanitizer_processor_spec.rb | updater/spec/dependabot/sentry/exception_sanitizer_processor_spec.rb | # typed: false
# frozen_string_literal: true
require "sentry-ruby"
require "spec_helper"
require "dependabot/sentry/exception_sanitizer_processor"
RSpec.describe ExceptionSanitizer do
subject { exception }
let(:message) { "kaboom" }
let(:exception) { instance_double(::Sentry::SingleExceptionInterface, value: ... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/logger/job_formatter_spec.rb | updater/spec/dependabot/logger/job_formatter_spec.rb | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/logger/formats"
RSpec.describe Dependabot::Logger::JobFormatter do
describe "#new" do
it "returns a formatter when provided a job_id" do
formatter = described_class.new("job_id")
expect(formatter).to be_a(describe... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/logger/basic_formatter_spec.rb | updater/spec/dependabot/logger/basic_formatter_spec.rb | # 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",... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/updater/error_handler_spec.rb | updater/spec/dependabot/updater/error_handler_spec.rb | # 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... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/updater/group_update_creation_spec.rb | updater/spec/dependabot/updater/group_update_creation_spec.rb | # 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... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/updater/pattern_specificity_calculator_spec.rb | updater/spec/dependabot/updater/pattern_specificity_calculator_spec.rb | # 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... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/updater/pull_request_helpers_spec.rb | updater/spec/dependabot/updater/pull_request_helpers_spec.rb | # 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::... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/updater/dependency_group_change_batch_spec.rb | updater/spec/dependabot/updater/dependency_group_change_batch_spec.rb | # 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... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/updater/operations_spec.rb | updater/spec/dependabot/updater/operations_spec.rb | # 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... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/updater/group_dependency_selector_spec.rb | updater/spec/dependabot/updater/group_dependency_selector_spec.rb | # 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... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | true |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/updater/operations/group_update_all_versions_spec.rb | updater/spec/dependabot/updater/operations/group_update_all_versions_spec.rb | # 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... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
dependabot/dependabot-core | https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/updater/spec/dependabot/updater/operations/refresh_group_update_pull_request_spec.rb | updater/spec/dependabot/updater/operations/refresh_group_update_pull_request_spec.rb | # 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... | ruby | MIT | 5f5d8b92c51eefa3ec78a9e208f664e439134d76 | 2026-01-04T15:43:10.347999Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.