2007-11-10 02:48:56 -05:00
|
|
|
#--
|
|
|
|
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
|
|
|
|
# All rights reserved.
|
|
|
|
# See LICENSE.txt for permissions.
|
|
|
|
#++
|
|
|
|
|
|
|
|
require 'rubygems/specification'
|
2011-05-31 23:45:05 -04:00
|
|
|
require 'rubygems/deprecate'
|
2009-06-09 17:38:59 -04:00
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
##
|
|
|
|
# The SourceIndex object indexes all the gems available from a
|
|
|
|
# particular source (e.g. a list of gem directories, or a remote
|
|
|
|
# source). A SourceIndex maps a gem full name to a gem
|
|
|
|
# specification.
|
|
|
|
#
|
|
|
|
# NOTE:: The class used to be named Cache, but that became
|
|
|
|
# confusing when cached source fetchers where introduced. The
|
|
|
|
# constant Gem::Cache is an alias for this class to allow old
|
|
|
|
# YAMLized source index objects to load properly.
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
class Gem::SourceIndex
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
include Enumerable
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2009-12-08 02:19:09 -05:00
|
|
|
attr_reader :gems # :nodoc:
|
2008-04-11 16:57:02 -04:00
|
|
|
|
2008-06-17 18:04:18 -04:00
|
|
|
##
|
|
|
|
# Directories to use to refresh this SourceIndex when calling refresh!
|
|
|
|
|
|
|
|
attr_accessor :spec_dirs
|
|
|
|
|
2011-05-31 23:45:05 -04:00
|
|
|
##
|
|
|
|
# Factory method to construct a source index instance for a given
|
|
|
|
# path.
|
|
|
|
#
|
|
|
|
# deprecated::
|
|
|
|
# If supplied, from_installed_gems will act just like
|
|
|
|
# +from_gems_in+. This argument is deprecated and is provided
|
|
|
|
# just for backwards compatibility, and should not generally
|
|
|
|
# be used.
|
|
|
|
#
|
|
|
|
# return::
|
|
|
|
# SourceIndex instance
|
|
|
|
|
|
|
|
def self.from_installed_gems(*deprecated)
|
|
|
|
if deprecated.empty?
|
|
|
|
from_gems_in(*installed_spec_directories)
|
|
|
|
else
|
|
|
|
warn "NOTE: from_installed_gems(arg) is deprecated. From #{caller.first}"
|
|
|
|
from_gems_in(*deprecated) # HACK warn
|
2008-03-31 18:40:06 -04:00
|
|
|
end
|
2011-05-31 23:45:05 -04:00
|
|
|
end
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2011-05-31 23:45:05 -04:00
|
|
|
##
|
|
|
|
# Returns a list of directories from Gem.path that contain specifications.
|
2008-03-31 18:40:06 -04:00
|
|
|
|
2011-05-31 23:45:05 -04:00
|
|
|
def self.installed_spec_directories
|
|
|
|
# TODO: move to Gem::Utils
|
|
|
|
Gem.path.collect { |dir| File.join(dir, "specifications") }
|
|
|
|
end
|
2008-03-31 18:40:06 -04:00
|
|
|
|
2011-05-31 23:45:05 -04:00
|
|
|
##
|
|
|
|
# Creates a new SourceIndex from the ruby format gem specifications in
|
|
|
|
# +spec_dirs+.
|
2008-03-31 18:40:06 -04:00
|
|
|
|
2011-05-31 23:45:05 -04:00
|
|
|
def self.from_gems_in(*spec_dirs)
|
|
|
|
new spec_dirs
|
|
|
|
end
|
2008-03-31 18:40:06 -04:00
|
|
|
|
2011-05-31 23:45:05 -04:00
|
|
|
##
|
|
|
|
# Loads a ruby-format specification from +file_name+ and returns the
|
|
|
|
# loaded spec.
|
2008-03-31 18:40:06 -04:00
|
|
|
|
2011-05-31 23:45:05 -04:00
|
|
|
def self.load_specification(file_name)
|
2011-10-03 18:15:47 -04:00
|
|
|
Gem::Deprecate.skip_during do
|
2011-05-31 23:45:05 -04:00
|
|
|
Gem::Specification.load Gem::Path.new(file_name)
|
2007-11-10 02:48:56 -05:00
|
|
|
end
|
2008-03-31 18:40:06 -04:00
|
|
|
end
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
##
|
2009-06-09 17:38:59 -04:00
|
|
|
# Constructs a source index instance from the provided specifications, which
|
|
|
|
# is a Hash of gem full names and Gem::Specifications.
|
2008-03-31 18:40:06 -04:00
|
|
|
|
2011-05-31 23:45:05 -04:00
|
|
|
def initialize specs_or_dirs = []
|
2009-12-08 02:19:09 -05:00
|
|
|
@gems = {}
|
2008-06-17 18:04:18 -04:00
|
|
|
@spec_dirs = nil
|
2011-05-31 23:45:05 -04:00
|
|
|
|
|
|
|
case specs_or_dirs
|
|
|
|
when Hash then
|
|
|
|
specs_or_dirs.each do |full_name, spec|
|
|
|
|
add_spec spec
|
|
|
|
end
|
|
|
|
when Array, String then
|
|
|
|
self.spec_dirs = Array(specs_or_dirs)
|
|
|
|
refresh!
|
|
|
|
else
|
|
|
|
arg = specs_or_dirs.inspect
|
|
|
|
warn "NOTE: SourceIndex.new(#{arg}) is deprecated; From #{caller.first}."
|
|
|
|
end
|
2008-03-31 18:40:06 -04:00
|
|
|
end
|
|
|
|
|
2009-06-09 17:38:59 -04:00
|
|
|
def all_gems
|
2011-05-31 23:45:05 -04:00
|
|
|
gems
|
2009-12-08 02:19:09 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def prerelease_gems
|
2011-05-31 23:45:05 -04:00
|
|
|
@gems.reject { |name, gem| !gem.version.prerelease? }
|
2009-12-08 02:19:09 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def released_gems
|
2011-05-31 23:45:05 -04:00
|
|
|
@gems.reject { |name, gem| gem.version.prerelease? }
|
2009-06-09 17:38:59 -04:00
|
|
|
end
|
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
##
|
|
|
|
# Reconstruct the source index from the specifications in +spec_dirs+.
|
|
|
|
|
|
|
|
def load_gems_in(*spec_dirs)
|
|
|
|
@gems.clear
|
|
|
|
|
|
|
|
spec_dirs.reverse_each do |spec_dir|
|
2011-05-31 23:45:05 -04:00
|
|
|
spec_files = Dir[File.join(spec_dir, "*.gemspec")]
|
2008-03-31 18:40:06 -04:00
|
|
|
|
|
|
|
spec_files.each do |spec_file|
|
2011-10-03 18:15:47 -04:00
|
|
|
gemspec = Gem::Deprecate.skip_during do
|
2011-05-31 23:45:05 -04:00
|
|
|
Gem::Specification.load spec_file
|
|
|
|
end
|
2008-03-31 18:40:06 -04:00
|
|
|
add_spec gemspec if gemspec
|
2007-11-10 02:48:56 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
self
|
|
|
|
end
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
##
|
2009-12-08 02:19:09 -05:00
|
|
|
# Returns an Array specifications for the latest released versions
|
|
|
|
# of each gem in this index.
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2011-03-01 04:41:32 -05:00
|
|
|
def latest_specs(include_prerelease=false)
|
2008-03-31 18:40:06 -04:00
|
|
|
result = Hash.new { |h,k| h[k] = [] }
|
|
|
|
latest = {}
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
sort.each do |_, spec|
|
|
|
|
name = spec.name
|
|
|
|
curr_ver = spec.version
|
|
|
|
prev_ver = latest.key?(name) ? latest[name].version : nil
|
|
|
|
|
2011-03-01 04:41:32 -05:00
|
|
|
next if !include_prerelease && curr_ver.prerelease?
|
2008-03-31 18:40:06 -04:00
|
|
|
next unless prev_ver.nil? or curr_ver >= prev_ver or
|
|
|
|
latest[name].platform != Gem::Platform::RUBY
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
if prev_ver.nil? or
|
|
|
|
(curr_ver > prev_ver and spec.platform == Gem::Platform::RUBY) then
|
|
|
|
result[name].clear
|
|
|
|
latest[name] = spec
|
2007-11-10 02:48:56 -05:00
|
|
|
end
|
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
if spec.platform != Gem::Platform::RUBY then
|
|
|
|
result[name].delete_if do |result_spec|
|
|
|
|
result_spec.platform == spec.platform
|
|
|
|
end
|
|
|
|
end
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
result[name] << spec
|
2007-11-10 02:48:56 -05:00
|
|
|
end
|
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
result.values.flatten
|
|
|
|
end
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2009-06-09 17:38:59 -04:00
|
|
|
##
|
|
|
|
# An array including only the prerelease gemspecs
|
|
|
|
|
|
|
|
def prerelease_specs
|
2009-12-08 02:19:09 -05:00
|
|
|
prerelease_gems.values
|
|
|
|
end
|
|
|
|
|
|
|
|
##
|
|
|
|
# An array including only the released gemspecs
|
|
|
|
|
|
|
|
def released_specs
|
|
|
|
released_gems.values
|
2009-06-09 17:38:59 -04:00
|
|
|
end
|
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
##
|
|
|
|
# Add a gem specification to the source index.
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2009-06-09 17:38:59 -04:00
|
|
|
def add_spec(gem_spec, name = gem_spec.full_name)
|
|
|
|
# No idea why, but the Indexer wants to insert them using original_name
|
|
|
|
# instead of full_name. So we make it an optional arg.
|
2009-12-08 02:19:09 -05:00
|
|
|
@gems[name] = gem_spec
|
2008-03-31 18:40:06 -04:00
|
|
|
end
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
##
|
|
|
|
# Add gem specifications to the source index.
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
def add_specs(*gem_specs)
|
2011-10-03 18:15:47 -04:00
|
|
|
Gem::Deprecate.skip_during do
|
2011-07-26 21:40:07 -04:00
|
|
|
gem_specs.each do |spec|
|
|
|
|
add_spec spec
|
|
|
|
end
|
2007-11-10 02:48:56 -05:00
|
|
|
end
|
2008-03-31 18:40:06 -04:00
|
|
|
end
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
##
|
|
|
|
# Remove a gem specification named +full_name+.
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
def remove_spec(full_name)
|
2009-12-08 02:19:09 -05:00
|
|
|
@gems.delete full_name
|
2008-03-31 18:40:06 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
##
|
|
|
|
# Iterate over the specifications in the source index.
|
|
|
|
|
|
|
|
def each(&block) # :yields: gem.full_name, gem
|
|
|
|
@gems.each(&block)
|
|
|
|
end
|
|
|
|
|
|
|
|
##
|
|
|
|
# The gem specification given a full gem spec name.
|
|
|
|
|
|
|
|
def specification(full_name)
|
|
|
|
@gems[full_name]
|
|
|
|
end
|
|
|
|
|
|
|
|
##
|
|
|
|
# The signature for the source index. Changes in the signature indicate a
|
|
|
|
# change in the index.
|
|
|
|
|
|
|
|
def index_signature
|
2009-06-09 17:38:59 -04:00
|
|
|
require 'digest'
|
2008-03-31 18:40:06 -04:00
|
|
|
|
2009-06-09 17:38:59 -04:00
|
|
|
Digest::SHA256.new.hexdigest(@gems.keys.sort.join(',')).to_s
|
2008-03-31 18:40:06 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
##
|
|
|
|
# The signature for the given gem specification.
|
|
|
|
|
|
|
|
def gem_signature(gem_full_name)
|
2009-06-09 17:38:59 -04:00
|
|
|
require 'digest'
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2009-06-09 17:38:59 -04:00
|
|
|
Digest::SHA256.new.hexdigest(@gems[gem_full_name].to_yaml).to_s
|
2008-03-31 18:40:06 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def size
|
|
|
|
@gems.size
|
|
|
|
end
|
|
|
|
alias length size
|
|
|
|
|
|
|
|
##
|
|
|
|
# Find a gem by an exact match on the short name.
|
|
|
|
|
2011-01-18 19:08:49 -05:00
|
|
|
def find_name(gem_name, requirement = Gem::Requirement.default)
|
|
|
|
dep = Gem::Dependency.new gem_name, requirement
|
2011-05-31 23:45:05 -04:00
|
|
|
|
2011-10-03 18:15:47 -04:00
|
|
|
Gem::Deprecate.skip_during do
|
2011-05-31 23:45:05 -04:00
|
|
|
search dep
|
|
|
|
end
|
2008-03-31 18:40:06 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
##
|
|
|
|
# Search for a gem by Gem::Dependency +gem_pattern+. If +only_platform+
|
|
|
|
# is true, only gems matching Gem::Platform.local will be returned. An
|
|
|
|
# Array of matching Gem::Specification objects is returned.
|
|
|
|
#
|
|
|
|
# For backwards compatibility, a String or Regexp pattern may be passed as
|
|
|
|
# +gem_pattern+, and a Gem::Requirement for +platform_only+. This
|
|
|
|
# behavior is deprecated and will be removed.
|
|
|
|
|
2011-05-31 23:45:05 -04:00
|
|
|
def search(gem_pattern, platform_or_requirement = false)
|
2011-01-18 19:08:49 -05:00
|
|
|
requirement = nil
|
2011-05-31 23:45:05 -04:00
|
|
|
only_platform = false # FIX: WTF is this?!?
|
2008-03-31 18:40:06 -04:00
|
|
|
|
2008-09-25 06:13:50 -04:00
|
|
|
# TODO - Remove support and warning for legacy arguments after 2008/11
|
|
|
|
unless Gem::Dependency === gem_pattern
|
2009-06-09 17:38:59 -04:00
|
|
|
warn "#{Gem.location_of_caller.join ':'}:Warning: Gem::SourceIndex#search support for #{gem_pattern.class} patterns is deprecated, use #find_name"
|
2008-09-25 06:13:50 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
case gem_pattern
|
2008-03-31 18:40:06 -04:00
|
|
|
when Regexp then
|
2011-05-31 23:45:05 -04:00
|
|
|
requirement = platform_or_requirement || Gem::Requirement.default
|
2008-03-31 18:40:06 -04:00
|
|
|
when Gem::Dependency then
|
2011-05-31 23:45:05 -04:00
|
|
|
only_platform = platform_or_requirement
|
2011-01-18 19:08:49 -05:00
|
|
|
requirement = gem_pattern.requirement
|
2011-03-01 04:41:32 -05:00
|
|
|
|
2008-06-17 18:04:18 -04:00
|
|
|
gem_pattern = if Regexp === gem_pattern.name then
|
|
|
|
gem_pattern.name
|
|
|
|
elsif gem_pattern.name.empty? then
|
2008-03-31 18:40:06 -04:00
|
|
|
//
|
|
|
|
else
|
|
|
|
/^#{Regexp.escape gem_pattern.name}$/
|
|
|
|
end
|
|
|
|
else
|
2011-05-31 23:45:05 -04:00
|
|
|
requirement = platform_or_requirement || Gem::Requirement.default
|
2008-03-31 18:40:06 -04:00
|
|
|
gem_pattern = /#{gem_pattern}/i
|
2007-12-20 03:39:12 -05:00
|
|
|
end
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2011-01-18 19:08:49 -05:00
|
|
|
unless Gem::Requirement === requirement then
|
|
|
|
requirement = Gem::Requirement.create requirement
|
2007-11-10 02:48:56 -05:00
|
|
|
end
|
|
|
|
|
2011-05-31 23:45:05 -04:00
|
|
|
specs = @gems.values.select do |spec|
|
2008-03-31 18:40:06 -04:00
|
|
|
spec.name =~ gem_pattern and
|
2011-01-18 19:08:49 -05:00
|
|
|
requirement.satisfied_by? spec.version
|
2008-03-31 18:40:06 -04:00
|
|
|
end
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
if only_platform then
|
|
|
|
specs = specs.select do |spec|
|
|
|
|
Gem::Platform.match spec.platform
|
2007-11-10 02:48:56 -05:00
|
|
|
end
|
2008-03-31 18:40:06 -04:00
|
|
|
end
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
specs.sort_by { |s| s.sort_obj }
|
|
|
|
end
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
##
|
2008-04-11 16:57:02 -04:00
|
|
|
# Replaces the gems in the source index from specifications in the
|
2008-06-17 18:04:18 -04:00
|
|
|
# directories this source index was created from. Raises an exception if
|
|
|
|
# this source index wasn't created from a directory (via from_gems_in or
|
|
|
|
# from_installed_gems, or having spec_dirs set).
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
def refresh!
|
2008-06-17 18:04:18 -04:00
|
|
|
raise 'source index not created from disk' if @spec_dirs.nil?
|
|
|
|
load_gems_in(*@spec_dirs)
|
2008-03-31 18:40:06 -04:00
|
|
|
end
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
##
|
|
|
|
# Returns an Array of Gem::Specifications that are not up to date.
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
def outdated
|
|
|
|
outdateds = []
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
latest_specs.each do |local|
|
2008-06-17 19:59:31 -04:00
|
|
|
dependency = Gem::Dependency.new local.name, ">= #{local.version}"
|
2008-06-17 18:04:18 -04:00
|
|
|
|
2011-01-18 19:08:49 -05:00
|
|
|
fetcher = Gem::SpecFetcher.fetcher
|
|
|
|
remotes = fetcher.find_matching dependency
|
|
|
|
remotes = remotes.map { |(_, version, _), _| version }
|
2008-06-17 18:04:18 -04:00
|
|
|
|
|
|
|
latest = remotes.sort.last
|
|
|
|
|
2008-06-17 19:59:31 -04:00
|
|
|
outdateds << local.name if latest and local.version < latest
|
2007-11-10 02:48:56 -05:00
|
|
|
end
|
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
outdateds
|
|
|
|
end
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
def ==(other) # :nodoc:
|
2009-12-08 02:19:09 -05:00
|
|
|
self.class === other and @gems == other.gems
|
2008-03-31 18:40:06 -04:00
|
|
|
end
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2008-03-31 18:40:06 -04:00
|
|
|
def dump
|
|
|
|
Marshal.dump(self)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2009-06-09 17:38:59 -04:00
|
|
|
# :stopdoc:
|
2008-03-31 18:40:06 -04:00
|
|
|
module Gem
|
|
|
|
|
2009-06-09 17:38:59 -04:00
|
|
|
##
|
2008-03-31 18:40:06 -04:00
|
|
|
# Cache is an alias for SourceIndex to allow older YAMLized source index
|
|
|
|
# objects to load properly.
|
2007-11-10 02:48:56 -05:00
|
|
|
|
2009-06-09 17:38:59 -04:00
|
|
|
Cache = SourceIndex
|
2008-03-31 18:40:06 -04:00
|
|
|
|
2007-11-10 02:48:56 -05:00
|
|
|
end
|
|
|
|
|
2011-05-31 23:45:05 -04:00
|
|
|
class Gem::SourceIndex
|
2011-10-03 18:15:47 -04:00
|
|
|
extend Gem::Deprecate
|
2011-05-31 23:45:05 -04:00
|
|
|
|
|
|
|
deprecate :all_gems, :none, 2011, 10
|
|
|
|
|
|
|
|
deprecate :==, :none, 2011, 11 # noisy
|
|
|
|
deprecate :add_specs, :none, 2011, 11 # noisy
|
|
|
|
deprecate :each, :none, 2011, 11
|
|
|
|
deprecate :gems, :none, 2011, 11
|
|
|
|
deprecate :load_gems_in, :none, 2011, 11
|
|
|
|
deprecate :refresh!, :none, 2011, 11
|
|
|
|
deprecate :spec_dirs=, "Specification.dirs=", 2011, 11 # noisy
|
|
|
|
deprecate :add_spec, "Specification.add_spec", 2011, 11
|
|
|
|
deprecate :find_name, "Specification.find_by_name", 2011, 11
|
|
|
|
deprecate :gem_signature, :none, 2011, 11
|
|
|
|
deprecate :index_signature, :none, 2011, 11
|
|
|
|
deprecate :initialize, :none, 2011, 11
|
|
|
|
deprecate :latest_specs, "Specification.latest_specs", 2011, 11
|
|
|
|
deprecate :length, "Specification.all.length", 2011, 11
|
|
|
|
deprecate :outdated, :none, 2011, 11
|
|
|
|
deprecate :prerelease_gems, :none, 2011, 11
|
|
|
|
deprecate :prerelease_specs, :none, 2011, 11
|
|
|
|
deprecate :released_gems, :none, 2011, 11
|
|
|
|
deprecate :released_specs, :none, 2011, 11
|
|
|
|
deprecate :remove_spec, "Specification.remove_spec", 2011, 11
|
|
|
|
deprecate :search, :none, 2011, 11
|
|
|
|
deprecate :size, "Specification.all.size", 2011, 11
|
|
|
|
deprecate :spec_dirs, "Specification.dirs", 2011, 11
|
|
|
|
deprecate :specification, "Specification.find", 2011, 11
|
|
|
|
|
|
|
|
class << self
|
2011-10-03 18:15:47 -04:00
|
|
|
extend Gem::Deprecate
|
2011-05-31 23:45:05 -04:00
|
|
|
|
|
|
|
deprecate :from_gems_in, :none, 2011, 10
|
|
|
|
deprecate :from_installed_gems, :none, 2011, 10
|
|
|
|
deprecate :installed_spec_directories, "Specification.dirs", 2011, 11
|
|
|
|
deprecate :load_specification, :none, 2011, 10
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# :startdoc:
|