repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/composer/lib/dependabot/composer/native_helpers.rb
composer/lib/dependabot/composer/native_helpers.rb
# 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#...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/composer/lib/dependabot/composer/metadata_finder.rb
composer/lib/dependabot/composer/metadata_finder.rb
# 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:...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/composer/lib/dependabot/composer/file_parser.rb
composer/lib/dependabot/composer/file_parser.rb
# 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...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/composer/lib/dependabot/composer/package/package_details_fetcher.rb
composer/lib/dependabot/composer/package/package_details_fetcher.rb
# 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...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/composer/lib/dependabot/composer/update_checker/latest_version_finder.rb
composer/lib/dependabot/composer/update_checker/latest_version_finder.rb
# 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...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/composer/lib/dependabot/composer/update_checker/version_resolver.rb
composer/lib/dependabot/composer/update_checker/version_resolver.rb
# 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/...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/composer/lib/dependabot/composer/update_checker/requirements_updater.rb
composer/lib/dependabot/composer/update_checker/requirements_updater.rb
# typed: strict # frozen_string_literal: true ################################################################################ # For more details on Composer version constraints, see: # # https://getcomposer.org/doc/articles/versions.md#writing-version-constraints # ##############################...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/composer/lib/dependabot/composer/file_fetcher/path_dependency_builder.rb
composer/lib/dependabot/composer/file_fetcher/path_dependency_builder.rb
# 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:...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/composer/lib/dependabot/composer/file_updater/manifest_updater.rb
composer/lib/dependabot/composer/file_updater/manifest_updater.rb
# 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...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/composer/lib/dependabot/composer/file_updater/lockfile_updater.rb
composer/lib/dependabot/composer/file_updater/lockfile_updater.rb
# 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"...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/spec/spec_helper.rb
github_actions/spec/spec_helper.rb
# 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"
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/spec/dependabot/github_actions_spec.rb
github_actions/spec/dependabot/github_actions_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/github_actions" require_common_spec "shared_examples_for_autoloading" RSpec.describe Dependabot::GithubActions do it_behaves_like "it registers the required classes", "github_actions" end
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/spec/dependabot/github_actions/requirement_spec.rb
github_actions/spec/dependabot/github_actions/requirement_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/github_actions/requirement" RSpec.describe Dependabot::GithubActions::Requirement do subject(:requirement) { described_class.new(requirement_string) } let(:requirement_string) { ">=1.0.0" } describe ".new" do it { is_ex...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/spec/dependabot/github_actions/version_spec.rb
github_actions/spec/dependabot/github_actions/version_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/github_actions" RSpec.describe Dependabot::GithubActions::Version do semver_version = "v1.2.3" semver_without_v = "1.2.3" path_based_sem_version = "dummy/v1.2.3" path_based_sem_without_v = "dummy/1.2.3" describe "#correc...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/spec/dependabot/github_actions/metadata_finder_spec.rb
github_actions/spec/dependabot/github_actions/metadata_finder_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/github_actions/metadata_finder" require_common_spec "metadata_finders/shared_examples_for_metadata_finders" RSpec.describe Dependabot::GithubActions::MetadataFinder do subject(:finder) do described_class.new(dependency: depen...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/spec/dependabot/github_actions/file_updater_spec.rb
github_actions/spec/dependabot/github_actions/file_updater_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/source" require "dependabot/github_actions/file_updater" require "dependabot/github_actions/version" require_common_spec "file_updaters/shared_examples_for_file_up...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/spec/dependabot/github_actions/update_checker_spec.rb
github_actions/spec/dependabot/github_actions/update_checker_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/github_actions/update_checker" require "dependabot/github_actions/metadata_finder" require_common_spec "update_checkers/shared_examples_for_update_checkers" RSpec.describe Dependabot::GithubActions::...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
true
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/spec/dependabot/github_actions/package_manager_spec.rb
github_actions/spec/dependabot/github_actions/package_manager_spec.rb
# typed: false # frozen_string_literal: true require "dependabot/github_actions/package_manager" require "dependabot/ecosystem" require "spec_helper" RSpec.describe Dependabot::GithubActions::PackageManager do let(:package_manager) { described_class.new } describe "#version_to_s" do it "returns the package m...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/spec/dependabot/github_actions/file_fetcher_spec.rb
github_actions/spec/dependabot/github_actions/file_fetcher_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/github_actions/file_fetcher" require_common_spec "file_fetchers/shared_examples_for_file_fetchers" RSpec.describe Dependabot::GithubActions::FileFetcher do let(:credentials) do [{ "type" => "git_source", "host" =>...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/spec/dependabot/github_actions/file_parser_spec.rb
github_actions/spec/dependabot/github_actions/file_parser_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency_file" require "dependabot/source" require "dependabot/github_actions/file_parser" require "dependabot/dependency" require_common_spec "file_parsers/shared_examples_for_file_parsers" RSpec.describe Dependabot::GithubActio...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/spec/dependabot/github_actions/package/package_details_fetcher_spec.rb
github_actions/spec/dependabot/github_actions/package/package_details_fetcher_spec.rb
# typed: false # frozen_string_literal: true require "dependabot/credential" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/github_actions/package/package_details_fetcher" require "dependabot/github_actions/version" require "dependabot/package/package_release" require "spec_he...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/spec/dependabot/github_actions/update_checker/latest_version_finder_spec.rb
github_actions/spec/dependabot/github_actions/update_checker/latest_version_finder_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/github_actions/update_checker/latest_version_finder" namespace = Dependabot::GithubActions::UpdateChecker RSpec.describe namespace::LatestVersionFinder do let(:...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/lib/dependabot/github_actions.rb
github_actions/lib/dependabot/github_actions.rb
# 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/github_actions/constants" require "dependabot/github_actions/file_fetcher" require "dependabot/github_actions/file...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/lib/dependabot/github_actions/file_fetcher.rb
github_actions/lib/dependabot/github_actions/file_fetcher.rb
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/file_fetchers" require "dependabot/file_fetchers/base" require "dependabot/github_actions/constants" module Dependabot module GithubActions class FileFetcher < Dependabot::FileFetchers::Base extend T::Sig ext...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/lib/dependabot/github_actions/file_updater.rb
github_actions/lib/dependabot/github_actions/file_updater.rb
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/errors" require "dependabot/file_updaters" require "dependabot/file_updaters/base" require "dependabot/github_actions/constants" module Dependabot module GithubActions class FileUpdater < Dependabot::FileUpdaters::Base ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/lib/dependabot/github_actions/version.rb
github_actions/lib/dependabot/github_actions/version.rb
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/utils" require "dependabot/version" module Dependabot module GithubActions class Version < Dependabot::Version extend T::Sig sig { override.params(version: VersionParameter).void } def initialize(versi...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/lib/dependabot/github_actions/requirement.rb
github_actions/lib/dependabot/github_actions/requirement.rb
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/github_actions/version" require "dependabot/requirement" require "dependabot/utils" module Dependabot module GithubActions # Lifted from the bundler package manager class Requirement < Dependabot::Requirement e...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/lib/dependabot/github_actions/package_manager.rb
github_actions/lib/dependabot/github_actions/package_manager.rb
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/github_actions/constants" require "dependabot/github_actions/version" require "dependabot/ecosystem" require "dependabot/github_actions/requirement" module Dependabot module GithubActions class PackageManager < Dependabot...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/lib/dependabot/github_actions/update_checker.rb
github_actions/lib/dependabot/github_actions/update_checker.rb
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/errors" require "dependabot/github_actions/constants" require "dependabot/github_actions/requirement" require "dependabot/github_actions/version" require "dependabot/update_checkers" require "dependabot/update_checkers/base" re...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/lib/dependabot/github_actions/constants.rb
github_actions/lib/dependabot/github_actions/constants.rb
# typed: strong # frozen_string_literal: true module Dependabot module GithubActions # Reference to the GitHub.com domain GITHUB_COM = T.let("github.com", String) # Regular expression to match a GitHub repository reference GITHUB_REPO_REFERENCE = T.let( %r{ ^(?<owner>[\w.-]+)/ ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/lib/dependabot/github_actions/helpers.rb
github_actions/lib/dependabot/github_actions/helpers.rb
# typed: strong # frozen_string_literal: true require "dependabot/dependency" require "dependabot/errors" require "dependabot/file_fetchers" require "dependabot/file_fetchers/base" require "dependabot/github_actions/constants" require "dependabot/github_actions/requirement" require "dependabot/github_actions/version" ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/lib/dependabot/github_actions/metadata_finder.rb
github_actions/lib/dependabot/github_actions/metadata_finder.rb
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/github_actions/constants" require "dependabot/metadata_finders" require "dependabot/metadata_finders/base" module Dependabot module GithubActions class MetadataFinder < Dependabot::MetadataFinders::Base extend T::Si...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/lib/dependabot/github_actions/file_parser.rb
github_actions/lib/dependabot/github_actions/file_parser.rb
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "yaml" require "dependabot/dependency" require "dependabot/errors" require "dependabot/file_parsers" require "dependabot/file_parsers/base" require "dependabot/github_actions/constants" require "dependabot/github_actions/version" require "...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/lib/dependabot/github_actions/package/package_details_fetcher.rb
github_actions/lib/dependabot/github_actions/package/package_details_fetcher.rb
# typed: strict # frozen_string_literal: true require "cgi" require "json" require "nokogiri" require "sorbet-runtime" require "time" require "dependabot/errors" require "dependabot/github_actions/helpers" require "dependabot/github_actions/requirement" require "dependabot/github_actions/update_checker" require "depe...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/github_actions/lib/dependabot/github_actions/update_checker/latest_version_finder.rb
github_actions/lib/dependabot/github_actions/update_checker/latest_version_finder.rb
# typed: strict # frozen_string_literal: true require "excon" require "sorbet-runtime" require "dependabot/errors" require "dependabot/github_actions/file_parser" require "dependabot/github_actions/package/package_details_fetcher" require "dependabot/github_actions/requirement" require "dependabot/github_actions/upda...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/spec/spec_helper.rb
conda/spec/spec_helper.rb
# 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"
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/spec/dependabot/conda_spec.rb
conda/spec/dependabot/conda_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/conda" require_common_spec "shared_examples_for_autoloading" RSpec.describe Dependabot::Conda do it_behaves_like "it registers the required classes", "conda" describe "production check" do subject(:production_check) do ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/spec/dependabot/conda/requirement_spec.rb
conda/spec/dependabot/conda/requirement_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/conda/requirement" RSpec.describe Dependabot::Conda::Requirement do subject(:requirement) { described_class.new(requirement_string) } describe ".new" do it "creates a requirement from conda-style operators" do expect...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/spec/dependabot/conda/version_spec.rb
conda/spec/dependabot/conda/version_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/conda/version" RSpec.describe Dependabot::Conda::Version do subject(:version) { described_class.new(version_string) } describe ".correct?" do it "accepts standard numeric versions" do expect(described_class.correct?(...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/spec/dependabot/conda/name_normaliser_spec.rb
conda/spec/dependabot/conda/name_normaliser_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/conda/name_normaliser" RSpec.describe Dependabot::Conda::NameNormaliser do describe ".normalise" do it "converts underscores to hyphens" do expect(described_class.normalise("package_name")).to eq("package-name") e...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/spec/dependabot/conda/conda_registry_client_spec.rb
conda/spec/dependabot/conda/conda_registry_client_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/conda/conda_registry_client" require "webmock/rspec" RSpec.describe Dependabot::Conda::CondaRegistryClient do subject(:client) { described_class.new } let(:api_base_url) { "https://api.anaconda.org" } describe "#fetch_packa...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/spec/dependabot/conda/metadata_finder_spec.rb
conda/spec/dependabot/conda/metadata_finder_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/conda/metadata_finder" require_common_spec "metadata_finders/shared_examples_for_metadata_finders" RSpec.describe Dependabot::Conda::MetadataFinder do let(:dependency) do Dependabot::Dependency.new( name: dependency_nam...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/spec/dependabot/conda/file_updater_spec.rb
conda/spec/dependabot/conda/file_updater_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/conda/file_updater" require_common_spec "file_updaters/shared_examples_for_file_updaters" RSpec.describe Dependabot::Conda::FileUpdater do let(:github_credentials) do [{ "type" => "git_source", "host" => "github.c...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/spec/dependabot/conda/update_checker_spec.rb
conda/spec/dependabot/conda/update_checker_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/conda/update_checker" require_common_spec "update_checkers/shared_examples_for_update_checkers" RSpec.describe Dependabot::Conda::UpdateChecker do let(:mock_security_fix_version) { Dependabot::Conda::Version.new("1.22.1") } let...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/spec/dependabot/conda/file_fetcher_spec.rb
conda/spec/dependabot/conda/file_fetcher_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/conda/file_fetcher" require_common_spec "file_fetchers/shared_examples_for_file_fetchers" RSpec.describe Dependabot::Conda::FileFetcher do let(:url) { "https://api.github.com/repos/example/repo/contents/" } let(:credentials) do...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/spec/dependabot/conda/file_parser_spec.rb
conda/spec/dependabot/conda/file_parser_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/conda/file_parser" require_common_spec "file_parsers/shared_examples_for_file_parsers" RSpec.describe Dependabot::Conda::FileParser do let(:source) do Dependabot::Source.new( provider: "github", repo: "example/rep...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/spec/dependabot/conda/update_checker/requirements_updater_spec.rb
conda/spec/dependabot/conda/update_checker/requirements_updater_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/conda/update_checker/requirements_updater" require "dependabot/requirements_update_strategy" RSpec.describe Dependabot::Conda::UpdateChecker::RequirementsUpdater do let(:updater) do described_class.new( requirements: re...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/spec/dependabot/conda/update_checker/requirement_translator_spec.rb
conda/spec/dependabot/conda/update_checker/requirement_translator_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/conda/update_checker" RSpec.describe Dependabot::Conda::UpdateChecker::RequirementTranslator do describe ".conda_to_pip" do context "with nil requirement" do it "returns nil" do expect(described_class.conda_to_p...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/spec/dependabot/conda/update_checker/latest_version_finder_spec.rb
conda/spec/dependabot/conda/update_checker/latest_version_finder_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/conda/update_checker" require "webmock/rspec" RSpec.describe Dependabot::Conda::UpdateChecker::LatestVersionFinder do subject(:finder) do described_class.new( dependency: dependency, dependency_files: dependency_f...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/lib/dependabot/conda.rb
conda/lib/dependabot/conda.rb
# typed: strict # frozen_string_literal: true # These all need to be required so the various classes can be registered in a # lookup table of package manager names to concrete classes. require "dependabot/conda/file_fetcher" require "dependabot/conda/file_parser" require "dependabot/conda/update_checker" require "depe...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/lib/dependabot/conda/file_fetcher.rb
conda/lib/dependabot/conda/file_fetcher.rb
# typed: strict # frozen_string_literal: true require "yaml" require "sorbet-runtime" require "dependabot/file_fetchers" require "dependabot/file_fetchers/base" module Dependabot module Conda class FileFetcher < Dependabot::FileFetchers::Base extend T::Sig ENVIRONMENT_FILE_NAMES = T.let( %w...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/lib/dependabot/conda/conda_registry_client.rb
conda/lib/dependabot/conda/conda_registry_client.rb
# typed: strict # frozen_string_literal: true require "excon" require "json" require "sorbet-runtime" require "dependabot/conda/version" require "dependabot/registry_client" require "dependabot/shared_helpers" module Dependabot module Conda class CondaRegistryClient extend T::Sig # Supported public...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/lib/dependabot/conda/file_updater.rb
conda/lib/dependabot/conda/file_updater.rb
# typed: strict # frozen_string_literal: true require "yaml" require "sorbet-runtime" require "dependabot/file_updaters" require "dependabot/file_updaters/base" require "dependabot/conda/requirement" module Dependabot module Conda class FileUpdater < Dependabot::FileUpdaters::Base extend T::Sig # C...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/lib/dependabot/conda/version.rb
conda/lib/dependabot/conda/version.rb
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/version" require "dependabot/utils" module Dependabot module Conda # Conda version handling based on conda's version specification # See: https://docs.conda.io/projects/conda/en/stable/user-guide/concepts/pkg-specs.ht...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/lib/dependabot/conda/requirement.rb
conda/lib/dependabot/conda/requirement.rb
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/requirement" require "dependabot/python/version" require "dependabot/conda/version" module Dependabot module Conda class Requirement < Dependabot::Requirement extend T::Sig # Conda uses different operators th...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/lib/dependabot/conda/package_manager.rb
conda/lib/dependabot/conda/package_manager.rb
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/ecosystem" require "dependabot/conda/version" module Dependabot module Conda ECOSYSTEM = "conda" SUPPORTED_VERSIONS = T.let([].freeze, T::Array[Dependabot::Version]) DEPRECATED_VERSIONS = T.let([].freeze, T::Arra...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/lib/dependabot/conda/update_checker.rb
conda/lib/dependabot/conda/update_checker.rb
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/update_checkers" require "dependabot/update_checkers/base" require "dependabot/conda/version" require "dependabot/conda/requirement" require "dependabot/requirements_update_strategy" module Dependabot module Conda class U...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/lib/dependabot/conda/metadata_finder.rb
conda/lib/dependabot/conda/metadata_finder.rb
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/metadata_finders" require "dependabot/metadata_finders/base" require "dependabot/python/metadata_finder" module Dependabot module Conda class MetadataFinder < Dependabot::MetadataFinders::Base extend T::Sig s...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/lib/dependabot/conda/name_normaliser.rb
conda/lib/dependabot/conda/name_normaliser.rb
# typed: strong # frozen_string_literal: true require "sorbet-runtime" module Dependabot module Conda class NameNormaliser extend T::Sig sig { params(name: String).returns(String) } def self.normalise(name) # Conda package names follow similar rules to Python packages # Conver...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/lib/dependabot/conda/file_parser.rb
conda/lib/dependabot/conda/file_parser.rb
# typed: strict # frozen_string_literal: true require "yaml" require "sorbet-runtime" require "dependabot/file_parsers" require "dependabot/file_parsers/base" require "dependabot/conda/requirement" require "dependabot/conda/version" require "dependabot/conda/package_manager" require "dependabot/conda/conda_registry_cl...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/lib/dependabot/conda/update_checker/requirement_translator.rb
conda/lib/dependabot/conda/update_checker/requirement_translator.rb
# typed: strong # frozen_string_literal: true require "sorbet-runtime" module Dependabot module Conda class UpdateChecker class RequirementTranslator extend T::Sig # Convert conda-style requirements to pip-compatible requirements sig { params(conda_requirement: T.nilable(String))....
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/lib/dependabot/conda/update_checker/latest_version_finder.rb
conda/lib/dependabot/conda/update_checker/latest_version_finder.rb
# typed: strict # frozen_string_literal: true require "yaml" require "sorbet-runtime" require "dependabot/package/package_latest_version_finder" require "dependabot/package/package_release" require "dependabot/python/update_checker/latest_version_finder" require "dependabot/dependency" require "dependabot/conda/conda_...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/conda/lib/dependabot/conda/update_checker/requirements_updater.rb
conda/lib/dependabot/conda/update_checker/requirements_updater.rb
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/conda/requirement" require "dependabot/conda/update_checker" require "dependabot/conda/version" require "dependabot/requirements_update_strategy" module Dependabot module Conda class UpdateChecker < Dependabot::UpdateChec...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/spec/spec_helper.rb
go_modules/spec/spec_helper.rb
# 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"
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/spec/dependabot/go_modules_spec.rb
go_modules/spec/dependabot/go_modules_spec.rb
# 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
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/spec/dependabot/go_modules/requirement_spec.rb
go_modules/spec/dependabot/go_modules/requirement_spec.rb
# 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...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/spec/dependabot/go_modules/version_spec.rb
go_modules/spec/dependabot/go_modules/version_spec.rb
# 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?(...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/spec/dependabot/go_modules/metadata_finder_spec.rb
go_modules/spec/dependabot/go_modules/metadata_finder_spec.rb
# 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...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/spec/dependabot/go_modules/file_updater_spec.rb
go_modules/spec/dependabot/go_modules/file_updater_spec.rb
# 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...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/spec/dependabot/go_modules/update_checker_spec.rb
go_modules/spec/dependabot/go_modules/update_checker_spec.rb
# 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...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/spec/dependabot/go_modules/package_manager_spec.rb
go_modules/spec/dependabot/go_modules/package_manager_spec.rb
# 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 ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/spec/dependabot/go_modules/path_converter_spec.rb
go_modules/spec/dependabot/go_modules/path_converter_spec.rb
# 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 "...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/spec/dependabot/go_modules/file_fetcher_spec.rb
go_modules/spec/dependabot/go_modules/file_fetcher_spec.rb
# 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(...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/spec/dependabot/go_modules/replace_stubber_spec.rb
go_modules/spec/dependabot/go_modules/replace_stubber_spec.rb
# 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...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/spec/dependabot/go_modules/file_parser_spec.rb
go_modules/spec/dependabot/go_modules/file_parser_spec.rb
# 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...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/spec/dependabot/go_modules/language_spec.rb
go_modules/spec/dependabot/go_modules/language_spec.rb
# 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...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/spec/dependabot/go_modules/dependency_grapher_spec.rb
go_modules/spec/dependabot/go_modules/dependency_grapher_spec.rb
# 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) { ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/spec/dependabot/go_modules/package/package_details_fetcher_spec.rb
go_modules/spec/dependabot/go_modules/package/package_details_fetcher_spec.rb
# 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 ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/spec/dependabot/go_modules/update_checker/latest_version_finder_spec.rb
go_modules/spec/dependabot/go_modules/update_checker/latest_version_finder_spec.rb
# 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...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/spec/dependabot/go_modules/file_updater/go_mod_updater_spec.rb
go_modules/spec/dependabot/go_modules/file_updater/go_mod_updater_spec.rb
# 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...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
true
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/lib/dependabot/go_modules.rb
go_modules/lib/dependabot/go_modules.rb
# 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...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/lib/dependabot/go_modules/file_fetcher.rb
go_modules/lib/dependabot/go_modules/file_fetcher.rb
# 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...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/lib/dependabot/go_modules/dependency_grapher.rb
go_modules/lib/dependabot/go_modules/dependency_grapher.rb
# 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` ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/lib/dependabot/go_modules/language.rb
go_modules/lib/dependabot/go_modules/language.rb
# 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:...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/lib/dependabot/go_modules/replace_stubber.rb
go_modules/lib/dependabot/go_modules/replace_stubber.rb
# 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...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/lib/dependabot/go_modules/file_updater.rb
go_modules/lib/dependabot/go_modules/file_updater.rb
# 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...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/lib/dependabot/go_modules/version.rb
go_modules/lib/dependabot/go_modules/version.rb
# 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...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/lib/dependabot/go_modules/requirement.rb
go_modules/lib/dependabot/go_modules/requirement.rb
# typed: strict # frozen_string_literal: true ################################################################################ # For more details on Go version constraints, see: # # - https://github.com/Masterminds/semver # # - https://github.com/golang/...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/lib/dependabot/go_modules/package_manager.rb
go_modules/lib/dependabot/go_modules/package_manager.rb
# 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...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/lib/dependabot/go_modules/update_checker.rb
go_modules/lib/dependabot/go_modules/update_checker.rb
# 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 < ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/lib/dependabot/go_modules/path_converter.rb
go_modules/lib/dependabot/go_modules/path_converter.rb
# 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 ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/lib/dependabot/go_modules/native_helpers.rb
go_modules/lib/dependabot/go_modules/native_helpers.rb
# 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(...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/lib/dependabot/go_modules/metadata_finder.rb
go_modules/lib/dependabot/go_modules/metadata_finder.rb
# 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 ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/lib/dependabot/go_modules/resolvability_errors.rb
go_modules/lib/dependabot/go_modules/resolvability_errors.rb
# typed: strong # frozen_string_literal: true require "sorbet-runtime" module Dependabot module GoModules module ResolvabilityErrors extend T::Sig GITHUB_REPO_REGEX = %r{github.com/[^:@ ]*} sig { params(message: String).void } def self.handle(message) mod_path = message.scan(GI...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/lib/dependabot/go_modules/file_parser.rb
go_modules/lib/dependabot/go_modules/file_parser.rb
# 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...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/lib/dependabot/go_modules/package/package_details_fetcher.rb
go_modules/lib/dependabot/go_modules/package/package_details_fetcher.rb
# 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_...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/lib/dependabot/go_modules/update_checker/latest_version_finder.rb
go_modules/lib/dependabot/go_modules/update_checker/latest_version_finder.rb
# 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_...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/go_modules/lib/dependabot/go_modules/file_updater/go_mod_updater.rb
go_modules/lib/dependabot/go_modules/file_updater/go_mod_updater.rb
# 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...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/opentofu/spec/spec_helper.rb
opentofu/spec/spec_helper.rb
# 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"
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/opentofu/spec/dependabot/opentofu_spec.rb
opentofu/spec/dependabot/opentofu_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/opentofu" require_common_spec "shared_examples_for_autoloading" RSpec.describe Dependabot::Opentofu do it_behaves_like "it registers the required classes", "opentofu" describe "Dependency#display_name" do subject(:display_...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false