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 | cargo/lib/dependabot/cargo/file_updater/lockfile_updater.rb | Ruby | mit | 5,556 | main | 23,526 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "toml-rb"
require "open3"
require "dependabot/git_commit_checker"
require "dependabot/cargo/file_updater"
require "dependabot/cargo/file_updater/manifest_updater"
require "dependabot/cargo/file_parser"
require "dependabot/cargo/helpers"
req... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/lib/dependabot/cargo/file_updater/manifest_updater.rb | Ruby | mit | 5,556 | main | 7,312 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/cargo/file_updater"
module Dependabot
module Cargo
class FileUpdater
class ManifestUpdater
extend T::Sig
sig do
params... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/lib/dependabot/cargo/file_updater/workspace_manifest_updater.rb | Ruby | mit | 5,556 | main | 5,366 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/cargo/file_updater"
module Dependabot
module Cargo
class FileUpdater
class WorkspaceManifestUpdater
extend T::Sig
sig { params(dependencies: T::Array[Dependabot::Dependency], manifest: Dependabot::D... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo_spec.rb | Ruby | mit | 5,556 | main | 253 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/cargo"
require_common_spec "shared_examples_for_autoloading"
RSpec.describe Dependabot::Cargo do
it_behaves_like "it registers the required classes", "cargo"
end |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo/file_fetcher_spec.rb | Ruby | mit | 5,556 | main | 56,006 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/cargo/file_fetcher"
require_common_spec "file_fetchers/shared_examples_for_file_fetchers"
RSpec.describe Dependabot::Cargo::FileFetcher do
let(:json_header) { { "content-type" => "application/json" } }
let(:credentials) do
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo/language_spec.rb | Ruby | mit | 5,556 | main | 801 | # typed: false
# frozen_string_literal: true
require "dependabot/cargo/language"
require "dependabot/ecosystem"
require "spec_helper"
RSpec.describe Dependabot::Cargo::Language do
let(:language) { described_class.new(version) }
let(:version) { "3.0.0" }
describe "#version" do
it "returns the version" do
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo/update_checker_spec.rb | Ruby | mit | 5,556 | main | 21,175 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/cargo/update_checker"
require "dependabot/dependency_file"
require "dependabot/dependency"
require "dependabot/requirements_update_strategy"
require_common_spec "update_checkers/shared_examples_for_update_checkers"
RSpec.describe ... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo/file_updater_workspace_spec.rb | Ruby | mit | 5,556 | main | 5,366 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/cargo/file_updater"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/source"
RSpec.describe Dependabot::Cargo::FileUpdater do
let(:updater) do
described_class.new(
dependency_file... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo/metadata_finder_spec.rb | Ruby | mit | 5,556 | main | 3,344 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/cargo/metadata_finder"
require_common_spec "metadata_finders/shared_examples_for_metadata_finders"
RSpec.describe Dependabot::Cargo::MetadataFinder do
subject(:finder) do
described_class.new(de... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo/file_updater_edge_cases_spec.rb | Ruby | mit | 5,556 | main | 8,466 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/cargo/file_updater"
RSpec.describe Dependabot::Cargo::FileUpdater do
let(:updater) do
described_class.new(
dependency_files: files,
dependencies: dependencies,
credentials: []
)
end
let(:source) do
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo/version_spec.rb | Ruby | mit | 5,556 | main | 14,197 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/cargo/version"
RSpec.describe Dependabot::Cargo::Version do
subject(:version) { described_class.new(version_string) }
let(:version_string) { "1.0.0" }
describe "#to_s" do
subject { version.to_s }
context "with a no... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo/package_manager_spec.rb | Ruby | mit | 5,556 | main | 972 | # typed: false
# frozen_string_literal: true
require "dependabot/cargo/package_manager"
require "dependabot/ecosystem"
require "spec_helper"
RSpec.describe Dependabot::Cargo::PackageManager do
subject(:package_manager) { described_class.new(version) }
let(:version) { "1.12" }
describe "#version" do
it "re... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo/file_updater_spec.rb | Ruby | mit | 5,556 | main | 4,404 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/cargo/file_updater"
require_common_spec "file_updaters/shared_examples_for_file_updaters"
RSpec.describe Dependabot::Cargo::FileUpdater do
let(:tmp_path) { Depe... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo/requirement_spec.rb | Ruby | mit | 5,556 | main | 4,488 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/cargo/requirement"
RSpec.describe Dependabot::Cargo::Requirement do
subject(:requirement) { described_class.new(requirement_string) }
let(:requirement_string) { ">=1.0.0" }
describe ".new" do
it { is_expected.to be_a(de... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo/helpers_spec.rb | Ruby | mit | 5,556 | main | 5,604 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/cargo/helpers"
RSpec.describe Dependabot::Cargo::Helpers do
describe ".bypass_cargo_credential_providers" do
after do
ENV.delete("CARGO_REGISTRY_GLOBAL_CREDENTIAL_PROVIDERS")
end
context "when CARGO_REGISTRY_GL... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo/file_updater_table_header_spec.rb | Ruby | mit | 5,556 | main | 9,604 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/cargo/file_updater"
RSpec.describe Dependabot::Cargo::FileUpdater do
let(:updater) do
described_class.new(
dependency_files: files,
dependencies: dependencies,
credentials: []
)
end
let(:source) do
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo/file_parser_edge_cases_spec.rb | Ruby | mit | 5,556 | main | 8,644 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/cargo/file_parser"
RSpec.describe Dependabot::Cargo::FileParser do
let(:parser) { described_class.new(dependency_files: files, source: source) }
let(:source) do
Dependabot::Source.new(
provider: "github",
repo: ... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo/file_parser_spec.rb | Ruby | mit | 5,556 | main | 29,206 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/cargo/file_parser"
require "dependabot/dependency_file"
require "dependabot/source"
require_common_spec "file_parsers/shared_examples_for_file_parsers"
RSpec.describe Dependabot::Cargo::FileParser do
let(:lockfile_fixture_name) {... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo/file_parser_workspace_spec.rb | Ruby | mit | 5,556 | main | 4,039 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/cargo/file_parser"
require "dependabot/dependency_file"
require "dependabot/source"
RSpec.describe Dependabot::Cargo::FileParser do
let(:parser) { described_class.new(dependency_files: files, source: source) }
let(:source) do
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo/requirement_parse_dep_string_spec.rb | Ruby | mit | 5,556 | main | 3,521 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/cargo/requirement"
RSpec.describe Dependabot::Cargo::Requirement, ".parse_dep_string" do
subject(:result) { described_class.parse_dep_string(dep_string) }
context "with a simple name:version string" do
let(:dep_string) { "... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo/update_checker/latest_version_finder_spec.rb | Ruby | mit | 5,556 | main | 18,243 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/cargo/update_checker/latest_version_finder"
RSpec.describe Dependabot::Cargo::UpdateChecker::LatestVersionFinder do
let(:crates_url) { "https://crates.io/api/v1... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo/update_checker/requirements_updater_spec.rb | Ruby | mit | 5,556 | main | 13,262 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/cargo/update_checker/requirements_updater"
require "dependabot/requirements_update_strategy"
RSpec.describe Dependabot::Cargo::UpdateChecker::RequirementsUpdater do
let(:updater) do
described_class.new(
requirements: r... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo/update_checker/file_preparer_spec.rb | Ruby | mit | 5,556 | main | 11,681 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/cargo/update_checker/file_preparer"
RSpec.describe Dependabot::Cargo::UpdateChecker::FilePreparer do
let(:preparer) do
described_class.new(
dependency_files: dependency_files,
depen... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo/update_checker/version_resolver_spec.rb | Ruby | mit | 5,556 | main | 28,961 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency_file"
require "dependabot/shared_helpers"
require "dependabot/cargo/update_checker/file_preparer"
require "dependabot/cargo/update_checker/version_resolver"
RSpec.describe Dependabot::Cargo::UpdateChecker::VersionResolve... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo/file_updater/lockfile_updater_spec.rb | Ruby | mit | 5,556 | main | 29,756 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/cargo/file_updater/lockfile_updater"
RSpec.describe Dependabot::Cargo::FileUpdater::LockfileUpdater do
let(:updater) do
described_class.new(
dependenc... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo/file_updater/manifest_updater_spec.rb | Ruby | mit | 5,556 | main | 9,195 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/cargo/file_updater/manifest_updater"
RSpec.describe Dependabot::Cargo::FileUpdater::ManifestUpdater do
let(:updater) do
described_class.new(
manifest:... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | cargo/spec/dependabot/cargo/package/package_details_fetcher_spec.rb | Ruby | mit | 5,556 | main | 2,819 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/credential"
require "dependabot/dependency_file"
require "dependabot/cargo/package/package_details_fetcher"
RSpec.describe Dependabot::Cargo::Package::PackageDetailsFetcher do
subject(:fetcher) do
described_class.new(
d... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/dependabot-julia.gemspec | Ruby | mit | 5,556 | main | 1,313 | # frozen_string_literal: true
Gem::Specification.new do |spec|
common_gemspec =
Bundler.load_gemspec_uncached("../common/dependabot-common.gemspec")
spec.name = "dependabot-julia"
spec.summary = "Provides Dependabot support for Julia"
spec.description = "Dependabot-Julia provides support for... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/lib/dependabot/julia.rb | Ruby | mit | 5,556 | main | 1,846 | # typed: strong
# frozen_string_literal: true
require "dependabot/version"
require "dependabot/utils"
# Register Julia version and requirement classes
require "dependabot/julia/version"
require "dependabot/julia/requirement"
module Dependabot
module Julia
extend T::Sig
VERSION = "0.1.0"
sig { returns... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/lib/dependabot/julia/version.rb | Ruby | mit | 5,556 | main | 1,399 | # typed: strong
# frozen_string_literal: true
require "dependabot/version"
module Dependabot
module Julia
class Version < Dependabot::Version
# Julia follows semantic versioning for most packages
# See: https://docs.julialang.org/en/v1/stdlib/Pkg/#Version-specifier-format
VERSION_PATTERN = T.l... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/lib/dependabot/julia/registry_client.rb | Ruby | mit | 5,556 | main | 13,657 | # Julia Registry Client with DependabotHelper.jl integration
# typed: strict
# frozen_string_literal: true
require "time"
require "dependabot/credential"
require "dependabot/julia/version"
require "dependabot/shared_helpers"
require "dependabot/errors"
module Dependabot
module Julia
class RegistryClient
e... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/lib/dependabot/julia/file_parser.rb | Ruby | mit | 5,556 | main | 6,891 | # typed: strict
# frozen_string_literal: true
require "tempfile"
require "fileutils"
require "dependabot/dependency"
require "dependabot/file_parsers"
require "dependabot/file_parsers/base"
require "dependabot/julia/version"
require "dependabot/julia/requirement"
require "dependabot/julia/registry_client"
require "dep... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/lib/dependabot/julia/requirement.rb | Ruby | mit | 5,556 | main | 6,983 | # typed: strong
# frozen_string_literal: true
require "dependabot/requirement"
require "dependabot/utils"
module Dependabot
module Julia
class Requirement < Dependabot::Requirement
sig { override.params(requirement_string: T.nilable(String)).returns(T::Array[Dependabot::Julia::Requirement]) }
def se... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/lib/dependabot/julia/dependency.rb | Ruby | mit | 5,556 | main | 656 | # typed: strong
# frozen_string_literal: true
require "dependabot/dependency"
require "dependabot/julia/version"
require "sorbet-runtime"
module Dependabot
module Julia
class Dependency < Dependabot::Dependency
extend T::Sig
# This class intentionally delegates most functionality to the base
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/lib/dependabot/julia/file_updater.rb | Ruby | mit | 5,556 | main | 15,976 | # typed: strict
# frozen_string_literal: true
require "toml-rb"
require "tempfile"
require "fileutils"
require "pathname"
require "dependabot/file_updaters"
require "dependabot/file_updaters/base"
require "dependabot/julia/registry_client"
require "dependabot/notices"
module Dependabot
module Julia
class FileUp... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/lib/dependabot/julia/update_checker.rb | Ruby | mit | 5,556 | main | 5,386 | # typed: strict
# frozen_string_literal: true
require "dependabot/update_checkers"
require "dependabot/update_checkers/base"
require "dependabot/julia/registry_client"
require "dependabot/julia/requirement"
module Dependabot
module Julia
# Load helper classes
autoload :LatestVersionFinder, "dependabot/julia... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/lib/dependabot/julia/package_manager.rb | Ruby | mit | 5,556 | main | 2,538 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/ecosystem"
require "dependabot/shared_helpers"
require "dependabot/version"
module Dependabot
module Julia
class PackageManager < Ecosystem::VersionManager
extend T::Sig
ECOSYSTEM = T.let("julia", String)
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/lib/dependabot/julia/metadata_finder.rb | Ruby | mit | 5,556 | main | 2,886 | # typed: strong
# frozen_string_literal: true
require "dependabot/metadata_finders"
require "dependabot/metadata_finders/base"
require "dependabot/julia/registry_client"
require "uri" # Required for URI.parse
module Dependabot
module Julia
class MetadataFinder < Dependabot::MetadataFinders::Base
extend T:... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/lib/dependabot/julia/file_fetcher.rb | Ruby | mit | 5,556 | main | 3,925 | # typed: strong
# frozen_string_literal: true
require "dependabot/file_fetchers"
require "dependabot/file_fetchers/base"
require "dependabot/julia/registry_client"
require "dependabot/shared_helpers"
require "pathname"
module Dependabot
module Julia
class FileFetcher < Dependabot::FileFetchers::Base
sig {... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/lib/dependabot/julia/language.rb | Ruby | mit | 5,556 | main | 611 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/julia/version"
require "dependabot/julia/requirement"
require "dependabot/ecosystem"
module Dependabot
module Julia
LANGUAGE = "julia"
class Language < Dependabot::Ecosystem::VersionManager
extend T::Sig
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/lib/dependabot/julia/update_checker/requirements_updater.rb | Ruby | mit | 5,556 | main | 4,266 | # typed: strict
# frozen_string_literal: true
require "dependabot/julia/requirement"
require "dependabot/julia/version"
module Dependabot
module Julia
class RequirementsUpdater
extend T::Sig
sig do
params(
requirements: T::Array[T::Hash[Symbol, T.untyped]],
target_versio... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/lib/dependabot/julia/update_checker/latest_version_finder.rb | Ruby | mit | 5,556 | main | 8,894 | # typed: strong
# frozen_string_literal: true
require "time"
require "dependabot/julia/package/package_details_fetcher"
require "dependabot/julia/version"
require "dependabot/update_checkers/version_filters"
module Dependabot
module Julia
class LatestVersionFinder
extend T::Sig
sig do
param... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/lib/dependabot/julia/package/package_details_fetcher.rb | Ruby | mit | 5,556 | main | 5,157 | # typed: strict
# frozen_string_literal: true
require "time"
require "dependabot/julia/registry_client"
require "dependabot/julia/version"
require "dependabot/package/package_release"
require "dependabot/package/package_language"
module Dependabot
module Julia
module Package
class PackageDetailsFetcher
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/spec/spec_helper.rb | Ruby | mit | 5,556 | main | 874 | # typed: false
# frozen_string_literal: true
require "rspec"
require "webmock/rspec"
require "webmock/http_lib_adapters/excon_adapter"
require "vcr"
require "dependabot/julia"
require_relative "dependabot/shared_examples"
def common_dir
@common_dir ||= Gem::Specification.find_by_name("dependabot-common").gem_dir
e... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/spec/integration/julia_spec.rb | Ruby | mit | 5,556 | main | 7,486 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/julia"
RSpec.describe Dependabot::Julia do
describe "integration" do
it "handles basic dependency updates" do
dependency = Dependabot::Dependency.new(
name: "Example",
version: "0.5.5",
previous_... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/spec/integration/julia_helper_spec.rb | Ruby | mit | 5,556 | main | 3,689 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/julia/registry_client"
RSpec.describe Dependabot::Julia::RegistryClient do
let(:registry_client) { described_class.new(credentials: []) }
describe "real Julia helper calls" do
context "with Example package" do
let(:p... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/spec/dependabot/shared_examples.rb | Ruby | mit | 5,556 | main | 1,247 | # typed: false
# frozen_string_literal: true
require "spec_helper"
RSpec.shared_examples "a dependabot ecosystem module" do
describe ".name" do
subject { described_class.name }
it { is_expected.to eq("Dependabot::Julia") }
end
describe ".package_ecosystem" do
subject { described_class.package_ecos... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/spec/dependabot/julia_spec.rb | Ruby | mit | 5,556 | main | 643 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/julia"
require_common_spec "shared_examples_for_autoloading"
RSpec.describe Dependabot::Julia do
it_behaves_like "it registers the required classes", "julia"
it "has a version number" do
expect(Dependabot::Julia::VERSION).... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/spec/dependabot/julia/requirements_updater_spec.rb | Ruby | mit | 5,556 | main | 3,316 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/julia/update_checker/requirements_updater"
require "dependabot/julia/version"
RSpec.describe Dependabot::Julia::RequirementsUpdater do
let(:updater) do
described_class.new(
requirements: requirements,
target_versi... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/spec/dependabot/julia/registry_client_batch_integration_spec.rb | Ruby | mit | 5,556 | main | 4,595 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/julia/registry_client"
require "dependabot/dependency"
RSpec.describe Dependabot::Julia::RegistryClient, :julia_helpers do
subject(:client) { described_class.new(credentials: credentials, custom_registries: []) }
let(:credenti... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/spec/dependabot/julia/requirement_spec.rb | Ruby | mit | 5,556 | main | 9,759 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/julia/requirement"
require "dependabot/julia/version"
RSpec.describe Dependabot::Julia::Requirement do
describe ".requirements_array" do
subject(:requirement) { described_class.requirements_array(requirement_string).first }
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/spec/dependabot/julia/file_parser_spec.rb | Ruby | mit | 5,556 | main | 7,207 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/julia/file_parser"
RSpec.describe Dependabot::Julia::FileParser do
describe "#parse with actual fixtures" do
subject(:dependencies) { parser.parse }
le... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/spec/dependabot/julia/file_fetcher_spec.rb | Ruby | mit | 5,556 | main | 8,206 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/julia/file_fetcher"
require_common_spec "file_fetchers/shared_examples_for_file_fetchers"
RSpec.describe Dependabot::Julia::FileFetcher do
let(:credentials) do
# Basic git credentials for testing - the file fetcher uses these... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/spec/dependabot/julia/package_manager_spec.rb | Ruby | mit | 5,556 | main | 2,736 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/julia/package_manager"
RSpec.describe Dependabot::Julia::PackageManager do
describe "#ecosystem" do
subject(:package_manager) { described_class.new }
let(:expected_minimum_version) { Dependabot::Julia::PackageManager::MI... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/spec/dependabot/julia/update_checker_spec.rb | Ruby | mit | 5,556 | main | 7,943 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/julia/update_checker"
require "dependabot/julia/package/package_details_fetcher"
RSpec.describe Dependabot::Julia::UpdateChecker do
let(:checker) do
describ... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/spec/dependabot/julia/registry_client_batch_spec.rb | Ruby | mit | 5,556 | main | 2,740 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/julia/registry_client"
require "dependabot/dependency"
RSpec.describe Dependabot::Julia::RegistryClient do
let(:credentials) { [] }
let(:custom_registries) { [] }
let(:client) do
described_class.new(
credentials: cr... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/spec/dependabot/julia/registry_client_spec.rb | Ruby | mit | 5,556 | main | 5,013 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/julia/registry_client"
RSpec.describe Dependabot::Julia::RegistryClient do
let(:registry_client) { described_class.new(credentials: []) }
describe "#find_environment_files" do
let(:directory) { "/tmp/test_project" }
c... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/spec/dependabot/julia/file_updater_integration_spec.rb | Ruby | mit | 5,556 | main | 2,388 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/julia"
RSpec.describe Dependabot::Julia::FileUpdater do
let(:project_file) do
Dependabot::DependencyFile.new(
name: "Project.toml",
content: fixture("projects", "basic", "Project.toml")
)
end
let(:manifes... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/spec/dependabot/julia/metadata_finder_spec.rb | Ruby | mit | 5,556 | main | 2,938 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/julia/metadata_finder"
require_common_spec "metadata_finders/shared_examples_for_metadata_finders"
RSpec.describe Dependabot::Julia::MetadataFinder do
subject(:finder) do
described_class.new(de... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/spec/dependabot/julia/file_updater_spec.rb | Ruby | mit | 5,556 | main | 23,846 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/julia"
RSpec.describe Dependabot::Julia::FileUpdater do
let(:project_file) do
Dependabot::DependencyFile.new(
name: "Project.toml",
content: fixture("projects", "basic", "Project.toml")
)
end
let(:manifes... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | julia/spec/dependabot/julia/package/package_details_fetcher_spec.rb | Ruby | mit | 5,556 | main | 4,294 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/julia/package/package_details_fetcher"
require "dependabot/julia/version"
RSpec.describe Dependabot::Julia::Package::PackageDetailsFetcher do
subject(:fetcher) do
described_class.new(
dependency: dependency,
crede... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/dependabot-pub.gemspec | Ruby | mit | 5,556 | main | 1,310 | # frozen_string_literal: true
Gem::Specification.new do |spec|
common_gemspec =
Bundler.load_gemspec_uncached("../common/dependabot-common.gemspec")
spec.name = "dependabot-pub"
spec.summary = "Provides Dependabot support for Dart (pub)"
spec.description = "Dependabot-Pub provides support fo... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/spec/spec_helper.rb | Ruby | mit | 5,556 | main | 1,005 | # typed: false
# 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
def run_git(args, dir)
stdout, stderr, status = Open3.capture3(
{
"GIT_AUTHOR_... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/spec/dependabot/pub_spec.rb | Ruby | mit | 5,556 | main | 247 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/pub"
require_common_spec "shared_examples_for_autoloading"
RSpec.describe Dependabot::Pub do
it_behaves_like "it registers the required classes", "pub"
end |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/spec/dependabot/pub/file_updater_spec.rb | Ruby | mit | 5,556 | main | 6,755 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/pub/file_updater"
require "webrick"
require_common_spec "file_updaters/shared_examples_for_file_updaters"
RSpec.describe Dependabot::Pub::FileUpdater do
let(:p... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/spec/dependabot/pub/metadata_finder_spec.rb | Ruby | mit | 5,556 | main | 3,341 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/pub/metadata_finder"
require_common_spec "metadata_finders/shared_examples_for_metadata_finders"
RSpec.describe Dependabot::Pub::MetadataFinder do
let(:finder) do
described_class.new(dependency... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/spec/dependabot/pub/update_checker_spec.rb | Ruby | mit | 5,556 | main | 32,666 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "webrick"
require "dependabot/dependency_file"
require "dependabot/dependency"
require "dependabot/pub/update_checker"
require "dependabot/requirements_update_strategy"
require "dependabot/pub/update_checker/latest_version_finder"
require_com... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/spec/dependabot/pub/requirements_spec.rb | Ruby | mit | 5,556 | main | 6,688 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/pub/requirement"
RSpec.describe Dependabot::Pub::Requirement do
subject(:requirement) { described_class.new(requirement_string) }
let(:requirement_string) { ">=1.0.0" }
describe ".new" do
it { is_expected.to be_a(descri... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/spec/dependabot/pub/pub_package_manager_spec.rb | Ruby | mit | 5,556 | main | 545 | # typed: false
# frozen_string_literal: true
require "dependabot/pub/package_manager"
require "dependabot/ecosystem"
require "spec_helper"
RSpec.describe Dependabot::Pub::PubPackageManager do
let(:package_manager) { described_class.new("3.5.0") }
describe "#initialize" do
context "when version is a String" d... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/spec/dependabot/pub/file_fetcher_spec.rb | Ruby | mit | 5,556 | main | 1,834 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/pub/file_fetcher"
require_common_spec "file_fetchers/shared_examples_for_file_fetchers"
RSpec.describe Dependabot::Pub::FileFetcher do
let(:repo_contents_path) { build_tmp_repo(project_name) }
let(:directory) { "/" }
let(:pro... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/spec/dependabot/pub/file_parser_spec.rb | Ruby | mit | 5,556 | main | 3,310 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency_file"
require "dependabot/source"
require "dependabot/pub/file_parser"
require "dependabot/pub/version"
require_common_spec "file_parsers/shared_examples_for_file_parsers"
RSpec.describe Dependabot::Pub::FileParser do
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/spec/dependabot/pub/infer_sdk_versions_spec.rb | Ruby | mit | 5,556 | main | 1,972 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/pub/helpers"
require "webrick"
RSpec.describe "Helpers" do
let(:dev_null) { WEBrick::Log.new(File::NULL, 7) }
let(:inferred_result) do
Dependabot::Pub::He... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/spec/dependabot/pub/version_spec.rb | Ruby | mit | 5,556 | main | 2,246 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/pub/version"
RSpec.describe Dependabot::Pub::Version do
subject(:version) { described_class.new(version_string) }
let(:version_string) { "1.0.0" }
describe "#to_s" do
subject { version.to_s }
context "with a non-pr... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/spec/dependabot/pub/update_checker/latest_version_finder_spec.rb | Ruby | mit | 5,556 | main | 2,226 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/pub/update_checker/latest_version_finder"
require "dependabot/pub/package/package_details_fetcher"
require "dependabot/pub/version"
require_common_spec "update_ch... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/spec/dependabot/pub/package/package_details_fetcher_spec.rb | Ruby | mit | 5,556 | main | 1,914 | # 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/pub"
require "dependabot/package/package_release"
require "dependabot/package/package_details"
require "dependab... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/lib/dependabot/pub.rb | Ruby | mit | 5,556 | main | 711 | # 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/pub/file_fetcher"
require "dependabot/pub/file_parser"
require "dependabot/pub/update_checker"
require "dependabot... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/lib/dependabot/pub/file_parser.rb | Ruby | mit | 5,556 | main | 2,640 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/file_parsers"
require "dependabot/file_parsers/base"
require "dependabot/dependency"
require "dependabot/pub/version"
require "dependabot/pub/helpers"
require "dependabot/pub/package_manager"
require "dependabot/pub/language"
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/lib/dependabot/pub/file_fetcher.rb | Ruby | mit | 5,556 | main | 2,484 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/file_fetchers"
require "dependabot/file_fetchers/base"
require "dependabot/file_filtering"
# For details on pub packages, see:
# https://dart.dev/tools/pub/package-layout#the-pubspec
module Dependabot
module Pub
class Fil... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/lib/dependabot/pub/update_checker.rb | Ruby | mit | 5,556 | main | 10,295 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "yaml"
require "dependabot/pub/helpers"
require "dependabot/requirements_update_strategy"
require "dependabot/update_checkers"
require "dependabot/update_checkers/base"
require "dependabot/update_checkers/version_filters"
module Dependabo... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/lib/dependabot/pub/helpers.rb | Ruby | mit | 5,556 | main | 15,357 | # typed: strict
# frozen_string_literal: true
require "digest"
require "json"
require "open3"
require "sorbet-runtime"
require "dependabot/errors"
require "dependabot/logger"
require "dependabot/pub/requirement"
require "dependabot/requirements_update_strategy"
require "dependabot/shared_helpers"
module Dependabot
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/lib/dependabot/pub/requirement.rb | Ruby | mit | 5,556 | main | 5,900 | # typed: strict
# frozen_string_literal: true
# For details on pub version constraints see:
# https://github.com/dart-lang/pub_semver
###################################################################
require "sorbet-runtime"
require "dependabot/requirement"
require "dependabot/utils"
require "dependabot/pub/versi... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/lib/dependabot/pub/file_updater.rb | Ruby | mit | 5,556 | main | 728 | # typed: strong
# frozen_string_literal: true
require "dependabot/file_updaters"
require "dependabot/file_updaters/base"
require "dependabot/pub/helpers"
require "sorbet-runtime"
module Dependabot
module Pub
class FileUpdater < Dependabot::FileUpdaters::Base
extend T::Sig
include Dependabot::Pub::H... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/lib/dependabot/pub/metadata_finder.rb | Ruby | mit | 5,556 | main | 1,617 | # typed: strict
# frozen_string_literal: true
require "excon"
require "sorbet-runtime"
require "dependabot/metadata_finders"
require "dependabot/metadata_finders/base"
require "dependabot/registry_client"
module Dependabot
module Pub
extend T::Sig
class MetadataFinder < Dependabot::MetadataFinders::Base
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/lib/dependabot/pub/package_manager.rb | Ruby | mit | 5,556 | main | 1,191 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/pub/version"
require "dependabot/ecosystem"
require "dependabot/pub/requirement"
module Dependabot
module Pub
ECOSYSTEM = "dart"
SUPPORTED_DART_VERSIONS = T.let([].freeze, T::Array[Dependabot::Version])
DEPRECAT... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/lib/dependabot/pub/version.rb | Ruby | mit | 5,556 | main | 1,856 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/version"
require "dependabot/utils"
# Dart 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.
#
# For details on versions synta... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/lib/dependabot/pub/language.rb | Ruby | mit | 5,556 | main | 474 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/pub/version"
require "dependabot/ecosystem"
module Dependabot
module Pub
LANGUAGE = "dart"
class Language < Dependabot::Ecosystem::VersionManager
extend T::Sig
sig { params(raw_version: String).void }
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/lib/dependabot/pub/package/package_details_fetcher.rb | Ruby | mit | 5,556 | main | 3,681 | # 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/pub"
require "dependabot/package/package_release"
require "dependabot/package/package_details"
require "dependab... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | pub/lib/dependabot/pub/update_checker/latest_version_finder.rb | Ruby | mit | 5,556 | main | 8,293 | # typed: strict
# frozen_string_literal: true
require "excon"
require "dependabot/pub/update_checker"
require "dependabot/update_checkers/version_filters"
require "dependabot/registry_client"
require "dependabot/pub/package/package_details_fetcher"
require "dependabot/package/package_latest_version_finder"
require "so... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | opentofu/dependabot-opentofu.gemspec | Ruby | mit | 5,556 | main | 1,420 | # frozen_string_literal: true
Gem::Specification.new do |spec|
common_gemspec =
Bundler.load_gemspec_uncached("../common/dependabot-common.gemspec")
spec.name = "dependabot-opentofu"
spec.summary = "Provides Dependabot support for OpenTofu"
spec.description = "Dependabot-OpenTofu provides su... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | opentofu/spec/dependabot/opentofu_spec.rb | Ruby | mit | 5,556 | main | 2,304 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/opentofu"
require_common_spec "shared_examples_for_autoloading"
RSpec.describe Dependabot::Opentofu do
it_behaves_like "it registers the required classes", "opentofu"
describe "Dependency#display_name" do
subject(:display_... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | opentofu/spec/dependabot/opentofu/version_spec.rb | Ruby | mit | 5,556 | main | 1,968 | # 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... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | opentofu/spec/dependabot/opentofu/file_updater_spec.rb | Ruby | mit | 5,556 | main | 59,782 | # 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... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | opentofu/spec/dependabot/opentofu/registry_client_spec.rb | Ruby | mit | 5,556 | main | 12,044 | # 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... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | opentofu/spec/dependabot/opentofu/metadata_finder_spec.rb | Ruby | mit | 5,556 | main | 4,312 | # 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.... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | opentofu/spec/dependabot/opentofu/requirements_updater_spec.rb | Ruby | mit | 5,556 | main | 5,783 | # 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... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | opentofu/spec/dependabot/opentofu/update_checker_spec.rb | Ruby | mit | 5,556 | main | 9,877 | # 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... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | opentofu/spec/dependabot/opentofu/file_fetcher_spec.rb | Ruby | mit | 5,556 | main | 2,136 | # 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) { "/" }
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | opentofu/spec/dependabot/opentofu/package_manager_spec.rb | Ruby | mit | 5,556 | main | 966 | # 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
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | opentofu/spec/dependabot/opentofu/file_parser_spec.rb | Ruby | mit | 5,556 | main | 40,005 | # 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... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | opentofu/spec/dependabot/opentofu/requirement_spec.rb | Ruby | mit | 5,556 | main | 741 | # 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.