repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/errors.rb
lib/bundler/errors.rb
# frozen_string_literal: true module Bundler class BundlerError < StandardError def self.status_code(code) define_method(:status_code) { code } if match = BundlerError.all_errors.find {|_k, v| v == code } error, _ = match raise ArgumentError, "Trying to register #{self} for ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/graph.rb
lib/bundler/graph.rb
# frozen_string_literal: true require "set" module Bundler class Graph GRAPH_NAME = :Gemfile def initialize(env, output_file, show_version = false, show_requirements = false, output_format = "png", without = []) @env = env @output_file = output_file @show_version =...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/friendly_errors.rb
lib/bundler/friendly_errors.rb
# frozen_string_literal: true require_relative "vendored_thor" module Bundler module FriendlyErrors module_function def log_error(error) case error when YamlSyntaxError Bundler.ui.error error.message Bundler.ui.trace error.orig_exception when Dsl::DSLError, GemspecError ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/similarity_detector.rb
lib/bundler/similarity_detector.rb
# frozen_string_literal: true module Bundler class SimilarityDetector SimilarityScore = Struct.new(:string, :distance) # initialize with an array of words to be matched against def initialize(corpus) @corpus = corpus end # return an array of words similar to 'word' from the corpus def...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/spec_set.rb
lib/bundler/spec_set.rb
# frozen_string_literal: true require "tsort" require "set" module Bundler class SpecSet include Enumerable include TSort def initialize(specs) @specs = specs end def for(dependencies, skip = [], check = false, match_current_platform = false, raise_on_missing = true) handled = Set....
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/index.rb
lib/bundler/index.rb
# frozen_string_literal: true require "set" module Bundler class Index include Enumerable def self.build i = new yield i i end attr_reader :specs, :all_specs, :sources protected :specs, :all_specs RUBY = "ruby".freeze NULL = "\0".freeze def initialize @sou...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/rubygems_gem_installer.rb
lib/bundler/rubygems_gem_installer.rb
# frozen_string_literal: true require "rubygems/installer" module Bundler class RubyGemsGemInstaller < Gem::Installer unless respond_to?(:at) def self.at(*args) new(*args) end end def check_executable_overwrite(filename) # Bundler needs to install gems regardless of binstub ov...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/build_metadata.rb
lib/bundler/build_metadata.rb
# frozen_string_literal: true module Bundler # Represents metadata from when the Bundler gem was built. module BuildMetadata # begin ivars @release = false # end ivars # A hash representation of the build metadata. def self.to_h { "Built At" => built_at, "Git SHA" => git_...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/gem_helpers.rb
lib/bundler/gem_helpers.rb
# frozen_string_literal: true module Bundler module GemHelpers GENERIC_CACHE = { Gem::Platform::RUBY => Gem::Platform::RUBY } # rubocop:disable Style/MutableConstant GENERICS = [ [Gem::Platform.new("java"), Gem::Platform.new("java")], [Gem::Platform.new("mswin32"), Gem::Platform.new("mswin32")], ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/feature_flag.rb
lib/bundler/feature_flag.rb
# frozen_string_literal: true module Bundler class FeatureFlag def self.settings_flag(flag, &default) unless Bundler::Settings::BOOL_KEYS.include?(flag.to_s) raise "Cannot use `#{flag}` as a settings feature flag since it isn't a bool key" end settings_method("#{flag}?", flag, &default...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/capistrano.rb
lib/bundler/capistrano.rb
# frozen_string_literal: true require_relative "shared_helpers" Bundler::SharedHelpers.major_deprecation 2, "The Bundler task for Capistrano. Please use https://github.com/capistrano/bundler" # Capistrano task for Bundler. # # Add "require 'bundler/capistrano'" in your Capistrano deploy.rb, and # Bundler will be ac...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendored_fileutils.rb
lib/bundler/vendored_fileutils.rb
# frozen_string_literal: true module Bundler; end require_relative "vendor/fileutils/lib/fileutils"
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/mirror.rb
lib/bundler/mirror.rb
# frozen_string_literal: true require "socket" module Bundler class Settings # Class used to build the mirror set and then find a mirror for a given URI # # @param prober [Prober object, nil] by default a TCPSocketProbe, this object # will be used to probe the mirror address to validate that the m...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/environment_preserver.rb
lib/bundler/environment_preserver.rb
# frozen_string_literal: true module Bundler class EnvironmentPreserver INTENTIONALLY_NIL = "BUNDLER_ENVIRONMENT_PRESERVER_INTENTIONALLY_NIL".freeze BUNDLER_KEYS = %w[ BUNDLE_BIN_PATH BUNDLE_GEMFILE BUNDLER_VERSION GEM_HOME GEM_PATH MANPATH PATH RB_USER_INSTALL...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/plugin.rb
lib/bundler/plugin.rb
# frozen_string_literal: true require_relative "plugin/api" module Bundler module Plugin autoload :DSL, File.expand_path("plugin/dsl", __dir__) autoload :Events, File.expand_path("plugin/events", __dir__) autoload :Index, File.expand_path("plugin/index", __dir__) autoload :Installer,...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/gem_tasks.rb
lib/bundler/gem_tasks.rb
# frozen_string_literal: true require "rake/clean" CLOBBER.include "pkg" require_relative "gem_helper" Bundler::GemHelper.install_tasks
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/constants.rb
lib/bundler/constants.rb
# frozen_string_literal: true module Bundler WINDOWS = RbConfig::CONFIG["host_os"] =~ /(msdos|mswin|djgpp|mingw)/ FREEBSD = RbConfig::CONFIG["host_os"] =~ /bsd/ NULL = WINDOWS ? "NUL" : "/dev/null" end
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendored_thor.rb
lib/bundler/vendored_thor.rb
# frozen_string_literal: true module Bundler def self.require_thor_actions require_relative "vendor/thor/lib/thor/actions" end end require_relative "vendor/thor/lib/thor"
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/current_ruby.rb
lib/bundler/current_ruby.rb
# frozen_string_literal: true module Bundler # Returns current version of Ruby # # @return [CurrentRuby] Current version of Ruby def self.current_ruby @current_ruby ||= CurrentRuby.new end class CurrentRuby KNOWN_MINOR_VERSIONS = %w[ 1.8 1.9 2.0 2.1 2.2 2.3 ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/lockfile_generator.rb
lib/bundler/lockfile_generator.rb
# frozen_string_literal: true module Bundler class LockfileGenerator attr_reader :definition attr_reader :out # @private def initialize(definition) @definition = definition @out = String.new end def self.generate(definition) new(definition).generate! end def gener...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/psyched_yaml.rb
lib/bundler/psyched_yaml.rb
# frozen_string_literal: true # Psych could be a gem, so try to ask for it begin gem "psych" rescue LoadError end if defined?(gem) # Psych could be in the stdlib # but it's too late if Syck is already loaded begin require "psych" unless defined?(Syck) rescue LoadError # Apparently Psych wasn't available. Oh wel...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/fetcher.rb
lib/bundler/fetcher.rb
# frozen_string_literal: true require_relative "vendored_persistent" require "cgi" require "securerandom" require "zlib" require "rubygems/request" module Bundler # Handles all the fetching with the rubygems server class Fetcher autoload :CompactIndex, File.expand_path("fetcher/compact_index", __dir__) au...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/env.rb
lib/bundler/env.rb
# frozen_string_literal: true require_relative "rubygems_integration" require_relative "source/git/git_proxy" module Bundler class Env def self.write(io) io.write report end def self.report(options = {}) print_gemfile = options.delete(:print_gemfile) { true } print_gemspecs = options....
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/lazy_specification.rb
lib/bundler/lazy_specification.rb
# frozen_string_literal: true require_relative "match_platform" module Bundler class LazySpecification Identifier = Struct.new(:name, :version, :source, :platform, :dependencies) class Identifier include Comparable def <=>(other) return unless other.is_a?(Identifier) [name, versi...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendored_molinillo.rb
lib/bundler/vendored_molinillo.rb
# frozen_string_literal: true module Bundler; end require_relative "vendor/molinillo/lib/molinillo"
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/process_lock.rb
lib/bundler/process_lock.rb
# frozen_string_literal: true module Bundler class ProcessLock def self.lock(bundle_path = Bundler.bundle_path) lock_file_path = File.join(bundle_path, "bundler.lock") has_lock = false File.open(lock_file_path, "w") do |f| f.flock(File::LOCK_EX) has_lock = true yield ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/dsl.rb
lib/bundler/dsl.rb
# frozen_string_literal: true require_relative "dependency" require_relative "ruby_dsl" module Bundler class Dsl include RubyDsl def self.evaluate(gemfile, lockfile, unlock) builder = new builder.eval_gemfile(gemfile) builder.to_definition(lockfile, unlock) end VALID_PLATFORMS = ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendored_persistent.rb
lib/bundler/vendored_persistent.rb
# frozen_string_literal: true # We forcibly require OpenSSL, because net/http/persistent will only autoload # it. On some Rubies, autoload fails but explicit require succeeds. begin require "openssl" rescue LoadError # some Ruby builds don't have OpenSSL end module Bundler module Persistent module Net ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/settings.rb
lib/bundler/settings.rb
# frozen_string_literal: true module Bundler class Settings autoload :Mirror, File.expand_path("mirror", __dir__) autoload :Mirrors, File.expand_path("mirror", __dir__) autoload :Validator, File.expand_path("settings/validator", __dir__) BOOL_KEYS = %w[ allow_bundler_dependency_conflicts ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/retry.rb
lib/bundler/retry.rb
# frozen_string_literal: true module Bundler # General purpose class for retrying code that may fail class Retry attr_accessor :name, :total_runs, :current_run class << self def default_attempts default_retries + 1 end alias_method :attempts, :default_attempts def default_...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/match_platform.rb
lib/bundler/match_platform.rb
# frozen_string_literal: true require_relative "gem_helpers" module Bundler module MatchPlatform include GemHelpers def match_platform(p) MatchPlatform.platforms_match?(platform, p) end def self.platforms_match?(gemspec_platform, local_platform) return true if gemspec_platform.nil? ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/resolver.rb
lib/bundler/resolver.rb
# frozen_string_literal: true module Bundler class Resolver require_relative "vendored_molinillo" require_relative "resolver/spec_group" # Figures out the best possible configuration of gems that satisfies # the list of passed dependencies and any child dependencies without # causing any gem act...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vlad.rb
lib/bundler/vlad.rb
# frozen_string_literal: true require_relative "shared_helpers" Bundler::SharedHelpers.major_deprecation 2, "The Bundler task for Vlad" # Vlad task for Bundler. # # Add "require 'bundler/vlad'" in your Vlad deploy.rb, and # include the vlad:bundle:install task in your vlad:deploy task. require_relative "deployment"...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/yaml_serializer.rb
lib/bundler/yaml_serializer.rb
# frozen_string_literal: true module Bundler # A stub yaml serializer that can handle only hashes and strings (as of now). module YAMLSerializer module_function def dump(hash) yaml = String.new("---") yaml << dump_hash(hash) end def dump_hash(hash) yaml = String.new("\n") ha...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/dep_proxy.rb
lib/bundler/dep_proxy.rb
# frozen_string_literal: true module Bundler class DepProxy attr_reader :__platform, :dep def initialize(dep, platform) @dep = dep @__platform = platform end def hash @hash ||= [dep, __platform].hash end def ==(other) return false if other.class != self.class ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/source_list.rb
lib/bundler/source_list.rb
# frozen_string_literal: true require "set" module Bundler class SourceList attr_reader :path_sources, :git_sources, :plugin_sources, :global_rubygems_source, :metadata_source def initialize @path_sources = [] @git_sources = [] @plugin_sources ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/gemdeps.rb
lib/bundler/gemdeps.rb
# frozen_string_literal: true module Bundler class Gemdeps def initialize(runtime) @runtime = runtime end def requested_specs @runtime.requested_specs end def specs @runtime.specs end def dependencies @runtime.dependencies end def current_dependencies ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/installer.rb
lib/bundler/installer.rb
# frozen_string_literal: true require "erb" require "rubygems/dependency_installer" require_relative "worker" require_relative "installer/parallel_installer" require_relative "installer/standalone" require_relative "installer/gem_installer" module Bundler class Installer class << self attr_accessor :ambig...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/definition.rb
lib/bundler/definition.rb
# frozen_string_literal: true require_relative "lockfile_parser" require "set" module Bundler class Definition include GemHelpers attr_reader( :dependencies, :locked_deps, :locked_gems, :platforms, :requires, :ruby_version, :lockfile, :gemfiles ) # G...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
true
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/cli.rb
lib/bundler/cli.rb
# frozen_string_literal: true require_relative "vendored_thor" module Bundler class CLI < Thor require_relative "cli/common" package_name "Bundler" AUTO_INSTALL_CMDS = %w[show binstubs outdated exec open console licenses clean].freeze PARSEABLE_COMMANDS = %w[check config help exec platform show ve...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
true
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/shared_helpers.rb
lib/bundler/shared_helpers.rb
# frozen_string_literal: true require "pathname" require "rbconfig" require_relative "version" require_relative "constants" require_relative "rubygems_integration" require_relative "current_ruby" module Bundler module SharedHelpers def root gemfile = find_gemfile raise GemfileNotFound, "Could not l...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/worker.rb
lib/bundler/worker.rb
# frozen_string_literal: true module Bundler class Worker POISON = Object.new class WrappedException < StandardError attr_reader :exception def initialize(exn) @exception = exn end end # @return [String] the name of the worker attr_reader :name # Creates a worker ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/runtime.rb
lib/bundler/runtime.rb
# frozen_string_literal: true module Bundler class Runtime include SharedHelpers def initialize(root, definition) @root = root @definition = definition end def setup(*groups) @definition.ensure_equivalent_gemfile_and_lockfile if Bundler.frozen_bundle? groups.map!(&:to_sym) ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/ruby_dsl.rb
lib/bundler/ruby_dsl.rb
# frozen_string_literal: true module Bundler module RubyDsl def ruby(*ruby_version) options = ruby_version.last.is_a?(Hash) ? ruby_version.pop : {} ruby_version.flatten! raise GemfileError, "Please define :engine_version" if options[:engine] && options[:engine_version].nil? raise GemfileE...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/rubygems_ext.rb
lib/bundler/rubygems_ext.rb
# frozen_string_literal: true require "pathname" require "rubygems/specification" # Possible use in Gem::Specification#source below and require # shouldn't be deferred. require "rubygems/source" require_relative "match_platform" module Gem class Specification attr_accessor :remote, :location, :relative_loade...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/ruby_version.rb
lib/bundler/ruby_version.rb
# frozen_string_literal: true module Bundler class RubyVersion attr_reader :versions, :patchlevel, :engine, :engine_versions, :gem_version, :engine_gem_version def initialize(versions, patchlevel, engine, engine_version) # The parameters to this method must satisfy the ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/deployment.rb
lib/bundler/deployment.rb
# frozen_string_literal: true require_relative "shared_helpers" Bundler::SharedHelpers.major_deprecation 2, "Bundler no longer integrates with " \ "Capistrano, but Capistrano provides its own integration with " \ "Bundler via the capistrano-bundler gem. Use it instead." module Bundler class Deployment def s...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/dependency.rb
lib/bundler/dependency.rb
# frozen_string_literal: true require "rubygems/dependency" require_relative "shared_helpers" require_relative "rubygems_ext" module Bundler class Dependency < Gem::Dependency attr_reader :autorequire attr_reader :groups, :platforms, :gemfile, :git, :branch PLATFORM_MAP = { :ruby => Gem::Plat...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendored_uri.rb
lib/bundler/vendored_uri.rb
# frozen_string_literal: true module Bundler; end require_relative "vendor/uri/lib/uri"
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/lockfile_parser.rb
lib/bundler/lockfile_parser.rb
# frozen_string_literal: true #-- # Some versions of the Bundler 1.1 RC series introduced corrupted # lockfiles. There were two major problems: # # * multiple copies of the same GIT section appeared in the lockfile # * when this happened, those sections got multiple copies of gems # in those sections. # # As a resul...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/stub_specification.rb
lib/bundler/stub_specification.rb
# frozen_string_literal: true require_relative "remote_specification" module Bundler class StubSpecification < RemoteSpecification def self.from_stub(stub) return stub if stub.is_a?(Bundler::StubSpecification) spec = new(stub.name, stub.version, stub.platform, nil) spec.stub = stub spec ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/injector.rb
lib/bundler/injector.rb
# frozen_string_literal: true module Bundler class Injector INJECTED_GEMS = "injected gems".freeze def self.inject(new_deps, options = {}) injector = new(new_deps, options) injector.inject(Bundler.default_gemfile, Bundler.default_lockfile) end def self.remove(gems, options = {}) i...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/gem_version_promoter.rb
lib/bundler/gem_version_promoter.rb
# frozen_string_literal: true module Bundler # This class contains all of the logic for determining the next version of a # Gem to update to based on the requested level (patch, minor, major). # Primarily designed to work with Resolver which will provide it the list of # available dependency versions as found ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/deprecate.rb
lib/bundler/deprecate.rb
# frozen_string_literal: true begin require "rubygems/deprecate" rescue LoadError # it's fine if it doesn't exist on the current RubyGems... nil end module Bundler # If Bundler::Deprecate is an autoload constant, we need to define it if defined?(Bundler::Deprecate) && !autoload?(:Deprecate) # nothing to...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/gem_helper.rb
lib/bundler/gem_helper.rb
# frozen_string_literal: true require_relative "../bundler" require "shellwords" module Bundler class GemHelper include Rake::DSL if defined? Rake::DSL class << self # set when install'd. attr_accessor :instance def install_tasks(opts = {}) new(opts[:dir], opts[:name]).install ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/compact_index_client/updater.rb
lib/bundler/compact_index_client/updater.rb
# frozen_string_literal: true require_relative "../vendored_fileutils" require "stringio" require "zlib" module Bundler class CompactIndexClient class Updater class MisMatchedChecksumError < Error def initialize(path, server_checksum, local_checksum) @path = path @server_checks...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/compact_index_client/gem_parser.rb
lib/bundler/compact_index_client/gem_parser.rb
# frozen_string_literal: true module Bundler class CompactIndexClient class GemParser def parse(line) version_and_platform, rest = line.split(" ", 2) version, platform = version_and_platform.split("-", 2) dependencies, requirements = rest.split("|", 2) if rest dependencies =...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/compact_index_client/cache.rb
lib/bundler/compact_index_client/cache.rb
# frozen_string_literal: true require_relative "gem_parser" module Bundler class CompactIndexClient class Cache attr_reader :directory def initialize(directory) @directory = Pathname.new(directory).expand_path info_roots.each do |dir| SharedHelpers.filesystem_access(dir) d...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/plugin/events.rb
lib/bundler/plugin/events.rb
# frozen_string_literal: true module Bundler module Plugin module Events def self.define(const, event) const = const.to_sym.freeze if const_defined?(const) && const_get(const) != event raise ArgumentError, "Attempting to reassign #{const} to a different value" end ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/plugin/index.rb
lib/bundler/plugin/index.rb
# frozen_string_literal: true module Bundler # Manages which plugins are installed and their sources. This also is supposed to map # which plugin does what (currently the features are not implemented so this class is # now a stub class). module Plugin class Index class CommandConflict < PluginError ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/plugin/api.rb
lib/bundler/plugin/api.rb
# frozen_string_literal: true module Bundler # This is the interfacing class represents the API that we intend to provide # the plugins to use. # # For plugins to be independent of the Bundler internals they shall limit their # interactions to methods of this class only. This will save them from breaking #...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/plugin/dsl.rb
lib/bundler/plugin/dsl.rb
# frozen_string_literal: true module Bundler module Plugin # Dsl to parse the Gemfile looking for plugins to install class DSL < Bundler::Dsl class PluginGemfileError < PluginError; end alias_method :_gem, :gem # To use for plugin installation as gem # So that we don't have to override all...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/plugin/source_list.rb
lib/bundler/plugin/source_list.rb
# frozen_string_literal: true module Bundler # SourceList object to be used while parsing the Gemfile, setting the # approptiate options to be used with Source classes for plugin installation module Plugin class SourceList < Bundler::SourceList def add_git_source(options = {}) add_source_to_lis...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/plugin/installer.rb
lib/bundler/plugin/installer.rb
# frozen_string_literal: true module Bundler # Handles the installation of plugin in appropriate directories. # # This class is supposed to be wrapper over the existing gem installation infra # but currently it itself handles everything as the Source's subclasses (e.g. Source::RubyGems) # are heavily depende...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/plugin/api/source.rb
lib/bundler/plugin/api/source.rb
# frozen_string_literal: true module Bundler module Plugin class API # This class provides the base to build source plugins # All the method here are required to build a source plugin (except # `uri_hash`, `gem_install_dir`; they are helpers). # # Defaults for methods, where ever po...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/plugin/installer/rubygems.rb
lib/bundler/plugin/installer/rubygems.rb
# frozen_string_literal: true module Bundler module Plugin class Installer class Rubygems < Bundler::Source::Rubygems def version_message(spec) "#{spec.name} #{spec.version}" end private def requires_sudo? false # Will change on implementation of project ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/plugin/installer/git.rb
lib/bundler/plugin/installer/git.rb
# frozen_string_literal: true module Bundler module Plugin class Installer class Git < Bundler::Source::Git def cache_path @cache_path ||= begin git_scope = "#{base_name}-#{uri_hash}" Plugin.cache.join("bundler", "git", git_scope) end end ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/uri/lib/uri.rb
lib/bundler/vendor/uri/lib/uri.rb
# frozen_string_literal: false # Bundler::URI is a module providing classes to handle Uniform Resource Identifiers # (RFC2396[http://tools.ietf.org/html/rfc2396]). # # == Features # # * Uniform way of handling URIs. # * Flexibility to introduce custom Bundler::URI schemes. # * Flexibility to have an alternate Bundler::...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/uri/lib/uri/generic.rb
lib/bundler/vendor/uri/lib/uri/generic.rb
# frozen_string_literal: true # = uri/generic.rb # # Author:: Akira Yamada <akira@ruby-lang.org> # License:: You can redistribute it and/or modify it under the same term as Ruby. # Revision:: $Id$ # # See Bundler::URI for general documentation # require_relative 'common' autoload :IPSocket, 'socket' autoload :IPAddr,...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
true
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/uri/lib/uri/common.rb
lib/bundler/vendor/uri/lib/uri/common.rb
# frozen_string_literal: true #-- # = uri/common.rb # # Author:: Akira Yamada <akira@ruby-lang.org> # Revision:: $Id$ # License:: # You can redistribute it and/or modify it under the same term as Ruby. # # See Bundler::URI for general documentation # require_relative "rfc2396_parser" require_relative "rfc3986_parser...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/uri/lib/uri/version.rb
lib/bundler/vendor/uri/lib/uri/version.rb
module Bundler::URI # :stopdoc: VERSION_CODE = '001000'.freeze VERSION = VERSION_CODE.scan(/../).collect{|n| n.to_i}.join('.').freeze # :startdoc: end
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/uri/lib/uri/mailto.rb
lib/bundler/vendor/uri/lib/uri/mailto.rb
# frozen_string_literal: false # = uri/mailto.rb # # Author:: Akira Yamada <akira@ruby-lang.org> # License:: You can redistribute it and/or modify it under the same term as Ruby. # Revision:: $Id$ # # See Bundler::URI for general documentation # require_relative 'generic' module Bundler::URI # # RFC6068, the mai...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/uri/lib/uri/rfc3986_parser.rb
lib/bundler/vendor/uri/lib/uri/rfc3986_parser.rb
# frozen_string_literal: false module Bundler::URI class RFC3986_Parser # :nodoc: # Bundler::URI defined in RFC3986 # this regexp is modified not to host is not empty string RFC3986_URI = /\A(?<Bundler::URI>(?<scheme>[A-Za-z][+\-.0-9A-Za-z]*):(?<hier-part>\/\/(?<authority>(?:(?<userinfo>(?:%\h\h|[!$&-.0-;...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/uri/lib/uri/ldaps.rb
lib/bundler/vendor/uri/lib/uri/ldaps.rb
# frozen_string_literal: false # = uri/ldap.rb # # License:: You can redistribute it and/or modify it under the same term as Ruby. # # See Bundler::URI for general documentation # require_relative 'ldap' module Bundler::URI # The default port for LDAPS URIs is 636, and the scheme is 'ldaps:' rather # than 'ldap:...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/uri/lib/uri/file.rb
lib/bundler/vendor/uri/lib/uri/file.rb
# frozen_string_literal: true require_relative 'generic' module Bundler::URI # # The "file" Bundler::URI is defined by RFC8089. # class File < Generic # A Default port of nil for Bundler::URI::File. DEFAULT_PORT = nil # # An Array of the available components for Bundler::URI::File. # ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/uri/lib/uri/http.rb
lib/bundler/vendor/uri/lib/uri/http.rb
# frozen_string_literal: false # = uri/http.rb # # Author:: Akira Yamada <akira@ruby-lang.org> # License:: You can redistribute it and/or modify it under the same term as Ruby. # Revision:: $Id$ # # See Bundler::URI for general documentation # require_relative 'generic' module Bundler::URI # # The syntax of HTTP...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/uri/lib/uri/ftp.rb
lib/bundler/vendor/uri/lib/uri/ftp.rb
# frozen_string_literal: false # = uri/ftp.rb # # Author:: Akira Yamada <akira@ruby-lang.org> # License:: You can redistribute it and/or modify it under the same term as Ruby. # Revision:: $Id$ # # See Bundler::URI for general documentation # require_relative 'generic' module Bundler::URI # # FTP Bundler::URI sy...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/uri/lib/uri/rfc2396_parser.rb
lib/bundler/vendor/uri/lib/uri/rfc2396_parser.rb
# frozen_string_literal: false #-- # = uri/common.rb # # Author:: Akira Yamada <akira@ruby-lang.org> # Revision:: $Id$ # License:: # You can redistribute it and/or modify it under the same term as Ruby. # # See Bundler::URI for general documentation # module Bundler::URI # # Includes Bundler::URI::REGEXP::PATTER...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/uri/lib/uri/ldap.rb
lib/bundler/vendor/uri/lib/uri/ldap.rb
# frozen_string_literal: false # = uri/ldap.rb # # Author:: # Takaaki Tateishi <ttate@jaist.ac.jp> # Akira Yamada <akira@ruby-lang.org> # License:: # Bundler::URI::LDAP is copyrighted free software by Takaaki Tateishi and Akira Yamada. # You can redistribute it and/or modify it under the same term as Ruby. # Revi...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/uri/lib/uri/https.rb
lib/bundler/vendor/uri/lib/uri/https.rb
# frozen_string_literal: false # = uri/https.rb # # Author:: Akira Yamada <akira@ruby-lang.org> # License:: You can redistribute it and/or modify it under the same term as Ruby. # Revision:: $Id$ # # See Bundler::URI for general documentation # require_relative 'http' module Bundler::URI # The default port for HTT...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/fileutils/lib/fileutils.rb
lib/bundler/vendor/fileutils/lib/fileutils.rb
# frozen_string_literal: true begin require 'rbconfig' rescue LoadError # for make mjit-headers end # # = fileutils.rb # # Copyright (c) 2000-2007 Minero Aoki # # This program is free software. # You can distribute/modify this program under the same terms of ruby. # # == module Bundler::FileUtils # # Namespace fo...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
true
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/thor/lib/thor.rb
lib/bundler/vendor/thor/lib/thor.rb
require "set" require_relative "thor/base" class Bundler::Thor class << self # Allows for custom "Command" package naming. # # === Parameters # name<String> # options<Hash> # def package_name(name, _ = {}) @package_name = name.nil? || name == "" ? nil : name end # Sets the ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/thor/lib/thor/command.rb
lib/bundler/vendor/thor/lib/thor/command.rb
class Bundler::Thor class Command < Struct.new(:name, :description, :long_description, :usage, :options, :ancestor_name) FILE_REGEXP = /^#{Regexp.escape(File.dirname(__FILE__))}/ def initialize(name, description, long_description, usage, options = nil) super(name.to_s, description, long_description, us...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/thor/lib/thor/actions.rb
lib/bundler/vendor/thor/lib/thor/actions.rb
require_relative "actions/create_file" require_relative "actions/create_link" require_relative "actions/directory" require_relative "actions/empty_directory" require_relative "actions/file_manipulation" require_relative "actions/inject_into_file" class Bundler::Thor module Actions attr_accessor :behavior de...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/thor/lib/thor/line_editor.rb
lib/bundler/vendor/thor/lib/thor/line_editor.rb
require_relative "line_editor/basic" require_relative "line_editor/readline" class Bundler::Thor module LineEditor def self.readline(prompt, options = {}) best_available.new(prompt, options).readline end def self.best_available [ Bundler::Thor::LineEditor::Readline, Bundler::...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/thor/lib/thor/version.rb
lib/bundler/vendor/thor/lib/thor/version.rb
class Bundler::Thor VERSION = "1.0.0" end
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/thor/lib/thor/rake_compat.rb
lib/bundler/vendor/thor/lib/thor/rake_compat.rb
require "rake" require "rake/dsl_definition" class Bundler::Thor # Adds a compatibility layer to your Bundler::Thor classes which allows you to use # rake package tasks. For example, to use rspec rake tasks, one can do: # # require 'bundler/vendor/thor/lib/thor/rake_compat' # require 'rspec/core/rake_tas...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/thor/lib/thor/group.rb
lib/bundler/vendor/thor/lib/thor/group.rb
require_relative "base" # Bundler::Thor has a special class called Bundler::Thor::Group. The main difference to Bundler::Thor class # is that it invokes all commands at once. It also include some methods that allows # invocations to be done at the class method, which are not available to Bundler::Thor # commands. clas...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/thor/lib/thor/parser.rb
lib/bundler/vendor/thor/lib/thor/parser.rb
require_relative "parser/argument" require_relative "parser/arguments" require_relative "parser/option" require_relative "parser/options"
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/thor/lib/thor/base.rb
lib/bundler/vendor/thor/lib/thor/base.rb
require_relative "command" require_relative "core_ext/hash_with_indifferent_access" require_relative "error" require_relative "invocation" require_relative "nested_context" require_relative "parser" require_relative "shell" require_relative "line_editor" require_relative "util" class Bundler::Thor autoload :Actions,...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/thor/lib/thor/nested_context.rb
lib/bundler/vendor/thor/lib/thor/nested_context.rb
class Bundler::Thor class NestedContext def initialize @depth = 0 end def enter push yield ensure pop end def entered? @depth > 0 end private def push @depth += 1 end def pop @depth -= 1 end end end
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/thor/lib/thor/runner.rb
lib/bundler/vendor/thor/lib/thor/runner.rb
require_relative "../thor" require_relative "group" require "yaml" require "digest/md5" require "pathname" class Bundler::Thor::Runner < Bundler::Thor #:nodoc: # rubocop:disable ClassLength autoload :OpenURI, "open-uri" map "-T" => :list, "-i" => :install, "-u" => :update, "-v" => :version def self.banner(com...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/thor/lib/thor/shell.rb
lib/bundler/vendor/thor/lib/thor/shell.rb
require "rbconfig" class Bundler::Thor module Base class << self attr_writer :shell # Returns the shell used in all Bundler::Thor classes. If you are in a Unix platform # it will use a colored log, otherwise it will use a basic one without color. # def shell @shell ||= if E...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/thor/lib/thor/invocation.rb
lib/bundler/vendor/thor/lib/thor/invocation.rb
class Bundler::Thor module Invocation def self.included(base) #:nodoc: super(base) base.extend ClassMethods end module ClassMethods # This method is responsible for receiving a name and find the proper # class and command for it. The key is an optional parameter which is # a...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/thor/lib/thor/error.rb
lib/bundler/vendor/thor/lib/thor/error.rb
class Bundler::Thor Correctable = if defined?(DidYouMean::SpellChecker) && defined?(DidYouMean::Correctable) # In order to support versions of Ruby that don't have keyword # arguments, we need our own spell checker class that doesn't take key # words. Even though ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/thor/lib/thor/util.rb
lib/bundler/vendor/thor/lib/thor/util.rb
require "rbconfig" class Bundler::Thor module Sandbox #:nodoc: end # This module holds several utilities: # # 1) Methods to convert thor namespaces to constants and vice-versa. # # Bundler::Thor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> "foo:bar:baz" # # 2) Loading thor files and sandboxi...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/thor/lib/thor/line_editor/readline.rb
lib/bundler/vendor/thor/lib/thor/line_editor/readline.rb
class Bundler::Thor module LineEditor class Readline < Basic def self.available? begin require "readline" rescue LoadError end Object.const_defined?(:Readline) end def readline if echo? ::Readline.completion_append_character = nil ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb
lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb
class Bundler::Thor module LineEditor class Basic attr_reader :prompt, :options def self.available? true end def initialize(prompt, options) @prompt = prompt @options = options end def readline $stdout.print(prompt) get_input end...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/thor/lib/thor/actions/directory.rb
lib/bundler/vendor/thor/lib/thor/actions/directory.rb
require_relative "empty_directory" class Bundler::Thor module Actions # Copies recursively the files from source directory to root directory. # If any of the files finishes with .tt, it's considered to be a template # and is placed in the destination without the extension .tt. If any # empty director...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false
rubygems/bundler
https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb
lib/bundler/vendor/thor/lib/thor/actions/create_link.rb
require_relative "create_file" class Bundler::Thor module Actions # Create a new file relative to the destination root from the given source. # # ==== Parameters # destination<String>:: the relative path to the destination root. # source<String|NilClass>:: the relative path to the source root. ...
ruby
MIT
35be6d9a603084f719fec4f4028c18860def07f6
2026-01-04T15:44:52.942591Z
false