summaryrefslogtreecommitdiff
path: root/lib/rubygems/source_index.rb
diff options
context:
space:
mode:
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