diff options
161 files changed, 161 insertions, 0 deletions
@@ -1,3 +1,4 @@ class Gem::AvailableSet include Enumerable @@ -1,3 +1,4 @@ ## # BasicSpecification is an abstract class which implements some common code # used by both Specification and StubSpecification. @@ -1,3 +1,4 @@ #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. @@ -1,3 +1,4 @@ #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. @@ -1,3 +1,4 @@ require 'rubygems/command' require 'rubygems/package' @@ -1,3 +1,4 @@ require 'rubygems/command' require 'rubygems/security' begin @@ -1,3 +1,4 @@ require 'rubygems/command' require 'rubygems/version_option' require 'rubygems/validator' @@ -1,3 +1,4 @@ require 'rubygems/command' require 'rubygems/dependency_list' require 'rubygems/uninstaller' @@ -1,3 +1,4 @@ require 'English' require 'rubygems/command' require 'rubygems/version_option' @@ -1,3 +1,4 @@ require 'rubygems/command' require 'rubygems/local_remote_options' require 'rubygems/version_option' @@ -1,3 +1,4 @@ require 'rubygems/command' class Gem::Commands::EnvironmentCommand < Gem::Command @@ -1,3 +1,4 @@ require 'rubygems/command' require 'rubygems/local_remote_options' require 'rubygems/version_option' @@ -1,3 +1,4 @@ require 'rubygems/command' require 'rubygems/indexer' @@ -1,3 +1,4 @@ require 'rubygems/command' class Gem::Commands::HelpCommand < Gem::Command @@ -1,3 +1,4 @@ require 'rubygems/command' require 'rubygems/install_update_options' require 'rubygems/dependency_installer' @@ -1,3 +1,4 @@ require 'rubygems/command' require 'rubygems/commands/query_command' @@ -1,3 +1,4 @@ require 'rubygems/command' class Gem::Commands::LockCommand < Gem::Command @@ -1,3 +1,4 @@ require 'rubygems/command' unless defined? Gem::Commands::MirrorCommand @@ -1,3 +1,4 @@ require 'English' require 'rubygems/command' require 'rubygems/version_option' @@ -1,3 +1,4 @@ require 'rubygems/command' require 'rubygems/local_remote_options' require 'rubygems/spec_fetcher' @@ -1,3 +1,4 @@ require 'rubygems/command' require 'rubygems/local_remote_options' require 'rubygems/gemcutter_utilities' @@ -1,3 +1,4 @@ require 'rubygems/command' require 'rubygems/package' require 'rubygems/installer' @@ -1,3 +1,4 @@ require 'rubygems/command' require 'rubygems/local_remote_options' require 'rubygems/gemcutter_utilities' @@ -1,3 +1,4 @@ require 'rubygems/command' require 'rubygems/local_remote_options' require 'rubygems/spec_fetcher' @@ -1,3 +1,4 @@ require 'rubygems/command' require 'rubygems/version_option' require 'rubygems/rdoc' @@ -1,3 +1,4 @@ require 'rubygems/command' require 'rubygems/commands/query_command' @@ -1,3 +1,4 @@ require 'rubygems/command' require 'rubygems/server' @@ -1,3 +1,4 @@ require 'rubygems/command' ## @@ -1,3 +1,4 @@ require 'rubygems/command' require 'rubygems/remote_fetcher' require 'rubygems/spec_fetcher' @@ -1,3 +1,4 @@ require 'rubygems/command' require 'rubygems/local_remote_options' require 'rubygems/version_option' @@ -1,3 +1,4 @@ require 'rubygems/command' class Gem::Commands::StaleCommand < Gem::Command @@ -1,3 +1,4 @@ require 'rubygems/command' require 'rubygems/version_option' require 'rubygems/uninstaller' @@ -1,3 +1,4 @@ require 'rubygems/command' require 'rubygems/installer' require 'rubygems/version_option' @@ -1,3 +1,4 @@ require 'rubygems/command' require 'rubygems/command_manager' require 'rubygems/dependency_installer' @@ -1,3 +1,4 @@ require 'rubygems/command' class Gem::Commands::WhichCommand < Gem::Command @@ -1,3 +1,4 @@ require 'rubygems/command' require 'rubygems/local_remote_options' require 'rubygems/version_option' @@ -1,3 +1,4 @@ # :stopdoc: #-- @@ -1,3 +1,4 @@ #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. @@ -1,3 +1,4 @@ ## # RubyGems adds the #gem method to allow activation of specific gem versions # and overrides the #require method on Kernel to make gems appear as if they @@ -1,3 +1,4 @@ #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. @@ -1,3 +1,4 @@ module Gem DEFAULT_HOST = "https://rubygems.org" @@ -1,3 +1,4 @@ ## # The Dependency class holds a Gem name and a Gem::Requirement. @@ -1,3 +1,4 @@ require 'rubygems' require 'rubygems/dependency_list' require 'rubygems/package' @@ -1,3 +1,4 @@ #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. @@ -1,3 +1,4 @@ ## # Provides a single method +deprecate+ to be used to declare when # something is going away. @@ -1,3 +1,4 @@ require 'rubygems' require 'rubygems/user_interaction' @@ -1,3 +1,4 @@ #-- # This file contains all the various exceptions and other errors that are used # inside of RubyGems. @@ -1,3 +1,4 @@ # TODO: the documentation in here is terrible. # # Each exception needs a brief description and the scenarios where it is @@ -1,3 +1,4 @@ #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. @@ -1,3 +1,4 @@ ## # Raised when there is an error while building extensions. @@ -1,3 +1,4 @@ #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. @@ -1,3 +1,4 @@ require 'rubygems/command' class Gem::Ext::CmakeBuilder < Gem::Ext::Builder @@ -1,3 +1,4 @@ #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. @@ -1,3 +1,4 @@ #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. @@ -1,3 +1,4 @@ #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. @@ -1,3 +1,4 @@ #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. @@ -1,3 +1,4 @@ require 'rubygems/remote_fetcher' ## @@ -1,3 +1,4 @@ require 'rubygems' require 'rubygems/package' require 'time' @@ -1,3 +1,4 @@ require 'rubygems' require 'rubygems/user_interaction' @@ -1,3 +1,4 @@ require 'rubygems' require 'rubygems/user_interaction' @@ -1,3 +1,4 @@ #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. @@ -1,3 +1,4 @@ #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. @@ -1,3 +1,4 @@ require 'rubygems/test_case' require 'rubygems/installer' @@ -1,3 +1,4 @@ #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. @@ -1,3 +1,4 @@ require 'stringio' require 'rubygems/user_interaction' @@ -1,3 +1,4 @@ ## # # Represents a gem of name +name+ at +version+ of +platform+. These @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- #-- # Copyright (C) 2004 Mauricio Julio Fernández Pradier # See LICENSE.txt for additional licensing information. @@ -1,3 +1,4 @@ ## # IO wrapper that creates digests of contents written to the IO it wraps. @@ -1,3 +1,4 @@ ## # The primary source of gems is a file on disk, including all usages # internal to rubygems. @@ -1,3 +1,4 @@ ## # Supports reading and writing gems from/to a generic IO object. This is # useful for other applications built on top of rubygems, such as @@ -1,3 +1,4 @@ #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. @@ -1,3 +1,4 @@ class Gem::Package::Source # :nodoc: end @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- #-- # Copyright (C) 2004 Mauricio Julio Fernández Pradier # See LICENSE.txt for additional licensing information. @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- #-- # Copyright (C) 2004 Mauricio Julio Fernández Pradier # See LICENSE.txt for additional licensing information. @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- #++ # Copyright (C) 2004 Mauricio Julio Fernández Pradier # See LICENSE.txt for additional licensing information. @@ -1,3 +1,4 @@ require 'rubygems/test_case' require 'rubygems/package' @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- #-- # Copyright (C) 2004 Mauricio Julio Fernández Pradier # See LICENSE.txt for additional licensing information. @@ -1,3 +1,4 @@ # Copyright (c) 2003, 2004 Jim Weirich, 2009 Eric Hodel # # Permission is hereby granted, free of charge, to any person obtaining @@ -1,3 +1,4 @@ ## # # Gem::PathSupport facilitates the GEM_HOME and GEM_PATH environment settings @@ -1,3 +1,4 @@ require "rubygems/deprecate" ## @@ -1,3 +1,4 @@ # This exists just to satisfy bugs in marshal'd gemspecs that # contain a reference to YAML::PrivateType. We prune these out # in Specification._load, but if we don't have the constant, Marshal @@ -1,3 +1,4 @@ module Gem if defined? ::Psych::Visitors class NoAliasYAMLTree < Psych::Visitors::YAMLTree @@ -1,3 +1,4 @@ require 'rubygems' require 'rubygems/user_interaction' require 'fileutils' @@ -1,3 +1,4 @@ require 'rubygems' require 'rubygems/request' require 'rubygems/uri_formatter' @@ -1,3 +1,4 @@ require 'net/http' require 'thread' require 'time' @@ -1,3 +1,4 @@ require 'thread' class Gem::Request::ConnectionPools # :nodoc: @@ -1,3 +1,4 @@ ## # A connection "pool" that only manages one connection for now. Provides # thread safe `checkout` and `checkin` methods. The pool consists of one @@ -1,3 +1,4 @@ class Gem::Request::HTTPSPool < Gem::Request::HTTPPool # :nodoc: private @@ -1,3 +1,4 @@ require 'tsort' ## @@ -1,3 +1,4 @@ ## # A semi-compatible DSL for the Bundler Gemfile and Isolate gem dependencies # files. @@ -1,3 +1,4 @@ ## # Parses a gem.deps.rb.lock file and constructs a LockSet containing the # dependencies found inside. If the lock file is missing no LockSet is @@ -1,3 +1,4 @@ class Gem::RequestSet::Lockfile::Parser ### # Parses lockfiles @@ -1,3 +1,4 @@ require 'strscan' require 'rubygems/request_set/lockfile/parser' @@ -1,3 +1,4 @@ require "rubygems/version" require "rubygems/deprecate" @@ -1,3 +1,4 @@ require 'rubygems/dependency' require 'rubygems/exceptions' require 'rubygems/util' @@ -1,3 +1,4 @@ ## # Specifies a Specification object that should be activated. Also contains a # dependency that was used to introduce this activation. @@ -1,3 +1,4 @@ ## # The global rubygems pool, available via the rubygems.org API. # Returns instances of APISpecification. @@ -1,3 +1,4 @@ ## # Represents a specification retrieved via the rubygems.org API. # @@ -1,3 +1,4 @@ ## # The BestSet chooses the best available method to query a remote index. # @@ -1,3 +1,4 @@ ## # A ComposedSet allows multiple sets to be queried like a single set. # @@ -1,3 +1,4 @@ ## # Used internally to indicate that a dependency conflicted # with a spec that would be activated. @@ -1,3 +1,4 @@ ## # A set which represents the installed gems. Respects # all the normal settings that control where to look @@ -1,3 +1,4 @@ ## # Used Internally. Wraps a Dependency object to also track which spec # contained the Dependency. @@ -1,3 +1,4 @@ ## # A GitSet represents gems that are sourced from git repositories. # @@ -1,3 +1,4 @@ ## # A GitSpecification represents a gem that is sourced from a git repository # and is being loaded through a gem dependencies file through the +git:+ @@ -1,3 +1,4 @@ ## # The global rubygems pool represented via the traditional # source index. @@ -1,3 +1,4 @@ ## # Represents a possible Specification object returned from IndexSet. Used to # delay needed to download full Specification objects when only the +name+ @@ -1,3 +1,4 @@ ## # An InstalledSpecification represents a gem that is already installed # locally. @@ -1,3 +1,4 @@ ## # A set of gems for installation sourced from remote sources and local .gem # files @@ -1,3 +1,4 @@ ## # A LocalSpecification comes from a .gem file on the local filesystem. @@ -1,3 +1,4 @@ ## # A set of gems from a gem dependencies lockfile. @@ -1,3 +1,4 @@ ## # The LockSpecification comes from a lockfile (Gem::RequestSet::Lockfile). # @@ -1 +1,2 @@ require 'rubygems/resolver/molinillo/lib/molinillo' @@ -1,3 +1,4 @@ require 'rubygems/resolver/molinillo/lib/molinillo/gem_metadata' require 'rubygems/resolver/molinillo/lib/molinillo/errors' require 'rubygems/resolver/molinillo/lib/molinillo/resolver' @@ -1,3 +1,4 @@ require 'set' require 'tsort' @@ -1,3 +1,4 @@ module Gem::Resolver::Molinillo # An error that occurred during the resolution process class ResolverError < StandardError; end @@ -1,3 +1,4 @@ module Gem::Resolver::Molinillo VERSION = '0.4.0' end @@ -1,3 +1,4 @@ module Gem::Resolver::Molinillo # Provides information about specifcations and dependencies to the resolver, # allowing the {Resolver} class to remain generic while still providing power @@ -1,3 +1,4 @@ module Gem::Resolver::Molinillo # Conveys information about the resolution process to a user. module UI @@ -1,3 +1,4 @@ module Gem::Resolver::Molinillo class Resolver # A specific resolution from a given {Resolver} @@ -1,3 +1,4 @@ require 'rubygems/resolver/molinillo/lib/molinillo/dependency_graph' module Gem::Resolver::Molinillo @@ -1,3 +1,4 @@ module Gem::Resolver::Molinillo # A state that a {Resolution} can be in # @attr [String] name @@ -1,3 +1,4 @@ ## # The RequirementList is used to hold the requirements being considered # while resolving a set of gems. @@ -1,3 +1,4 @@ ## # Resolver sets are used to look up specifications (and their # dependencies) used in resolution. This set is abstract. @@ -1,3 +1,4 @@ ## # The Resolver::SpecSpecification contains common functionality for # Resolver specifications that are backed by a Gem::Specification. @@ -1,3 +1,4 @@ ## # A Resolver::Specification contains a subset of the information # contained in a Gem::Specification. Only the information necessary for @@ -1,3 +1,4 @@ class Gem::Resolver::Stats def initialize @max_depth = 0 @@ -1,3 +1,4 @@ ## # A VendorSet represents gems that have been unpacked into a specific # directory that contains a gemspec. @@ -1,3 +1,4 @@ ## # A VendorSpecification represents a gem that has been unpacked into a project # and is being loaded through a gem dependencies file through the +path:+ @@ -1,3 +1,4 @@ #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. @@ -1,3 +1,4 @@ module Gem::Security ## @@ -1,3 +1,4 @@ require 'rubygems/user_interaction' ## @@ -1,3 +1,4 @@ ## # Basic OpenSSL-based package signing class. @@ -1,3 +1,4 @@ ## # The TrustDir manages the trusted certificates for gem signature # verification. @@ -1,3 +1,4 @@ require 'webrick' require 'zlib' require 'erb' @@ -1,3 +1,4 @@ require 'uri' require 'fileutils' @@ -1,3 +1,4 @@ require 'digest' require 'rubygems/util' @@ -1,3 +1,4 @@ ## # Represents an installed gem. This is used for dependency resolution. @@ -1,3 +1,4 @@ ## # The local source finds gems in the current directory for fulfilling # dependencies. @@ -1,3 +1,4 @@ ## # A Lock source wraps an installed gem's source and sorts before other sources # during dependency resolution. This allows RubyGems to prefer gems from @@ -1,3 +1,4 @@ ## # A source representing a single .gem file. This is used for installation of # local gems. @@ -1,3 +1,4 @@ ## # This represents a vendored source that is similar to an installed gem. @@ -1,3 +1,4 @@ require 'rubygems/source' ## @@ -1,3 +1,4 @@ require 'rubygems/source' require 'rubygems/source_local' @@ -1,3 +1,4 @@ require 'rubygems/source/specific_file' # TODO warn upon require, this file is deprecated. @@ -1,3 +1,4 @@ require 'rubygems/remote_fetcher' require 'rubygems/user_interaction' require 'rubygems/errors' @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. @@ -1,3 +1,4 @@ ## # Gem::StubSpecification reads the stub: line from the gemspec. This prevents # us having to eval the entire gemspec in order to find out certain @@ -1,3 +1,4 @@ # :stopdoc: # Hack to handle syck's DefaultKey bug @@ -1,3 +1,4 @@ # TODO: $SAFE = 1 begin @@ -1,3 +1,4 @@ require 'tempfile' require 'rubygems' require 'rubygems/remote_fetcher' @@ -1,3 +1,4 @@ require 'rubygems' ## @@ -1,3 +1,4 @@ #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. @@ -1,3 +1,4 @@ require 'cgi' require 'uri' @@ -1,3 +1,4 @@ #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. @@ -1,3 +1,4 @@ ## # This module contains various utility methods as module methods. @@ -1,3 +1,4 @@ class Gem::Licenses NONSTANDARD = 'Nonstandard'.freeze @@ -1,3 +1,4 @@ module Gem class List include Enumerable @@ -1,3 +1,4 @@ #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. @@ -1,3 +1,4 @@ ## # The Version class processes string versions into comparable # values. A version string should normally be a series of numbers @@ -1,3 +1,4 @@ #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. |