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/spec/dependabot/registry_client_spec.rb
Ruby
mit
5,556
main
9,190
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/registry_client" RSpec.describe Dependabot::RegistryClient do let(:url) { "https://example.com" } let(:maven_defaults) do { idempotent: true } end let(:dependabot_defaults) do Dependabot::SharedHelpers.excon_default...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/command_helpers_spec.rb
Ruby
mit
5,556
main
4,465
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/command_helpers" RSpec.describe Dependabot::CommandHelpers do describe ".capture3_with_timeout" do let(:success_cmd) { command_fixture("success.sh") } let(:error_cmd) { command_fixture("error.sh") } let(:output_hang_c...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/dependency_spec.rb
Ruby
mit
5,556
main
13,386
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" RSpec.describe Dependabot::Dependency do describe ".new" do subject(:dependency) { described_class.new(**args) } let(:args) do { name: "dep", requirements: requirements, package_...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/shared_examples_for_autoloading.rb
Ruby
mit
5,556
main
2,065
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/file_fetchers/base" require "dependabot/file_parsers/base" require "dependabot/update_checkers/base" require "dependabot/file_updaters/base" require "dependabot/metadata_finders/base" require "dependabot/utils" require "dependabot/...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/dependency_group_spec.rb
Ruby
mit
5,556
main
8,576
# typed: false # frozen_string_literal: true require "dependabot/dependency_group" require "dependabot/dependency" # TODO: Once the Updater has been merged into Core, we should test this # using the DependencyGroupEngine methods instead of mocking the functionality RSpec.describe Dependabot::DependencyGroup do let(...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/file_parsers/shared_examples_for_file_parsers.rb
Ruby
mit
5,556
main
827
# typed: false # frozen_string_literal: true require "spec_helper" require "octokit" require "dependabot/file_parsers/base" RSpec.shared_examples "a dependency file parser" do describe "the class" do subject { described_class } let(:base_class) { Dependabot::FileParsers::Base } its(:superclass) { is_e...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/file_parsers/base_spec.rb
Ruby
mit
5,556
main
3,377
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/file_parsers/base" RSpec.describe Dependabot::FileParsers::Base do let(:package_manager_instance) { nil } # Default value let(:child_class) do pm_instanc...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/file_parsers/base/dependency_set_spec.rb
Ruby
mit
5,556
main
11,737
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/file_parsers/base/dependency_set" RSpec.describe Dependabot::FileParsers::Base::DependencySet do let(:dependency_set) { described_class.new } let(:dependency) do Dependabot::Dependency.new( ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/file_updaters/base_spec.rb
Ruby
mit
5,556
main
2,367
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/file_updaters/base" RSpec.describe Dependabot::FileUpdaters::Base do let(:child_class) do Class.new(described_class) do def check_required_files ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/file_updaters/vendor_updater_spec.rb
Ruby
mit
5,556
main
5,120
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/file_updaters/vendor_updater" RSpec.describe Dependabot::FileUpdaters::VendorUpdater do let(:updater) do described_class.new( repo_contents_path: repo_contents_path, vendor_dir: vendor_dir ) end let(:vend...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/file_updaters/artifact_updater_spec.rb
Ruby
mit
5,556
main
5,968
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/file_updaters/artifact_updater" RSpec.describe Dependabot::FileUpdaters::ArtifactUpdater do let(:updater) do described_class.new( repo_contents_path: repo_contents_path, target_directory: target_directory ) ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/file_updaters/shared_examples_for_file_updaters.rb
Ruby
mit
5,556
main
1,410
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/file_updaters/base" RSpec.shared_examples "a dependency file updater" do describe "the class" do subject { described_class } let(:base_class) { Dependabot::FileUpdaters::Base } def recent_ancestors ancestors =...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/clients/bitbucket_spec.rb
Ruby
mit
5,556
main
10,910
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/clients/bitbucket" RSpec.describe Dependabot::Clients::Bitbucket do let(:current_user_url) { "https://api.bitbucket.org/2.0/user?fields=uuid" } let(:access_token) { "access_token" } let(:credentials) do [Dependabot::Crede...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/clients/gitlab_with_retries_spec.rb
Ruby
mit
5,556
main
1,020
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/clients/gitlab_with_retries" RSpec.describe Dependabot::Clients::GitlabWithRetries do let(:client) do described_class.new( endpoint: "https://gitlab.com/api/v4", private_token: access_token ) end let(:acce...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/clients/azure_spec.rb
Ruby
mit
5,556
main
15,069
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/clients/azure" RSpec.shared_examples "#get using auth headers" do |credential| before do stub_request(:get, base_url) .with(headers: credential["headers"]) .to_return(status: 200, body: '{"result": "Success"}') ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/clients/github_with_retries_spec.rb
Ruby
mit
5,556
main
3,208
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/clients/github_with_retries" RSpec.describe Dependabot::Clients::GithubWithRetries do let(:client) { described_class.new(access_token: access_token) } let(:access_token) { "my-token" } describe "retrying a method that mutate...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/clients/codecommit_spec.rb
Ruby
mit
5,556
main
2,102
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/clients/codecommit" require "dependabot/credential" RSpec.describe Dependabot::Clients::CodeCommit do let(:branch) { "master" } let(:repo) { "gocardless" } let(:credentials) do [Dependabot::Credential.new( { ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/package/package_release_spec.rb
Ruby
mit
5,556
main
2,427
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/package/package_release" require "dependabot/package/package_language" require "dependabot/version" RSpec.describe Dependabot::Package::PackageRelease do let(:version) { Dependabot::Version.new("2.0.0") } let(:released_at) { Ti...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/package/package_details_spec.rb
Ruby
mit
5,556
main
2,655
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/package/package_details" require "dependabot/dependency" require "dependabot/version" RSpec.describe Dependabot::Package::PackageDetails do let(:dependency) do Dependabot::Dependency.new(name: "rails", version: "6.1.4", requi...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/package/release_cooldown_options_spec.rb
Ruby
mit
5,556
main
11,488
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/package/release_cooldown_options" RSpec.describe Dependabot::Package::ReleaseCooldownOptions do subject(:release_cooldown_options) do described_class.new( default_days: default_days, semver_major_days: semver_majo...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/package/package_latest_version_finder_spec.rb
Ruby
mit
5,556
main
16,614
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/credential" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/package/package_latest_version_finder" # Define the stubbed PackageLatestVersionFinder class StubPackageLatestVersionFinder < Depe...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/package/package_language_spec.rb
Ruby
mit
5,556
main
924
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/package/package_language" require "dependabot/version" RSpec.describe Dependabot::Package::PackageLanguage do let(:name) { "ruby" } let(:version) { Dependabot::Version.new("2.7.6") } let(:requirement) { TestRequirement.new(">...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/pull_request_updater/azure_spec.rb
Ruby
mit
5,556
main
7,355
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/credential" require "dependabot/dependency_file" require "dependabot/pull_request_updater/azure" RSpec.describe Dependabot::PullRequestUpdater::Azure do subject(:updater) do described_class.new( source: source, ba...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/pull_request_updater/github_spec.rb
Ruby
mit
5,556
main
24,384
# typed: false # frozen_string_literal: true require "octokit" require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/pull_request_updater/github" RSpec.describe Dependabot::PullRequestUpdater::Github do subject(:updater) do described_class.new( sour...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/pull_request_updater/gitlab_spec.rb
Ruby
mit
5,556
main
7,796
# typed: false # frozen_string_literal: true require "json" require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/pull_request_updater/gitlab" RSpec.describe Dependabot::PullRequestUpdater::Gitlab do subject(:updater) do described_class.new( source:...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/file_fetchers/base_spec.rb
Ruby
mit
5,556
main
60,070
# typed: false # frozen_string_literal: true require "aws-sdk-codecommit" require "octokit" require "fileutils" require "spec_helper" require "dependabot/credential" require "dependabot/source" require "dependabot/file_fetchers/base" require "dependabot/clients/codecommit" require "dependabot/shared_helpers" RSpec.de...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/file_fetchers/shared_examples_for_file_fetchers.rb
Ruby
mit
5,556
main
846
# typed: false # frozen_string_literal: true require "spec_helper" require "octokit" require "dependabot/file_fetchers/base" RSpec.shared_examples "a dependency file fetcher" do describe "the class" do subject { described_class } let(:base_class) { Dependabot::FileFetchers::Base } its(:superclass) { i...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/pull_request_creator/labeler_spec.rb
Ruby
mit
5,556
main
32,523
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/source" require "dependabot/pull_request_creator/labeler" RSpec.describe Dependabot::PullRequestCreator::Labeler do subject(:labeler) do described_class.new...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/pull_request_creator/commit_signer_spec.rb
Ruby
mit
5,556
main
1,500
# typed: false # frozen_string_literal: true require "spec_helper" require "gpgme" require "tmpdir" require "dependabot/pull_request_creator/commit_signer" RSpec.describe Dependabot::PullRequestCreator::CommitSigner do subject(:signer) do described_class.new( author_details: author_details, commit_m...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/pull_request_creator/gitlab_spec.rb
Ruby
mit
5,556
main
14,678
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/pull_request_creator/gitlab" RSpec.describe Dependabot::PullRequestCreator::Gitlab do subject(:creator) do described_class.new( source: source, ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/pull_request_creator/branch_namer_spec.rb
Ruby
mit
5,556
main
21,230
# typed: false # frozen_string_literal: true require "octokit" require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/pull_request_creator/branch_namer" RSpec.describe Dependabot::PullRequestCreator::BranchNamer do subject(:namer) do described_class.new( ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/pull_request_creator/pr_name_prefixer_spec.rb
Ruby
mit
5,556
main
10,323
# typed: false # frozen_string_literal: true require "octokit" require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/pull_request_creator/pr_name_prefixer" RSpec.describe Dependabot::PullRequestCreator::PrNamePrefixer do subject(:builder) do described_cla...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/pull_request_creator/github_spec.rb
Ruby
mit
5,556
main
36,699
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/pull_request_creator/github" RSpec.describe Dependabot::PullRequestCreator::Github do subject(:creator) do described_class.new( source: source, ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/pull_request_creator/azure_spec.rb
Ruby
mit
5,556
main
8,772
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/credential" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/pull_request_creator/azure" RSpec.describe Dependabot::PullRequestCreator::Azure do subject(:creator) do described_class.new...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/pull_request_creator/message_builder_spec.rb
Ruby
mit
5,556
main
141,595
# typed: false # frozen_string_literal: true require "octokit" require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/pull_request_creator/message_builder" RSpec.describe Dependabot::PullRequestCreator::MessageBuilder do subject(:message_builder) { builder } ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/pull_request_creator/message_builder/issue_linker_spec.rb
Ruby
mit
5,556
main
2,413
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/pull_request_creator/message_builder/issue_linker" RSpec.describe Dependabot::PullRequestCreator::MessageBuilder::IssueLinker do subject(:issue_linker) do described_class.new(source_url: "https://github.com/a/b") end des...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/pull_request_creator/message_builder/title_builder_spec.rb
Ruby
mit
5,556
main
7,167
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/pull_request_creator/pr_name_prefixer" require "dependabot/pull_request_creator/message_builder/title_builder" RSpec.describe Dependabot::PullRequestCreator::MessageBuilder::TitleBuilder do before do Dependabot::Dependency.re...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/pull_request_creator/message_builder/metadata_presenter_spec.rb
Ruby
mit
5,556
main
3,560
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/pull_request_creator/message_builder/metadata_presenter" namespace = Dependabot::PullRequestCreator::MessageBuilder RSpec.describe namespace::MetadataPresenter do subject(:presenter) do described_class.new( dependency: ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/pull_request_creator/message_builder/link_and_mention_sanitizer_spec.rb
Ruby
mit
5,556
main
16,037
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/pull_request_creator/message_builder/" \ "link_and_mention_sanitizer" RSpec.describe Dependabot::PullRequestCreator::MessageBuilder::LinkAndMentionSanitizer do subject(:sanitizer) do described_class.new(github_redirec...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/pull_request_creator/branch_namer/dependency_group_strategy_spec.rb
Ruby
mit
5,556
main
10,025
# typed: false # frozen_string_literal: true require "digest" require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/dependency_group" require "dependabot/pull_request_creator/branch_namer/dependency_group_strategy" RSpec.describe Dependabot::PullRequestCreator...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/pull_request_creator/branch_namer/solo_strategy_spec.rb
Ruby
mit
5,556
main
19,208
# typed: false # frozen_string_literal: true require "octokit" require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/pull_request_creator/branch_namer/solo_strategy" RSpec.describe Dependabot::PullRequestCreator::BranchNamer::SoloStrategy do subject(:namer) d...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/pull_request_creator/branch_namer/multi_ecosystem_strategy_spec.rb
Ruby
mit
5,556
main
7,258
# typed: false # frozen_string_literal: true require "digest" require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/dependency_group" require "dependabot/pull_request_creator/branch_namer/multi_ecosystem_strategy" RSpec.describe Dependabot::PullRequestCreator:...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/workspace/git_spec.rb
Ruby
mit
5,556
main
8,715
# typed: false # frozen_string_literal: true require "fileutils" require "tmpdir" require "spec_helper" require "dependabot/workspace/git" RSpec.describe Dependabot::Workspace::Git do subject(:workspace) { described_class.new(repo_contents_path) } let(:repo_contents_path) { build_tmp_repo("simple", tmp_dir_path...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/metadata_finders/base_spec.rb
Ruby
mit
5,556
main
9,220
# typed: false # frozen_string_literal: true require "octokit" require "spec_helper" require "dependabot/source" require "dependabot/dependency" require "dependabot/metadata_finders/base" RSpec.describe Dependabot::MetadataFinders::Base do subject(:finder) do described_class.new(dependency: dependency, credenti...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/metadata_finders/shared_examples_for_metadata_finders.rb
Ruby
mit
5,556
main
752
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/metadata_finders/base" RSpec.shared_examples "a dependency metadata finder" do describe "the class" do subject { described_class } let(:base_class) { Dependabot::MetadataFinders::Base } it "inherits from MetadataFin...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/metadata_finders/base/release_finder_spec.rb
Ruby
mit
5,556
main
19,689
# typed: false # frozen_string_literal: true require "octokit" require "gitlab" require "spec_helper" require "dependabot/dependency" require "dependabot/source" require "dependabot/metadata_finders/base/release_finder" RSpec.describe Dependabot::MetadataFinders::Base::ReleaseFinder do subject(:finder) do descr...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/metadata_finders/base/changelog_finder_spec.rb
Ruby
mit
5,556
main
41,101
# typed: false # frozen_string_literal: true require "octokit" require "gitlab" require "spec_helper" require "dependabot/credential" require "dependabot/dependency" require "dependabot/source" require "dependabot/metadata_finders/base/changelog_finder" RSpec.describe Dependabot::MetadataFinders::Base::ChangelogFinde...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/metadata_finders/base/commits_finder_spec.rb
Ruby
mit
5,556
main
43,819
# typed: false # frozen_string_literal: true require "octokit" require "spec_helper" require "dependabot/dependency" require "dependabot/source" require "dependabot/metadata_finders/base/commits_finder" RSpec.describe Dependabot::MetadataFinders::Base::CommitsFinder do subject(:builder) do described_class.new( ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/metadata_finders/base/changelog_pruner_spec.rb
Ruby
mit
5,556
main
9,133
# typed: false # frozen_string_literal: true require "json" require "base64" require "spec_helper" require "dependabot/dependency" require "dependabot/metadata_finders/base/changelog_pruner" RSpec.describe Dependabot::MetadataFinders::Base::ChangelogPruner do subject(:pruner) do described_class.new( chan...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/config/file_fetcher_spec.rb
Ruby
mit
5,556
main
2,031
# typed: false # frozen_string_literal: true require "dependabot/source" require "dependabot/config/file_fetcher" require "spec_helper" RSpec.describe Dependabot::Config::FileFetcher do let(:repo) { "gocardless/bump" } let(:source) do Dependabot::Source.new( provider: "github", repo: repo, d...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/config/update_config_spec.rb
Ruby
mit
5,556
main
13,813
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/config" require "dependabot/config/file" require "dependabot/config/update_config" RSpec.describe Dependabot::Config::UpdateConfig do describe "#ignored_versions_for" do subject(:ignored_versions) { config.ignored_versions_fo...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/config/file_spec.rb
Ruby
mit
5,556
main
2,420
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/config" require "dependabot/config/file" require "dependabot/config/update_config" RSpec.describe Dependabot::Config::File do describe "#parse" do it "parses the config file" do cfg = described_class.parse(fixture("conf...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/config/ignore_condition_spec.rb
Ruby
mit
5,556
main
11,273
# typed: false # frozen_string_literal: true require "dependabot/config/ignore_condition" require "dependabot/dependency" require "spec_helper" RSpec.describe Dependabot::Config::IgnoreCondition do let(:dependency_name) { "test" } let(:dependency_version) { "1.2.3" } let(:ignore_condition) { described_class.new...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/update_checkers/shared_examples_for_update_checkers.rb
Ruby
mit
5,556
main
2,081
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/update_checkers/base" RSpec.shared_examples "an update checker" do describe "the class" do subject { described_class } let(:base_class) { Dependabot::UpdateCheckers::Base } def recent_ancestors ancestors = des...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/update_checkers/version_filters_spec.rb
Ruby
mit
5,556
main
4,336
# typed: false # frozen_string_literal: true require "dependabot/update_checkers/version_filters" require "dependabot/package/package_release" require "rspec" RSpec.describe Dependabot::UpdateCheckers::VersionFilters do describe ".filter_vulnerable_versions" do let(:security_advisory) { instance_double(Dependab...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/update_checkers/cooldown_calculation_spec.rb
Ruby
mit
5,556
main
3,357
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/update_checkers/cooldown_calculation" require "dependabot/package/release_cooldown_options" RSpec.describe Dependabot::UpdateCheckers::CooldownCalculation do describe ".within_cooldown_window?" do it "returns true when releas...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
common/spec/dependabot/update_checkers/base_spec.rb
Ruby
mit
5,556
main
18,830
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/security_advisory" require "dependabot/update_checkers/base" RSpec.describe Dependabot::UpdateCheckers::Base do let(:updater_instance) do described_class.new( dependency: dependency, ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
nix/dependabot-nix.gemspec
Ruby
mit
5,556
main
1,300
# frozen_string_literal: true Gem::Specification.new do |spec| common_gemspec = Bundler.load_gemspec_uncached("../common/dependabot-common.gemspec") spec.name = "dependabot-nix" spec.summary = "Provides Dependabot support for Nix" spec.description = "Dependabot-Nix provides support for bumpi...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
nix/lib/dependabot/nix.rb
Ruby
mit
5,556
main
713
# typed: strong # 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/nix/file_fetcher" require "dependabot/nix/file_parser" require "dependabot/nix/update_checker" require "dependabot...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
nix/lib/dependabot/nix/file_fetcher.rb
Ruby
mit
5,556
main
1,514
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/file_fetchers" require "dependabot/file_fetchers/base" module Dependabot module Nix class FileFetcher < Dependabot::FileFetchers::Base extend T::Sig sig { override.params(filenames: T::Array[String]).returns(...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
nix/lib/dependabot/nix/update_checker.rb
Ruby
mit
5,556
main
6,006
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/update_checkers" require "dependabot/update_checkers/base" require "dependabot/nix/version" require "dependabot/nix/requirement" require "dependabot/git_commit_checker" module Dependabot module Nix class UpdateChecker < ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
nix/lib/dependabot/nix/file_parser.rb
Ruby
mit
5,556
main
6,653
# typed: strict # frozen_string_literal: true require "json" require "sorbet-runtime" require "dependabot/dependency" require "dependabot/file_parsers" require "dependabot/file_parsers/base" require "dependabot/shared_helpers" require "dependabot/nix/package_manager" module Dependabot module Nix class FilePars...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
nix/lib/dependabot/nix/package_manager.rb
Ruby
mit
5,556
main
944
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/ecosystem" require "dependabot/nix/version" module Dependabot module Nix ECOSYSTEM = "nix" PACKAGE_MANAGER = "nix" SUPPORTED_NIX_VERSIONS = T.let([].freeze, T::Array[Dependabot::Version]) DEPRECATED_NIX_VERSIO...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
nix/lib/dependabot/nix/metadata_finder.rb
Ruby
mit
5,556
main
656
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/metadata_finders" require "dependabot/metadata_finders/base" module Dependabot module Nix class MetadataFinder < Dependabot::MetadataFinders::Base extend T::Sig private sig { override.returns(T.nilabl...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
nix/lib/dependabot/nix/requirement.rb
Ruby
mit
5,556
main
799
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/requirement" require "dependabot/utils" module Dependabot module Nix class Requirement < Dependabot::Requirement extend T::Sig sig { override.params(requirement_string: T.nilable(String)).returns(T::Array[Re...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
nix/lib/dependabot/nix/file_updater.rb
Ruby
mit
5,556
main
3,300
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/errors" require "dependabot/file_updaters" require "dependabot/file_updaters/base" require "dependabot/shared_helpers" require "dependabot/nix/flake_nix_parser" module Dependabot module Nix class FileUpdater < Dependabot...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
nix/lib/dependabot/nix/version.rb
Ruby
mit
5,556
main
271
# typed: strong # frozen_string_literal: true require "dependabot/version" require "dependabot/utils" module Dependabot module Nix class Version < Dependabot::Version end end end Dependabot::Utils .register_version_class("nix", Dependabot::Nix::Version)
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
nix/lib/dependabot/nix/flake_nix_parser.rb
Ruby
mit
5,556
main
7,305
# typed: strict # frozen_string_literal: true require "sorbet-runtime" module Dependabot module Nix # Parses flake.nix content to locate input URL declarations and extract # their components (scheme, owner, repo, ref). Only handles the shorthand # URL schemes (github:, gitlab:, sourcehut:) since those a...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
nix/lib/dependabot/nix/package/package_details_fetcher.rb
Ruby
mit
5,556
main
4,474
# typed: strict # frozen_string_literal: true require "json" require "time" require "sorbet-runtime" require "dependabot/nix" require "dependabot/package/package_release" require "dependabot/package/package_details" require "dependabot/git_commit_checker" require "dependabot/git_metadata_fetcher" module Dependabot ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
nix/lib/dependabot/nix/update_checker/latest_version_finder.rb
Ruby
mit
5,556
main
3,182
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/package/package_latest_version_finder" require "dependabot/package/package_details" require "dependabot/nix/update_checker" require "dependabot/nix/package/package_details_fetcher" module Dependabot module Nix class Upda...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
nix/lib/dependabot/nix/update_checker/versioned_branch_finder.rb
Ruby
mit
5,556
main
6,321
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/nix/update_checker" require "dependabot/nix/requirement" require "dependabot/git_metadata_fetcher" require "dependabot/git_ref" module Dependabot module Nix class UpdateChecker # Detects versioned branch naming pat...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
nix/spec/dependabot/nix_spec.rb
Ruby
mit
5,556
main
247
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/nix" require_common_spec "shared_examples_for_autoloading" RSpec.describe Dependabot::Nix do it_behaves_like "it registers the required classes", "nix" end
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
nix/spec/dependabot/nix/metadata_finder_spec.rb
Ruby
mit
5,556
main
1,850
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/nix/metadata_finder" require_common_spec "metadata_finders/shared_examples_for_metadata_finders" RSpec.describe Dependabot::Nix::MetadataFinder do subject(:finder) do described_class.new(depend...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
nix/spec/dependabot/nix/file_parser_spec.rb
Ruby
mit
5,556
main
4,549
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency_file" require "dependabot/nix/file_parser" require_common_spec "file_parsers/shared_examples_for_file_parsers" RSpec.describe Dependabot::Nix::FileParser do subject(:parser) do described_class.new( dependency...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
nix/spec/dependabot/nix/update_checker_spec.rb
Ruby
mit
5,556
main
12,366
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/nix/update_checker" require_common_spec "update_checkers/shared_examples_for_update_checkers" RSpec.describe Dependabot::Nix::UpdateChecker do let(:url) { "https://github.com/NixOS/nixpkgs" } let...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
nix/spec/dependabot/nix/file_updater_spec.rb
Ruby
mit
5,556
main
6,718
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/nix/file_updater" require_common_spec "file_updaters/shared_examples_for_file_updaters" RSpec.describe Dependabot::Nix::FileUpdater do let(:dependency) do D...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
nix/spec/dependabot/nix/flake_nix_parser_spec.rb
Ruby
mit
5,556
main
9,628
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/nix/flake_nix_parser" RSpec.describe Dependabot::Nix::FlakeNixParser do def fixture(name) File.read( File.join(__dir__, "fixtures", name) ) end describe ".find_input_url" do context "with dot-notation input...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
nix/spec/dependabot/nix/file_fetcher_spec.rb
Ruby
mit
5,556
main
2,630
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/nix/file_fetcher" require_common_spec "file_fetchers/shared_examples_for_file_fetchers" RSpec.describe Dependabot::Nix::FileFetcher do let(:credentials) do [{ "type" => "git_source", "host" => "github.com", ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
nix/spec/dependabot/nix/package_manager_spec.rb
Ruby
mit
5,556
main
723
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/nix/package_manager" RSpec.describe Dependabot::Nix::PackageManager do subject(:package_manager) { described_class.new("2.28.3") } describe "#name" do it "returns nix" do expect(package_manager.name).to eq("nix") ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
nix/spec/dependabot/nix/update_checker/versioned_branch_finder_spec.rb
Ruby
mit
5,556
main
10,005
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/git_ref" require "dependabot/nix/update_checker/versioned_branch_finder" RSpec.describe Dependabot::Nix::UpdateChecker::VersionedBranchFinder do subject(:finder) do described_class.new( c...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
composer/dependabot-composer.gemspec
Ruby
mit
5,556
main
1,434
# frozen_string_literal: true Gem::Specification.new do |spec| common_gemspec = Bundler.load_gemspec_uncached("../common/dependabot-common.gemspec") spec.name = "dependabot-composer" spec.summary = "Provides Dependabot support for PHP (composer)" spec.description = "Dependabot-Composer provi...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
composer/lib/dependabot/composer.rb
Ruby
mit
5,556
main
911
# 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/composer/file_fetcher" require "dependabot/composer/file_parser" require "dependabot/composer/update_checker" requ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
composer/lib/dependabot/composer/language.rb
Ruby
mit
5,556
main
773
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/ecosystem" require "dependabot/composer/requirement" require "dependabot/composer/version" module Dependabot module Composer class Language < Dependabot::Ecosystem::VersionManager extend T::Sig NAME = "php" ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
composer/lib/dependabot/composer/metadata_finder.rb
Ruby
mit
5,556
main
2,631
# typed: strict # frozen_string_literal: true require "excon" require "sorbet-runtime" require "dependabot/metadata_finders" require "dependabot/metadata_finders/base" require "dependabot/registry_client" require "dependabot/composer/version" module Dependabot module Composer class MetadataFinder < Dependabot:...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
composer/lib/dependabot/composer/package_manager.rb
Ruby
mit
5,556
main
1,724
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/ecosystem" require "dependabot/composer/version" module Dependabot module Composer ECOSYSTEM = "composer" class PackageManager < Dependabot::Ecosystem::VersionManager extend T::Sig NAME = "composer" ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
composer/lib/dependabot/composer/update_checker.rb
Ruby
mit
5,556
main
7,651
# typed: strict # frozen_string_literal: true require "json" require "sorbet-runtime" require "dependabot/errors" require "dependabot/requirements_update_strategy" require "dependabot/shared_helpers" require "dependabot/update_checkers" require "dependabot/update_checkers/base" module Dependabot module Composer ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
composer/lib/dependabot/composer/version.rb
Ruby
mit
5,556
main
740
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/version" require "dependabot/utils" # PHP 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. module Dependabot module Compos...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
composer/lib/dependabot/composer/file_updater.rb
Ruby
mit
5,556
main
2,430
# typed: strict # frozen_string_literal: true require "dependabot/file_updaters" require "dependabot/file_updaters/base" require "dependabot/shared_helpers" require "dependabot/errors" module Dependabot module Composer class FileUpdater < Dependabot::FileUpdaters::Base require_relative "file_updater/manif...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
composer/lib/dependabot/composer/file_fetcher.rb
Ruby
mit
5,556
main
9,532
# typed: strict # frozen_string_literal: true require "json" require "sorbet-runtime" require "dependabot/file_fetchers" require "dependabot/file_fetchers/base" require "dependabot/file_filtering" module Dependabot module Composer class FileFetcher < Dependabot::FileFetchers::Base extend T::Sig exte...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
composer/lib/dependabot/composer/file_parser.rb
Ruby
mit
5,556
main
11,186
# typed: strict # frozen_string_literal: true require "dependabot/composer" require "dependabot/dependency" require "dependabot/composer/version" require "dependabot/file_parsers" require "dependabot/file_parsers/base" require "dependabot/shared_helpers" require "dependabot/errors" module Dependabot module Composer...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
composer/lib/dependabot/composer/native_helpers.rb
Ruby
mit
5,556
main
707
# typed: strong # frozen_string_literal: true require "sorbet-runtime" module Dependabot module Composer module NativeHelpers extend T::Sig sig { params(composer_version: String).returns(String) } def self.composer_helper_path(composer_version: "2") File.join(composer_helpers_dir, "v#...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
composer/lib/dependabot/composer/requirement.rb
Ruby
mit
5,556
main
4,284
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/requirement" require "dependabot/utils" module Dependabot module Composer class Requirement < Dependabot::Requirement extend T::Sig AND_SEPARATOR = /(?<=[a-zA-Z0-9*])(?<!\sas)[\s,]+(?![\s,]*[|-]|as)/ O...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
composer/lib/dependabot/composer/helpers.rb
Ruby
mit
5,556
main
7,851
# typed: strict # frozen_string_literal: true require "dependabot/composer/version" require "sorbet-runtime" module Dependabot module Composer module Helpers extend T::Sig V1 = T.let("1", String) V2 = T.let("2", String) # If we are updating a project with no lock file then the default s...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
composer/lib/dependabot/composer/update_checker/version_resolver.rb
Ruby
mit
5,556
main
28,448
# typed: strict # frozen_string_literal: true require "json" require "uri" require "sorbet-runtime" require "dependabot/errors" require "dependabot/shared_helpers" require "dependabot/composer/update_checker" require "dependabot/composer/version" require "dependabot/composer/requirement" require "dependabot/composer/...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
composer/lib/dependabot/composer/update_checker/latest_version_finder.rb
Ruby
mit
5,556
main
3,478
# typed: strict # frozen_string_literal: true require "excon" require "json" require "sorbet-runtime" require "dependabot/composer/update_checker" require "dependabot/update_checkers/version_filters" require "dependabot/shared_helpers" require "dependabot/errors" require "dependabot/composer/package/package_details_f...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
composer/lib/dependabot/composer/update_checker/requirements_updater.rb
Ruby
mit
5,556
main
12,158
# typed: strict # frozen_string_literal: true ################################################################################ # For more details on Composer version constraints, see: # # https://getcomposer.org/doc/articles/versions.md#writing-version-constraints # ##############################...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
composer/lib/dependabot/composer/package/package_details_fetcher.rb
Ruby
mit
5,556
main
10,220
# typed: strict # frozen_string_literal: true require "json" require "time" require "cgi" require "excon" require "nokogiri" require "sorbet-runtime" require "dependabot/registry_client" require "dependabot/package/package_release" require "dependabot/package/package_details" # Stores metadata for a package, includin...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
composer/lib/dependabot/composer/file_updater/lockfile_updater.rb
Ruby
mit
5,556
main
23,533
# typed: strict # frozen_string_literal: true require "dependabot/shared_helpers" require "dependabot/errors" require "dependabot/composer/file_parser" require "dependabot/composer/file_updater" require "dependabot/composer/version" require "dependabot/composer/requirement" require "dependabot/composer/native_helpers"...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
composer/lib/dependabot/composer/file_updater/manifest_updater.rb
Ruby
mit
5,556
main
2,925
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/composer/file_updater" module Dependabot module Composer class FileUpdater class ManifestUpdater extend T::Sig sig { params(dependencies: T::Array[Dependabot::Dependency], manifest: Dependabot::Dep...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
composer/lib/dependabot/composer/file_fetcher/path_dependency_builder.rb
Ruby
mit
5,556
main
2,519
# typed: strict # frozen_string_literal: true require "json" require "sorbet-runtime" require "dependabot/dependency_file" require "dependabot/composer/file_fetcher" require "dependabot/composer/file_parser" module Dependabot module Composer class FileFetcher class PathDependencyBuilder extend T:...