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 | bundler/spec/dependabot/bundler/file_fetcher/gemspec_finder_spec.rb | Ruby | mit | 5,556 | main | 1,833 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/bundler/file_fetcher/gemspec_finder"
RSpec.describe Dependabot::Bundler::FileFetcher::GemspecFinder do
let(:finder) { described_class.new(gemfile: gemfile) }
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/spec/dependabot/bundler/file_fetcher/path_gemspec_finder_spec.rb | Ruby | mit | 5,556 | main | 2,273 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/bundler/file_fetcher/path_gemspec_finder"
RSpec.describe Dependabot::Bundler::FileFetcher::PathGemspecFinder do
let(:finder) { described_class.new(gemfile: gemf... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/spec/dependabot/bundler/file_updater/gemfile_updater_spec.rb | Ruby | mit | 5,556 | main | 15,232 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "shared_contexts"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/bundler/file_updater/gemfile_updater"
RSpec.describe Dependabot::Bundler::FileUpdater::GemfileUpdater do
include_context "when stubbin... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/spec/dependabot/bundler/file_updater/lockfile_updater_spec.rb | Ruby | mit | 5,556 | main | 3,763 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "shared_contexts"
require "dependabot/dependency"
require "dependabot/bundler/file_updater/lockfile_updater"
RSpec.describe Dependabot::Bundler::FileUpdater::LockfileUpdater do
include_context "when stubbing rubygems compact index"
let(:u... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/spec/dependabot/bundler/file_updater/ruby_requirement_setter_spec.rb | Ruby | mit | 5,556 | main | 7,304 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency_file"
require "dependabot/bundler/file_updater/ruby_requirement_setter"
RSpec.describe Dependabot::Bundler::FileUpdater::RubyRequirementSetter do
let(:setter) { described_class.new(gemspec: gemspec) }
let(:gemspec) d... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/spec/dependabot/bundler/file_updater/gemspec_dependency_name_finder_spec.rb | Ruby | mit | 5,556 | main | 845 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency_file"
require "dependabot/bundler/file_updater/gemspec_dependency_name_finder"
RSpec.describe Dependabot::Bundler::FileUpdater::GemspecDependencyNameFinder do
let(:finder) { described_class.new(gemspec_content: gemspec... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/spec/dependabot/bundler/file_updater/git_source_remover_spec.rb | Ruby | mit | 5,556 | main | 2,383 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/bundler/file_updater/git_source_remover"
RSpec.describe Dependabot::Bundler::FileUpdater::GitSourceRemover do
let(:remover) { described_class.new(dependency: dependency) }
let(:dependency) do
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/spec/dependabot/bundler/file_updater/git_pin_replacer_spec.rb | Ruby | mit | 5,556 | main | 1,894 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/bundler/file_updater/git_pin_replacer"
RSpec.describe Dependabot::Bundler::FileUpdater::GitPinReplacer do
let(:replacer) do
described_class.new(dependency: dependency, new_pin: new_pin)
end
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/spec/dependabot/bundler/file_updater/requirement_replacer_spec.rb | Ruby | mit | 5,556 | main | 9,581 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/bundler/file_updater/requirement_replacer"
RSpec.describe Dependabot::Bundler::FileUpdater::RequirementReplacer do
let(:replacer) do
described_class.new(
dependency: dependency,
fil... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/spec/dependabot/bundler/file_updater/gemspec_sanitizer_spec.rb | Ruby | mit | 5,556 | main | 9,949 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/bundler/file_updater/gemspec_sanitizer"
RSpec.describe Dependabot::Bundler::FileUpdater::GemspecSanitizer do
let(:sanitizer) do
described_class.new(replacement_version: replacement_version)
e... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/spec/dependabot/bundler/package/package_details_fetcher_spec.rb | Ruby | mit | 5,556 | main | 10,896 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/credential"
require "dependabot/dependency_file"
require "dependabot/bundler/package/package_details_fetcher"
RSpec.describe Dependabot::Bundler::Package::PackageDetailsFetcher do
subject(:fetcher) do
described_class.new(
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/spec/dependabot/bundler/update_checker/conflicting_dependency_resolver_spec.rb | Ruby | mit | 5,556 | main | 1,855 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "shared_contexts"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/bundler/update_checker/conflicting_dependency_resolver"
RSpec.describe(Dependabot::Bundler::UpdateChecker::ConflictingDependencyResolver... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/spec/dependabot/bundler/update_checker/force_updater_spec.rb | Ruby | mit | 5,556 | main | 10,831 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "shared_contexts"
require "dependabot/bundler/update_checker/force_updater"
require "dependabot/dependency_file"
require "dependabot/dependency"
require "dependabot/requirements_update_strategy"
RSpec.describe Dependabot::Bundler::UpdateCheck... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/spec/dependabot/bundler/update_checker/requirements_updater_spec.rb | Ruby | mit | 5,556 | main | 18,658 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/bundler/update_checker/requirements_updater"
require "dependabot/requirements_update_strategy"
RSpec.describe Dependabot::Bundler::UpdateChecker::RequirementsUpdater do
let(:updater) do
described_class.new(
requirement... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/spec/dependabot/bundler/update_checker/file_preparer_spec.rb | Ruby | mit | 5,556 | main | 11,836 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/bundler/update_checker/file_preparer"
RSpec.describe Dependabot::Bundler::UpdateChecker::FilePreparer do
let(:preparer) do
described_class.new(
dependency_files: dependency_files,
d... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/spec/dependabot/bundler/update_checker/version_resolver_spec.rb | Ruby | mit | 5,556 | main | 18,184 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "shared_contexts"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/bundler/update_checker/version_resolver"
RSpec.describe Dependabot::Bundler::UpdateChecker::VersionResolver do
let(:resolver) do
d... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/spec/dependabot/bundler/update_checker/latest_version_finder_spec.rb | Ruby | mit | 5,556 | main | 25,572 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "shared_contexts"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/bundler/update_checker/latest_version_finder"
require "dependabot/package/package_latest_version_finder"
RSpec.describe Dependabot::Bund... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/spec/dependabot/bundler/update_checker/latest_version_finder/dependency_source_spec.rb | Ruby | mit | 5,556 | main | 3,855 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/bundler/update_checker"
RSpec.describe Dependabot::Bundler::UpdateChecker::LatestVersionFinder::DependencySource do
let(:project_name) { "git_source" }
let(:files) { project_dependency_files(File.join("bundler2", project_name))... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/spec/dependabot/bundler/file_parser/gemspec_declaration_finder_spec.rb | Ruby | mit | 5,556 | main | 1,754 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/bundler/file_parser/gemspec_declaration_finder"
RSpec.describe Dependabot::Bundler::FileParser::GemspecDeclarationFinder do
let(:checker) do
described_class... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/spec/dependabot/bundler/file_parser/gemfile_declaration_finder_spec.rb | Ruby | mit | 5,556 | main | 4,146 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/bundler/file_parser/gemfile_declaration_finder"
RSpec.describe Dependabot::Bundler::FileParser::GemfileDeclarationFinder do
let(:checker) do
described_class... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/spec/dependabot/bundler/file_parser/file_preparer_spec.rb | Ruby | mit | 5,556 | main | 2,281 | # typed: false
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/bundler/file_parser/file_preparer"
RSpec.describe Dependabot::Bundler::FileParser::FilePreparer do
let(:preparer) { described_class.new(dependency_files: dependency_files) }
let(:dependency_file... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler.rb | Ruby | mit | 5,556 | main | 1,015 | # typed: strict
# frozen_string_literal: true
# These all need to be required so the various classes can be registered in a
# lookup table of package manager names to concrete classes.
require "dependabot/bundler/language"
require "dependabot/bundler/package_manager"
require "dependabot/bundler/file_fetcher"
require "... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/file_updater.rb | Ruby | mit | 5,556 | main | 5,862 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/file_updaters"
require "dependabot/file_updaters/base"
require "dependabot/bundler/native_helpers"
require "dependabot/bundler/helpers"
require "dependabot/file_updaters/vendor_updater"
module Dependabot
module Bundler
c... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/file_parser.rb | Ruby | mit | 5,556 | main | 16,904 | # typed: strict
# frozen_string_literal: true
require "parallel"
require "sorbet-runtime"
require "dependabot/bundler/language"
require "dependabot/bundler/package_manager"
require "dependabot/dependency"
require "dependabot/file_parsers"
require "dependabot/file_parsers/base"
require "dependabot/bundler/file_updater/... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/requirement.rb | Ruby | mit | 5,556 | main | 2,277 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/requirement"
require "dependabot/utils"
module Dependabot
module Bundler
class Requirement < Dependabot::Requirement
extend T::Sig
GEM_DEP_SPLIT = T.let(/\A(?<name>[a-zA-Z0-9_\-]+):(?<version>.+)\z/, Regexp)... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/native_helpers.rb | Ruby | mit | 5,556 | main | 3,038 | # typed: strict
# frozen_string_literal: true
require "bundler"
require "sorbet-runtime"
require "dependabot/shared_helpers"
module Dependabot
module Bundler
module NativeHelpers
extend T::Sig
extend T::Generic
class BundleCommand
extend T::Sig
MAX_SECONDS = 1800
MIN_... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/helpers.rb | Ruby | mit | 5,556 | main | 4,627 | # typed: strong
# frozen_string_literal: true
require "dependabot/bundler/requirement"
module Dependabot
module Bundler
module Helpers
extend T::Sig
extend T::Helpers
V1 = "1"
V2 = "2"
DEFAULT = V2
BUNDLER_MAJOR_VERSION_REGEX = /BUNDLED WITH\s+(?<version>\d+)\./m
RUBY_... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/file_fetcher.rb | Ruby | mit | 5,556 | main | 10,154 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/file_fetchers"
require "dependabot/file_fetchers/base"
require "dependabot/file_filtering"
require "dependabot/bundler/file_updater/lockfile_updater"
require "dependabot/bundler/cached_lockfile_parser"
require "dependabot/errors... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/package_manager.rb | Ruby | mit | 5,556 | main | 1,512 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/bundler/version"
require "dependabot/ecosystem"
require "dependabot/bundler/requirement"
module Dependabot
module Bundler
ECOSYSTEM = "bundler"
PACKAGE_MANAGER = "bundler"
# Keep versions in ascending order
S... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/metadata_finder.rb | Ruby | mit | 5,556 | main | 8,803 | # typed: strict
# frozen_string_literal: true
require "excon"
require "dependabot/metadata_finders"
require "dependabot/metadata_finders/base"
require "dependabot/registry_client"
module Dependabot
module Bundler
class MetadataFinder < Dependabot::MetadataFinders::Base
extend T::Sig
SOURCE_KEYS = T... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/cached_lockfile_parser.rb | Ruby | mit | 5,556 | main | 687 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "digest"
require "digest/sha2"
require "bundler/lockfile_parser"
module Dependabot
module Bundler
class CachedLockfileParser
extend T::Sig
sig { params(lockfile_content: String).returns(::Bundler::LockfileParser) }
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/version.rb | Ruby | mit | 5,556 | main | 283 | # typed: strong
# frozen_string_literal: true
require "dependabot/version"
require "dependabot/utils"
module Dependabot
module Bundler
class Version < Dependabot::Version
end
end
end
Dependabot::Utils
.register_version_class("bundler", Dependabot::Bundler::Version) |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/update_checker.rb | Ruby | mit | 5,556 | main | 18,052 | # typed: strict
# frozen_string_literal: true
require "dependabot/bundler/file_updater/requirement_replacer"
require "dependabot/bundler/version"
require "dependabot/git_commit_checker"
require "dependabot/requirements_update_strategy"
require "dependabot/update_checkers"
require "dependabot/update_checkers/base"
mod... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/language.rb | Ruby | mit | 5,556 | main | 566 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/bundler/version"
require "dependabot/ecosystem"
module Dependabot
module Bundler
LANGUAGE = "ruby"
class Language < Dependabot::Ecosystem::VersionManager
extend T::Sig
sig { params(raw_version: String, r... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/file_parser/file_preparer.rb | Ruby | mit | 5,556 | main | 3,656 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/dependency_file"
require "dependabot/file_parsers/base"
require "dependabot/bundler/file_updater/gemspec_sanitizer"
require "dependabot/bundler/package_manager"
module Dependabot
module Bundler
class FileParser < Dependab... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/file_parser/gemspec_declaration_finder.rb | Ruby | mit | 5,556 | main | 2,768 | # typed: strict
# frozen_string_literal: true
require "prism"
require "sorbet-runtime"
require "dependabot/file_parsers/base"
module Dependabot
module Bundler
class FileParser < Dependabot::FileParsers::Base
# Checks whether a dependency is declared in a gemspec file
class GemspecDeclarationFinder
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/file_parser/gemfile_declaration_finder.rb | Ruby | mit | 5,556 | main | 3,937 | # typed: strict
# frozen_string_literal: true
require "prism"
require "sorbet-runtime"
require "dependabot/file_parsers/base"
module Dependabot
module Bundler
class FileParser < Dependabot::FileParsers::Base
# Checks whether a dependency is declared in a Gemfile
class GemfileDeclarationFinder
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/package/package_details_fetcher.rb | Ruby | mit | 5,556 | main | 10,824 | # 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/bundler"
require "dependabot/package/package_release"
require "dependabot/package/package_details"
module Depen... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/update_checker/requirements_updater.rb | Ruby | mit | 5,556 | main | 13,409 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/bundler/update_checker"
require "dependabot/requirements_update_strategy"
module Dependabot
module Bundler
class UpdateChecker
class RequirementsUpdater
extend T::Sig
class UnfixableRequirement < S... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/update_checker/file_preparer.rb | Ruby | mit | 5,556 | main | 13,382 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/dependency_file"
require "dependabot/bundler/update_checker"
require "dependabot/bundler/cached_lockfile_parser"
require "dependabot/bundler/file_updater/gemspec_sanitizer"
require "dependabot/bundler/file_updater/git_pin_repla... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/update_checker/shared_bundler_helpers.rb | Ruby | mit | 5,556 | main | 10,963 | # typed: strict
# frozen_string_literal: true
require "excon"
require "sorbet-runtime"
require "uri"
require "dependabot/bundler/update_checker"
require "dependabot/bundler/native_helpers"
require "dependabot/bundler/helpers"
require "dependabot/registry_client"
require "dependabot/shared_helpers"
require "dependabot... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/update_checker/latest_version_finder.rb | Ruby | mit | 5,556 | main | 5,473 | # typed: strict
# frozen_string_literal: true
require "excon"
require "dependabot/bundler/update_checker"
require "dependabot/update_checkers/version_filters"
require "dependabot/bundler/requirement"
require "dependabot/shared_helpers"
require "dependabot/errors"
require "dependabot/package/package_latest_version_fin... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/update_checker/version_resolver.rb | Ruby | mit | 5,556 | main | 12,394 | # typed: strict
# frozen_string_literal: true
require "excon"
require "sorbet-runtime"
require "dependabot/bundler/helpers"
require "dependabot/bundler/update_checker"
require "dependabot/bundler/file_updater/lockfile_updater"
require "dependabot/bundler/requirement"
require "dependabot/registry_client"
require "depe... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/update_checker/force_updater.rb | Ruby | mit | 5,556 | main | 8,910 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/bundler/file_parser"
require "dependabot/bundler/file_updater/lockfile_updater"
require "dependabot/bundler/native_helpers"
require "dependabot/bundler/helpers"
require "dependabot/bundler/update_checker"
require "dependabot/bun... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/update_checker/conflicting_dependency_resolver.rb | Ruby | mit | 5,556 | main | 3,072 | # typed: strict
# frozen_string_literal: true
require "dependabot/bundler/update_checker"
require "dependabot/bundler/native_helpers"
require "dependabot/bundler/helpers"
require "dependabot/shared_helpers"
module Dependabot
module Bundler
class UpdateChecker < UpdateCheckers::Base
class ConflictingDepend... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/update_checker/latest_version_finder/dependency_source.rb | Ruby | mit | 5,556 | main | 7,382 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/registry_client"
require "dependabot/bundler/native_helpers"
require "dependabot/bundler/helpers"
require "dependabot/bundler/update_checker/latest_version_finder"
module Dependabot
module Bundler
class UpdateChecker
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/file_fetcher/included_path_finder.rb | Ruby | mit | 5,556 | main | 4,519 | # typed: strict
# frozen_string_literal: true
require "pathname"
require "prism"
require "dependabot/bundler/file_fetcher"
require "dependabot/errors"
require "sorbet-runtime"
module Dependabot
module Bundler
class FileFetcher
# Finds the paths of any files included using `require_relative` and `eval` in ... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/file_fetcher/path_gemspec_finder.rb | Ruby | mit | 5,556 | main | 3,608 | # typed: strict
# frozen_string_literal: true
require "pathname"
require "prism"
require "dependabot/bundler/file_fetcher"
require "dependabot/errors"
require "sorbet-runtime"
module Dependabot
module Bundler
class FileFetcher
# Finds the paths of any gemspecs declared using `path: ` in the
# passed... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/file_fetcher/child_gemfile_finder.rb | Ruby | mit | 5,556 | main | 2,320 | # typed: strict
# frozen_string_literal: true
require "pathname"
require "prism"
require "dependabot/bundler/file_fetcher"
require "dependabot/errors"
require "sorbet-runtime"
module Dependabot
module Bundler
class FileFetcher
# Finds the paths of any Gemfiles declared using `eval_gemfile` in the
# ... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/file_fetcher/gemspec_finder.rb | Ruby | mit | 5,556 | main | 3,578 | # typed: strict
# frozen_string_literal: true
require "pathname"
require "prism"
require "dependabot/bundler/file_fetcher"
require "dependabot/errors"
require "sorbet-runtime"
module Dependabot
module Bundler
class FileFetcher
# Finds the directories of any gemspecs declared using `gemspec` in the
#... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/file_updater/gemfile_updater.rb | Ruby | mit | 5,556 | main | 4,534 | # typed: strict
# frozen_string_literal: true
require "dependabot/bundler/file_updater"
module Dependabot
module Bundler
class FileUpdater
class GemfileUpdater
extend T::Sig
GEMFILE_FILENAMES = %w(Gemfile gems.rb).freeze
require_relative "git_pin_replacer"
require_relativ... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/file_updater/gemspec_dependency_name_finder.rb | Ruby | mit | 5,556 | main | 1,752 | # typed: strict
# frozen_string_literal: true
require "prism"
require "dependabot/bundler/file_updater"
module Dependabot
module Bundler
class FileUpdater
class GemspecDependencyNameFinder
extend T::Sig
sig { returns(String) }
attr_reader :gemspec_content
sig { params(gem... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/file_updater/git_source_remover.rb | Ruby | mit | 5,556 | main | 3,594 | # typed: strict
# frozen_string_literal: true
require "parser/current"
require "sorbet-runtime"
require "dependabot/bundler/file_updater"
module Dependabot
module Bundler
class FileUpdater
class GitSourceRemover
extend T::Sig
sig { returns(Dependabot::Dependency) }
attr_reader :d... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/file_updater/git_pin_replacer.rb | Ruby | mit | 5,556 | main | 3,160 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "parser/current"
require "dependabot/bundler/file_updater"
module Dependabot
module Bundler
class FileUpdater
class GitPinReplacer
extend T::Sig
sig { returns(Dependabot::Dependency) }
attr_reader :depe... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/file_updater/requirement_replacer.rb | Ruby | mit | 5,556 | main | 9,948 | # typed: strict
# frozen_string_literal: true
require "parser/current"
require "sorbet-runtime"
require "dependabot/bundler/file_updater"
module Dependabot
module Bundler
class FileUpdater
class RequirementReplacer
extend T::Sig
sig { returns(Dependabot::Dependency) }
attr_reader... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/file_updater/gemspec_updater.rb | Ruby | mit | 5,556 | main | 2,525 | # typed: strict
# frozen_string_literal: true
require "dependabot/bundler/file_updater"
module Dependabot
module Bundler
class FileUpdater
class GemspecUpdater
require_relative "requirement_replacer"
extend T::Sig
sig { params(dependencies: T::Array[Dependabot::Dependency], gemsp... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/file_updater/ruby_requirement_setter.rb | Ruby | mit | 5,556 | main | 4,587 | # typed: strict
# frozen_string_literal: true
require "parser/current"
require "sorbet-runtime"
require "dependabot/bundler/file_updater"
require "dependabot/bundler/requirement"
require "dependabot/bundler/version"
module Dependabot
module Bundler
class FileUpdater
class RubyRequirementSetter
ex... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/file_updater/gemspec_sanitizer.rb | Ruby | mit | 5,556 | main | 14,566 | # typed: strict
# frozen_string_literal: true
require "parser/current"
require "dependabot/bundler/file_updater"
module Dependabot
module Bundler
class FileUpdater
class GemspecSanitizer
extend T::Sig
UNNECESSARY_ASSIGNMENTS = %i(
bindir=
cert_chain=
email=
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bundler/lib/dependabot/bundler/file_updater/lockfile_updater.rb | Ruby | mit | 5,556 | main | 13,097 | # typed: strict
# frozen_string_literal: true
require "bundler"
require "sorbet-runtime"
require "dependabot/shared_helpers"
require "dependabot/errors"
require "dependabot/bundler/file_updater"
require "dependabot/bundler/cached_lockfile_parser"
require "dependabot/bundler/native_helpers"
require "dependabot/bundler... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/dependabot-bun.gemspec | Ruby | mit | 5,556 | main | 1,443 | # frozen_string_literal: true
Gem::Specification.new do |spec|
common_gemspec =
Bundler.load_gemspec_uncached("../common/dependabot-common.gemspec")
spec.name = "dependabot-bun"
spec.summary = "Provides Dependabot support for Javascript"
spec.description = "Dependabot-BUN provides support fo... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun.rb | Ruby | mit | 5,556 | main | 13,650 | # typed: strict
# frozen_string_literal: true
# These all need to be required so the various classes can be registered in a
# lookup table of package manager names to concrete classes.
require "dependabot/bun/file_fetcher"
require "dependabot/bun/file_parser"
require "dependabot/bun/update_checker"
require "dependabot... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/version.rb | Ruby | mit | 5,556 | main | 4,586 | # typed: strict
# frozen_string_literal: true
require "dependabot/version"
require "dependabot/utils"
require "sorbet-runtime"
# JavaScript pre-release versions use 1.0.1-rc1 syntax, which Gem::Version
# converts into 1.0.1.pre.rc1. We override the `to_s` method to stop that
# alteration.
#
# See https://semver.org/ ... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/constraint_helper.rb | Ruby | mit | 5,556 | main | 15,226 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
module Bun
module ConstraintHelper
extend T::Sig
# Regex Components for Semantic Versioning
DIGIT = "\\d+" # Matches a single number (e.g., "1")
PRERELEASE = "(?:-[a-zA-Z... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/bun_package_manager.rb | Ruby | mit | 5,556 | main | 1,446 | # typed: strong
# frozen_string_literal: true
module Dependabot
module Bun
class BunPackageManager < Ecosystem::VersionManager
extend T::Sig
NAME = "bun"
LOCKFILE_NAME = "bun.lock"
RC_FILENAME = ".npmrc"
# In Bun 1.1.39, the lockfile format was changed from a binary bun.lockb to a... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/native_helpers.rb | Ruby | mit | 5,556 | main | 561 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
module Bun
module NativeHelpers
extend T::Sig
sig { returns(String) }
def self.helper_path
"node #{File.join(native_helpers_root, 'run.js')}"
end
sig { returns(String) }
def sel... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/pnpm_package_manager.rb | Ruby | mit | 5,556 | main | 1,479 | # typed: strong
# frozen_string_literal: true
require "dependabot/bun/package_manager"
module Dependabot
module Bun
class PNPMPackageManager < Ecosystem::VersionManager
extend T::Sig
NAME = "pnpm"
LOCKFILE_NAME = "pnpm-lock.yaml"
PNPM_WS_YML_FILENAME = "pnpm-workspace.yaml"
PNPM_... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/file_parser.rb | Ruby | mit | 5,556 | main | 16,580 | # typed: strict
# frozen_string_literal: true
# See https://docs.npmjs.com/files/package.json for package.json format docs.
require "dependabot/dependency"
require "dependabot/file_parsers"
require "dependabot/file_parsers/base"
require "dependabot/shared_helpers"
require "dependabot/bun/helpers"
require "dependabot/... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/package_name.rb | Ruby | mit | 5,556 | main | 3,841 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
module Bun
class PackageName
extend T::Sig
# NPM package naming rules are defined by the following projects:
# - https://github.com/npm/npm-user-validate
# - https://github.com/npm/validate-npm-pack... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/sub_dependency_files_filterer.rb | Ruby | mit | 5,556 | main | 2,652 | # typed: strong
# frozen_string_literal: true
require "dependabot/utils"
require "dependabot/bun/version"
require "dependabot/bun/file_parser/lockfile_parser"
require "sorbet-runtime"
# Used in the sub dependency version resolver and file updater to only run
# yarn/npm helpers on dependency files that require updates... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/requirement.rb | Ruby | mit | 5,556 | main | 6,026 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/requirement"
require "dependabot/utils"
require "dependabot/bun/version"
module Dependabot
module Bun
class Requirement < Dependabot::Requirement
extend T::Sig
AND_SEPARATOR = T.let(/(?<=[a-zA-Z0-9*])\s+(?:&... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/metadata_finder.rb | Ruby | mit | 5,556 | main | 9,825 | # typed: strict
# frozen_string_literal: true
require "excon"
require "sorbet-runtime"
require "time"
require "dependabot/metadata_finders"
require "dependabot/metadata_finders/base"
require "dependabot/registry_client"
require "dependabot/bun/package/registry_finder"
require "dependabot/bun/version"
module Dependab... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/package_manager.rb | Ruby | mit | 5,556 | main | 9,983 | # typed: strict
# frozen_string_literal: true
require "dependabot/shared_helpers"
require "dependabot/ecosystem"
require "dependabot/bun/requirement"
require "dependabot/bun/version_selector"
require "dependabot/bun/registry_helper"
require "dependabot/bun/bun_package_manager"
require "dependabot/bun/language"
require... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/helpers.rb | Ruby | mit | 5,556 | main | 3,129 | # typed: strong
# frozen_string_literal: true
require "dependabot/dependency"
require "dependabot/file_parsers"
require "dependabot/file_parsers/base"
require "dependabot/shared_helpers"
require "sorbet-runtime"
module Dependabot
module Bun
module Helpers
extend T::Sig
# BUN Version Constants
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/update_checker.rb | Ruby | mit | 5,556 | main | 21,471 | # typed: strict
# frozen_string_literal: true
require "dependabot/git_commit_checker"
require "dependabot/requirements_update_strategy"
require "dependabot/shared_helpers"
require "dependabot/update_checkers"
require "dependabot/update_checkers/base"
module Dependabot
module Bun
class UpdateChecker < Dependabot... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/file_updater.rb | Ruby | mit | 5,556 | main | 6,491 | # typed: strong
# frozen_string_literal: true
require "dependabot/file_updaters"
require "dependabot/file_updaters/base"
require "dependabot/file_updaters/vendor_updater"
require "dependabot/file_updaters/artifact_updater"
require "dependabot/bun/dependency_files_filterer"
require "dependabot/bun/sub_dependency_files_... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/dependency_files_filterer.rb | Ruby | mit | 5,556 | main | 5,432 | # typed: strict
# frozen_string_literal: true
require "dependabot/utils"
require "dependabot/bun/file_parser/lockfile_parser"
require "sorbet-runtime"
# Used in the version resolver and file updater to only run yarn/npm helpers on
# dependency files that require updates. This is useful for large monorepos with
# lots... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/language.rb | Ruby | mit | 5,556 | main | 1,190 | # typed: strong
# frozen_string_literal: true
require "dependabot/bun/package_manager"
module Dependabot
module Bun
class Language < Ecosystem::VersionManager
extend T::Sig
NAME = "node"
SUPPORTED_VERSIONS = T.let([].freeze, T::Array[Dependabot::Version])
DEPRECATED_VERSIONS = T.let([... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/registry_parser.rb | Ruby | mit | 5,556 | main | 3,122 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
module Dependabot
module Bun
class RegistryParser
extend T::Sig
sig { params(resolved_url: String, credentials: T::Array[Dependabot::Credential]).void }
def initialize(resolved_url:, credentials:)
@resolved_url = r... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/version_selector.rb | Ruby | mit | 5,556 | main | 1,291 | # typed: strict
# frozen_string_literal: true
require "dependabot/shared_helpers"
require "dependabot/bun/constraint_helper"
module Dependabot
module Bun
class VersionSelector
extend T::Sig
extend T::Helpers
# Sets up engine versions from the given manifest JSON.
#
# @param manife... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/file_fetcher.rb | Ruby | mit | 5,556 | main | 15,720 | # typed: strict
# frozen_string_literal: true
require "json"
require "sorbet-runtime"
require "dependabot/experiments"
require "dependabot/logger"
require "dependabot/file_fetchers"
require "dependabot/file_fetchers/base"
require "dependabot/bun/helpers"
require "dependabot/bun/package_manager"
require "dependabot/bun... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/registry_helper.rb | Ruby | mit | 5,556 | main | 6,242 | # typed: strict
# frozen_string_literal: true
require "yaml"
require "dependabot/dependency_file"
require "sorbet-runtime"
module Dependabot
module Bun
class RegistryHelper
extend T::Sig
# Keys for configurations
REGISTRY_KEY = "registry"
AUTH_KEY = "authToken"
# Yarn-specific ke... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/file_parser/lockfile_parser.rb | Ruby | mit | 5,556 | main | 3,718 | # typed: strict
# frozen_string_literal: true
require "dependabot/dependency_file"
require "dependabot/bun/file_parser"
require "dependabot/bun/helpers"
require "sorbet-runtime"
module Dependabot
module Bun
class FileParser < Dependabot::FileParsers::Base
class LockfileParser
extend T::Sig
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/file_parser/bun_lock.rb | Ruby | mit | 5,556 | main | 5,174 | # typed: strict
# frozen_string_literal: true
require "yaml"
require "dependabot/errors"
require "dependabot/bun/helpers"
require "sorbet-runtime"
module Dependabot
module Bun
class FileParser < Dependabot::FileParsers::Base
class BunLock
extend T::Sig
sig { params(dependency_file: Depend... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/package/registry_finder.rb | Ruby | mit | 5,556 | main | 14,758 | # typed: strict
# frozen_string_literal: true
require "excon"
require "dependabot/bun/update_checker"
require "dependabot/registry_client"
require "sorbet-runtime"
module Dependabot
module Bun
module Package
class RegistryFinder
extend T::Sig
GLOBAL_NPM_REGISTRY = "https://registry.npmjs.... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/package/package_details_fetcher.rb | Ruby | mit | 5,556 | main | 16,111 | # typed: strict
# frozen_string_literal: true
require "json"
require "excon"
require "time"
require "dependabot/package/package_release"
require "dependabot/package/package_details"
require "dependabot/bun/package/registry_finder"
module Dependabot
module Bun
module Package
class PackageDetailsFetcher
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/file_updater/npmrc_builder.rb | Ruby | mit | 5,556 | main | 9,218 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/bun/file_updater"
module Dependabot
module Bun
class FileUpdater < Dependabot::FileUpdaters::Base
# Build a .npmrc file from the lockfile content, credentials, and any
# committed .npmrc
# We should ref... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/file_updater/package_json_updater.rb | Ruby | mit | 5,556 | main | 13,197 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/bun/file_updater"
module Dependabot
module Bun
class FileUpdater < Dependabot::FileUpdaters::Base
class PackageJsonUpdater
extend T::Sig
LOCAL_PACKAGE = T.let([/portal:/, /file:/].freeze, T::Array[... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/file_updater/bun_lockfile_updater.rb | Ruby | mit | 5,556 | main | 6,310 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/bun/helpers"
require "dependabot/bun/package/registry_finder"
require "dependabot/bun/registry_parser"
require "dependabot/shared_helpers"
module Dependabot
module Bun
class FileUpdater < Dependabot::FileUpdaters::Base
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/file_updater/package_json_preparer.rb | Ruby | mit | 5,556 | main | 3,186 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/bun/file_updater"
require "dependabot/bun/file_parser"
module Dependabot
module Bun
class FileUpdater < Dependabot::FileUpdaters::Base
class PackageJsonPreparer
extend T::Sig
sig { params(package_j... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/file_fetcher/path_dependency_builder.rb | Ruby | mit | 5,556 | main | 6,136 | # typed: strict
# frozen_string_literal: true
require "json"
require "dependabot/dependency_file"
require "dependabot/errors"
require "dependabot/bun/file_fetcher"
require "sorbet-runtime"
module Dependabot
module Bun
class FileFetcher
class PathDependencyBuilder
extend T::Sig
sig do
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/update_checker/requirements_updater.rb | Ruby | mit | 5,556 | main | 9,107 | # typed: strict
# frozen_string_literal: true
################################################################################
# For more details on npm version constraints, see: #
# https://docs.npmjs.com/misc/semver #
##############################... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/update_checker/version_resolver.rb | Ruby | mit | 5,556 | main | 29,047 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/errors"
require "dependabot/git_commit_checker"
require "dependabot/logger"
require "dependabot/bun/dependency_files_filterer"
require "dependabot/bun/file_parser"
require "dependabot/bun/file_updater/npmrc_builder"
require "de... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/update_checker/conflicting_dependency_resolver.rb | Ruby | mit | 5,556 | main | 2,810 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/dependency"
require "dependabot/errors"
require "dependabot/logger"
require "dependabot/bun/file_parser"
require "dependabot/bun/helpers"
require "dependabot/bun/native_helpers"
require "dependabot/bun/update_checker"
require "... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/update_checker/library_detector.rb | Ruby | mit | 5,556 | main | 3,263 | # typed: strict
# frozen_string_literal: true
require "excon"
require "sorbet-runtime"
require "dependabot/bun/update_checker"
require "dependabot/shared_helpers"
module Dependabot
module Bun
class UpdateChecker
class LibraryDetector
extend T::Sig
sig do
params(
pac... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/update_checker/vulnerability_auditor.rb | Ruby | mit | 5,556 | main | 8,797 | # typed: strict
# frozen_string_literal: true
require "sorbet-runtime"
require "stringio"
require "dependabot/dependency"
require "dependabot/errors"
require "dependabot/logger"
require "dependabot/bun/file_parser"
require "dependabot/bun/helpers"
require "dependabot/bun/native_helpers"
require "dependabot/bun/update... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/update_checker/latest_version_finder.rb | Ruby | mit | 5,556 | main | 14,531 | # typed: strict
# frozen_string_literal: true
require "excon"
require "dependabot/errors"
require "dependabot/shared_helpers"
require "dependabot/package/package_latest_version_finder"
require "dependabot/bun/update_checker"
require "dependabot/update_checkers/version_filters"
require "dependabot/bun/package/registry_... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/update_checker/subdependency_version_resolver.rb | Ruby | mit | 5,556 | main | 7,489 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/dependency"
require "dependabot/errors"
require "dependabot/logger"
require "dependabot/bun/file_parser"
require "dependabot/bun/helpers"
require "dependabot/bun/native_helpers"
require "dependabot/bun/sub_dependency_files_filt... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/lib/dependabot/bun/update_checker/dependency_files_builder.rb | Ruby | mit | 5,556 | main | 3,125 | # typed: strong
# frozen_string_literal: true
require "sorbet-runtime"
require "dependabot/bun/file_updater/npmrc_builder"
require "dependabot/bun/file_updater/package_json_preparer"
module Dependabot
module Bun
class UpdateChecker
class DependencyFilesBuilder
extend T::Sig
sig do
... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/spec/bun_config_spec.rb | Ruby | mit | 5,556 | main | 461 | # typed: false
# frozen_string_literal: true
require "spec_helper"
# NOTE: This test does not have a corresponding class. It is testing the npm configuration.
RSpec.describe "bun config" do # rubocop:disable RSpec/DescribeClass
it "silences warning messages that aren't useful within the dependabot context" do
n... |
github | dependabot/dependabot-core | https://github.com/dependabot/dependabot-core | bun/spec/spec_helper.rb | Ruby | mit | 5,556 | main | 772 | # 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
require "#{common_dir}/spec/spec_helper.rb"
def create_dependency(name:, version:, requir... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.