aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/source_index.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-03 22:15:47 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-03 22:15:47 +0000
commit90dfc8f99e774e5ed71b4ed09a14bb75febca936 (patch)
tree0af79c194babaff80ac2edc9b69f9d5df654e704 /lib/rubygems/source_index.rb
parent9167328359b472b7aacd1afda2118cff702d3d3a (diff)
downloadruby-90dfc8f99e774e5ed71b4ed09a14bb75febca936.tar.gz
* lib/rubygems: Update to RubyGems 1.8.11. Move Deprecate into the
Gem namespace. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/source_index.rb')
-rw-r--r--lib/rubygems/source_index.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/rubygems/source_index.rb b/lib/rubygems/source_index.rb
index 7ddbc23485..1fe92c0a80 100644
--- a/lib/rubygems/source_index.rb
+++ b/lib/rubygems/source_index.rb
@@ -72,7 +72,7 @@ class Gem::SourceIndex
# loaded spec.
def self.load_specification(file_name)
- Deprecate.skip_during do
+ Gem::Deprecate.skip_during do
Gem::Specification.load Gem::Path.new(file_name)
end
end
@@ -121,7 +121,7 @@ class Gem::SourceIndex
spec_files = Dir[File.join(spec_dir, "*.gemspec")]
spec_files.each do |spec_file|
- gemspec = Deprecate.skip_during do
+ gemspec = Gem::Deprecate.skip_during do
Gem::Specification.load spec_file
end
add_spec gemspec if gemspec
@@ -193,7 +193,7 @@ class Gem::SourceIndex
# Add gem specifications to the source index.
def add_specs(*gem_specs)
- Deprecate.skip_during do
+ Gem::Deprecate.skip_during do
gem_specs.each do |spec|
add_spec spec
end
@@ -251,7 +251,7 @@ class Gem::SourceIndex
def find_name(gem_name, requirement = Gem::Requirement.default)
dep = Gem::Dependency.new gem_name, requirement
- Deprecate.skip_during do
+ Gem::Deprecate.skip_during do
search dep
end
end
@@ -364,7 +364,7 @@ module Gem
end
class Gem::SourceIndex
- extend Deprecate
+ extend Gem::Deprecate
deprecate :all_gems, :none, 2011, 10
@@ -394,7 +394,7 @@ class Gem::SourceIndex
deprecate :specification, "Specification.find", 2011, 11
class << self
- extend Deprecate
+ extend Gem::Deprecate
deprecate :from_gems_in, :none, 2011, 10
deprecate :from_installed_gems, :none, 2011, 10