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 | npm_and_yarn/spec/dependabot/npm_and_yarn/update_checker/version_resolver_spec.rb | Ruby | mit | 5,556 | main | 84,391 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/npm_and_yarn/update_checker/version_resolver"
RSpec.describe Dependabot::NpmAndYarn::UpdateChecker::VersionResolver do
let(:resolver) do
described_class.new... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | npm_and_yarn/spec/dependabot/npm_and_yarn/update_checker/package_latest_version_finder_spec.rb | Ruby | mit | 5,556 | main | 47,083 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/npm_and_yarn/update_checker/latest_version_finder"
require "dependabot/credential"
require "dependabot/security_advisory"
require "dependabot/package/release_coold... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | npm_and_yarn/spec/dependabot/npm_and_yarn/update_checker/library_detector_spec.rb | Ruby | mit | 5,556 | main | 4,118 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency_file"
require "dependabot/npm_and_yarn/update_checker/library_detector"
RSpec.describe Dependabot::NpmAndYarn::UpdateChecker::LibraryDetector do
subject(:finder) do
described_class.new(
package_json_file: pac... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | npm_and_yarn/spec/dependabot/npm_and_yarn/update_checker/conflicting_dependency_resolver_spec.rb | Ruby | mit | 5,556 | main | 2,266 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/npm_and_yarn/update_checker/conflicting_dependency_resolver"
RSpec.describe(Dependabot::NpmAndYarn::UpdateChecker::ConflictingDependencyResolver) do
let(:resolv... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | npm_and_yarn/spec/dependabot/npm_and_yarn/update_checker/requirements_updater_spec.rb | Ruby | mit | 5,556 | main | 23,380 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/npm_and_yarn/update_checker/requirements_updater"
require "dependabot/requirements_update_strategy"
RSpec.describe Dependabot::NpmAndYarn::UpdateChecker::RequirementsUpdater do
let(:updater) do
described_class.new(
req... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | npm_and_yarn/spec/dependabot/npm_and_yarn/file_fetcher/path_dependency_builder_spec.rb | Ruby | mit | 5,556 | main | 4,485 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/npm_and_yarn/file_fetcher/path_dependency_builder"
RSpec.describe Dependabot::NpmAndYarn::FileFetcher::PathDependencyBuilder do
let(:builder) do
described_c... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | npm_and_yarn/spec/dependabot/npm_and_yarn/file_updater/pnpm_lockfile_updater_spec.rb | Ruby | mit | 5,556 | main | 24,065 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/npm_and_yarn/file_updater/pnpm_lockfile_updater"
RSpec.describe Dependabot::NpmAndYarn::FileUpdater::PnpmLockfileUpdater do
subject(:updated_pnpm_lock_content) do
updater.updated_pnpm_lock_content(pnpm_lock, updated_pnpm_work... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | npm_and_yarn/spec/dependabot/npm_and_yarn/file_updater/npmrc_builder_spec.rb | Ruby | mit | 5,556 | main | 43,250 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/credential"
require "dependabot/dependency_file"
require "dependabot/npm_and_yarn/file_updater/npmrc_builder"
RSpec.describe Dependabot::NpmAndYarn::FileUpdater::NpmrcBuilder do
let(:npmrc_builder) do
described_class.new(
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | npm_and_yarn/spec/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater_spec.rb | Ruby | mit | 5,556 | main | 58,016 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/credential"
require "dependabot/npm_and_yarn/file_updater/npm_lockfile_updater"
RSpec.describe Dependabot::NpmAndYarn::FileUpdater::NpmLockfileUpdater do
subject(:updated_npm_lock_content) { updater.updated_lockfile.content }
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | npm_and_yarn/spec/dependabot/npm_and_yarn/file_updater/package_json_preparer_spec.rb | Ruby | mit | 5,556 | main | 552 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/npm_and_yarn/file_updater/package_json_preparer"
RSpec.describe Dependabot::NpmAndYarn::FileUpdater::PackageJsonPreparer do
describe "#prepared_content" do
it "does not craash when finding null dependencies" do
original... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | npm_and_yarn/spec/dependabot/npm_and_yarn/file_updater/package_json_updater_spec.rb | Ruby | mit | 5,556 | main | 20,583 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/npm_and_yarn/file_updater/package_json_updater"
RSpec.describe Dependabot::NpmAndYarn::FileUpdater::PackageJsonUpdater do
let(:package_json_updater) do
desc... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | npm_and_yarn/spec/dependabot/npm_and_yarn/file_updater/yarn_lockfile_updater_spec.rb | Ruby | mit | 5,556 | main | 12,775 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/npm_and_yarn/file_updater/yarn_lockfile_updater"
RSpec.describe Dependabot::NpmAndYarn::FileUpdater::YarnLockfileUpdater do
subject(:updated_yarn_lock_content) { updater.updated_yarn_lock_content(yarn_lock) }
let(:updater) do
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | npm_and_yarn/spec/dependabot/npm_and_yarn/file_updater/pnpm_workspace_updater_spec.rb | Ruby | mit | 5,556 | main | 7,467 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/npm_and_yarn/file_updater/pnpm_workspace_updater"
RSpec.describe Dependabot::NpmAndYarn::FileUpdater::PnpmWorkspaceUpdater do
let(:pnpm_workspace_updater) do
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | dotnet_sdk/dependabot-dotnet_sdk.gemspec | Ruby | mit | 5,556 | main | 1,167 | # frozen_string_literal: true
Gem::Specification.new do |spec|
common_gemspec =
Bundler.load_gemspec_uncached("../common/dependabot-common.gemspec")
spec.name = "dependabot-dotnet_sdk"
spec.summary = "Provides Dependabot support for .NET SDK"
spec.description = "dependabot-dotnet_sdk provide... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | dotnet_sdk/lib/dependabot/dotnet_sdk.rb | Ruby | mit | 5,556 | main | 799 | # 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/dotnet_sdk/file_fetcher"
require "dependabot/dotnet_sdk/file_parser"
require "dependabot/dotnet_sdk/update_checker... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | dotnet_sdk/lib/dependabot/dotnet_sdk/file_parser.rb | Ruby | mit | 5,556 | main | 3,563 | # typed: strict
# frozen_string_literal: true
require "dependabot/dependency"
require "dependabot/file_parsers"
require "dependabot/file_parsers/base"
require "sorbet-runtime"
require "dependabot/dotnet_sdk/package_manager"
require "dependabot/dotnet_sdk/language"
module Dependabot
module DotnetSdk
class FilePa... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | dotnet_sdk/lib/dependabot/dotnet_sdk/file_updater.rb | Ruby | mit | 5,556 | main | 1,264 | # typed: strong
# frozen_string_literal: true
require "dependabot/file_updaters"
require "dependabot/file_updaters/base"
require "sorbet-runtime"
module Dependabot
module DotnetSdk
class FileUpdater < Dependabot::FileUpdaters::Base
extend T::Sig
sig { override.returns(T::Array[Dependabot::Dependenc... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | dotnet_sdk/lib/dependabot/dotnet_sdk/requirement.rb | Ruby | mit | 5,556 | main | 1,195 | # typed: strong
# frozen_string_literal: true
require "dependabot/requirement"
require "dependabot/utils"
module Dependabot
module DotnetSdk
class Requirement < Dependabot::Requirement
AND_SEPARATOR = /(?<=[a-zA-Z0-9*])\s+(?:&+\s+)?(?!\s*[|-])/
# For consistency with other languages, we define a re... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | dotnet_sdk/lib/dependabot/dotnet_sdk/language.rb | Ruby | mit | 5,556 | main | 619 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/dotnet_sdk/version"
require "dependabot/ecosystem"
module Dependabot
module DotnetSdk
class DotnetSDK < Dependabot::Ecosystem::VersionManager
extend T::Sig
LANGUAGE = "DotnetSDK"
SUPPORTED_VERSIONS = T... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | dotnet_sdk/lib/dependabot/dotnet_sdk/file_fetcher.rb | Ruby | mit | 5,556 | main | 1,197 | # typed: strong
# frozen_string_literal: true
require "dependabot/file_fetchers"
require "dependabot/file_fetchers/base"
require "sorbet-runtime"
module Dependabot
module DotnetSdk
class FileFetcher < Dependabot::FileFetchers::Base
extend T::Sig
sig { override.params(filenames: T::Array[String]).re... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | dotnet_sdk/lib/dependabot/dotnet_sdk/version.rb | Ruby | mit | 5,556 | main | 497 | # typed: strong
# frozen_string_literal: true
require "dependabot/version"
require "dependabot/utils"
module Dependabot
module DotnetSdk
# The .NET SDK versioning scheme is not semver compliant.
# However, for simpliticy, we will treat it as semver.
# See: https://learn.microsoft.com/en-us/dotnet/core/v... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | dotnet_sdk/lib/dependabot/dotnet_sdk/update_checker.rb | Ruby | mit | 5,556 | main | 2,520 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/errors"
require "dependabot/update_checkers"
require "dependabot/update_checkers/base"
module Dependabot
module DotnetSdk
class UpdateChecker < Dependabot::UpdateCheckers::Base
extend T::Sig
require_relative... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | dotnet_sdk/lib/dependabot/dotnet_sdk/metadata_finder.rb | Ruby | mit | 5,556 | main | 526 | # typed: strong
# frozen_string_literal: true
require "dependabot/metadata_finders"
require "dependabot/metadata_finders/base"
module Dependabot
module DotnetSdk
class MetadataFinder < Dependabot::MetadataFinders::Base
extend T::Sig
private
sig { override.returns(T.nilable(Dependabot::Source... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | dotnet_sdk/lib/dependabot/dotnet_sdk/package_manager.rb | Ruby | mit | 5,556 | main | 1,315 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/dotnet_sdk/version"
require "dependabot/ecosystem"
require "dependabot/dotnet_sdk/requirement"
module Dependabot
module DotnetSdk
ECOSYSTEM = "dotnet-sdk"
SUPPORTED_VERSIONS = T.let([].freeze, T::Array[Dependabot::Ve... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | dotnet_sdk/lib/dependabot/dotnet_sdk/update_checker/latest_version_finder.rb | Ruby | mit | 5,556 | main | 2,183 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/package/package_details"
require "dependabot/package/package_latest_version_finder"
require "dependabot/registry_client"
require "dependabot/update_checkers/base"
require "dependabot/dotnet_sdk/package/package_details_fetcher"... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | dotnet_sdk/lib/dependabot/dotnet_sdk/package/package_details_fetcher.rb | Ruby | mit | 5,556 | main | 4,090 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/package/package_details"
require "dependabot/dotnet_sdk/version"
module Dependabot
module DotnetSdk
module Package
class PackageDetailsFetcher
extend T::Sig
RELEASES_INDEX_URL = "https://dotnetcli... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | dotnet_sdk/spec/spec_helper.rb | Ruby | mit | 5,556 | main | 275 | # typed: strict
# frozen_string_literal: true
def common_dir
@common_dir ||= Gem::Specification.find_by_name("dependabot-common").gem_dir
end
def require_common_spec(path)
require "#{common_dir}/spec/dependabot/#{path}"
end
require "#{common_dir}/spec/spec_helper.rb" |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | dotnet_sdk/spec/dependabot/dotnet_sdk_spec.rb | Ruby | mit | 5,556 | main | 267 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dotnet_sdk"
require_common_spec "shared_examples_for_autoloading"
RSpec.describe Dependabot::DotnetSdk do
it_behaves_like "it registers the required classes", "dotnet_sdk"
end |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | dotnet_sdk/spec/dependabot/dotnet_sdk/file_updater_spec.rb | Ruby | mit | 5,556 | main | 2,873 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/dotnet_sdk/file_updater"
require "dependabot/dotnet_sdk/requirement"
require_common_spec "file_updaters/shared_examples_for_file_updaters"
RSpec.describe Dependab... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | dotnet_sdk/spec/dependabot/dotnet_sdk/metadata_finder_spec.rb | Ruby | mit | 5,556 | main | 671 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dotnet_sdk/metadata_finder"
require "dependabot/source"
RSpec.describe Dependabot::DotnetSdk::MetadataFinder do
let(:dependency) do
Dependabot::Dependency.new(
name: "dotnet-sdk",
version: "8.0.402",
package... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | dotnet_sdk/spec/dependabot/dotnet_sdk/file_fetcher_spec.rb | Ruby | mit | 5,556 | main | 1,503 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dotnet_sdk/file_fetcher"
require_common_spec "file_fetchers/shared_examples_for_file_fetchers"
RSpec.describe Dependabot::DotnetSdk::FileFetcher do
let(:repo_contents_path) { build_tmp_repo(project_name) }
let(:file_fetcher_ins... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | dotnet_sdk/spec/dependabot/dotnet_sdk/update_checker_spec.rb | Ruby | mit | 5,556 | main | 3,132 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dotnet_sdk/file_parser"
require "dependabot/dotnet_sdk/update_checker"
require_common_spec "update_checkers/shared_examples_for_update_checkers"
RSpec.describe Dependabot::DotnetSdk::UpdateChecker do... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | dotnet_sdk/spec/dependabot/dotnet_sdk/requirement_spec.rb | Ruby | mit | 5,556 | main | 540 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dotnet_sdk/requirement"
RSpec.describe Dependabot::DotnetSdk::Requirement do
subject(:requirement) { described_class.new(requirement_string) }
let(:requirement_string) { ">=9.0.100" }
describe ".new" do
it { is_expected... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | dotnet_sdk/spec/dependabot/dotnet_sdk/file_parser_spec.rb | Ruby | mit | 5,556 | main | 3,612 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency_file"
require "dependabot/source"
require "dependabot/dotnet_sdk/file_parser"
require "dependabot/dotnet_sdk/requirement"
require_common_spec "file_parsers/shared_examples_for_file_parsers"
RSpec.describe Dependabot::Dot... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | dotnet_sdk/spec/dependabot/dotnet_sdk/package/package_details_fetcher_spec.rb | Ruby | mit | 5,556 | main | 7,963 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dotnet_sdk/package/package_details_fetcher"
RSpec.describe Dependabot::DotnetSdk::Package::PackageDetailsFetcher do
subject(:fetcher) { described_class.new(dependency: dependency) }
let(:dependency) do
Dependabot::Dependen... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | dotnet_sdk/spec/dependabot/dotnet_sdk/update_checker/latest_version_finder_spec.rb | Ruby | mit | 5,556 | main | 9,348 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dotnet_sdk/update_checker/latest_version_finder"
RSpec.describe Dependabot::DotnetSdk::UpdateChecker::LatestVersionFinder do
subject(:finder) do
described_class.new(
dependency: dependency,
dependency_files: depen... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/dependabot-swift.gemspec | Ruby | mit | 5,556 | main | 1,304 | # frozen_string_literal: true
Gem::Specification.new do |spec|
common_gemspec =
Bundler.load_gemspec_uncached("../common/dependabot-common.gemspec")
spec.name = "dependabot-swift"
spec.summary = "Provides Dependabot support for Swift"
spec.description = "Dependabot-Swift provides support for... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift.rb | Ruby | mit | 5,556 | main | 749 | # 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/swift/file_fetcher"
require "dependabot/swift/file_parser"
require "dependabot/swift/update_checker"
require "depe... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/version.rb | Ruby | mit | 5,556 | main | 277 | # typed: strong
# frozen_string_literal: true
require "dependabot/utils"
require "dependabot/version"
module Dependabot
module Swift
class Version < Dependabot::Version
end
end
end
Dependabot::Utils
.register_version_class("swift", Dependabot::Swift::Version) |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/metadata_finder.rb | Ruby | mit | 5,556 | main | 1,698 | # typed: strict
# frozen_string_literal: true
require "dependabot/metadata_finders"
require "dependabot/metadata_finders/base"
require "sorbet-runtime"
module Dependabot
module Swift
class MetadataFinder < Dependabot::MetadataFinders::Base
extend T::Sig
private
sig { override.returns(T.nilab... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/package_manager.rb | Ruby | mit | 5,556 | main | 1,032 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/ecosystem"
require "dependabot/swift/version"
module Dependabot
module Swift
ECOSYSTEM = "swift"
PACKAGE_MANAGER = "swift"
SUPPORTED_SWIFT_VERSIONS = T.let([].freeze, T::Array[Dependabot::Version])
# When a v... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/requirement.rb | Ruby | mit | 5,556 | main | 1,128 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/requirement"
require "dependabot/utils"
module Dependabot
module Swift
class Requirement < Dependabot::Requirement
extend T::Sig
# For consistency with other languages, we define a requirements array.
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/file_fetcher.rb | Ruby | mit | 5,556 | main | 4,367 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/file_fetchers"
require "dependabot/file_fetchers/base"
require "dependabot/swift/xcode_file_helpers"
module Dependabot
module Swift
class FileFetcher < Dependabot::FileFetchers::Base
extend T::Sig
XCODEPROJ_S... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/file_parser.rb | Ruby | mit | 5,556 | main | 5,554 | # typed: strict
# frozen_string_literal: true
require "dependabot/dependency"
require "dependabot/file_parsers"
require "dependabot/file_parsers/base"
require "dependabot/swift/file_parser/dependency_parser"
require "dependabot/swift/file_parser/manifest_parser"
require "dependabot/swift/file_parser/xcode_spm_resolver... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/xcode_file_helpers.rb | Ruby | mit | 5,556 | main | 1,448 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
module Swift
module XcodeFileHelpers
extend T::Sig
XCODEPROJ_SUFFIX = ".xcodeproj/"
XCWORKSPACE_SUFFIX = ".xcworkspace/"
PACKAGE_RESOLVED = "Package.resolved"
sig { params(path: String).retur... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/language.rb | Ruby | mit | 5,556 | main | 480 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/ecosystem"
require "dependabot/swift/version"
module Dependabot
module Swift
LANGUAGE = "swift"
class Language < Dependabot::Ecosystem::VersionManager
extend T::Sig
sig { params(raw_version: String).void... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/file_updater.rb | Ruby | mit | 5,556 | main | 6,905 | # typed: strict
# frozen_string_literal: true
require "dependabot/file_updaters"
require "dependabot/file_updaters/base"
require "dependabot/swift/xcode_file_helpers"
module Dependabot
module Swift
class FileUpdater < Dependabot::FileUpdaters::Base
extend T::Sig
require_relative "file_updater/lockf... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/update_checker.rb | Ruby | mit | 5,556 | main | 11,131 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/update_checkers"
require "dependabot/update_checkers/base"
require "dependabot/update_checkers/version_filters"
require "dependabot/git_commit_checker"
require "dependabot/swift/native_requirement"
require "dependabot/swift/file... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/native_requirement.rb | Ruby | mit | 5,556 | main | 5,979 | # typed: strict
# frozen_string_literal: true
require "dependabot/utils"
require "dependabot/swift/requirement"
require "sorbet-runtime"
module Dependabot
module Swift
class NativeRequirement
extend T::Sig
# TODO: Support pinning to specific revisions
REGEXP = T.let(
/(from.*|\.upToNe... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/url_helpers.rb | Ruby | mit | 5,556 | main | 681 | # typed: strong
# frozen_string_literal: true
require "uri"
require "sorbet-runtime"
module Dependabot
module Swift
# Shared URL normalization utilities used by multiple parsers.
# Produces a canonical dependency name from a git repository URL
# by stripping the scheme, "www." prefix, and ".git" suffix.... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/file_updater/xcode_lockfile_updater.rb | Ruby | mit | 5,556 | main | 10,382 | # typed: strict
# frozen_string_literal: true
require "json"
require "sorbet-runtime"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/errors"
require "dependabot/shared_helpers"
require "dependabot/swift/file_updater"
require "dependabot/swift/url_helpers"
require "dependabot/s... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/file_updater/requirement_replacer.rb | Ruby | mit | 5,556 | main | 1,224 | # typed: strict
# frozen_string_literal: true
require "dependabot/file_updaters/base"
require "sorbet-runtime"
module Dependabot
module Swift
class FileUpdater < Dependabot::FileUpdaters::Base
class RequirementReplacer
extend T::Sig
sig do
params(
content: String,
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/file_updater/pbxproj_updater.rb | Ruby | mit | 5,556 | main | 3,895 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/errors"
require "dependabot/shared_helpers"
require "dependabot/file_updaters/base"
require "dependabot/swift/url_helpers"
module Dependabot
module Swift
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/file_updater/manifest_updater.rb | Ruby | mit | 5,556 | main | 1,614 | # typed: strict
# frozen_string_literal: true
require "dependabot/file_updaters/base"
require "dependabot/swift/file_updater/requirement_replacer"
require "sorbet-runtime"
module Dependabot
module Swift
class FileUpdater < FileUpdaters::Base
class ManifestUpdater
extend T::Sig
sig do
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/file_updater/lockfile_updater.rb | Ruby | mit | 5,556 | main | 2,936 | # typed: strict
# frozen_string_literal: true
require "dependabot/file_updaters/base"
require "dependabot/shared_helpers"
require "dependabot/logger"
require "sorbet-runtime"
module Dependabot
module Swift
class FileUpdater < Dependabot::FileUpdaters::Base
class LockfileUpdater
extend T::Sig
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/update_checker/requirements_updater.rb | Ruby | mit | 5,556 | main | 6,328 | # typed: strict
# frozen_string_literal: true
require "dependabot/update_checkers/base"
require "dependabot/swift/native_requirement"
require "dependabot/swift/version"
module Dependabot
module Swift
class UpdateChecker < Dependabot::UpdateCheckers::Base
class RequirementsUpdater
extend T::Sig
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/update_checker/latest_version_resolver.rb | Ruby | mit | 5,556 | main | 6,870 | # typed: strong
# frozen_string_literal: true
require "dependabot/update_checkers/base"
require "dependabot/swift/file_parser/dependency_parser"
require "dependabot/swift/file_updater/lockfile_updater"
require "dependabot/swift/package/package_details_fetcher"
require "sorbet-runtime"
require "dependabot/git_commit_ch... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/update_checker/xcode_version_resolver.rb | Ruby | mit | 5,556 | main | 7,468 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/git_commit_checker"
require "dependabot/swift/update_checker"
require "dependabot/swift/requirement"
require "dependabot/swift/version"
require "dependabot/swift/xcode_file_helpers"
require "dependabot/update_checkers/version_fi... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/update_checker/version_resolver.rb | Ruby | mit | 5,556 | main | 3,012 | # typed: strong
# frozen_string_literal: true
require "dependabot/update_checkers/base"
require "dependabot/swift/file_parser/dependency_parser"
require "dependabot/swift/file_updater/lockfile_updater"
require "sorbet-runtime"
module Dependabot
module Swift
class UpdateChecker < Dependabot::UpdateCheckers::Base... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/file_parser/dependency_parser.rb | Ruby | mit | 5,556 | main | 3,394 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/file_parsers/base"
require "dependabot/shared_helpers"
require "dependabot/dependency"
require "dependabot/swift/url_helpers"
require "json"
module Dependabot
module Swift
class FileParser < Dependabot::FileParsers::Base
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/file_parser/manifest_parser.rb | Ruby | mit | 5,556 | main | 1,734 | # typed: strong
# frozen_string_literal: true
require "dependabot/file_parsers/base"
require "dependabot/swift/native_requirement"
module Dependabot
module Swift
class FileParser < Dependabot::FileParsers::Base
class ManifestParser
extend T::Sig
extend T::Helpers
DEPENDENCY =
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/file_parser/package_resolved_parser.rb | Ruby | mit | 5,556 | main | 5,382 | # typed: strict
# frozen_string_literal: true
require "json"
require "sorbet-runtime"
require "dependabot/dependency"
require "dependabot/errors"
require "dependabot/shared_helpers"
require "dependabot/swift/file_parser"
require "dependabot/swift/url_helpers"
module Dependabot
module Swift
class FileParser < De... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/file_parser/pbxproj_parser.rb | Ruby | mit | 5,556 | main | 7,329 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/errors"
require "dependabot/shared_helpers"
require "dependabot/swift/file_parser"
require "dependabot/swift/native_requirement"
require "dependabot/swift/url_helpers"
module Dependabot
module Swift
class FileParser < Dep... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/file_parser/xcode_spm_resolver.rb | Ruby | mit | 5,556 | main | 6,746 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/dependency"
require "dependabot/file_parsers/base/dependency_set"
require "dependabot/swift/file_parser"
require "dependabot/swift/file_parser/package_resolved_parser"
require "dependabot/swift/file_parser/pbxproj_parser"
requir... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/lib/dependabot/swift/package/package_details_fetcher.rb | Ruby | mit | 5,556 | main | 2,246 | # typed: strict
# frozen_string_literal: true
require "json"
require "time"
require "cgi"
require "excon"
require "sorbet-runtime"
require "dependabot/swift"
module Dependabot
module Swift
module Package
class PackageDetailsFetcher
extend T::Sig
RELEASES_URL = "https://api.github.com/repo... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/spec/dependabot/swift_spec.rb | Ruby | mit | 5,556 | main | 253 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/swift"
require_common_spec "shared_examples_for_autoloading"
RSpec.describe Dependabot::Swift do
it_behaves_like "it registers the required classes", "swift"
end |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/spec/dependabot/swift/file_fetcher_spec.rb | Ruby | mit | 5,556 | main | 4,878 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/swift/file_fetcher"
require_common_spec "file_fetchers/shared_examples_for_file_fetchers"
RSpec.describe Dependabot::Swift::FileFetcher do
let(:repo_contents_path) { build_tmp_repo(project_name) }
let(:file_fetcher_instance) do... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/spec/dependabot/swift/package_manager_spec.rb | Ruby | mit | 5,556 | main | 923 | # typed: false
# frozen_string_literal: true
require "dependabot/swift/package_manager"
require "dependabot/ecosystem"
RSpec.describe Dependabot::Swift::PackageManager do
subject(:package_manager) { described_class.new(version) }
let(:version) { "6.0.2" }
describe "#version" do
it "returns the version" do... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/spec/dependabot/swift/update_checker_spec.rb | Ruby | mit | 5,556 | main | 20,664 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/swift/file_parser"
require "dependabot/swift/update_checker"
require_common_spec "update_checkers/shared_examples_for_update_checkers"
RSpec.describe Dependabot::Swift::UpdateChecker do
let(:stub_u... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/spec/dependabot/swift/native_requirement_spec.rb | Ruby | mit | 5,556 | main | 3,257 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/swift/native_requirement"
RSpec.describe Dependabot::Swift::NativeRequirement do
RSpec::Matchers.define :parse_as do |requirement|
match do |declaration|
described_class.new(declaration).to_s == requirement
end
en... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/spec/dependabot/swift/file_updater_spec.rb | Ruby | mit | 5,556 | main | 17,929 | # typed: false
# frozen_string_literal: true
require "json"
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/experiments"
require "dependabot/swift/file_updater"
require_common_spec "file_updaters/shared_examples_for_file_updaters"
RSpec.describe Dependabo... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/spec/dependabot/swift/language_spec.rb | Ruby | mit | 5,556 | main | 801 | # typed: false
# frozen_string_literal: true
require "dependabot/swift/language"
require "dependabot/ecosystem"
require "spec_helper"
RSpec.describe Dependabot::Swift::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 | swift/spec/dependabot/swift/file_parser_spec.rb | Ruby | mit | 5,556 | main | 32,283 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency_file"
require "dependabot/source"
require "dependabot/swift/file_parser"
require_common_spec "file_parsers/shared_examples_for_file_parsers"
RSpec.describe Dependabot::Swift::FileParser do
let(:dependencies) { parser.p... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/spec/dependabot/swift/metadata_finder_spec.rb | Ruby | mit | 5,556 | main | 2,035 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/swift/metadata_finder"
require_common_spec "metadata_finders/shared_examples_for_metadata_finders"
RSpec.describe Dependabot::Swift::MetadataFinder do
let(:finder) do
described_class.new(depend... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/spec/dependabot/swift/package/package_details_fetcher_spec.rb | Ruby | mit | 5,556 | main | 2,485 | # typed: false
# frozen_string_literal: true
require "dependabot/swift/package/package_details_fetcher"
require "dependabot/dependency"
require "dependabot/credential"
require "dependabot/git_commit_checker"
require "dependabot/git_tag_with_detail"
require "excon"
RSpec.describe Dependabot::Swift::Package::PackageDet... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/spec/dependabot/swift/update_checker/xcode_version_resolver_spec.rb | Ruby | mit | 5,556 | main | 9,643 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/swift/update_checker/xcode_version_resolver"
require "dependabot/dependency"
require "dependabot/git_commit_checker"
require "dependabot/security_advisory"
require "dependabot/swift/version"
RSpec.describe Dependabot::Swift::Update... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/spec/dependabot/swift/update_checker/requirements_updater_spec.rb | Ruby | mit | 5,556 | main | 5,084 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/swift/update_checker/requirements_updater"
require "dependabot/swift/version"
RSpec.describe Dependabot::Swift::UpdateChecker::RequirementsUpdater do
let(:requirements) do
[{
file: "MyApp.xcodeproj/project.pbxproj",
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/spec/dependabot/swift/update_checker/latest_version_resolver_spec.rb | Ruby | mit | 5,556 | main | 5,320 | # typed: false
# frozen_string_literal: true
require "dependabot/swift/update_checker/latest_version_resolver"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/credential"
require "dependabot/git_commit_checker"
require "dependabot/package/release_cooldown_options"
require "depe... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/spec/dependabot/swift/file_updater/pbxproj_updater_spec.rb | Ruby | mit | 5,556 | main | 15,269 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/swift/file_updater/pbxproj_updater"
RSpec.describe Dependabot::Swift::FileUpdater::PbxprojUpdater do
subject(:updater) do
described_class.new(
pbxproj... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/spec/dependabot/swift/file_updater/xcode_lockfile_updater_spec.rb | Ruby | mit | 5,556 | main | 13,142 | # typed: false
# frozen_string_literal: true
require "json"
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/swift/file_updater/xcode_lockfile_updater"
RSpec.describe Dependabot::Swift::FileUpdater::XcodeLockfileUpdater do
subject(:updater) do
descri... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/spec/dependabot/swift/file_parser/xcode_spm_resolver_spec.rb | Ruby | mit | 5,556 | main | 14,528 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency_file"
require "dependabot/swift/file_parser/xcode_spm_resolver"
RSpec.describe Dependabot::Swift::FileParser::XcodeSpmResolver do
subject(:resolver) do
described_class.new(
xcode_resolved_files: xcode_resolve... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/spec/dependabot/swift/file_parser/pbxproj_parser_spec.rb | Ruby | mit | 5,556 | main | 5,947 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency_file"
require "dependabot/swift/file_parser/pbxproj_parser"
RSpec.describe Dependabot::Swift::FileParser::PbxprojParser do
subject(:parser) { described_class.new(pbxproj_file) }
let(:pbxproj_file) do
Dependabot:... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | swift/spec/dependabot/swift/file_parser/package_resolved_parser_spec.rb | Ruby | mit | 5,556 | main | 8,884 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency_file"
require "dependabot/swift/file_parser/package_resolved_parser"
RSpec.describe Dependabot::Swift::FileParser::PackageResolvedParser do
subject(:parser) { described_class.new(resolved_file) }
let(:resolved_file)... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | python/dependabot-python.gemspec | Ruby | mit | 5,556 | main | 1,413 | # frozen_string_literal: true
Gem::Specification.new do |spec|
common_gemspec =
Bundler.load_gemspec_uncached("../common/dependabot-common.gemspec")
spec.name = "dependabot-python"
spec.summary = "Provides Dependabot support for Python"
spec.description = "Dependabot-Python provides support ... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | python/spec/spec_helper.rb | Ruby | mit | 5,556 | main | 667 | # typed: true
# frozen_string_literal: true
def common_dir
@common_dir ||= Gem::Specification.find_by_name("dependabot-common").gem_dir
end
def require_common_spec(path)
require "#{common_dir}/spec/dependabot/#{path}"
end
require "#{common_dir}/spec/spec_helper.rb"
module SlowTestHelper
def self.slow_tests?
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | python/spec/dependabot/python_spec.rb | Ruby | mit | 5,556 | main | 253 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/python"
require_common_spec "shared_examples_for_autoloading"
RSpec.describe Dependabot::Python do
it_behaves_like "it registers the required classes", "pip"
end |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | python/spec/dependabot/python/file_updater_spec.rb | Ruby | mit | 5,556 | main | 14,823 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/python/file_updater"
require "dependabot/shared_helpers"
require_common_spec "file_updaters/shared_examples_for_file_updaters"
RSpec.describe Dependabot::Python::... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | python/spec/dependabot/python/pipenv_package_manager_spec.rb | Ruby | mit | 5,556 | main | 1,108 | # typed: false
# frozen_string_literal: true
require "dependabot/python/package_manager"
require "dependabot/ecosystem"
require "spec_helper"
RSpec.describe Dependabot::Python::PipenvPackageManager do
let(:package_manager) { described_class.new("1.8.3") }
describe "#initialize" do
context "when version is a ... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | python/spec/dependabot/python/language_spec.rb | Ruby | mit | 5,556 | main | 1,740 | # typed: false
# frozen_string_literal: true
require "dependabot/python/language"
require "dependabot/ecosystem"
require_relative "../../spec_helper"
RSpec.describe Dependabot::Python::Language do
let(:language) do
described_class.new(
detected_version: detected_version,
raw_version: raw_version
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | python/spec/dependabot/python/dependency_grapher_spec.rb | Ruby | mit | 5,556 | main | 18,272 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/python"
RSpec.describe Dependabot::Python::DependencyGrapher do
subject(:grapher) do
Dependabot::DependencyGraphers.for_package_manager("pip").new(
file_parser: parser
)
end
let(:pyproject_toml) do
Dependab... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | python/spec/dependabot/python/authed_url_builder_spec.rb | Ruby | mit | 5,556 | main | 3,303 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/credential"
require "dependabot/python/authed_url_builder"
RSpec.describe Dependabot::Python::AuthedUrlBuilder do
describe ".authed_url" do
subject(:authed_url) { described_class.authed_url(credential: credential) }
cont... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | python/spec/dependabot/python/poetry_plugin_installer_spec.rb | Ruby | mit | 5,556 | main | 7,134 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/python/poetry_plugin_installer"
RSpec.describe Dependabot::Python::PoetryPluginInstaller do
subject(:installer) { described_class.new(pyproject_content: pyproject_content) }
describe ".from_dependency_files" do
it "extract... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | python/spec/dependabot/python/pip_package_manager_spec.rb | Ruby | mit | 5,556 | main | 1,108 | # typed: false
# frozen_string_literal: true
require "dependabot/python/package_manager"
require "dependabot/ecosystem"
require "spec_helper"
RSpec.describe Dependabot::Python::PipPackageManager do
let(:package_manager) { described_class.new("24.0") }
describe "#initialize" do
context "when version is a Stri... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | python/spec/dependabot/python/pip_compile_package_manager_spec.rb | Ruby | mit | 5,556 | main | 1,145 | # typed: false
# frozen_string_literal: true
require "dependabot/python/package_manager"
require "dependabot/ecosystem"
require "spec_helper"
RSpec.describe Dependabot::Python::PipCompilePackageManager do
let(:package_manager) { described_class.new("2024.0.1") }
describe "#initialize" do
context "when versio... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | python/spec/dependabot/python/file_fetcher_spec.rb | Ruby | mit | 5,556 | main | 52,480 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/python/file_fetcher"
require_common_spec "file_fetchers/shared_examples_for_file_fetchers"
RSpec.describe Dependabot::Python::FileFetcher do
describe "the class inheritance" do
it "inherits from Python::SharedFileFetcher whic... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | python/spec/dependabot/python/pip_compile_file_matcher_spec.rb | Ruby | mit | 5,556 | main | 2,076 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/python"
RSpec.describe Dependabot::Python::PipCompileFileMatcher do
subject(:matcher) { described_class.new(requirements_in_files) }
let(:requirements_in_file) do
Dependabot::DependencyFile.new(
name: "requirements.i... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | python/spec/dependabot/python/poetry_package_manager_spec.rb | Ruby | mit | 5,556 | main | 5,714 | # typed: false
# frozen_string_literal: true
require "dependabot/python/package_manager"
require "dependabot/ecosystem"
require "spec_helper"
RSpec.describe Dependabot::Python::PoetryPackageManager do
let(:package_manager) { described_class.new("1.8.3") }
describe "version constants" do
it "supports Poetry v... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | python/spec/dependabot/python/requirement_spec.rb | Ruby | mit | 5,556 | main | 10,644 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/python/requirement"
require "dependabot/python/version"
RSpec.describe Dependabot::Python::Requirement do
subject(:requirement) { described_class.new(requirement_string) }
let(:requirement_string) { ">=1.0.0" }
let(:version_... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | python/spec/dependabot/python/version_spec.rb | Ruby | mit | 5,556 | main | 9,374 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/python/version"
RSpec.describe Dependabot::Python::Version do
subject(:version) { described_class.new(version_string) }
let(:version_string) { "1.0.0" }
describe ".correct?" do
subject { described_class.correct?(version... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | python/spec/dependabot/python/update_checker_spec.rb | Ruby | mit | 5,556 | main | 80,149 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency_file"
require "dependabot/dependency"
require "dependabot/python/update_checker"
require "dependabot/requirements_update_strategy"
require_common_spec "update_checkers/shared_examples_for_update_checkers"
RSpec.describe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.