Permalink
Browse files

Remove deprecated Gem.latest_load_paths

It is described that "will be removed on or after 2011-10".
  • Loading branch information...
1 parent 01cb480 commit 617e83d1851611d940e2dae79f258a8e35f94723 @kou kou committed Sep 16, 2012
Showing with 0 additions and 30 deletions.
  1. +0 −17 lib/rubygems.rb
  2. +0 −13 test/rubygems/test_gem.rb
View
@@ -544,22 +544,6 @@ def self.host= host
end
##
- # Return a list of all possible load paths for the latest version for all
- # gems in the Gem installation.
-
- def self.latest_load_paths
- result = []
-
- Gem.path.each do |gemdir|
- each_load_path(latest_partials(gemdir)) do |load_path|
- result << load_path
- end
- end
-
- result
- end
-
- ##
# Return only the latest partial paths in the given +gemdir+.
def self.latest_partials(gemdir)
@@ -1268,7 +1252,6 @@ module Gem
class << self
extend Gem::Deprecate
deprecate :all_partials, :none, 2011, 10
- deprecate :latest_load_paths, :none, 2011, 10
deprecate :promote_load_path, :none, 2011, 10
deprecate :available?, "Specification::find_by_name", 2011, 11
deprecate :cache_dir, "Specification#cache_dir", 2011, 11
View
@@ -1254,19 +1254,6 @@ def test_load_env_plugins
assert_equal :loaded, TEST_PLUGIN_EXCEPTION rescue nil
end
- def test_latest_load_paths
- spec = quick_spec 'a', '4' do |s|
- s.require_paths = ["lib"]
- end
-
- install_gem spec
-
- Gem::Deprecate.skip_during do
- expected = [File.join(@gemhome, "gems", "a-4", "lib")]
- assert_equal expected, Gem.latest_load_paths
- end
- end
-
def test_gem_path_ordering
refute_equal Gem.dir, Gem.user_dir

0 comments on commit 617e83d

Please sign in to comment.