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
updater/spec/dependabot/logger/job_formatter_spec.rb
Ruby
mit
5,556
main
1,617
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/logger/formats" RSpec.describe Dependabot::Logger::JobFormatter do describe "#new" do it "returns a formatter when provided a job_id" do formatter = described_class.new("job_id") expect(formatter).to be_a(describe...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/sentry/exception_sanitizer_processor_spec.rb
Ruby
mit
5,556
main
4,137
# typed: false # frozen_string_literal: true require "sentry-ruby" require "spec_helper" require "dependabot/sentry/exception_sanitizer_processor" RSpec.describe ExceptionSanitizer do subject { exception } let(:message) { "kaboom" } let(:exception) { instance_double(::Sentry::SingleExceptionInterface, value: ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/dependabot/sentry/sentry_context_processor_spec.rb
Ruby
mit
5,556
main
994
# typed: false # frozen_string_literal: true require "sentry-ruby" require "spec_helper" require "dependabot/errors" require "dependabot/sentry/sentry_context_processor" RSpec.describe SentryContext do subject { event } let(:sentry_context) { { foo: "bar" } } let(:exception) { double(::Dependabot::DependabotE...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/support/dependency_file_helpers.rb
Ruby
mit
5,556
main
284
# typed: false # frozen_string_literal: true module DependencyFileHelpers def encode_dependency_files(files) files.map do |file| base64_file = file.dup base64_file.content = Base64.encode64(file.content) unless file.binary? base64_file.to_h end end end
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/support/dummy_pkg_helpers.rb
Ruby
mit
5,556
main
3,177
# typed: false # frozen_string_literal: true require "dependabot/ecosystem" require "dependabot/dependency_file" # This module provides some shortcuts for working with our two mock RubyGems packages: # - https://rubygems.org/gems/dummy-pkg-a # - https://rubygems.org/gems/dummy-pkg-b # module DummyPkgHelpers def stu...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/support/dummy_package_manager/update_checker.rb
Ruby
mit
5,556
main
654
# typed: false # frozen_string_literal: true require "dependabot/update_checkers" require "dependabot/update_checkers/base" require "dependabot/errors" module DummyPackageManager class UpdateChecker < Dependabot::UpdateCheckers::Base def latest_version "9.9.9" end def up_to_date? false ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/support/dummy_package_manager/version.rb
Ruby
mit
5,556
main
262
# typed: false # frozen_string_literal: true require "dependabot/version" require "dependabot/utils" module DummyPackageManager class Version < Dependabot::Version end end Dependabot::Utils .register_version_class("dummy", DummyPackageManager::Version)
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/support/dummy_package_manager/file_updater.rb
Ruby
mit
5,556
main
1,598
# typed: false # frozen_string_literal: true require "dependabot/file_updaters" require "dependabot/file_updaters/base" module DummyPackageManager class FileUpdater < Dependabot::FileUpdaters::Base def updated_dependency_files updated_files = [] dependency_files.each do |file| next unless re...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/support/dummy_package_manager/requirement.rb
Ruby
mit
5,556
main
509
# typed: false # frozen_string_literal: true require "dependabot/requirement" require "dependabot/utils" module DummyPackageManager class Requirement < Dependabot::Requirement AND_SEPARATOR = /(?<=[a-zA-Z0-9*])\s+(?:&+\s+)?(?!\s*[|-])/ def self.requirements_array(requirement_string) requirements = re...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/support/dummy_package_manager/file_fetcher.rb
Ruby
mit
5,556
main
495
# typed: false # frozen_string_literal: true require "dependabot/file_fetchers" require "dependabot/file_fetchers/base" module DummyPackageManager class FileFetcher < Dependabot::FileFetchers::Base def fetch_files [a_dummy, b_dummy].compact end private def a_dummy fetch_file_if_present...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/support/dummy_package_manager/file_parser.rb
Ruby
mit
5,556
main
1,170
# typed: false # frozen_string_literal: true require "dependabot/dependency" require "dependabot/file_parsers" require "dependabot/file_parsers/base" module DummyPackageManager class FileParser < Dependabot::FileParsers::Base require "dependabot/file_parsers/base/dependency_set" def parse dependency_...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
updater/spec/support/dummy_package_manager/dummy.rb
Ruby
mit
5,556
main
526
# typed: false # frozen_string_literal: true require_relative "version" require_relative "requirement" require_relative "file_fetcher" require_relative "file_parser" require_relative "update_checker" require_relative "file_updater" require "dependabot/dependency" Dependabot::Dependency.register_production_check( "...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
docker_compose/dependabot-docker_compose.gemspec
Ruby
mit
5,556
main
1,405
# frozen_string_literal: true Gem::Specification.new do |spec| common_gemspec = Bundler.load_gemspec_uncached("../common/dependabot-common.gemspec") spec.name = "dependabot-docker_compose" spec.summary = "Provides Dependabot support for Docker Compose" spec.description = "Dependabot-Docker-C...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
docker_compose/lib/dependabot/docker_compose.rb
Ruby
mit
5,556
main
1,020
# 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/docker" require "dependabot/docker_compose/file_fetcher" require "dependabot/docker_compose/file_parser" require...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
docker_compose/lib/dependabot/docker_compose/file_parser.rb
Ruby
mit
5,556
main
3,602
# typed: strict # frozen_string_literal: true require "yaml" require "dependabot/shared/shared_file_parser" require "dependabot/docker_compose/package_manager" module Dependabot module DockerCompose class FileParser < Dependabot::Shared::SharedFileParser extend T::Sig ENV_VAR = /\${(?<variable_name...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
docker_compose/lib/dependabot/docker_compose/file_fetcher.rb
Ruby
mit
5,556
main
1,930
# typed: strict # frozen_string_literal: true require "dependabot/shared/shared_file_fetcher" module Dependabot module DockerCompose class FileFetcher < Dependabot::Shared::SharedFileFetcher FILENAME_REGEX = /(docker-)?compose(-[\w]+)?(?>\.[\w-]+)?\.ya?ml/i sig { override.returns(T::Array[Dependenc...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
docker_compose/lib/dependabot/docker_compose/package_manager.rb
Ruby
mit
5,556
main
1,219
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/ecosystem" module Dependabot module DockerCompose ECOSYSTEM = "docker_compose" SUPPORTED_VERSIONS = T.let([].freeze, T::Array[Dependabot::Version]) DEPRECATED_VERSIONS = T.let([].freeze, T::Array[Dependabot::Ver...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
docker_compose/lib/dependabot/docker_compose/file_updater.rb
Ruby
mit
5,556
main
1,564
# typed: strict # frozen_string_literal: true require "dependabot/shared/shared_file_updater" module Dependabot module DockerCompose class FileUpdater < Dependabot::Shared::SharedFileUpdater extend T::Sig extend T::Helpers YAML_REGEXP = /(docker-)?compose(?>\.[\w-]+)?\.ya?ml/i IMAGE_REG...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
docker_compose/spec/dependabot/docker_compose_spec.rb
Ruby
mit
5,556
main
279
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/docker_compose" require_common_spec "shared_examples_for_autoloading" RSpec.describe Dependabot::DockerCompose do it_behaves_like "it registers the required classes", "docker_compose" end
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
docker_compose/spec/dependabot/docker_compose/file_fetcher_spec.rb
Ruby
mit
5,556
main
5,442
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/docker_compose/file_fetcher" require_common_spec "file_fetchers/shared_examples_for_file_fetchers" RSpec.describe Dependabot::DockerCompose::FileFetcher do let(:credentials) do [{ "type" => "git_source", "host" =>...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
docker_compose/spec/dependabot/docker_compose/file_updater_spec.rb
Ruby
mit
5,556
main
19,006
# typed: false # frozen_string_literal: true require "spec_helper" require "yaml" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/source" require "dependabot/docker_compose/file_updater" require_common_spec "file_updaters/shared_examples_for_file_updaters" RSpec.describe Depen...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
docker_compose/spec/dependabot/docker_compose/file_parser_spec.rb
Ruby
mit
5,556
main
17,891
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency_file" require "dependabot/source" require "dependabot/docker_compose/file_parser" require_common_spec "file_parsers/shared_examples_for_file_parsers" RSpec.describe Dependabot::DockerCompose::FileParser do let(:source...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/dependabot-go_modules.gemspec
Ruby
mit
5,556
main
1,429
# frozen_string_literal: true Gem::Specification.new do |spec| common_gemspec = Bundler.load_gemspec_uncached("../common/dependabot-common.gemspec") spec.name = "dependabot-go_modules" spec.summary = "Provides Dependabot support for Go Modules" spec.description = "Dependabot-Go_Modules provi...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/spec/dependabot/go_modules_spec.rb
Ruby
mit
5,556
main
267
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/go_modules" require_common_spec "shared_examples_for_autoloading" RSpec.describe Dependabot::GoModules do it_behaves_like "it registers the required classes", "go_modules" end
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/spec/dependabot/go_modules/update_checker_spec.rb
Ruby
mit
5,556
main
6,349
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/go_modules/update_checker" require_common_spec "update_checkers/shared_examples_for_update_checkers" RSpec.describe Dependabot::GoModules::UpdateChecker do befo...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/spec/dependabot/go_modules/file_fetcher_spec.rb
Ruby
mit
5,556
main
2,594
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/go_modules/file_fetcher" require_common_spec "file_fetchers/shared_examples_for_file_fetchers" RSpec.describe Dependabot::GoModules::FileFetcher do let(:directory) { "/" } let(:file_fetcher_instance) do described_class.new(...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/spec/dependabot/go_modules/metadata_finder_spec.rb
Ruby
mit
5,556
main
1,699
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/go_modules/metadata_finder" require_common_spec "metadata_finders/shared_examples_for_metadata_finders" RSpec.describe Dependabot::GoModules::MetadataFinder do subject(:finder) do described_cla...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/spec/dependabot/go_modules/dependency_grapher_spec.rb
Ruby
mit
5,556
main
11,814
# typed: strict # frozen_string_literal: true require "spec_helper" require "dependabot/go_modules" RSpec.describe Dependabot::GoModules::DependencyGrapher do subject(:grapher) do Dependabot::DependencyGraphers.for_package_manager("go_modules").new( file_parser: parser ) end let(:project_name) { ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/spec/dependabot/go_modules/file_parser_spec.rb
Ruby
mit
5,556
main
13,815
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency_file" require "dependabot/source" require "dependabot/dependency" require "dependabot/go_modules/file_parser" require_common_spec "file_parsers/shared_examples_for_file_parsers" RSpec.describe Dependabot::GoModules::File...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/spec/dependabot/go_modules/requirement_spec.rb
Ruby
mit
5,556
main
7,491
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/go_modules/requirement" RSpec.describe Dependabot::GoModules::Requirement do subject(:requirement) { described_class.new(requirement_string) } let(:requirement_string) { ">=1.0.0" } describe ".new" do it { is_expected.t...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/spec/dependabot/go_modules/version_spec.rb
Ruby
mit
5,556
main
4,281
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/go_modules/version" RSpec.describe Dependabot::GoModules::Version do subject(:version) { described_class.new(version_string) } let(:version_string) { "1.0.0" } describe ".correct?" do subject { described_class.correct?(...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/spec/dependabot/go_modules/requirement_parser_spec.rb
Ruby
mit
5,556
main
5,132
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/go_modules/requirement_parser" RSpec.describe Dependabot::GoModules::RequirementParser do describe ".parse" do subject(:parsed) { described_class.parse(dependency_string) } context "with a standard module@version string"...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/spec/dependabot/go_modules/path_converter_spec.rb
Ruby
mit
5,556
main
1,729
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/go_modules/path_converter" RSpec.describe Dependabot::GoModules::PathConverter do describe ".git_url_for_path" do subject { described_class.git_url_for_path(path) } let(:path) { "gopkg.in/guregu/null.v3" } context "...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/spec/dependabot/go_modules/file_updater_spec.rb
Ruby
mit
5,556
main
8,438
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/go_modules/file_updater" require "dependabot/shared_helpers" require_common_spec "file_updaters/shared_examples_for_file_updaters" RSpec.describe Dependabot::GoMo...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/spec/dependabot/go_modules/azure_devops_path_normalizer_spec.rb
Ruby
mit
5,556
main
1,167
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/go_modules/azure_devops_path_normalizer" RSpec.describe Dependabot::GoModules::AzureDevopsPathNormalizer do describe ".normalize" do it "adds _git when missing and removes .git suffix" do name = "dev.azure.com/VaronisIO...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/spec/dependabot/go_modules/replace_stubber_spec.rb
Ruby
mit
5,556
main
1,114
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/go_modules/replace_stubber" RSpec.describe Dependabot::GoModules::ReplaceStubber do subject(:stubbed) { described_class.new(repo_contents_path).stub_paths(manifest, directory) } let(:directory) { "/" } let(:repo_contents_pat...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/spec/dependabot/go_modules/language_spec.rb
Ruby
mit
5,556
main
818
# typed: false # frozen_string_literal: true require "dependabot/go_modules/language" require "dependabot/ecosystem" require "spec_helper" RSpec.describe Dependabot::GoModules::Language do let(:language) { described_class.new(version) } let(:version) { "3.0.0" } describe "#version" do it "returns the versi...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/spec/dependabot/go_modules/package_manager_spec.rb
Ruby
mit
5,556
main
991
# typed: false # frozen_string_literal: true require "dependabot/go_modules/package_manager" require "dependabot/ecosystem" require "spec_helper" RSpec.describe Dependabot::GoModules::PackageManager do subject(:package_manager) { described_class.new(version) } let(:version) { "1.12" } describe "#version" do ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/spec/dependabot/go_modules/file_updater/go_mod_updater_spec.rb
Ruby
mit
5,556
main
38,384
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/go_modules/file_updater/go_mod_updater" require "dependabot/go_modules/file_parser" RSpec.describe Dependabot::GoModules::FileUpdater::GoModUpdater do let(:upda...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/spec/dependabot/go_modules/update_checker/latest_version_finder_spec.rb
Ruby
mit
5,556
main
19,151
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/go_modules/native_helpers" require "dependabot/go_modules/update_checker/latest_version_finder" RSpec.describe Dependabot::GoModules::UpdateChecker::LatestVersion...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/spec/dependabot/go_modules/package/package_details_fetcher_spec.rb
Ruby
mit
5,556
main
7,056
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/credential" require "dependabot/dependency_file" require "dependabot/go_modules/package/package_details_fetcher" require "dependabot/package/package_release" RSpec.describe Dependabot::GoModules::Package::PackageDetailsFetcher do ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/lib/dependabot/go_modules.rb
Ruby
mit
5,556
main
826
# 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/go_modules/dependency_grapher" require "dependabot/go_modules/file_fetcher" require "dependabot/go_modules/file_pa...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/lib/dependabot/go_modules/dependency_grapher.rb
Ruby
mit
5,556
main
3,895
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/dependency_graphers" require "dependabot/dependency_graphers/base" module Dependabot module GoModules class DependencyGrapher < Dependabot::DependencyGraphers::Base # Used to capture output from `go mod graph` ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/lib/dependabot/go_modules/requirement_parser.rb
Ruby
mit
5,556
main
1,344
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/go_modules/version" module Dependabot module GoModules class RequirementParser extend T::Sig MODULE_PATH = %r{[a-zA-Z0-9\-_.~]+(?:/[a-zA-Z0-9\-_.~]+)+} GO_VERSION = /v?#{Version::VERSION_PATTERN}/ ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/lib/dependabot/go_modules/replace_stubber.rb
Ruby
mit
5,556
main
2,320
# typed: strict # frozen_string_literal: true require "sorbet-runtime" module Dependabot module GoModules # Given a go.mod file, find all `replace` directives pointing to a path # on the local filesystem outside of the current checkout, and return a hash # mapping the original path to a hash of the path...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/lib/dependabot/go_modules/native_helpers.rb
Ruby
mit
5,556
main
672
# typed: strong # frozen_string_literal: true require "sorbet-runtime" module Dependabot module GoModules module NativeHelpers extend T::Sig sig { returns(String) } def self.helper_path clean_path(File.join(native_helpers_root, "go_modules/bin/helper")) end sig { returns(...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/lib/dependabot/go_modules/file_fetcher.rb
Ruby
mit
5,556
main
2,105
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/file_fetchers" require "dependabot/file_fetchers/base" module Dependabot module GoModules class FileFetcher < Dependabot::FileFetchers::Base extend T::Sig extend T::Helpers sig { override.params(filenam...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/lib/dependabot/go_modules/language.rb
Ruby
mit
5,556
main
530
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/ecosystem" require "dependabot/go_modules/version" require "dependabot/go_modules/requirement" module Dependabot module GoModules LANGUAGE = "go" class Language < Dependabot::Ecosystem::VersionManager extend T:...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/lib/dependabot/go_modules/metadata_finder.rb
Ruby
mit
5,556
main
654
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/metadata_finders" require "dependabot/metadata_finders/base" require "dependabot/go_modules/path_converter" module Dependabot module GoModules class MetadataFinder < Dependabot::MetadataFinders::Base extend T::Sig ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/lib/dependabot/go_modules/package_manager.rb
Ruby
mit
5,556
main
1,075
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/ecosystem" require "dependabot/go_modules/version" require "dependabot/go_modules/requirement" module Dependabot module GoModules ECOSYSTEM = "go" PACKAGE_MANAGER = "go_modules" SUPPORTED_GO_VERSIONS = T.let([].fr...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/lib/dependabot/go_modules/resolvability_errors.rb
Ruby
mit
5,556
main
3,378
# typed: strong # frozen_string_literal: true require "sorbet-runtime" module Dependabot module GoModules module ResolvabilityErrors extend T::Sig GITHUB_REPO_REGEX = T.let(%r{github.com/[^:@ '\n]*}, Regexp) INSECURE_PROTOCOL_REPOSITORY_REGEX = T.let( /go(?: get)?: .*: no secure proto...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/lib/dependabot/go_modules/file_parser.rb
Ruby
mit
5,556
main
9,962
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "open3" require "dependabot/dependency" require "dependabot/file_parsers/base/dependency_set" require "dependabot/go_modules/path_converter" require "dependabot/go_modules/replace_stubber" require "dependabot/errors" require "dependabot/fi...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/lib/dependabot/go_modules/azure_devops_path_normalizer.rb
Ruby
mit
5,556
main
677
# typed: strong # frozen_string_literal: true require "sorbet-runtime" module Dependabot module GoModules module AzureDevopsPathNormalizer extend T::Sig sig { params(name: String).returns(String) } def self.normalize(name) return name unless name.start_with?("dev.azure.com/") ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/lib/dependabot/go_modules/file_updater.rb
Ruby
mit
5,556
main
4,257
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/shared_helpers" require "dependabot/file_updaters" require "dependabot/file_updaters/base" require "dependabot/file_updaters/vendor_updater" module Dependabot module GoModules class FileUpdater < Dependabot::FileUpdaters...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/lib/dependabot/go_modules/update_checker.rb
Ruby
mit
5,556
main
3,574
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/update_checkers" require "dependabot/update_checkers/base" require "dependabot/shared_helpers" require "dependabot/errors" require "dependabot/go_modules/version" module Dependabot module GoModules class UpdateChecker < ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/lib/dependabot/go_modules/path_converter.rb
Ruby
mit
5,556
main
774
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/go_modules/native_helpers" module Dependabot module GoModules module PathConverter extend T::Sig sig do params(path: String) .returns( T.nilable(String) ) end ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/lib/dependabot/go_modules/version.rb
Ruby
mit
5,556
main
3,810
# typed: strict # frozen_string_literal: true # Go 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. # Best docs are at https://github.com/Masterminds/semver require "sorbet-runtime" require "dependabot/version" requi...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/lib/dependabot/go_modules/requirement.rb
Ruby
mit
5,556
main
6,032
# typed: strict # frozen_string_literal: true ################################################################################ # For more details on Go version constraints, see: # # - https://github.com/Masterminds/semver # # - https://github.com/golang/...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/lib/dependabot/go_modules/file_updater/go_mod_updater.rb
Ruby
mit
5,556
main
17,705
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/shared_helpers" require "dependabot/errors" require "dependabot/logger" require "dependabot/go_modules/file_updater" require "dependabot/go_modules/replace_stubber" require "dependabot/go_modules/resolvability_errors" module D...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/lib/dependabot/go_modules/update_checker/latest_version_finder.rb
Ruby
mit
5,556
main
10,543
# typed: strict # frozen_string_literal: true require "excon" require "sorbet-runtime" require "dependabot/go_modules/update_checker" require "dependabot/update_checkers/version_filters" require "dependabot/shared_helpers" require "dependabot/errors" require "dependabot/go_modules/requirement" require "dependabot/go_...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
go_modules/lib/dependabot/go_modules/package/package_details_fetcher.rb
Ruby
mit
5,556
main
6,035
# typed: strict # frozen_string_literal: true require "excon" require "sorbet-runtime" require "dependabot/go_modules/update_checker" require "dependabot/update_checkers/version_filters" require "dependabot/shared_helpers" require "dependabot/errors" require "dependabot/go_modules/requirement" require "dependabot/go_...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/dependabot-bundler.gemspec
Ruby
mit
5,556
main
1,471
# frozen_string_literal: true Gem::Specification.new do |spec| common_gemspec = Bundler.load_gemspec_uncached("../common/dependabot-common.gemspec") spec.name = "dependabot-bundler" spec.summary = "Provides Dependabot support for Ruby (bundler)" spec.description = "Dependabot-Bundler provide...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/helpers/v2/run.rb
Ruby
mit
5,556
main
838
# typed: true # frozen_string_literal: true gem "bundler", "~> 2.4" require "bundler" require "json" $LOAD_PATH.unshift(File.expand_path("./lib", __dir__)) $LOAD_PATH.unshift(File.expand_path("./monkey_patches", __dir__)) trap "HUP" do puts JSON.generate(error: "timeout", error_class: "Timeout::Error", trace: []) ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/helpers/v2/monkey_patches/definition_bundler_version_patch.rb
Ruby
mit
5,556
main
459
# typed: false # frozen_string_literal: true require "bundler/definition" # Ignore the Bundler version specified in the Gemfile (since the only Bundler # version available to us is the one we're using). module BundlerDefinitionBundlerVersionPatch def expanded_dependencies @expanded_dependencies ||= (dependencie...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/helpers/v2/monkey_patches/git_source_patch.rb
Ruby
mit
5,556
main
1,992
# typed: true # frozen_string_literal: true require "bundler/source" module Bundler class Source class Git class GitProxy private # Bundler allows ssh authentication when talking to GitHub but there's # no way for Dependabot to do so (it doesn't have any ssh keys). # Inste...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/helpers/v2/monkey_patches/definition_ruby_version_patch.rb
Ruby
mit
5,556
main
1,383
# typed: false # frozen_string_literal: true require "bundler/definition" module BundlerDefinitionRubyVersionPatch def ruby_version super || begin file_content = Bundler.read_file(".ruby-version") ruby_version = if /^ruby(-|\s+)([^\s#]+)/ =~ file_content ::Regexp.last_match(2) ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/helpers/v2/lib/functions.rb
Ruby
mit
5,556
main
6,381
# typed: true # frozen_string_literal: true require "functions/conflicting_dependency_resolver" require "functions/dependency_source" require "functions/file_parser" require "functions/force_updater" require "functions/lockfile_updater" require "functions/version_resolver" module Functions class NotImplementedError...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/helpers/v2/lib/functions/conflicting_dependency_resolver.rb
Ruby
mit
5,556
main
2,695
# typed: true # frozen_string_literal: true module Functions class ConflictingDependencyResolver def initialize(dependency_name:, target_version:, lockfile_name:) @dependency_name = dependency_name @target_version = target_version @lockfile_name = lockfile_name end # Finds any dependen...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/helpers/v2/lib/functions/lockfile_updater.rb
Ruby
mit
5,556
main
7,451
# typed: true # frozen_string_literal: true require "fileutils" module Functions class LockfileUpdater RETRYABLE_ERRORS = [Bundler::HTTPError].freeze GEM_NOT_FOUND_ERROR_REGEX = / locked\sto\s(?<name>[^\s]+)\s\(| not\sfind\s(?<name>[^\s]+)-\d| has\s(?<name>[^\s]+)\slocked\sat ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/helpers/v2/lib/functions/dependency_source.rb
Ruby
mit
5,556
main
2,203
# typed: true # frozen_string_literal: true module Functions class DependencySource attr_reader :gemfile_name attr_reader :dependency_name RUBYGEMS = "rubygems" PRIVATE_REGISTRY = "private" GIT = "git" OTHER = "other" def initialize(gemfile_name:, dependency_name:) @gemfile_name =...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/helpers/v2/lib/functions/force_updater.rb
Ruby
mit
5,556
main
5,526
# typed: true # frozen_string_literal: true module Functions class ForceUpdater class TopLevelDependencyDowngradedError < StandardError; end def initialize( dependency_name:, target_version:, gemfile_name:, lockfile_name:, update_multiple_dependencies: ) @dependency_n...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/helpers/v2/lib/functions/version_resolver.rb
Ruby
mit
5,556
main
4,817
# typed: true # frozen_string_literal: true module Functions class VersionResolver GEM_NOT_FOUND_ERROR_REGEX = /locked to (?<name>[^\s]+) \(/ attr_reader :dependency_name attr_reader :dependency_requirements attr_reader :gemfile_name attr_reader :lockfile_name def initialize( dependen...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/helpers/v2/lib/functions/file_parser.rb
Ruby
mit
5,556
main
3,154
# typed: true # frozen_string_literal: true require "uri" module Functions class FileParser def initialize(lockfile_name:) @lockfile_name = lockfile_name end attr_reader :lockfile_name def parsed_gemfile(gemfile_name:) Bundler::Definition.build(gemfile_name, nil, {}) ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/helpers/v2/spec/native_spec_helper.rb
Ruby
mit
5,556
main
1,360
# typed: false # frozen_string_literal: true require "rspec/its" require "webmock/rspec" require "webmock/http_lib_adapters/excon_adapter" require "debug" $LOAD_PATH.unshift(File.expand_path("../lib", __dir__)) $LOAD_PATH.unshift(File.expand_path("../monkey_patches", __dir__)) $LOAD_PATH.unshift(File.expand_path("../...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/helpers/v2/spec/ruby_version_spec.rb
Ruby
mit
5,556
main
1,247
# typed: false # frozen_string_literal: true require "native_spec_helper" require "shared_contexts" RSpec.describe BundlerDefinitionRubyVersionPatch do include_context "when in a temporary bundler directory" include_context "when stubbing rubygems compact index" let(:project_name) { "ruby_version_implied" } ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/helpers/v2/spec/functions_spec.rb
Ruby
mit
5,556
main
1,271
# typed: false # frozen_string_literal: true require "native_spec_helper" require "shared_contexts" RSpec.describe Functions do include_context "when in a temporary bundler directory" describe "#jfrog_source" do let(:project_name) { "jfrog_source" } it "returns the jfrog source" do in_tmp_folder d...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/helpers/v2/spec/shared_contexts.rb
Ruby
mit
5,556
main
1,412
# typed: false # frozen_string_literal: true require "tmpdir" require "bundler/compact_index_client" require "bundler/compact_index_client/updater" TMP_DIR_PATH = File.expand_path("../tmp", __dir__) RSpec.shared_context "when in a temporary bundler directory" do let(:project_name) { "gemfile" } let(:tmp_path) d...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/helpers/v2/spec/functions/dependency_source_spec.rb
Ruby
mit
5,556
main
6,692
# typed: false # frozen_string_literal: true require "native_spec_helper" require "shared_contexts" RSpec.describe Functions::DependencySource do include_context "when in a temporary bundler directory" let(:dependency_source) do described_class.new( gemfile_name: "Gemfile", dependency_name: depen...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/helpers/v2/spec/functions/conflicting_dependency_resolver_spec.rb
Ruby
mit
5,556
main
4,315
# typed: false # frozen_string_literal: true require "native_spec_helper" require "shared_contexts" RSpec.describe Functions::ConflictingDependencyResolver do include_context "when in a temporary bundler directory" let(:conflicting_dependency_resolver) do described_class.new( dependency_name: dependenc...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/helpers/v2/spec/functions/file_parser_spec.rb
Ruby
mit
5,556
main
3,709
# typed: false # frozen_string_literal: true require "native_spec_helper" require "shared_contexts" RSpec.describe Functions::FileParser do include_context "when in a temporary bundler directory" let(:dependency_source) do described_class.new( lockfile_name: "Gemfile.lock" ) end describe "#par...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/helpers/v2/spec/functions/force_updater_spec.rb
Ruby
mit
5,556
main
1,826
# typed: false # frozen_string_literal: true require "native_spec_helper" require "shared_contexts" RSpec.describe Functions::ForceUpdater do include_context "when in a temporary bundler directory" include_context "when stubbing rubygems compact index" let(:force_updater) do described_class.new( depe...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/helpers/v2/spec/functions/version_resolver_spec.rb
Ruby
mit
5,556
main
4,323
# typed: false # frozen_string_literal: true require "native_spec_helper" require "shared_contexts" RSpec.describe Functions::VersionResolver do include_context "when in a temporary bundler directory" include_context "when stubbing rubygems compact index" let(:version_resolver) do described_class.new( ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/helpers/spec_helpers/gem_net_http_adapter.rb
Ruby
mit
5,556
main
7,618
# typed: strict # frozen_string_literal: true require "rubygems/vendored_net_http" module WebMock module HttpLibAdapters class GemNetHttpAdapter < HttpLibAdapter adapter_for :gem_net_http OriginalGemNetHTTP = ::Gem::Net::HTTP unless const_defined?(:OriginalGemNetHTTP) def self.enable! ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/spec/spec_helper.rb
Ruby
mit
5,556
main
1,887
# typed: true # frozen_string_literal: true def common_dir @common_dir ||= Gem::Specification.find_by_name("dependabot-common").gem_dir end def require_common_spec(path) require "#{common_dir}/spec/dependabot/#{path}" end require "#{common_dir}/spec/spec_helper.rb" module PackageManagerHelper def self.bundler...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/spec/shared_contexts.rb
Ruby
mit
5,556
main
1,494
# typed: false # frozen_string_literal: true require "spec_helper" require "bundler/compact_index_client" require "bundler/compact_index_client/updater" RSpec.shared_context "when stubbing rubygems compact index" do before do # Stub the Rubygems index stub_request(:get, "https://index.rubygems.org/versions...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/spec/dependabot/bundler_spec.rb
Ruby
mit
5,556
main
259
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/bundler" require_common_spec "shared_examples_for_autoloading" RSpec.describe Dependabot::Bundler do it_behaves_like "it registers the required classes", "bundler" end
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/spec/dependabot/bundler/file_parser_spec.rb
Ruby
mit
5,556
main
25,230
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/source" require "dependabot/dependency_file" require "dependabot/bundler/file_parser" require_common_spec "file_parsers/shared_examples_for_file_parsers" RSpec.describe Dependabot::Bundler::FileParser do let(:reject_external_code...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/spec/dependabot/bundler/file_fetcher_spec.rb
Ruby
mit
5,556
main
35,548
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/bundler/file_fetcher" require_common_spec "file_fetchers/shared_examples_for_file_fetchers" RSpec.describe Dependabot::Bundler::FileFetcher do let(:credentials) do [{ "type" => "git_source", "host" => "github.com"...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/spec/dependabot/bundler/requirement_spec.rb
Ruby
mit
5,556
main
545
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/bundler/requirement" RSpec.describe Dependabot::Bundler::Requirement do subject(:requirement) { described_class.new(requirement_string) } let(:requirement_string) { ">=1.0.0" } describe ".new" do it { is_expected.to be_...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/spec/dependabot/bundler/language_spec.rb
Ruby
mit
5,556
main
2,111
# typed: false # frozen_string_literal: true require "dependabot/bundler/language" require "dependabot/bundler/requirement" require "dependabot/ecosystem" require "spec_helper" RSpec.describe Dependabot::Bundler::Language do let(:language) { described_class.new(version, requirement) } let(:version) { "3.0.0" } ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/spec/dependabot/bundler/package_manager_spec.rb
Ruby
mit
5,556
main
5,215
# typed: false # frozen_string_literal: true require "dependabot/bundler/package_manager" require "dependabot/ecosystem" require "spec_helper" RSpec.describe Dependabot::Bundler::PackageManager do let(:package_manager) do described_class.new( detected_version: detected_version, raw_version: raw_vers...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/spec/dependabot/bundler/native_helpers_spec.rb
Ruby
mit
5,556
main
3,260
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/bundler/native_helpers" RSpec.describe Dependabot::Bundler::NativeHelpers do subject(:native_helper) { described_class } describe ".run_bundler_subprocess" do let(:options) { {} } let(:native_helpers_path) { "/opt" } ...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/spec/dependabot/bundler/requirement_parse_dep_string_spec.rb
Ruby
mit
5,556
main
4,801
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/bundler/requirement" RSpec.describe Dependabot::Bundler::Requirement do describe ".parse_dep_string" do context "with a simple exact version" do it "parses scss_lint:0.52.0" do result = described_class.parse_dep...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/spec/dependabot/bundler/metadata_finder_spec.rb
Ruby
mit
5,556
main
16,511
# typed: false # frozen_string_literal: true require "octokit" require "spec_helper" require "dependabot/credential" require "dependabot/dependency" require "dependabot/bundler/metadata_finder" require_common_spec "metadata_finders/shared_examples_for_metadata_finders" RSpec.describe Dependabot::Bundler::MetadataFind...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/spec/dependabot/bundler/update_checker_spec.rb
Ruby
mit
5,556
main
70,472
# typed: false # frozen_string_literal: true require "spec_helper" require "shared_contexts" require "dependabot/bundler/update_checker" require "dependabot/dependency_file" require "dependabot/dependency" require "dependabot/requirements_update_strategy" require_common_spec "update_checkers/shared_examples_for_updat...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/spec/dependabot/bundler/file_updater_spec.rb
Ruby
mit
5,556
main
52,416
# typed: false # frozen_string_literal: true require "spec_helper" require "shared_contexts" require "dependabot/bundler/file_updater" require "dependabot/dependency_file" require "dependabot/dependency" require "dependabot/requirements_update_strategy" require_common_spec "file_updaters/shared_examples_for_file_upda...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/spec/dependabot/bundler/helper_spec.rb
Ruby
mit
5,556
main
5,662
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/bundler/helpers" RSpec.describe Dependabot::Bundler::Helpers do let(:no_lockfile) { nil } let(:no_gemfile) { nil } let(:no_ruby_version_file) { nil } let(:gemfile_with_ruby_version) do Dependabot::DependencyFile.new(na...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/spec/dependabot/bundler/dependency_grapher_spec.rb
Ruby
mit
5,556
main
3,492
# typed: strict # frozen_string_literal: true require "spec_helper" require "dependabot/bundler" require "dependabot/dependency_graphers" # TODO: Implement a concrete Bundler class RSpec.describe "Dependabot::DependencyGraphers::Generic" do context "with a bundler project" do subject(:grapher) do Dependab...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/spec/dependabot/bundler/file_fetcher/child_gemfile_finder_spec.rb
Ruby
mit
5,556
main
2,874
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/bundler/file_fetcher/child_gemfile_finder" RSpec.describe Dependabot::Bundler::FileFetcher::ChildGemfileFinder do let(:finder) { described_class.new(gemfile: ge...
github
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core
bundler/spec/dependabot/bundler/file_fetcher/included_path_finder_spec.rb
Ruby
mit
5,556
main
2,722
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/bundler/file_fetcher/included_path_finder" RSpec.describe Dependabot::Bundler::FileFetcher::IncludedPathFinder do let(:finder) { described_class.new(file: file)...