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 | common/lib/dependabot/file_updaters.rb | Ruby | mit | 5,556 | main | 808 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/file_updaters/base"
module Dependabot
module FileUpdaters
extend T::Sig
@file_updaters = T.let({}, T::Hash[String, T.class_of(Dependabot::FileUpdaters::Base)])
sig { params(package_manager: String).returns(T.cla... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/ecosystem.rb | Ruby | mit | 5,556 | main | 7,605 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/requirement"
module Dependabot
class Ecosystem
extend T::Sig
class VersionManager
extend T::Sig
extend T::Helpers
DEFAULT_VERSION_PATTERN = /(\d+\.\d+(.\d+)*)/
abstract!
# Initialize v... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/dependency.rb | Ruby | mit | 5,556 | main | 15,200 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/version"
module Dependabot
class Dependency
extend T::Sig
@production_checks = T.let(
{},
T::Hash[String, T.proc.params(arg0: T::Array[T.untyped]).returns(T::Boolean)]
)
@display_name_builders = T... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/utils.rb | Ruby | mit | 5,556 | main | 2,415 | # typed: strong
# frozen_string_literal: true
require "tmpdir"
require "sorbet-runtime"
require "dependabot/requirement"
require "dependabot/version"
require "dependabot/config/file"
# TODO: in due course, these "registries" should live in a wrapper gem, not
# dependabot-core.
module Dependabot
module Utils
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/command_helpers.rb | Ruby | mit | 5,556 | main | 8,793 | # typed: strict
# frozen_string_literal: true
require "open3"
require "timeout"
require "sorbet-runtime"
require "shellwords"
module Dependabot
module CommandHelpers
extend T::Sig
module TIMEOUTS
NO_TIME_OUT = -1 # No timeout
GRARECFULLY_STOP = 5 # 5 seconds for graceful termination
LOCAL... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/file_fetchers.rb | Ruby | mit | 5,556 | main | 808 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/file_fetchers/base"
module Dependabot
module FileFetchers
extend T::Sig
@file_fetchers = T.let({}, T::Hash[String, T.class_of(Dependabot::FileFetchers::Base)])
sig { params(package_manager: String).returns(T.cla... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/shared_helpers.rb | Ruby | mit | 5,556 | main | 18,900 | # typed: strict
# frozen_string_literal: true
require "digest"
require "English"
require "excon"
require "fileutils"
require "json"
require "open3"
require "sorbet-runtime"
require "tmpdir"
require "securerandom"
require "dependabot/credential"
require "dependabot/simple_instrumentor"
require "dependabot/utils"
requi... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/git_tag_with_detail.rb | Ruby | mit | 5,556 | main | 828 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
class GitTagWithDetail
extend T::Sig
sig { returns(String) }
attr_accessor :tag
sig { returns(T.nilable(String)) }
attr_accessor :release_date
sig do
params(
tag: String,
release... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/source.rb | Ruby | mit | 5,556 | main | 7,322 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
class Source
extend T::Sig
GITHUB_SOURCE = %r{
(?<provider>github)
(?:\.com)[/:]
(?<repo>[\w.-]+/(?:[\w.-])+)
(?:(?:/tree|/blob)/(?<branch>[^/]+)/(?<directory>.*)[\#|/])?
}x
GITHUB_ENTE... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/file_filtering.rb | Ruby | mit | 5,556 | main | 3,953 | # typed: strong
# frozen_string_literal: true
module Dependabot
module FileFiltering
extend T::Sig
# Returns true if the given path matches any of the exclude patterns
sig { params(path: String, exclude_patterns: T.nilable(T::Array[String])).returns(T::Boolean) }
def self.exclude_path?(path, exclude... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/logger.rb | Ruby | mit | 5,556 | main | 338 | # typed: strong
# frozen_string_literal: true
require "logger"
require "sorbet-runtime"
module Dependabot
extend T::Sig
sig { returns(::Logger) }
def self.logger
@logger ||= T.let(::Logger.new(nil), T.nilable(::Logger))
end
sig { params(logger: ::Logger).void }
def self.logger=(logger)
@logger =... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/registry_client.rb | Ruby | mit | 5,556 | main | 2,436 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/shared_helpers"
# This class provides a thin wrapper around our normal usage of Excon as a simple HTTP client in order to
# provide some minor caching functionality.
#
# This is not used to support full response caching current... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/experiments.rb | Ruby | mit | 5,556 | main | 623 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
module Experiments
extend T::Sig
@experiments = T.let({}, T::Hash[T.any(String, Symbol), T.untyped])
sig { returns(T::Hash[T.any(String, Symbol), T.untyped]) }
def self.reset!
@experiments = {}
end
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/errors.rb | Ruby | mit | 5,556 | main | 26,578 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/utils"
# rubocop:disable Metrics/ModuleLength
module Dependabot
extend T::Sig
module ErrorAttributes
BACKTRACE = "error-backtrace"
CLASS = "error-class"
DETAILS = "error-details"
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_updater.rb | Ruby | mit | 5,556 | main | 3,914 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/pull_request_updater/github"
require "dependabot/pull_request_updater/gitlab"
require "dependabot/pull_request_updater/azure"
require "dependabot/credential"
module Dependabot
class PullRequestUpdater
extend T::Sig
c... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/update_checkers.rb | Ruby | mit | 5,556 | main | 836 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/update_checkers/base"
module Dependabot
module UpdateCheckers
extend T::Sig
@update_checkers = T.let({}, T::Hash[String, T.class_of(Dependabot::UpdateCheckers::Base)])
sig { params(package_manager: String).retur... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/file_parsers.rb | Ruby | mit | 5,556 | main | 794 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/file_parsers/base"
module Dependabot
module FileParsers
extend T::Sig
@file_parsers = T.let({}, T::Hash[String, T.class_of(Dependabot::FileParsers::Base)])
sig { params(package_manager: String).returns(T.class_o... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/git_metadata_fetcher.rb | Ruby | mit | 5,556 | main | 13,549 | # typed: strict
# frozen_string_literal: true
require "excon"
require "open3"
require "sorbet-runtime"
require "tmpdir"
require "dependabot/errors"
require "dependabot/git_ref"
require "dependabot/git_tag_with_detail"
require "dependabot/credential"
module Dependabot
class GitMetadataFetcher
extend T::Sig
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/metadata_finders/base.rb | Ruby | mit | 5,556 | main | 5,280 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/source"
require "dependabot/credential"
module Dependabot
module MetadataFinders
class Base
extend T::Sig
extend T::Helpers
require "dependabot/metadata_finders/base/changelog_finder"
require "dep... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/metadata_finders/base/commits_finder.rb | Ruby | mit | 5,556 | main | 15,464 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/clients/github_with_retries"
require "dependabot/clients/gitlab_with_retries"
require "dependabot/clients/bitbucket_with_retries"
require "dependabot/shared_helpers"
require "dependabot/git_metadata_fetcher"
require "dependabot/... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/metadata_finders/base/changelog_pruner.rb | Ruby | mit | 5,556 | main | 7,052 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/metadata_finders/base"
module Dependabot
module MetadataFinders
class Base
class ChangelogPruner
extend T::Sig
sig { returns(Dependabot::Dependency) }
attr_reader :dependency
sig { ... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/metadata_finders/base/release_finder.rb | Ruby | mit | 5,556 | main | 14,562 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/credential"
require "dependabot/clients/github_with_retries"
require "dependabot/clients/gitlab_with_retries"
require "dependabot/metadata_finders/base"
require "dependabot/utils"
module Dependabot
module MetadataFinders
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/metadata_finders/base/changelog_finder.rb | Ruby | mit | 5,556 | main | 19,588 | # typed: strict
# frozen_string_literal: true
require "excon"
require "sorbet-runtime"
require "dependabot/clients/github_with_retries"
require "dependabot/clients/gitlab_with_retries"
require "dependabot/clients/bitbucket_with_retries"
require "dependabot/shared_helpers"
require "dependabot/metadata_finders/base"
m... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/workspace/base.rb | Ruby | mit | 5,556 | main | 2,134 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
module Workspace
class Base
extend T::Sig
extend T::Helpers
extend T::Generic
abstract!
sig { returns(T::Array[Dependabot::Workspace::ChangeAttempt]) }
attr_reader :change_attempts
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/workspace/change_attempt.rb | Ruby | mit | 5,556 | main | 973 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
module Workspace
class ChangeAttempt
extend T::Sig
sig { returns(T.nilable(StandardError)) }
attr_reader :error
sig { returns(String) }
attr_reader :id
sig { returns(T.nilable(String))... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/workspace/git.rb | Ruby | mit | 5,556 | main | 4,913 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/workspace/base"
require "dependabot/workspace/change_attempt"
module Dependabot
module Workspace
class Git < Base
extend T::Sig
extend T::Helpers
USER = "dependabot[bot]"
EMAIL = T.let("#{USER}@us... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/dependency_graphers/base.rb | Ruby | mit | 5,556 | main | 5,811 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
module DependencyGraphers
# This is a small value class that specifies the information we expect to be returned for each
# dependency strictly.
class ResolvedDependency < T::ImmutableStruct
# A valid purl for ... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/dependency_graphers/generic.rb | Ruby | mit | 5,556 | main | 2,139 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/dependency_graphers/base"
module Dependabot
module DependencyGraphers
class Generic < Base
extend T::Sig
extend T::Helpers
# Our generic strategy is to use the right-most file in the dependency file li... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/update_checkers/cooldown_calculation.rb | Ruby | mit | 5,556 | main | 1,774 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/package/release_cooldown_options"
require "dependabot/version"
module Dependabot
module UpdateCheckers
# Shared utility module for cooldown period calculations.
#
# Provides stateless module methods used by ecosys... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/update_checkers/version_filters.rb | Ruby | mit | 5,556 | main | 1,531 | # typed: strong
# frozen_string_literal: true
require "dependabot/security_advisory"
require "dependabot/package/package_release"
require "sorbet-runtime"
module Dependabot
module UpdateCheckers
module VersionFilters
extend T::Sig
sig do
# Tricky generics explanation:
# There's a ty... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/update_checkers/base.rb | Ruby | mit | 5,556 | main | 15,001 | # typed: strict
# frozen_string_literal: true
require "json"
require "sorbet-runtime"
require "dependabot/requirements_update_strategy"
require "dependabot/security_advisory"
require "dependabot/utils"
require "dependabot/package/release_cooldown_options"
require "dependabot/file_filtering"
module Dependabot
modul... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/package/package_latest_version_finder.rb | Ruby | mit | 5,556 | main | 14,892 | # typed: strict
# frozen_string_literal: true
require "cgi"
require "excon"
require "nokogiri"
require "sorbet-runtime"
require "dependabot/security_advisory"
require "dependabot/dependency"
require "dependabot/update_checkers/version_filters"
require "dependabot/update_checkers/cooldown_calculation"
require "dependa... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/package/release_cooldown_options.rb | Ruby | mit | 5,556 | main | 2,860 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
module Package
class ReleaseCooldownOptions
extend T::Sig
sig do
params(
default_days: T.nilable(Integer),
semver_major_days: T.nilable(Integer),
semver_minor_days: T.nilab... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/package/package_language.rb | Ruby | mit | 5,556 | main | 849 | # typed: strong
# frozen_string_literal: true
# Represents a single package version
module Dependabot
module Package
class PackageLanguage
extend T::Sig
sig do
params(
name: String,
version: T.nilable(Dependabot::Version),
requirement: T.nilable(Dependabot::Requ... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/package/package_release.rb | Ruby | mit | 5,556 | main | 2,830 | # typed: strong
# frozen_string_literal: true
require "json"
require "time"
require "sorbet-runtime"
require "dependabot/package/package_language"
# Represents a single package version
module Dependabot
module Package
class PackageRelease
extend T::Sig
sig do
params(
version: Depe... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/package/package_details.rb | Ruby | mit | 5,556 | main | 1,155 | # typed: strong
# frozen_string_literal: true
require "json"
require "time"
require "sorbet-runtime"
require "dependabot/package/package_release"
# Stores metadata for a package, including all its available versions
module Dependabot
module Package
class PackageDetails
extend T::Sig
sig do
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/file_parsers/base.rb | Ruby | mit | 5,556 | main | 3,082 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/credential"
require "dependabot/ecosystem"
module Dependabot
module FileParsers
class Base
extend T::Sig
extend T::Helpers
abstract!
sig { returns(T::Array[Dependabot::DependencyFile]) }
at... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/file_parsers/base/dependency_set.rb | Ruby | mit | 5,556 | main | 6,799 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/dependency"
require "dependabot/file_parsers/base"
require "dependabot/utils"
module Dependabot
module FileParsers
class Base
class DependencySet
extend T::Sig
sig do
params(
d... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/clients/bitbucket_with_retries.rb | Ruby | mit | 5,556 | main | 2,392 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require_relative "bitbucket"
module Dependabot
module Clients
class BitbucketWithRetries
extend T::Sig
RETRYABLE_ERRORS = T.let(
[Excon::Error::Timeout, Excon::Error::Socket].freeze,
T::Array[T.class_of(Excon::E... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/clients/azure.rb | Ruby | mit | 5,556 | main | 17,480 | # typed: strict
# frozen_string_literal: true
require "dependabot/shared_helpers"
require "excon"
require "sorbet-runtime"
module Dependabot
module Clients
# rubocop:disable Metrics/ClassLength
class Azure
extend T::Sig
class NotFound < StandardError; end
class InternalServerError < Stan... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/clients/gitlab_with_retries.rb | Ruby | mit | 5,556 | main | 5,907 | # typed: strict
# frozen_string_literal: true
require "gitlab"
require "sorbet-runtime"
require "dependabot/credential"
module Dependabot
module Clients
class GitlabWithRetries
extend T::Sig
RETRYABLE_ERRORS = T.let(
[Gitlab::Error::BadGateway].freeze,
T::Array[T.class_of(Gitlab::E... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/clients/github_with_retries.rb | Ruby | mit | 5,556 | main | 5,201 | # typed: strict
# frozen_string_literal: true
require "octokit"
require "sorbet-runtime"
require "dependabot/credential"
module Dependabot
module Clients
class GithubWithRetries
extend T::Sig
DEFAULT_OPEN_TIMEOUT_IN_SECONDS = 2
DEFAULT_READ_TIMEOUT_IN_SECONDS = 5
sig { returns(Integer)... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/clients/codecommit.rb | Ruby | mit | 5,556 | main | 8,650 | # typed: strict
# frozen_string_literal: true
require "aws-sdk-codecommit"
require "sorbet-runtime"
require "dependabot/shared_helpers"
module Dependabot
module Clients
class CodeCommit
extend T::Sig
class NotFound < StandardError; end
#######################
# Constructor methods #
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/clients/bitbucket.rb | Ruby | mit | 5,556 | main | 12,635 | # typed: strict
# frozen_string_literal: true
require "excon"
require "sorbet-runtime"
require "dependabot/shared_helpers"
module Dependabot
module Clients
class Bitbucket
extend T::Sig
class NotFound < StandardError; end
class Unauthorized < StandardError; end
class Forbidden < Stan... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_updater/gitlab.rb | Ruby | mit | 5,556 | main | 3,525 | # typed: strict
# frozen_string_literal: true
require "gitlab"
require "sorbet-runtime"
require "dependabot/clients/gitlab_with_retries"
require "dependabot/credential"
require "dependabot/pull_request_creator"
module Dependabot
class PullRequestUpdater
class Gitlab
extend T::Sig
sig { returns(Dep... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_updater/github.rb | Ruby | mit | 5,556 | main | 9,376 | # typed: strict
# frozen_string_literal: true
require "octokit"
require "sorbet-runtime"
require "dependabot/clients/github_with_retries"
require "dependabot/pull_request_creator/commit_signer"
require "dependabot/pull_request_updater"
module Dependabot
class PullRequestUpdater
class Github
extend T::Sig... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_updater/azure.rb | Ruby | mit | 5,556 | main | 5,522 | # typed: strict
# frozen_string_literal: true
require "securerandom"
require "sorbet-runtime"
require "dependabot/clients/azure"
module Dependabot
class PullRequestUpdater
class Azure
extend T::Sig
class PullRequestUpdateFailed < Dependabot::DependabotError; end
OBJECT_ID_FOR_BRANCH_DELETE ... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/file_fetchers/base.rb | Ruby | mit | 5,556 | main | 35,048 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "stringio"
require "dependabot/config"
require "dependabot/dependency_file"
require "dependabot/source"
require "dependabot/errors"
require "dependabot/credential"
require "dependabot/clients/azure"
require "dependabot/clients/codecommit"
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_creator/message_builder.rb | Ruby | mit | 5,556 | main | 34,798 | # typed: strict
# frozen_string_literal: true
require "time"
require "pathname"
require "sorbet-runtime"
require "dependabot/clients/github_with_retries"
require "dependabot/clients/gitlab_with_retries"
require "dependabot/dependency_group"
require "dependabot/logger"
require "dependabot/metadata_finders"
require "de... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_creator/message.rb | Ruby | mit | 5,556 | main | 820 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
class PullRequestCreator
# Message is a static alternative to MessageBuilder
class Message
extend T::Sig
sig { returns(T.nilable(String)) }
attr_reader :commit_message
sig { returns(T.nilable(S... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_creator/bitbucket.rb | Ruby | mit | 5,556 | main | 4,619 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/clients/bitbucket"
require "dependabot/credential"
require "dependabot/dependency_file"
require "dependabot/pull_request_creator"
module Dependabot
class PullRequestCreator
class Bitbucket
extend T::Sig
sig ... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_creator/azure.rb | Ruby | mit | 5,556 | main | 5,011 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/credential"
require "dependabot/clients/azure"
require "dependabot/pull_request_creator"
module Dependabot
class PullRequestCreator
class Azure
extend T::Sig
sig { returns(Dependabot::Source) }
attr_re... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_creator/commit_signer.rb | Ruby | mit | 5,556 | main | 2,510 | # typed: strict
# frozen_string_literal: true
require "time"
require "tmpdir"
require "sorbet-runtime"
require "dependabot/pull_request_creator"
module Dependabot
class PullRequestCreator
class CommitSigner
extend T::Sig
sig { returns(T::Hash[Symbol, String]) }
attr_reader :author_details
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_creator/codecommit.rb | Ruby | mit | 5,556 | main | 6,568 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/clients/codecommit"
require "dependabot/pull_request_creator"
module Dependabot
class PullRequestCreator
class Codecommit
extend T::Sig
sig { returns(Dependabot::Source) }
attr_reader :source
si... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_creator/branch_namer.rb | Ruby | mit | 5,556 | main | 4,248 | # typed: strong
# frozen_string_literal: true
require "digest"
require "sorbet-runtime"
require "dependabot/metadata_finders"
require "dependabot/pull_request_creator"
require "dependabot/pull_request_creator/branch_namer/solo_strategy"
require "dependabot/pull_request_creator/branch_namer/dependency_group_strategy"
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_creator/gitlab.rb | Ruby | mit | 5,556 | main | 7,902 | # typed: strict
# frozen_string_literal: true
require "gitlab"
require "sorbet-runtime"
require "dependabot/clients/gitlab_with_retries"
require "dependabot/pull_request_creator"
module Dependabot
class PullRequestCreator
class Gitlab
extend T::Sig
sig { returns(Dependabot::Source) }
attr_re... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_creator/labeler.rb | Ruby | mit | 5,556 | main | 16,762 | # typed: strict
# frozen_string_literal: true
require "octokit"
require "sorbet-runtime"
require "dependabot/pull_request_creator"
require "dependabot/credential"
module Dependabot
class PullRequestCreator
# rubocop:disable Metrics/ClassLength
class Labeler
extend T::Sig
DEPENDENCIES_LABEL_REGE... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_creator/github.rb | Ruby | mit | 5,556 | main | 19,813 | # typed: strict
# frozen_string_literal: true
require "octokit"
require "securerandom"
require "sorbet-runtime"
require "dependabot/clients/github_with_retries"
require "dependabot/pull_request_creator"
require "dependabot/pull_request_creator/commit_signer"
module Dependabot
class PullRequestCreator
# rubocop... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_creator/pr_name_prefixer.rb | Ruby | mit | 5,556 | main | 19,941 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/credential"
require "dependabot/clients/azure"
require "dependabot/clients/bitbucket"
require "dependabot/clients/codecommit"
require "dependabot/clients/github_with_retries"
require "dependabot/clients/gitlab_with_retries"
requ... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_creator/branch_namer/multi_ecosystem_strategy.rb | Ruby | mit | 5,556 | main | 2,454 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/pull_request_creator/branch_namer/base"
module Dependabot
class PullRequestCreator
class BranchNamer
class MultiEcosystemStrategy < Base
extend T::Sig
sig do
params(
dependenci... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_creator/branch_namer/solo_strategy.rb | Ruby | mit | 5,556 | main | 7,614 | # typed: strict
# frozen_string_literal: true
require "digest"
require "sorbet-runtime"
require "dependabot/metadata_finders"
require "dependabot/pull_request_creator/branch_namer/base"
module Dependabot
class PullRequestCreator
class BranchNamer
class SoloStrategy < Base
extend T::Sig
s... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_creator/branch_namer/dependency_group_strategy.rb | Ruby | mit | 5,556 | main | 3,154 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/pull_request_creator/branch_namer/base"
module Dependabot
class PullRequestCreator
class BranchNamer
class DependencyGroupStrategy < Base
extend T::Sig
sig do
params(
dependenc... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_creator/branch_namer/base.rb | Ruby | mit | 5,556 | main | 2,869 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
class PullRequestCreator
class BranchNamer
class Base
extend T::Sig
sig { returns(T::Array[Dependency]) }
attr_reader :dependencies
sig { returns(T::Array[DependencyFile]) }
a... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_creator/message_builder/title_builder.rb | Ruby | mit | 5,556 | main | 4,258 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/dependency"
require "dependabot/logger"
require "dependabot/pull_request_creator/pr_name_prefixer"
module Dependabot
class PullRequestCreator
class MessageBuilder
# Composes a final PR title from a base title + pref... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_creator/message_builder/link_and_mention_sanitizer.rb | Ruby | mit | 5,556 | main | 9,910 | # typed: strict
# frozen_string_literal: true
require "commonmarker"
require "sorbet-runtime"
require "strscan"
require "dependabot/pull_request_creator/message_builder"
module Dependabot
class PullRequestCreator
class MessageBuilder
class LinkAndMentionSanitizer
extend T::Sig
GITHUB_USER... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_creator/message_builder/issue_linker.rb | Ruby | mit | 5,556 | main | 2,192 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/pull_request_creator/message_builder"
module Dependabot
class PullRequestCreator
class MessageBuilder
class IssueLinker
extend T::Sig
REPO_REGEX = %r{(?<repo>[\w.-]+/(?:(?!\.git|\.\s)[\w.-])+)}
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_creator/message_builder/metadata_presenter.rb | Ruby | mit | 5,556 | main | 11,565 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/pull_request_creator/message_builder"
module Dependabot
class PullRequestCreator
class MessageBuilder
class MetadataPresenter
extend T::Sig
extend Forwardable
sig { returns(Dependabot::Depen... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/requirements_updater/base.rb | Ruby | mit | 5,556 | main | 650 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
module RequirementsUpdater
module Base
extend T::Sig
extend T::Helpers
extend T::Generic
Version = type_member { { upper: Gem::Version } }
Requirement = type_member { { upper: Gem::Requirement... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/config/file.rb | Ruby | mit | 5,556 | main | 4,409 | # typed: strict
# frozen_string_literal: true
require "dependabot/config/update_config"
require "sorbet-runtime"
module Dependabot
module Config
# Configuration for the repository, a parsed dependabot.yaml.
class File
extend T::Sig
sig { returns(T::Array[T::Hash[Symbol, String]]) }
attr_r... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/config/update_config.rb | Ruby | mit | 5,556 | main | 4,180 | # typed: strict
# frozen_string_literal: true
require "dependabot/config/ignore_condition"
require "sorbet-runtime"
module Dependabot
module Config
# Configuration for a single ecosystem
class UpdateConfig
extend T::Sig
sig { returns(T.nilable(CommitMessageOptions)) }
attr_reader :commit_... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/config/ignore_condition.rb | Ruby | mit | 5,556 | main | 2,816 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
module Config
# Filters versions that should not be considered for dependency updates
class IgnoreCondition
extend T::Sig
PATCH_VERSION_TYPE = "version-update:semver-patch"
MINOR_VERSION_TYPE = "versi... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/config/file_fetcher.rb | Ruby | mit | 5,556 | main | 1,650 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/file_fetchers/base"
require "dependabot/config/file"
module Dependabot
module Config
class FileFetcher < FileFetchers::Base
extend T::Sig
CONFIG_FILE_PATHS = T.let(%w(.github/dependabot.yml .github/dependabot... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/file_updaters/artifact_updater.rb | Ruby | mit | 5,556 | main | 4,941 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/dependency_file"
# This class provides a utility to check for arbitrary modified files within a
# git directory that need to be wrapped as Dependabot::DependencyFile object
# and returned as along with anything managed by the F... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/file_updaters/vendor_updater.rb | Ruby | mit | 5,556 | main | 1,507 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/dependency_file"
require "dependabot/file_updaters/artifact_updater"
# This class is a specialisation of the ArtifactUpdater which should be used
# for vendored files so any DependencyFile objects it creates are properly
# flag... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/file_updaters/base.rb | Ruby | mit | 5,556 | main | 2,713 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/credential"
require "dependabot/notices"
module Dependabot
module FileUpdaters
class Base
extend T::Sig
extend T::Helpers
abstract!
sig { returns(T::Array[Dependabot::Dependency]) }
attr_r... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/spec_helper.rb | Ruby | mit | 5,556 | main | 7,544 | # typed: true
# frozen_string_literal: true
require "rspec/its"
require "rspec/sorbet"
require "webmock/rspec"
require "webmock/http_lib_adapters/excon_adapter"
require "vcr"
require "debug"
require "simplecov"
require "simplecov_json_formatter"
require "stackprof"
require "uri"
# SimpleCov _must_ be started before a... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/warning_monkey_patch.rb | Ruby | mit | 5,556 | main | 879 | # typed: false
# frozen_string_literal: true
ALLOW_PATTERNS = [
# Ignore `parser/current` warnings for ruby patch version mismatches.
# This is a recurring issue that occurs whenever the parser gets
# ahead of our installed ruby version.
%r{parser/current is loading parser/ruby31},
/3.1.\d-compliant syntax, ... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/dummy_package_manager/dummy.rb | Ruby | mit | 5,556 | main | 589 | # typed: false
# frozen_string_literal: true
require_relative "metadata_finder"
require_relative "requirement"
require_relative "version"
require "dependabot/pull_request_creator/labeler"
Dependabot::PullRequestCreator::Labeler
.register_label_details("dummy", name: "ruby", colour: "ce2d2d")
require "dependabot/de... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/dummy_package_manager/version.rb | Ruby | mit | 5,556 | main | 662 | # typed: false
# frozen_string_literal: true
require "dependabot/version"
require "dependabot/utils"
module DummyPackageManager
class Version < Dependabot::Version
def initialize(version)
version = Version.remove_leading_v(version)
super
end
def self.remove_leading_v(version)
return v... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/dummy_package_manager/requirement.rb | Ruby | mit | 5,556 | main | 704 | # typed: false
# frozen_string_literal: true
require "dependabot/requirement"
require "dependabot/utils"
module DummyPackageManager
class Requirement < Dependabot::Requirement
def self.requirements_array(requirement_string)
[new(requirement_string)]
end
# Patches Gem::Requirement to make it accep... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/dummy_package_manager/metadata_finder.rb | Ruby | mit | 5,556 | main | 457 | # typed: false
# frozen_string_literal: true
require "dependabot/metadata_finders"
require "dependabot/metadata_finders/base"
module DummyPackageManager
class MetadataFinder < Dependabot::MetadataFinders::Base
private
def look_up_source
Dependabot::Source.from_url(
"https://github.com/gocardl... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/helpers/test/run.rb | Ruby | mit | 5,556 | main | 751 | # typed: false
# frozen_string_literal: true
# rubocop:disable RSpec/Output -- This is a subprocess helper, not a spec. It must write to stdout/stderr.
require "json"
request = JSON.parse($stdin.read)
case request["function"]
when "error"
$stdout.write(JSON.dump(error: "Something went wrong"))
exit 1
when "sensi... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/dependabot/notices_spec.rb | Ruby | mit | 5,556 | main | 6,352 | # typed: false
# frozen_string_literal: true
require "dependabot/version"
require "dependabot/experiments"
require "dependabot/ecosystem"
require "dependabot/notices"
require "debug"
# A stub package manager for testing purposes.
class StubVersionManager < Dependabot::Ecosystem::VersionManager
def initialize(
n... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/dependabot/version_manager_spec.rb | Ruby | mit | 5,556 | main | 5,150 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/ecosystem"
RSpec.describe Dependabot::Ecosystem::VersionManager do # rubocop:disable RSpec/SpecFilePathFormat
let(:concrete_class) do
Class.new(Dependabot::Ecosystem::VersionManager) do
def initialize
detected_v... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/dependabot/dependabot_error_spec.rb | Ruby | mit | 5,556 | main | 5,741 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/errors"
RSpec.describe Dependabot::DependabotError do
let(:error) { described_class.new(message) }
let(:message) do
"some error"
end
describe "#message" do
subject(:error_message) { error.message }
let(:tmp) {... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/dependabot/file_filtering_spec.rb | Ruby | mit | 5,556 | main | 4,241 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/file_filtering"
RSpec.describe Dependabot::FileFiltering do
describe ".exclude_path?" do
subject(:exclude_path) { described_class.exclude_path?(path, exclude_patterns) }
context "with nil exclude_patterns" do
let(:... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/dependabot/experiments_spec.rb | Ruby | mit | 5,556 | main | 549 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/experiments"
RSpec.describe Dependabot::Experiments do
before do
described_class.reset!
end
it "can register experiments as enabled" do
described_class.register(:my_test, true)
expect(described_class).to be_enab... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/dependabot/pull_request_creator_spec.rb | Ruby | mit | 5,556 | main | 14,793 | # typed: false
# frozen_string_literal: true
require "octokit"
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/dependency_group"
require "dependabot/pull_request_creator"
require "dependabot/pull_request_creator/message"
RSpec.describe Dependabot::PullReq... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/dependabot/version_spec.rb | Ruby | mit | 5,556 | main | 1,027 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/version"
RSpec.describe Dependabot::Version do
subject(:version) { described_class.new(version_string) }
describe "#lowest_prerelease_suffix" do
subject(:ignored_versions) { version.lowest_prerelease_suffix }
let(:ver... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/dependabot/pull_request_updater_spec.rb | Ruby | mit | 5,556 | main | 4,840 | # typed: false
# frozen_string_literal: true
require "octokit"
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/pull_request_updater"
RSpec.describe Dependabot::PullRequestUpdater do
subject(:updater) do
described_class.new(
source: source,
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/dependabot/workspace_spec.rb | Ruby | mit | 5,556 | main | 509 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/workspace"
RSpec.describe Dependabot::Workspace do
specify ".active_workspace" do
expect(described_class.active_workspace).to be_nil
workspace = instance_double(Dependabot::Workspace::Git)
described_class.active_work... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/dependabot/source_spec.rb | Ruby | mit | 5,556 | main | 13,457 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/source"
RSpec.describe Dependabot::Source do
describe ".new" do
subject(:source) { described_class.new(**attrs) }
context "without a hostname or api_endpoint" do
let(:attrs) { { provider: "github", repo: "my/repo" ... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/dependabot/git_metadata_fetcher_spec.rb | Ruby | mit | 5,556 | main | 13,342 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/git_metadata_fetcher"
require "dependabot/git_ref"
require "dependabot/git_tag_with_detail"
RSpec.describe Dependabot::GitMetadataFetcher do
let(:checker) { described_class.new(url: url, credential... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/dependabot/security_advisory_spec.rb | Ruby | mit | 5,556 | main | 7,238 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/security_advisory"
RSpec.describe Dependabot::SecurityAdvisory do
let(:security_advisory) do
described_class.new(
dependency_name: "rails",
package_manager: "dummy",
vulnerable_versions: vulnerable_versions,... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/dependabot/shared_helpers_spec.rb | Ruby | mit | 5,556 | main | 24,716 | # typed: false
# frozen_string_literal: true
require "fileutils"
require "tmpdir"
require "spec_helper"
require "dependabot/shared_helpers"
require "dependabot/simple_instrumentor"
require "dependabot/workspace"
# Custom error class for testing
class EcoSystemHelperSubprocessFailed < Dependabot::SharedHelpers::Helpe... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/dependabot/git_commit_checker_spec.rb | Ruby | mit | 5,556 | main | 62,577 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/git_commit_checker"
RSpec.describe Dependabot::GitCommitChecker do
let(:git_metadata_fetcher) { instance_double(Dependabot::GitMetadataFetcher) }
let(:checker) do
described_class.new(
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/dependabot/ecosystem_spec.rb | Ruby | mit | 5,556 | main | 9,428 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/ecosystem"
require "dependabot/requirement"
RSpec.describe Dependabot::Ecosystem do
let(:package_manager_supported_versions) { [Dependabot::Version.new("1"), Dependabot::Version.new("2")] }
let(:package_manager_deprecated_versi... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/dependabot/dependency_file_spec.rb | Ruby | mit | 5,556 | main | 10,928 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency_file"
RSpec.describe Dependabot::DependencyFile do
around do |example|
repo_path = File.expand_path("spec/fixtures/projects/simple")
Dir.chdir(repo_path) { example.run }
end
let(:file) { described_class.ne... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/dependabot/wildcard_matcher_spec.rb | Ruby | mit | 5,556 | main | 5,106 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "wildcard_matcher"
RSpec.describe WildcardMatcher do
describe ".match?" do
subject { described_class.match?(wildcard_string, candidate_string) }
context "without a wildcard" do
let(:wildcard_string) { "bus" }
context "w... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/spec/dependabot/requirement_spec.rb | Ruby | mit | 5,556 | main | 4,814 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/requirement"
require "dependabot/version"
RSpec.describe Dependabot::Requirement do
subject(:requirement) { TestRequirement.new(constraint_string) }
describe "#constraints" do
subject(:constraints) { requirement.constraint... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.