source stringclasses 1
value | repo stringlengths 5 63 | repo_url stringlengths 24 82 | path stringlengths 5 167 | language stringclasses 1
value | license stringclasses 5
values | stars int64 10 51.4k | ref stringclasses 23
values | size_bytes int64 200 258k | text stringlengths 137 258k |
|---|---|---|---|---|---|---|---|---|---|
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/spec/dependabot/rust_toolchain_spec.rb | Ruby | mit | 5,556 | main | 279 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/rust_toolchain"
require_common_spec "shared_examples_for_autoloading"
RSpec.describe Dependabot::RustToolchain do
it_behaves_like "it registers the required classes", "rust_toolchain"
end |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/spec/dependabot/rust_toolchain/update_checker_spec.rb | Ruby | mit | 5,556 | main | 10,293 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/credential"
require "dependabot/rust_toolchain/file_parser"
require "dependabot/rust_toolchain/update_checker"
require "dependabot/rust_toolchain/version"
requi... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/spec/dependabot/rust_toolchain/channel_spec.rb | Ruby | mit | 5,556 | main | 6,001 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/rust_toolchain/channel"
require "dependabot/rust_toolchain/channel_type"
RSpec.describe Dependabot::RustToolchain::Channel do
describe "#initialize" do
it "creates a channel with version" do
channel = described_class.n... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/spec/dependabot/rust_toolchain/file_parser_spec.rb | Ruby | mit | 5,556 | main | 5,063 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency_file"
require "dependabot/rust_toolchain/file_parser"
require_common_spec "file_parsers/shared_examples_for_file_parsers"
RSpec.describe Dependabot::RustToolchain::FileParser do
let(:dependency_files) { [dependency_fil... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/spec/dependabot/rust_toolchain/requirement_spec.rb | Ruby | mit | 5,556 | main | 4,155 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/rust_toolchain/requirement"
require "dependabot/rust_toolchain/version"
RSpec.describe Dependabot::RustToolchain::Requirement do
subject(:requirement) { described_class.new(requirement_string) }
let(:requirement_string) { ">=1... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/spec/dependabot/rust_toolchain/file_fetcher_spec.rb | Ruby | mit | 5,556 | main | 4,834 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/rust_toolchain/file_fetcher"
require_common_spec "file_fetchers/shared_examples_for_file_fetchers"
RSpec.describe Dependabot::RustToolchain::FileFetcher do
let(:repo_contents_path) { build_tmp_repo(project_name) }
let(:file_fet... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/spec/dependabot/rust_toolchain/version_spec.rb | Ruby | mit | 5,556 | main | 5,214 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/rust_toolchain/version"
RSpec.describe Dependabot::RustToolchain::Version do
subject(:version) { described_class.new(version_string) }
describe "#initialize" do
context "with a specific version string" do
let(:versio... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/spec/dependabot/rust_toolchain/file_updater_spec.rb | Ruby | mit | 5,556 | main | 9,005 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/rust_toolchain/file_updater"
require_common_spec "file_updaters/shared_examples_for_file_updaters"
RSpec.describe Dependabot::RustToolchain::FileUpdater do
let(... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/spec/dependabot/rust_toolchain/metadata_finder_spec.rb | Ruby | mit | 5,556 | main | 692 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/source"
require "dependabot/rust_toolchain/metadata_finder"
RSpec.describe Dependabot::RustToolchain::MetadataFinder do
let(:dependency) do
Dependabot::Dependency.new(
name: "rust-toolchain",
version: "1.72.0",
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/spec/dependabot/rust_toolchain/channel_parser_spec.rb | Ruby | mit | 5,556 | main | 3,406 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/rust_toolchain/channel_parser"
RSpec.describe Dependabot::RustToolchain::ChannelParser do
describe "#parse" do
subject(:parser) { described_class.new(channel) }
context "with a specific version" do
context "with ma... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/spec/dependabot/rust_toolchain/update_checker/latest_version_finder_spec.rb | Ruby | mit | 5,556 | main | 16,108 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/rust_toolchain/update_checker/latest_version_finder"
require "dependabot/rust_toolchain/package/package_details_fetcher"
require "dependabot/rust_toolchain/version"
require "dependabot/rust_toolchain/channel"
require "dependabot/dep... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/spec/dependabot/rust_toolchain/models/rust_toolchain_toml_spec.rb | Ruby | mit | 5,556 | main | 1,549 | # typed: strict
# frozen_string_literal: true
require "spec_helper"
require "dependabot/rust_toolchain/models/rust_toolchain_toml"
RSpec.describe Dependabot::RustToolchain::Models::RustToolchainToml do
describe ".from_toml" do
context "with valid TOML" do
let(:toml_content) do
<<~TOML
[t... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/spec/dependabot/rust_toolchain/models/rust_toolchain_config_spec.rb | Ruby | mit | 5,556 | main | 831 | # typed: strict
# frozen_string_literal: true
require "spec_helper"
require "dependabot/rust_toolchain/models/rust_toolchain_config"
RSpec.describe Dependabot::RustToolchain::Models::RustToolchainConfig do
describe ".from_hash" do
context "with channel specified" do
let(:config_hash) do
{
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/spec/dependabot/rust_toolchain/package/package_details_fetcher_spec.rb | Ruby | mit | 5,556 | main | 7,002 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/rust_toolchain/package/package_details_fetcher"
RSpec.describe Dependabot::RustToolchain::Package::PackageDetailsFetcher do
subject(:finder) { described_class.new(dependency: dependency) }
let(:manifests_url_with_timestamp) { ... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/lib/dependabot/rust_toolchain.rb | Ruby | mit | 5,556 | main | 1,212 | # typed: strong
# frozen_string_literal: true
require "dependabot/rust_toolchain/file_fetcher"
require "dependabot/rust_toolchain/file_parser"
require "dependabot/rust_toolchain/update_checker"
require "dependabot/rust_toolchain/file_updater"
require "dependabot/rust_toolchain/metadata_finder"
require "dependabot/rust... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/lib/dependabot/rust_toolchain/metadata_finder.rb | Ruby | mit | 5,556 | main | 653 | # typed: strong
# frozen_string_literal: true
require "nokogiri"
require "sorbet-runtime"
require "dependabot/metadata_finders"
require "dependabot/metadata_finders/base"
require "dependabot/registry_client"
require "dependabot/rust_toolchain"
module Dependabot
module RustToolchain
class MetadataFinder < Depe... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/lib/dependabot/rust_toolchain/package_manager.rb | Ruby | mit | 5,556 | main | 1,044 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/ecosystem"
require "dependabot/rust_toolchain/requirement"
require "dependabot/rust_toolchain/version"
module Dependabot
module RustToolchain
class RustToolchainPackageManager < Dependabot::Ecosystem::VersionManager
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/lib/dependabot/rust_toolchain/channel.rb | Ruby | mit | 5,556 | main | 3,697 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/rust_toolchain/channel_type"
module Dependabot
module RustToolchain
class Channel
extend T::Sig
include Comparable
sig { returns(T.nilable(String)) }
attr_reader :stability
sig { returns(... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/lib/dependabot/rust_toolchain/version.rb | Ruby | mit | 5,556 | main | 1,916 | # typed: strict
# frozen_string_literal: true
require "dependabot/version"
require "dependabot/utils"
require "dependabot/rust_toolchain/channel_parser"
require "dependabot/rust_toolchain/channel_type"
module Dependabot
module RustToolchain
class Version < Dependabot::Version
sig { override.params(versio... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/lib/dependabot/rust_toolchain/update_checker.rb | Ruby | mit | 5,556 | main | 2,134 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/errors"
require "dependabot/update_checkers"
require "dependabot/update_checkers/base"
module Dependabot
module RustToolchain
class UpdateChecker < Dependabot::UpdateCheckers::Base
extend T::Sig
require_rela... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/lib/dependabot/rust_toolchain/file_fetcher.rb | Ruby | mit | 5,556 | main | 1,564 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/file_fetchers"
require "dependabot/file_fetchers/base"
require "dependabot/rust_toolchain"
module Dependabot
module RustToolchain
class FileFetcher < Dependabot::FileFetchers::Base
extend T::Sig
sig { overr... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/lib/dependabot/rust_toolchain/channel_parser.rb | Ruby | mit | 5,556 | main | 1,588 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/rust_toolchain"
require "dependabot/rust_toolchain/channel"
module Dependabot
module RustToolchain
class ChannelParser
extend T::Sig
sig { params(toolchain: String).void }
def initialize(toolchain)
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/lib/dependabot/rust_toolchain/file_updater.rb | Ruby | mit | 5,556 | main | 1,579 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/file_updaters"
require "dependabot/file_updaters/base"
require "dependabot/rust_toolchain"
module Dependabot
module RustToolchain
class FileUpdater < Dependabot::FileUpdaters::Base
extend T::Sig
sig { overr... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/lib/dependabot/rust_toolchain/requirement.rb | Ruby | mit | 5,556 | main | 9,170 | # typed: strong
# frozen_string_literal: true
require "dependabot/requirement"
require "dependabot/utils"
require "dependabot/rust_toolchain"
require "dependabot/rust_toolchain/version"
require "dependabot/rust_toolchain/channel_parser"
require "dependabot/rust_toolchain/channel_type"
module Dependabot
module Rust... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/lib/dependabot/rust_toolchain/channel_type.rb | Ruby | mit | 5,556 | main | 599 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
module RustToolchain
class ChannelType < T::Enum
enums do
# Represents a version with a specific version number
Version = new("Version")
# Represents a channel with a date, e.g., "nightly-2023... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/lib/dependabot/rust_toolchain/file_parser.rb | Ruby | mit | 5,556 | main | 2,945 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "toml-rb"
require "dependabot/dependency"
require "dependabot/errors"
require "dependabot/file_parsers"
require "dependabot/file_parsers/base"
require "dependabot/file_parsers/base/dependency_set"
require "dependabot/rust_toolchain/models... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/lib/dependabot/rust_toolchain/package/package_details_fetcher.rb | Ruby | mit | 5,556 | main | 3,200 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "uri"
require "dependabot/package/package_details"
require "dependabot/registry_client"
require "dependabot/update_checkers/base"
require "dependabot/rust_toolchain"
require "dependabot/rust_toolchain/channel"
require "dependabot/rust_too... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/lib/dependabot/rust_toolchain/update_checker/latest_version_finder.rb | Ruby | mit | 5,556 | main | 4,966 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/update_checkers/base"
require "dependabot/package/package_latest_version_finder"
require "dependabot/rust_toolchain/channel_type"
require "dependabot/rust_toolchain/package/package_details_fetcher"
require "dependabot/rust_too... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/lib/dependabot/rust_toolchain/models/rust_toolchain_toml.rb | Ruby | mit | 5,556 | main | 1,383 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "toml-rb"
require "dependabot/errors"
require "dependabot/rust_toolchain/models/rust_toolchain_config"
module Dependabot
module RustToolchain
module Models
# Typed struct for rust-toolchain.toml file structure
# https://... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | rust_toolchain/lib/dependabot/rust_toolchain/models/rust_toolchain_config.rb | Ruby | mit | 5,556 | main | 1,028 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
module RustToolchain
module Models
# Typed struct for the [toolchain] section of rust-toolchain.toml files
# https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file
class RustToolchainConfig <... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | sbt/dependabot-sbt.gemspec | Ruby | mit | 5,556 | main | 1,300 | # frozen_string_literal: true
Gem::Specification.new do |spec|
common_gemspec =
Bundler.load_gemspec_uncached("../common/dependabot-common.gemspec")
spec.name = "dependabot-sbt"
spec.summary = "Provides Dependabot support for Sbt"
spec.description = "Dependabot-Sbt provides support for bumpi... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | sbt/spec/dependabot/sbt/metadata_finder_spec.rb | Ruby | mit | 5,556 | main | 289 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/sbt/metadata_finder"
require_common_spec "metadata_finders/shared_examples_for_metadata_finders"
RSpec.describe Dependabot::Sbt::MetadataFinder do
it_behaves_like "a dependency metadata finder"
end |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | sbt/spec/dependabot/sbt/update_checker_spec.rb | Ruby | mit | 5,556 | main | 274 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/sbt/update_checker"
require_common_spec "update_checkers/shared_examples_for_update_checkers"
RSpec.describe Dependabot::Sbt::UpdateChecker do
it_behaves_like "an update checker"
end |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | sbt/spec/dependabot/sbt/file_updater_spec.rb | Ruby | mit | 5,556 | main | 274 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/sbt/file_updater"
require_common_spec "file_updaters/shared_examples_for_file_updaters"
RSpec.describe Dependabot::Sbt::FileUpdater do
it_behaves_like "a dependency file updater"
end |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | sbt/spec/dependabot/sbt/file_parser_spec.rb | Ruby | mit | 5,556 | main | 898 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency_file"
require "dependabot/sbt/file_parser"
require_common_spec "file_parsers/shared_examples_for_file_parsers"
RSpec.describe Dependabot::Sbt::FileParser do
subject(:parser) do
described_class.new(
dependency... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | sbt/spec/dependabot/sbt/file_fetcher_spec.rb | Ruby | mit | 5,556 | main | 953 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/sbt/file_fetcher"
require_common_spec "file_fetchers/shared_examples_for_file_fetchers"
RSpec.describe Dependabot::Sbt::FileFetcher do
let(:credentials) do
[{
"type" => "git_source",
"host" => "github.com",
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | sbt/lib/dependabot/sbt.rb | Ruby | mit | 5,556 | main | 710 | # 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/sbt/file_fetcher"
require "dependabot/sbt/file_parser"
require "dependabot/sbt/update_checker"
require "dependabot... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | sbt/lib/dependabot/sbt/update_checker.rb | Ruby | mit | 5,556 | main | 1,707 | # typed: strong
# frozen_string_literal: true
require "dependabot/update_checkers"
require "dependabot/update_checkers/base"
module Dependabot
module Sbt
class UpdateChecker < Dependabot::UpdateCheckers::Base
extend T::Sig
sig { override.returns(T.nilable(T.any(String, Gem::Version))) }
def l... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | sbt/lib/dependabot/sbt/requirement.rb | Ruby | mit | 5,556 | main | 765 | # typed: strong
# frozen_string_literal: true
# NOTE: This file was scaffolded automatically but is OPTIONAL.
# If your ecosystem uses standard Gem::Requirement logic,
# you can safely delete this file and remove the require from lib/dependabot/sbt.rb
require "dependabot/requirement"
require "dependabot/utils"
modul... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | sbt/lib/dependabot/sbt/file_updater.rb | Ruby | mit | 5,556 | main | 1,148 | # typed: strong
# frozen_string_literal: true
require "dependabot/file_updaters"
require "dependabot/file_updaters/base"
module Dependabot
module Sbt
class FileUpdater < Dependabot::FileUpdaters::Base
extend T::Sig
sig { override.returns(T::Array[Dependabot::DependencyFile]) }
def updated_dep... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | sbt/lib/dependabot/sbt/file_parser.rb | Ruby | mit | 5,556 | main | 845 | # typed: strong
# frozen_string_literal: true
require "dependabot/dependency"
require "dependabot/file_parsers"
require "dependabot/file_parsers/base"
module Dependabot
module Sbt
class FileParser < Dependabot::FileParsers::Base
extend T::Sig
sig { override.returns(T::Array[Dependabot::Dependency])... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | sbt/lib/dependabot/sbt/metadata_finder.rb | Ruby | mit | 5,556 | main | 843 | # typed: strong
# frozen_string_literal: true
# NOTE: This file was scaffolded automatically but is OPTIONAL.
# If you don't need custom metadata finding logic (changelogs, release notes, etc.),
# you can safely delete this file and remove the require from lib/dependabot/sbt.rb
require "dependabot/metadata_finders"
r... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | sbt/lib/dependabot/sbt/version.rb | Ruby | mit | 5,556 | main | 720 | # typed: strong
# frozen_string_literal: true
# NOTE: This file was scaffolded automatically but is OPTIONAL.
# If your ecosystem uses standard semantic versioning without special logic,
# you can safely delete this file and remove the require from lib/dependabot/sbt.rb
require "dependabot/version"
require "dependabo... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | sbt/lib/dependabot/sbt/file_fetcher.rb | Ruby | mit | 5,556 | main | 1,802 | # typed: strong
# frozen_string_literal: true
require "dependabot/file_fetchers"
require "dependabot/file_fetchers/base"
module Dependabot
module Sbt
class FileFetcher < Dependabot::FileFetchers::Base
extend T::Sig
sig { override.returns(String) }
def self.required_files_message
"Repo... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | nuget/dependabot-nuget.gemspec | Ruby | mit | 5,556 | main | 1,422 | # frozen_string_literal: true
Gem::Specification.new do |spec|
common_gemspec =
Bundler.load_gemspec_uncached("../common/dependabot-common.gemspec")
spec.name = "dependabot-nuget"
spec.summary = "Provides Dependabot support for .NET (NuGet)"
spec.description = "Dependabot-Nuget provides supp... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | nuget/spec/dependabot/nuget_spec.rb | Ruby | mit | 5,556 | main | 1,066 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/nuget"
require "dependabot/utils"
require "dependabot/pull_request_creator/labeler"
require "dependabot/dependency"
RSpec.describe Dependabot::Nuget do
let(:package_manager) { "nuget" }
describe "registration" do
it "regis... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | nuget/spec/dependabot/nuget/version_spec.rb | Ruby | mit | 5,556 | main | 3,430 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/nuget/version"
RSpec.describe Dependabot::Nuget::Version do
subject(:version) { described_class.new(version_string) }
let(:version_string) { "1.0.0" }
describe ".correct?" do
subject { described_class.correct?(version_s... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | nuget/spec/dependabot/nuget/requirement_spec.rb | Ruby | mit | 5,556 | main | 2,559 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/nuget/requirement"
require "dependabot/nuget/version"
RSpec.describe Dependabot::Nuget::Requirement do
subject(:requirement) { described_class.new(requirement_string) }
let(:requirement_string) { ">=1.0.0" }
describe ".new"... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | nuget/lib/dependabot/nuget.rb | Ruby | mit | 5,556 | main | 681 | # typed: strict
# frozen_string_literal: true
# These files are part of the Dependabot Core library, which provides
# functionality for managing dependencies across various ecosystems.
# This file specifically handles the NuGet package management system.
require "dependabot/nuget/requirement"
require "dependabot/nuget... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | nuget/lib/dependabot/nuget/requirement.rb | Ruby | mit | 5,556 | main | 4,180 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/requirement"
require "dependabot/utils"
require "dependabot/nuget/version"
# For details on .NET version constraints see:
# https://docs.microsoft.com/en-us/nuget/reference/package-versioning
module Dependabot
module Nuget
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | nuget/lib/dependabot/nuget/version.rb | Ruby | mit | 5,556 | main | 3,872 | # typed: strong
# frozen_string_literal: true
require "dependabot/version"
require "dependabot/utils"
require "sorbet-runtime"
# Dotnet 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.
# Dotnet also supports build ver... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/dependabot-elm.gemspec | Ruby | mit | 5,556 | main | 1,296 | # frozen_string_literal: true
Gem::Specification.new do |spec|
common_gemspec =
Bundler.load_gemspec_uncached("../common/dependabot-common.gemspec")
spec.name = "dependabot-elm"
spec.summary = "Provides Dependabot support for Elm"
spec.description = "Dependabot-Elm provides support for bumpi... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/lib/dependabot/elm.rb | Ruby | mit | 5,556 | main | 785 | # 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/elm/language"
require "dependabot/elm/package_manager"
require "dependabot/elm/file_fetcher"
require "dependabot/e... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/lib/dependabot/elm/requirement.rb | Ruby | mit | 5,556 | main | 2,423 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/requirement"
require "dependabot/utils"
require "dependabot/elm/version"
module Dependabot
module Elm
class Requirement < Dependabot::Requirement
extend T::Sig
ELM_PATTERN_RAW =
T.let(
"(#{... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/lib/dependabot/elm/language.rb | Ruby | mit | 5,556 | main | 729 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/elm/version"
require "dependabot/ecosystem"
module Dependabot
module Elm
LANGUAGE = "elm"
class Language < Dependabot::Ecosystem::VersionManager
extend T::Sig
sig { params(raw_version: String, requiremen... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/lib/dependabot/elm/file_parser.rb | Ruby | mit | 5,556 | main | 6,267 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/dependency"
require "dependabot/errors"
require "dependabot/file_parsers"
require "dependabot/file_parsers/base"
require "dependabot/elm/requirement"
require "dependabot/elm/language"
require "dependabot/elm/package_manager"
m... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/lib/dependabot/elm/file_updater.rb | Ruby | mit | 5,556 | main | 1,441 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/file_updaters"
require "dependabot/file_updaters/base"
module Dependabot
module Elm
class FileUpdater < Dependabot::FileUpdaters::Base
require_relative "file_updater/elm_json_updater"
sig { override.returns(... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/lib/dependabot/elm/update_checker.rb | Ruby | mit | 5,556 | main | 4,595 | # typed: strict
# frozen_string_literal: true
require "excon"
require "dependabot/update_checkers"
require "dependabot/update_checkers/base"
require "dependabot/registry_client"
require "dependabot/errors"
module Dependabot
module Elm
class UpdateChecker < Dependabot::UpdateCheckers::Base
extend T::Sig
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/lib/dependabot/elm/file_fetcher.rb | Ruby | mit | 5,556 | main | 1,305 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/file_fetchers"
require "dependabot/file_fetchers/base"
module Dependabot
module Elm
class FileFetcher < Dependabot::FileFetchers::Base
extend T::Sig
extend T::Helpers
sig { override.params(filenames: T:... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/lib/dependabot/elm/version.rb | Ruby | mit | 5,556 | main | 638 | # typed: strong
# frozen_string_literal: true
require "dependabot/version"
require "dependabot/utils"
# Elm versions require major, minor and patch to be present
# They don't allow any letters
module Dependabot
module Elm
class Version < Dependabot::Version
VERSION_PATTERN = "[0-9]+\\.[0-9]+\\.[0-9]+"
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/lib/dependabot/elm/package_manager.rb | Ruby | mit | 5,556 | main | 1,568 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/elm/version"
require "dependabot/ecosystem"
require "dependabot/elm/requirement"
module Dependabot
module Elm
ECOSYSTEM = "elm"
PACKAGE_MANAGER = "elm"
ELM_VERSION_KEY = "elm-version"
MANIFEST_FILE = "elm.json... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/lib/dependabot/elm/metadata_finder.rb | Ruby | mit | 5,556 | main | 819 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/metadata_finders"
require "dependabot/metadata_finders/base"
require "dependabot/source"
module Dependabot
module Elm
class MetadataFinder < Dependabot::MetadataFinders::Base
extend T::Sig
private
sig... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/lib/dependabot/elm/update_checker/latest_version_finder.rb | Ruby | mit | 5,556 | main | 13,290 | # typed: strict
# 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... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/lib/dependabot/elm/update_checker/requirements_updater.rb | Ruby | mit | 5,556 | main | 2,963 | # typed: strict
# frozen_string_literal: true
require "dependabot/elm/version"
require "dependabot/elm/requirement"
require "dependabot/elm/update_checker"
module Dependabot
module Elm
class UpdateChecker
class RequirementsUpdater
extend T::Sig
RANGE_REQUIREMENT_REGEX =
/(\d+\.\... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/lib/dependabot/elm/update_checker/cli_parser.rb | Ruby | mit | 5,556 | main | 877 | # typed: strong
# frozen_string_literal: true
require "dependabot/elm/version"
require "dependabot/elm/update_checker"
module Dependabot
module Elm
class UpdateChecker
class CliParser
extend T::Sig
INSTALL_DEPENDENCY_REGEX = %r{([^\s]+\/[^\s]+)\s+(\d+\.\d+\.\d+)}
UPGRADE_DEPENDENC... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/lib/dependabot/elm/file_updater/elm_json_updater.rb | Ruby | mit | 5,556 | main | 2,453 | # typed: strict
# frozen_string_literal: true
require "dependabot/elm/file_updater"
module Dependabot
module Elm
class FileUpdater
class ElmJsonUpdater
extend T::Sig
sig { params(elm_json_file: Dependabot::DependencyFile, dependencies: T::Array[Dependabot::Dependency]).void }
def ... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/lib/dependabot/elm/package/package_details_fetcher.rb | Ruby | mit | 5,556 | main | 1,842 | # 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/elm"
require "dependabot/elm/version"
require "dependabot/package/package_release"
require "dependabot/package/p... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/spec/dependabot/elm_spec.rb | Ruby | mit | 5,556 | main | 247 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/elm"
require_common_spec "shared_examples_for_autoloading"
RSpec.describe Dependabot::Elm do
it_behaves_like "it registers the required classes", "elm"
end |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/spec/dependabot/elm/file_fetcher_spec.rb | Ruby | mit | 5,556 | main | 2,198 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/elm/file_fetcher"
require_common_spec "file_fetchers/shared_examples_for_file_fetchers"
RSpec.describe Dependabot::Elm::FileFetcher do
let(:json_header) { { "content-type" => "application/json" } }
let(:credentials) do
[{
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/spec/dependabot/elm/package_manager_spec.rb | Ruby | mit | 5,556 | main | 1,833 | # typed: false
# frozen_string_literal: true
require "dependabot/elm/package_manager"
require "dependabot/ecosystem"
require "spec_helper"
RSpec.describe Dependabot::Elm::PackageManager do
let(:package_manager) { described_class.new(version, requirement) }
let(:version) { "0.19.1" }
let(:requirement) { nil }
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/spec/dependabot/elm/language_spec.rb | Ruby | mit | 5,556 | main | 2,087 | # typed: false
# frozen_string_literal: true
require "dependabot/elm/language"
require "dependabot/elm/requirement"
require "dependabot/ecosystem"
require "spec_helper"
RSpec.describe Dependabot::Elm::Language do
let(:language) { described_class.new(version, requirement) }
let(:version) { "0.19.1" }
let(:requir... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/spec/dependabot/elm/update_checker_spec.rb | Ruby | mit | 5,556 | main | 9,014 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/elm/update_checker"
require_common_spec "update_checkers/shared_examples_for_update_checkers"
RSpec.describe Dependabot::Elm::UpdateChecker do
let(:fixture_name... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/spec/dependabot/elm/version_spec.rb | Ruby | mit | 5,556 | main | 1,841 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/elm/version"
RSpec.describe Dependabot::Elm::Version do
subject(:version) { described_class.new(version_string) }
let(:version_string) { "1.0.0" }
describe ".correct?" do
subject { described_class.correct?(version_strin... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/spec/dependabot/elm/file_updater_spec.rb | Ruby | mit | 5,556 | main | 2,374 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/shared_helpers"
require "dependabot/elm/file_updater"
require_common_spec "file_updaters/shared_examples_for_file_updaters"
RSpec.describe Dependabot::Elm::FileUp... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/spec/dependabot/elm/metadata_finder_spec.rb | Ruby | mit | 5,556 | main | 1,292 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/elm/metadata_finder"
require_common_spec "metadata_finders/shared_examples_for_metadata_finders"
RSpec.describe Dependabot::Elm::MetadataFinder do
subject(:finder) do
described_class.new(depend... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/spec/dependabot/elm/requirement_spec.rb | Ruby | mit | 5,556 | main | 2,568 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/elm/requirement"
require "dependabot/elm/version"
RSpec.describe Dependabot::Elm::Requirement do
subject(:requirement) { described_class.new(requirement_string) }
let(:requirement_string) { "1.0.0 <= v < 2.0.0" }
describe "... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/spec/dependabot/elm/file_parser_spec.rb | Ruby | mit | 5,556 | main | 7,140 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency_file"
require "dependabot/source"
require "dependabot/elm/file_parser"
require "dependabot/elm/package_manager"
require "dependabot/elm/language"
require_common_spec "file_parsers/shared_examples_for_file_parsers"
RSpec... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/spec/dependabot/elm/package/package_details_fetcher_spec.rb | Ruby | mit | 5,556 | main | 2,153 | # typed: false
# frozen_string_literal: true
require "cgi"
require "dependabot/credential"
require "dependabot/dependency_file"
require "dependabot/elm/package/package_details_fetcher"
require "dependabot/elm/version"
require "dependabot/package/package_release"
require "dependabot/registry_client"
require "excon"
req... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/spec/dependabot/elm/update_checker/elm_19_version_resolver_spec.rb | Ruby | mit | 5,556 | main | 6,981 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/elm/update_checker/latest_version_finder"
namespace = Dependabot::Elm::UpdateChecker
RSpec.describe namespace::Elm19LatestVersionFinder do
def elm_version(versi... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/spec/dependabot/elm/update_checker/cli_parser_spec.rb | Ruby | mit | 5,556 | main | 1,579 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/elm/update_checker/cli_parser"
namespace = Dependabot::Elm::UpdateChecker
RSpec.describe namespace::CliParser do
def elm_version(version_string)
Dependabot:... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/spec/dependabot/elm/update_checker/latest_version_finder_spec.rb | Ruby | mit | 5,556 | main | 3,522 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/elm/update_checker/latest_version_finder"
namespace = Dependabot::Elm::UpdateChecker
RSpec.describe namespace::LatestVersionFinder do
def elm_version(version_st... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/spec/dependabot/elm/update_checker/requirements_updater_spec.rb | Ruby | mit | 5,556 | main | 2,032 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/elm/update_checker/requirements_updater"
RSpec.describe Dependabot::Elm::UpdateChecker::RequirementsUpdater do
let(:updater) do
described_class.new(
requirements: requirements,
latest_resolvable_version: latest_re... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | elm/spec/dependabot/elm/file_updater/elm_json_updater_spec.rb | Ruby | mit | 5,556 | main | 1,339 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/elm/file_updater/elm_json_updater"
RSpec.describe Dependabot::Elm::FileUpdater::ElmJsonUpdater do
let(:updater) do
described_class.new(
elm_json_file:... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/dependabot-common.gemspec | Ruby | mit | 5,556 | main | 2,917 | # frozen_string_literal: true
require "./lib/dependabot"
Gem::Specification.new do |spec|
spec.name = "dependabot-common"
spec.summary = "Shared code used across Dependabot Core"
spec.description = "Dependabot-Common provides the shared code used across Dependabot. " \
"If yo... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/wildcard_matcher.rb | Ruby | mit | 5,556 | main | 643 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
class WildcardMatcher
extend T::Sig
sig { params(wildcard_string: T.nilable(String), candidate_string: T.nilable(String)).returns(T::Boolean) }
def self.match?(wildcard_string, candidate_string)
return false unless wildcard_string && ca... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/workspace.rb | Ruby | mit | 5,556 | main | 1,508 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/workspace/git"
module Dependabot
module Workspace
extend T::Sig
@active_workspace = T.let(nil, T.nilable(Dependabot::Workspace::Git))
class << self
extend T::Sig
sig { returns(T.nilable(Dependabot::... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/metadata_finders.rb | Ruby | mit | 5,556 | main | 850 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/metadata_finders/base"
module Dependabot
module MetadataFinders
extend T::Sig
@metadata_finders = T.let({}, T::Hash[String, T.class_of(Dependabot::MetadataFinders::Base)])
sig { params(package_manager: String).r... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/pull_request_creator.rb | Ruby | mit | 5,556 | main | 15,998 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/metadata_finders"
require "dependabot/credential"
module Dependabot
class PullRequestCreator # rubocop:disable Metrics/ClassLength
extend T::Sig
require "dependabot/pull_request_creator/azure"
require "dependabot... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/requirement.rb | Ruby | mit | 5,556 | main | 4,781 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
class Requirement < Gem::Requirement
extend T::Sig
extend T::Helpers
# Constants for operator groups
MINIMUM_OPERATORS = %w(>= > ~>).freeze
MAXIMUM_OPERATORS = %w(<= < ~>).freeze
abstract!
# Parse... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/notices.rb | Ruby | mit | 5,556 | main | 5,945 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/ecosystem"
module Dependabot
class Notice
module NoticeMode
INFO = "INFO"
WARN = "WARN"
ERROR = "ERROR"
end
extend T::Sig
sig { returns(String) }
attr_reader :mode, :type, :package_mana... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/simple_instrumentor.rb | Ruby | mit | 5,556 | main | 1,076 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
module SimpleInstrumentor
class << self
extend T::Sig
extend T::Generic
sig { returns(T.nilable(T::Array[T.proc.params(name: String, params: T::Hash[Symbol, T.untyped]).void])) }
attr_accessor :subs... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/dependency_group.rb | Ruby | mit | 5,556 | main | 3,244 | # typed: strict
# frozen_string_literal: true
require "dependabot/experiments"
require "dependabot/config/ignore_condition"
require "dependabot/logger"
require "sorbet-runtime"
require "wildcard_matcher"
require "yaml"
module Dependabot
class DependencyGroup
extend T::Sig
sig { returns(String) }
attr_... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/security_advisory.rb | Ruby | mit | 5,556 | main | 6,139 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/version"
module Dependabot
class SecurityAdvisory
extend T::Sig
sig { returns(String) }
attr_reader :dependency_name
sig { returns(String) }
attr_reader :package_manager
sig { returns(T::Array[Depen... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/dependency_file.rb | Ruby | mit | 5,556 | main | 5,463 | # typed: strong
# frozen_string_literal: true
require "pathname"
require "sorbet-runtime"
module Dependabot
class DependencyFile
extend T::Sig
sig { returns(String) }
attr_accessor :name
sig { returns(T.nilable(String)) }
attr_accessor :content
# This is the directory of the job source, n... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/dependency_graphers.rb | Ruby | mit | 5,556 | main | 1,028 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/dependency_graphers/base"
require "dependabot/dependency_graphers/generic"
module Dependabot
module DependencyGraphers
extend T::Sig
@graphers = T.let({}, T::Hash[String, T.class_of(Base)])
sig { params(package... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/git_ref.rb | Ruby | mit | 5,556 | main | 1,378 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
class GitRef
extend T::Sig
sig { returns(String) }
attr_accessor :name
sig { returns(String) }
attr_accessor :commit_sha
sig { returns(T.nilable(String)) }
attr_reader :tag_sha
sig { returns(... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/git_commit_checker.rb | Ruby | mit | 5,556 | main | 23,813 | # typed: strict
# frozen_string_literal: true
require "excon"
require "sorbet-runtime"
require "gitlab"
require "dependabot/clients/github_with_retries"
require "dependabot/clients/gitlab_with_retries"
require "dependabot/clients/bitbucket_with_retries"
require "dependabot/metadata_finders"
require "dependabot/errors"... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/version.rb | Ruby | mit | 5,556 | main | 3,345 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
class Version < Gem::Version
extend T::Sig
extend T::Helpers
abstract!
VersionParameter = T.type_alias { T.nilable(T.any(String, Integer, Gem::Version)) }
sig { override.overridable.params(version: Versio... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/credential.rb | Ruby | mit | 5,556 | main | 1,002 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "forwardable"
module Dependabot
class Credential
extend T::Sig
extend Forwardable
def_delegators :@credential, :fetch, :keys, :[]=, :delete, :slice, :values, :entries
sig { params(credential: T::Hash[String, T.any(T::Bo... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | common/lib/dependabot/requirements_update_strategy.rb | Ruby | mit | 5,556 | main | 441 | # typed: strong
# frozen_string_literal: true
module Dependabot
class RequirementsUpdateStrategy < T::Enum
enums do
BumpVersions = new("bump_versions")
BumpVersionsIfNecessary = new("bump_versions_if_necessary")
LockfileOnly = new("lockfile_only")
WidenRanges = new("widen_ranges")
end... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.