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/opentofu/spec/dependabot/opentofu/requirement_spec.rb
opentofu/spec/dependabot/opentofu/requirement_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/opentofu/requirement" RSpec.describe Dependabot::Opentofu::Requirement do subject(:requirement) { described_class.new(requirement_string) } let(:requirement_string) { ">=1.0.0" } describe ".new" do it { is_expected.to b...
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/version_spec.rb
opentofu/spec/dependabot/opentofu/version_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/opentofu/version" RSpec.describe Dependabot::Opentofu::Version do subject(:version) { described_class.new(version_string) } let(:version_string) { "1.0.0" } describe "#to_s" do subject { version.to_s } context "wit...
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/requirements_updater_spec.rb
opentofu/spec/dependabot/opentofu/requirements_updater_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/opentofu/version" require "dependabot/opentofu/requirements_updater" RSpec.describe Dependabot::Opentofu::RequirementsUpdater do let(:updater) do described_class.new( requirements: requirements, latest_version: la...
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/metadata_finder_spec.rb
opentofu/spec/dependabot/opentofu/metadata_finder_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/opentofu/metadata_finder" require_common_spec "metadata_finders/shared_examples_for_metadata_finders" RSpec.describe Dependabot::Opentofu::MetadataFinder do subject(:finder) do described_class....
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/file_updater_spec.rb
opentofu/spec/dependabot/opentofu/file_updater_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/opentofu/file_updater" require_common_spec "file_updaters/shared_examples_for_file_updaters" RSpec.describe Dependabot::Opentofu::FileUpdater do subject(:update...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
true
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/opentofu/spec/dependabot/opentofu/update_checker_spec.rb
opentofu/spec/dependabot/opentofu/update_checker_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/opentofu" require "dependabot/opentofu/update_checker" require_common_spec "update_checkers/shared_examples_for_update_checkers" RSpec.describe Dependabot::Opentofu::UpdateChecker do let(:source) d...
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/package_manager_spec.rb
opentofu/spec/dependabot/opentofu/package_manager_spec.rb
# typed: false # frozen_string_literal: true require "dependabot/opentofu/package_manager" require "dependabot/ecosystem" require "spec_helper" RSpec.describe Dependabot::Opentofu::PackageManager do subject(:package_manager) { described_class.new(version) } let(:version) { "2.1.1" } describe "#version" do ...
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/file_fetcher_spec.rb
opentofu/spec/dependabot/opentofu/file_fetcher_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/opentofu/file_fetcher" require_common_spec "file_fetchers/shared_examples_for_file_fetchers" RSpec.describe Dependabot::Opentofu::FileFetcher do let(:repo_contents_path) { build_tmp_repo(project_name) } let(:directory) { "/" } ...
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/file_parser_spec.rb
opentofu/spec/dependabot/opentofu/file_parser_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency_file" require "dependabot/source" require "dependabot/opentofu/file_parser" require "dependabot/opentofu/version" require_common_spec "file_parsers/shared_examples_for_file_parsers" RSpec.describe Dependabot::Opentofu::F...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
true
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/opentofu/spec/dependabot/opentofu/registry_client_spec.rb
opentofu/spec/dependabot/opentofu/registry_client_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/opentofu/registry_client" RSpec.describe Dependabot::Opentofu::RegistryClient do subject(:client) { described_class.new } let(:module_dependency) do Dependabot::Dependency.new( name: "hashicorp/consul/aws", ver...
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/package/package_details_fetcher_spec.rb
opentofu/spec/dependabot/opentofu/package/package_details_fetcher_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/opentofu/package/package_details_fetcher" require "dependabot/dependency" require "dependabot/credential" require "dependabot/git_commit_checker" require "dependabot/git_tag_with_detail" require "excon" RSpec.describe Dependabot::Op...
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/update_checker/latest_version_resolver_spec.rb
opentofu/spec/dependabot/opentofu/update_checker/latest_version_resolver_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/opentofu/update_checker/latest_version_resolver" RSpec.describe Dependabot::Opentofu::UpdateChecker::LatestVersionResolver do let(:credentials) { [Dependabot::Credential.new(type: "git_source", token: "test-token")] } let(:depe...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/opentofu/lib/dependabot/opentofu.rb
opentofu/lib/dependabot/opentofu.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/opentofu/file_fetcher" require "dependabot/opentofu/file_parser" require "dependabot/opentofu/update_checker" requ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/opentofu/lib/dependabot/opentofu/file_fetcher.rb
opentofu/lib/dependabot/opentofu/file_fetcher.rb
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/file_fetchers" require "dependabot/file_fetchers/base" require "dependabot/opentofu/file_selector" require "dependabot/file_filtering" module Dependabot module Opentofu class FileFetcher < Dependabot::FileFetchers::Base ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/opentofu/lib/dependabot/opentofu/file_updater.rb
opentofu/lib/dependabot/opentofu/file_updater.rb
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/file_updaters" require "dependabot/file_updaters/base" require "dependabot/errors" require "dependabot/opentofu/file_selector" require "dependabot/shared_helpers" module Dependabot module Opentofu class FileUpdater < Dep...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/opentofu/lib/dependabot/opentofu/version.rb
opentofu/lib/dependabot/opentofu/version.rb
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/utils" require "dependabot/version" module Dependabot module Opentofu class Version < Dependabot::Version extend T::Sig sig { override.params(version: VersionParameter).void } def initialize(version) ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/opentofu/lib/dependabot/opentofu/requirement.rb
opentofu/lib/dependabot/opentofu/requirement.rb
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/requirement" require "dependabot/utils" require "dependabot/opentofu/version" # Just ensures that OpenTofu requirements use OpenTofu versions module Dependabot module Opentofu class Requirement < Dependabot::Requirement ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/opentofu/lib/dependabot/opentofu/package_manager.rb
opentofu/lib/dependabot/opentofu/package_manager.rb
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/ecosystem" require "dependabot/opentofu/version" module Dependabot module Opentofu ECOSYSTEM = "opentofu" PACKAGE_MANAGER = "opentofu" SUPPORTED_OPENTOFU_VERSIONS = T.let([].freeze, T::Array[Dependabot::Version]) ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/opentofu/lib/dependabot/opentofu/update_checker.rb
opentofu/lib/dependabot/opentofu/update_checker.rb
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/update_checkers" require "dependabot/update_checkers/base" require "dependabot/git_commit_checker" require "dependabot/opentofu/requirements_updater" require "dependabot/opentofu/requirement" require "dependabot/opentofu/versio...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/opentofu/lib/dependabot/opentofu/registry_client.rb
opentofu/lib/dependabot/opentofu/registry_client.rb
# typed: strict # frozen_string_literal: true require "dependabot/dependency" require "dependabot/errors" require "dependabot/registry_client" require "dependabot/source" require "dependabot/opentofu/version" module Dependabot module Opentofu # Opentofu::RegistryClient is a basic API client to interact with a ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/opentofu/lib/dependabot/opentofu/file_selector.rb
opentofu/lib/dependabot/opentofu/file_selector.rb
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/opentofu/file_filter" module Dependabot module Opentofu module FileSelector extend T::Sig extend T::Helpers TF_EXTENSION = ".tf" TOFU_EXTENSION = ".tofu" OVERRIDE_TF_EXTENSION = "override.t...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/opentofu/lib/dependabot/opentofu/requirements_updater.rb
opentofu/lib/dependabot/opentofu/requirements_updater.rb
# typed: strict # frozen_string_literal: true #################################################################### # For more details on OpenTofu version constraints, see: # # https://opentofu.org/docs/language/modules/#published-modules # ##################################################################...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/opentofu/lib/dependabot/opentofu/metadata_finder.rb
opentofu/lib/dependabot/opentofu/metadata_finder.rb
# typed: strict # frozen_string_literal: true require "excon" require "json" require "dependabot/metadata_finders" require "dependabot/metadata_finders/base" require "dependabot/opentofu/registry_client" require "dependabot/shared_helpers" require "sorbet-runtime" module Dependabot module Opentofu class Metadat...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/opentofu/lib/dependabot/opentofu/file_filter.rb
opentofu/lib/dependabot/opentofu/file_filter.rb
# typed: strong # frozen_string_literal: true require "sorbet-runtime" module Dependabot module Opentofu module FileFilter extend T::Sig private sig { params(file_name: String).returns(T::Boolean) } def terragrunt_file?(file_name) !lockfile?(file_name) && file_name.end_with?("....
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/opentofu/lib/dependabot/opentofu/file_parser.rb
opentofu/lib/dependabot/opentofu/file_parser.rb
# typed: strict # frozen_string_literal: true require "cgi" require "excon" require "nokogiri" require "open3" require "digest" require "sorbet-runtime" require "dependabot/dependency" require "dependabot/file_parsers" require "dependabot/file_parsers/base" require "dependabot/git_commit_checker" require "dependabot/s...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/opentofu/lib/dependabot/opentofu/package/package_details_fetcher.rb
opentofu/lib/dependabot/opentofu/package/package_details_fetcher.rb
# typed: strict # frozen_string_literal: true require "json" require "time" require "cgi" require "excon" require "sorbet-runtime" require "dependabot/swift" module Dependabot module Opentofu module Package class PackageDetailsFetcher extend T::Sig RELEASES_URL_GIT = "https://api.github.c...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/opentofu/lib/dependabot/opentofu/update_checker/latest_version_resolver.rb
opentofu/lib/dependabot/opentofu/update_checker/latest_version_resolver.rb
# typed: strong # frozen_string_literal: true require "dependabot/update_checkers/base" require "dependabot/opentofu/package/package_details_fetcher" require "sorbet-runtime" require "dependabot/git_commit_checker" module Dependabot module Opentofu class UpdateChecker < Dependabot::UpdateCheckers::Base cl...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/devcontainers/spec/spec_helper.rb
devcontainers/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/devcontainers/spec/dependabot/devcontainers_spec.rb
devcontainers/spec/dependabot/devcontainers_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/devcontainers" require_common_spec "shared_examples_for_autoloading" RSpec.describe Dependabot::Devcontainers do it_behaves_like "it registers the required classes", "devcontainers" end
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/devcontainers/spec/dependabot/devcontainers/file_updater_spec.rb
devcontainers/spec/dependabot/devcontainers/file_updater_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/devcontainers/file_updater" require "dependabot/devcontainers/requirement" require_common_spec "file_updaters/shared_examples_for_file_updaters" RSpec.describe De...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/devcontainers/spec/dependabot/devcontainers/update_checker_spec.rb
devcontainers/spec/dependabot/devcontainers/update_checker_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/devcontainers/file_parser" require "dependabot/devcontainers/update_checker" require_common_spec "update_checkers/shared_examples_for_update_checkers" RSpec.describe Dependabot::Devcontainers::Update...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/devcontainers/spec/dependabot/devcontainers/package_manager_spec.rb
devcontainers/spec/dependabot/devcontainers/package_manager_spec.rb
# typed: false # frozen_string_literal: true require "dependabot/devcontainers/package_manager" require "dependabot/ecosystem" require "spec_helper" RSpec.describe Dependabot::Devcontainers::PackageManager do subject(:package_manager) { described_class.new(version) } let(:version) { "2.1.1" } describe "#versi...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/devcontainers/spec/dependabot/devcontainers/file_fetcher_spec.rb
devcontainers/spec/dependabot/devcontainers/file_fetcher_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/devcontainers/file_fetcher" require_common_spec "file_fetchers/shared_examples_for_file_fetchers" RSpec.describe Dependabot::Devcontainers::FileFetcher do let(:repo_contents_path) { build_tmp_repo(project_name) } let(:file_fetc...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/devcontainers/spec/dependabot/devcontainers/file_parser_spec.rb
devcontainers/spec/dependabot/devcontainers/file_parser_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency_file" require "dependabot/source" require "dependabot/devcontainers/file_parser" require "dependabot/devcontainers/requirement" require_common_spec "file_parsers/shared_examples_for_file_parsers" RSpec.describe Dependabo...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/devcontainers/spec/dependabot/devcontainers/language_spec.rb
devcontainers/spec/dependabot/devcontainers/language_spec.rb
# typed: false # frozen_string_literal: true require "dependabot/devcontainers/language" require "dependabot/ecosystem" require "spec_helper" RSpec.describe Dependabot::Devcontainers::Language do subject(:language) { described_class.new(version) } let(:version) { "1.17.3" } describe "#version" do it "retu...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/devcontainers/spec/dependabot/devcontainers/package/package_details_fetcher_spec.rb
devcontainers/spec/dependabot/devcontainers/package/package_details_fetcher_spec.rb
# typed: false # frozen_string_literal: true require "cgi" require "dependabot/credential" require "dependabot/dependency_file" require "dependabot/devcontainers/package/package_details_fetcher" require "dependabot/devcontainers/version" require "dependabot/package/package_release" require "dependabot/registry_client"...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/devcontainers/spec/dependabot/devcontainers/update_checker/latest_version_finder_spec.rb
devcontainers/spec/dependabot/devcontainers/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/devcontainers/update_checker/latest_version_finder" require "dependabot/devcontainers/requirement" namespace = Dependabot::Devcontainers::UpdateChecker RSpec.desc...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/devcontainers/lib/dependabot/devcontainers.rb
devcontainers/lib/dependabot/devcontainers.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/devcontainers/file_fetcher" require "dependabot/devcontainers/file_parser" require "dependabot/devcontainers/updat...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/devcontainers/lib/dependabot/devcontainers/file_fetcher.rb
devcontainers/lib/dependabot/devcontainers/file_fetcher.rb
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/file_fetchers" require "dependabot/file_fetchers/base" require "dependabot/devcontainers/utils" module Dependabot module Devcontainers class FileFetcher < Dependabot::FileFetchers::Base extend T::Sig sig { ov...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/devcontainers/lib/dependabot/devcontainers/language.rb
devcontainers/lib/dependabot/devcontainers/language.rb
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/ecosystem" require "dependabot/devcontainers/version" module Dependabot module Devcontainers LANGUAGE = "node" class Language < Dependabot::Ecosystem::VersionManager extend T::Sig sig { params(raw_versio...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/devcontainers/lib/dependabot/devcontainers/file_updater.rb
devcontainers/lib/dependabot/devcontainers/file_updater.rb
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/file_updaters" require "dependabot/file_updaters/base" require "dependabot/devcontainers/file_updater/config_updater" module Dependabot module Devcontainers class FileUpdater < Dependabot::FileUpdaters::Base extend...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/devcontainers/lib/dependabot/devcontainers/version.rb
devcontainers/lib/dependabot/devcontainers/version.rb
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/version" require "dependabot/utils" module Dependabot module Devcontainers class Version < Dependabot::Version extend T::Sig sig { params(other: Dependabot::Devcontainers::Version).returns(T::Boolean) } ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/devcontainers/lib/dependabot/devcontainers/requirement.rb
devcontainers/lib/dependabot/devcontainers/requirement.rb
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/requirement" require "dependabot/utils" module Dependabot module Devcontainers class Requirement < Dependabot::Requirement extend T::Sig # For consistency with other languages, we define a requirements array...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/devcontainers/lib/dependabot/devcontainers/package_manager.rb
devcontainers/lib/dependabot/devcontainers/package_manager.rb
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/ecosystem" require "dependabot/devcontainers/version" module Dependabot module Devcontainers ECOSYSTEM = "devcontainers" PACKAGE_MANAGER = "devcontainers" SUPPORTED_DEVCONTAINER_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/devcontainers/lib/dependabot/devcontainers/update_checker.rb
devcontainers/lib/dependabot/devcontainers/update_checker.rb
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/update_checkers" require "dependabot/update_checkers/base" require "dependabot/devcontainers/version" require "dependabot/update_checkers/version_filters" require "dependabot/devcontainers/requirement" module Dependabot modu...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/devcontainers/lib/dependabot/devcontainers/utils.rb
devcontainers/lib/dependabot/devcontainers/utils.rb
# typed: strong # frozen_string_literal: true require "sorbet-runtime" module Dependabot module Devcontainers module Utils extend T::Sig sig { params(directory: String).returns(String) } def self.expected_config_basename(directory) root_directory?(directory) ? ".devcontainer.json" : "...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/devcontainers/lib/dependabot/devcontainers/metadata_finder.rb
devcontainers/lib/dependabot/devcontainers/metadata_finder.rb
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/metadata_finders" require "dependabot/metadata_finders/base" module Dependabot module Devcontainers class MetadataFinder < Dependabot::MetadataFinders::Base extend T::Sig private sig { override.return...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/devcontainers/lib/dependabot/devcontainers/file_parser.rb
devcontainers/lib/dependabot/devcontainers/file_parser.rb
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/file_parsers" require "dependabot/file_parsers/base" require "dependabot/devcontainers/version" require "dependabot/devcontainers/language" require "dependabot/devcontainers/package_manager" require "dependabot/devcontainers/fi...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/devcontainers/lib/dependabot/devcontainers/file_parser/feature_dependency_parser.rb
devcontainers/lib/dependabot/devcontainers/file_parser/feature_dependency_parser.rb
# typed: strict # frozen_string_literal: true require "dependabot/devcontainers/requirement" require "dependabot/file_parsers/base" require "dependabot/shared_helpers" require "dependabot/dependency" require "json" require "sorbet-runtime" require "uri" module Dependabot module Devcontainers class FileParser < ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/devcontainers/lib/dependabot/devcontainers/package/package_details_fetcher.rb
devcontainers/lib/dependabot/devcontainers/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/devcontainers" require "dependabot/devcontainers/version" require "dependabot/package/package_release" require "...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/devcontainers/lib/dependabot/devcontainers/update_checker/latest_version_finder.rb
devcontainers/lib/dependabot/devcontainers/update_checker/latest_version_finder.rb
# typed: strong # frozen_string_literal: true require "excon" require "json" require "sorbet-runtime" require "open3" require "shellwords" require "dependabot/errors" require "dependabot/package/package_latest_version_finder" require "dependabot/shared_helpers" require "dependabot/update_checkers/version_filters" req...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/devcontainers/lib/dependabot/devcontainers/file_updater/config_updater.rb
devcontainers/lib/dependabot/devcontainers/file_updater/config_updater.rb
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/file_updaters/base" require "dependabot/shared_helpers" require "dependabot/logger" require "dependabot/devcontainers/utils" require "dependabot/devcontainers/version" module Dependabot module Devcontainers class FileUpd...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/spec/spec_helper.rb
terraform/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/terraform/spec/dependabot/terraform_spec.rb
terraform/spec/dependabot/terraform_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/terraform" require_common_spec "shared_examples_for_autoloading" RSpec.describe Dependabot::Terraform do it_behaves_like "it registers the required classes", "terraform" describe "Dependency#display_name" do subject(:displ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/spec/dependabot/terraform/requirement_spec.rb
terraform/spec/dependabot/terraform/requirement_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/terraform/requirement" RSpec.describe Dependabot::Terraform::Requirement do subject(:requirement) { described_class.new(requirement_string) } let(:requirement_string) { ">=1.0.0" } describe ".new" do it { is_expected.to...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/spec/dependabot/terraform/version_spec.rb
terraform/spec/dependabot/terraform/version_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/terraform/version" RSpec.describe Dependabot::Terraform::Version do subject(:version) { described_class.new(version_string) } let(:version_string) { "1.0.0" } describe "#to_s" do subject { version.to_s } context "w...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/spec/dependabot/terraform/requirements_updater_spec.rb
terraform/spec/dependabot/terraform/requirements_updater_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/terraform/version" require "dependabot/terraform/requirements_updater" RSpec.describe Dependabot::Terraform::RequirementsUpdater do let(:updater) do described_class.new( requirements: requirements, latest_version:...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/spec/dependabot/terraform/metadata_finder_spec.rb
terraform/spec/dependabot/terraform/metadata_finder_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/terraform/metadata_finder" require_common_spec "metadata_finders/shared_examples_for_metadata_finders" RSpec.describe Dependabot::Terraform::MetadataFinder do subject(:finder) do described_clas...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/spec/dependabot/terraform/file_updater_spec.rb
terraform/spec/dependabot/terraform/file_updater_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/dependency_file" require "dependabot/terraform/file_updater" require_common_spec "file_updaters/shared_examples_for_file_updaters" RSpec.describe Dependabot::Terraform::FileUpdater do subject(:upda...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
true
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/spec/dependabot/terraform/update_checker_spec.rb
terraform/spec/dependabot/terraform/update_checker_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/terraform" require "dependabot/terraform/update_checker" require_common_spec "update_checkers/shared_examples_for_update_checkers" RSpec.describe Dependabot::Terraform::UpdateChecker do let(:source...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/spec/dependabot/terraform/package_manager_spec.rb
terraform/spec/dependabot/terraform/package_manager_spec.rb
# typed: false # frozen_string_literal: true require "dependabot/terraform/package_manager" require "dependabot/ecosystem" require "spec_helper" RSpec.describe Dependabot::Terraform::PackageManager do subject(:package_manager) { described_class.new(version) } let(:version) { "2.1.1" } describe "#version" do ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/spec/dependabot/terraform/file_fetcher_spec.rb
terraform/spec/dependabot/terraform/file_fetcher_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/terraform/file_fetcher" require_common_spec "file_fetchers/shared_examples_for_file_fetchers" RSpec.describe Dependabot::Terraform::FileFetcher do let(:repo_contents_path) { build_tmp_repo(project_name) } let(:directory) { "/" ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/spec/dependabot/terraform/file_parser_spec.rb
terraform/spec/dependabot/terraform/file_parser_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency_file" require "dependabot/source" require "dependabot/terraform/file_parser" require "dependabot/terraform/version" require_common_spec "file_parsers/shared_examples_for_file_parsers" RSpec.describe Dependabot::Terraform...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
true
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/spec/dependabot/terraform/registry_client_spec.rb
terraform/spec/dependabot/terraform/registry_client_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/terraform/registry_client" RSpec.describe Dependabot::Terraform::RegistryClient do subject(:client) { described_class.new } let(:module_dependency) do Dependabot::Dependency.new( name: "hashicorp/consul/aws", v...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/spec/dependabot/terraform/package/package_details_fetcher_spec.rb
terraform/spec/dependabot/terraform/package/package_details_fetcher_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/terraform/package/package_details_fetcher" require "dependabot/dependency" require "dependabot/credential" require "dependabot/git_commit_checker" require "dependabot/git_tag_with_detail" require "excon" RSpec.describe Dependabot::T...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/spec/dependabot/terraform/update_checker/latest_version_resolver_spec.rb
terraform/spec/dependabot/terraform/update_checker/latest_version_resolver_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/terraform/update_checker/latest_version_resolver" RSpec.describe Dependabot::Terraform::UpdateChecker::LatestVersionResolver do let(:credentials) { [Dependabot::Credential.new(type: "git_source", token: "test-token")] } let(:de...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/lib/dependabot/terraform.rb
terraform/lib/dependabot/terraform.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/terraform/file_fetcher" require "dependabot/terraform/file_parser" require "dependabot/terraform/update_checker" r...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/lib/dependabot/terraform/file_fetcher.rb
terraform/lib/dependabot/terraform/file_fetcher.rb
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/file_fetchers" require "dependabot/file_fetchers/base" require "dependabot/terraform/file_selector" require "dependabot/file_filtering" module Dependabot module Terraform class FileFetcher < Dependabot::FileFetchers::Bas...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/lib/dependabot/terraform/file_updater.rb
terraform/lib/dependabot/terraform/file_updater.rb
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/file_updaters" require "dependabot/file_updaters/base" require "dependabot/errors" require "dependabot/terraform/file_selector" require "dependabot/shared_helpers" module Dependabot module Terraform class FileUpdater < D...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/lib/dependabot/terraform/version.rb
terraform/lib/dependabot/terraform/version.rb
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/utils" require "dependabot/version" # Terraform pre-release versions use 1.0.1-rc1 syntax, which Gem::Version # converts into 1.0.1.pre.rc1. We override the `to_s` method to stop that # alteration. # # See, for example, https:...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/lib/dependabot/terraform/requirement.rb
terraform/lib/dependabot/terraform/requirement.rb
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/requirement" require "dependabot/utils" require "dependabot/terraform/version" # Just ensures that Terraform requirements use Terraform versions module Dependabot module Terraform class Requirement < Dependabot::Requirem...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/lib/dependabot/terraform/package_manager.rb
terraform/lib/dependabot/terraform/package_manager.rb
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/ecosystem" require "dependabot/terraform/version" module Dependabot module Terraform ECOSYSTEM = "terraform" PACKAGE_MANAGER = "terraform" SUPPORTED_TERRAFORM_VERSIONS = T.let([].freeze, T::Array[Dependabot::Versi...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/lib/dependabot/terraform/update_checker.rb
terraform/lib/dependabot/terraform/update_checker.rb
# typed: strict # frozen_string_literal: true require "sorbet-runtime" require "dependabot/update_checkers" require "dependabot/update_checkers/base" require "dependabot/git_commit_checker" require "dependabot/terraform/requirements_updater" require "dependabot/terraform/requirement" require "dependabot/terraform/ver...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/lib/dependabot/terraform/registry_client.rb
terraform/lib/dependabot/terraform/registry_client.rb
# typed: strict # frozen_string_literal: true require "dependabot/dependency" require "dependabot/errors" require "dependabot/registry_client" require "dependabot/source" require "dependabot/terraform/version" module Dependabot module Terraform # Terraform::RegistryClient is a basic API client to interact with ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/lib/dependabot/terraform/file_selector.rb
terraform/lib/dependabot/terraform/file_selector.rb
# typed: strong # frozen_string_literal: true require "sorbet-runtime" require "dependabot/terraform/file_filter" module Dependabot module Terraform module FileSelector extend T::Sig extend T::Helpers TF_EXTENSION = ".tf" OVERRIDE_TF_EXTENSION = "override.tf" abstract! si...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/lib/dependabot/terraform/requirements_updater.rb
terraform/lib/dependabot/terraform/requirements_updater.rb
# typed: strict # frozen_string_literal: true #################################################################### # For more details on Terraform version constraints, see: # # https://www.terraform.io/docs/modules/usage.html#module-versions # ##################################################################...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/lib/dependabot/terraform/metadata_finder.rb
terraform/lib/dependabot/terraform/metadata_finder.rb
# typed: strict # frozen_string_literal: true require "excon" require "json" require "dependabot/metadata_finders" require "dependabot/metadata_finders/base" require "dependabot/terraform/registry_client" require "dependabot/shared_helpers" require "sorbet-runtime" module Dependabot module Terraform class Metad...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/lib/dependabot/terraform/file_filter.rb
terraform/lib/dependabot/terraform/file_filter.rb
# typed: strong # frozen_string_literal: true require "sorbet-runtime" module Dependabot module Terraform module FileFilter extend T::Sig private sig { params(file_name: String).returns(T::Boolean) } def terragrunt_file?(file_name) !lockfile?(file_name) && file_name.end_with?("...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/lib/dependabot/terraform/file_parser.rb
terraform/lib/dependabot/terraform/file_parser.rb
# typed: strict # frozen_string_literal: true require "cgi" require "excon" require "nokogiri" require "open3" require "digest" require "sorbet-runtime" require "dependabot/dependency" require "dependabot/file_parsers" require "dependabot/file_parsers/base" require "dependabot/git_commit_checker" require "dependabot/s...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/lib/dependabot/terraform/package/package_details_fetcher.rb
terraform/lib/dependabot/terraform/package/package_details_fetcher.rb
# typed: strict # frozen_string_literal: true require "json" require "time" require "cgi" require "excon" require "sorbet-runtime" require "dependabot/swift" module Dependabot module Terraform module Package class PackageDetailsFetcher extend T::Sig RELEASES_URL_GIT = "https://api.github....
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/terraform/lib/dependabot/terraform/update_checker/latest_version_resolver.rb
terraform/lib/dependabot/terraform/update_checker/latest_version_resolver.rb
# typed: strong # frozen_string_literal: true require "dependabot/update_checkers/base" require "dependabot/terraform/package/package_details_fetcher" require "sorbet-runtime" require "dependabot/git_commit_checker" module Dependabot module Terraform class UpdateChecker < Dependabot::UpdateCheckers::Base ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/common/spec/warning_monkey_patch.rb
common/spec/warning_monkey_patch.rb
# typed: false # frozen_string_literal: true ALLOW_PATTERNS = [ # Ignore `parser/current` warnings for ruby patch version mismatches. # This is a recurring issue that occurs whenever the parser gets # ahead of our installed ruby version. %r{parser/current is loading parser/ruby31}, /3.1.\d-compliant syntax, ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/common/spec/spec_helper.rb
common/spec/spec_helper.rb
# typed: true # frozen_string_literal: true require "rspec/its" require "rspec/sorbet" require "webmock/rspec" require "vcr" require "debug" require "simplecov" require "simplecov_json_formatter" require "stackprof" require "uri" # SimpleCov _must_ be started before any dependabot code is loaded SimpleCov.start do ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/common/spec/dummy_package_manager/version.rb
common/spec/dummy_package_manager/version.rb
# typed: false # frozen_string_literal: true require "dependabot/version" require "dependabot/utils" module DummyPackageManager class Version < Dependabot::Version def initialize(version) version = Version.remove_leading_v(version) super end def self.remove_leading_v(version) return v...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/common/spec/dummy_package_manager/requirement.rb
common/spec/dummy_package_manager/requirement.rb
# typed: false # frozen_string_literal: true require "dependabot/requirement" require "dependabot/utils" module DummyPackageManager class Requirement < Dependabot::Requirement def self.requirements_array(requirement_string) [new(requirement_string)] end # Patches Gem::Requirement to make it accep...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/common/spec/dummy_package_manager/dummy.rb
common/spec/dummy_package_manager/dummy.rb
# typed: false # frozen_string_literal: true require_relative "metadata_finder" require_relative "requirement" require_relative "version" require "dependabot/pull_request_creator/labeler" Dependabot::PullRequestCreator::Labeler .register_label_details("dummy", name: "ruby", colour: "ce2d2d") require "dependabot/de...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/common/spec/dummy_package_manager/metadata_finder.rb
common/spec/dummy_package_manager/metadata_finder.rb
# typed: false # frozen_string_literal: true require "dependabot/metadata_finders" require "dependabot/metadata_finders/base" module DummyPackageManager class MetadataFinder < Dependabot::MetadataFinders::Base private def look_up_source Dependabot::Source.from_url( "https://github.com/gocardl...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/common/spec/helpers/test/run.rb
common/spec/helpers/test/run.rb
# typed: false # frozen_string_literal: true require "json" request = JSON.parse($stdin.read) case request["function"] when "error" $stdout.write(JSON.dump(error: "Something went wrong")) exit 1 when "sensitive_error" $stdout.write(JSON.dump(error: "Something went wrong: https://username:secret@www.example.com"...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/common/spec/dependabot/dependabot_error_spec.rb
common/spec/dependabot/dependabot_error_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/errors" RSpec.describe Dependabot::DependabotError do let(:error) { described_class.new(message) } let(:message) do "some error" end describe "#message" do subject(:error_message) { error.message } let(:tmp) {...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/common/spec/dependabot/git_commit_checker_spec.rb
common/spec/dependabot/git_commit_checker_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/git_commit_checker" RSpec.describe Dependabot::GitCommitChecker do let(:git_metadata_fetcher) { instance_double(Dependabot::GitMetadataFetcher) } let(:checker) do described_class.new( ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
true
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/common/spec/dependabot/requirement_spec.rb
common/spec/dependabot/requirement_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/requirement" require "dependabot/version" RSpec.describe Dependabot::Requirement do subject(:requirement) { TestRequirement.new(constraint_string) } describe "#constraints" do subject(:constraints) { requirement.constraint...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/common/spec/dependabot/version_spec.rb
common/spec/dependabot/version_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/version" RSpec.describe Dependabot::Version do subject(:version) { described_class.new(version_string) } describe "#lowest_prerelease_suffix" do subject(:ignored_versions) { version.lowest_prerelease_suffix } let(:ver...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/common/spec/dependabot/version_manager_spec.rb
common/spec/dependabot/version_manager_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/ecosystem" RSpec.describe Dependabot::Ecosystem::VersionManager do # rubocop:disable RSpec/SpecFilePathFormat let(:concrete_class) do Class.new(Dependabot::Ecosystem::VersionManager) do def initialize detected_v...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/common/spec/dependabot/dependency_spec.rb
common/spec/dependabot/dependency_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" RSpec.describe Dependabot::Dependency do describe ".new" do subject(:dependency) { described_class.new(**args) } let(:args) do { name: "dep", requirements: requirements, package_...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/common/spec/dependabot/git_metadata_fetcher_spec.rb
common/spec/dependabot/git_metadata_fetcher_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/dependency" require "dependabot/git_metadata_fetcher" require "dependabot/git_ref" require "dependabot/git_tag_with_detail" RSpec.describe Dependabot::GitMetadataFetcher do let(:checker) { described_class.new(url: url, credential...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/common/spec/dependabot/source_spec.rb
common/spec/dependabot/source_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/source" RSpec.describe Dependabot::Source do describe ".new" do subject(:source) { described_class.new(**attrs) } context "without a hostname or api_endpoint" do let(:attrs) { { provider: "github", repo: "my/repo" ...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/common/spec/dependabot/file_filtering_spec.rb
common/spec/dependabot/file_filtering_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/file_filtering" RSpec.describe Dependabot::FileFiltering do describe ".exclude_path?" do subject(:exclude_path) { described_class.exclude_path?(path, exclude_patterns) } context "with nil exclude_patterns" do let(:...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/common/spec/dependabot/shared_examples_for_autoloading.rb
common/spec/dependabot/shared_examples_for_autoloading.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/file_fetchers/base" require "dependabot/file_parsers/base" require "dependabot/update_checkers/base" require "dependabot/file_updaters/base" require "dependabot/metadata_finders/base" require "dependabot/utils" require "dependabot/...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/common/spec/dependabot/command_helpers_spec.rb
common/spec/dependabot/command_helpers_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "dependabot/command_helpers" RSpec.describe Dependabot::CommandHelpers do describe ".capture3_with_timeout" do let(:success_cmd) { command_fixture("success.sh") } let(:error_cmd) { command_fixture("error.sh") } let(:output_hang_c...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false
dependabot/dependabot-core
https://github.com/dependabot/dependabot-core/blob/5f5d8b92c51eefa3ec78a9e208f664e439134d76/common/spec/dependabot/wildcard_matcher_spec.rb
common/spec/dependabot/wildcard_matcher_spec.rb
# typed: false # frozen_string_literal: true require "spec_helper" require "wildcard_matcher" RSpec.describe WildcardMatcher do describe ".match?" do subject { described_class.match?(wildcard_string, candidate_string) } context "without a wildcard" do let(:wildcard_string) { "bus" } context "w...
ruby
MIT
5f5d8b92c51eefa3ec78a9e208f664e439134d76
2026-01-04T15:43:10.347999Z
false