Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove deprecated Gem.activate

It is described that "will be removed on or after 2011-10".
  • Loading branch information...
commit f35119dca6e02fb830525a3f1c66de1a2264004b 1 parent c7c9deb
@kou kou authored
Showing with 0 additions and 24 deletions.
  1. +0 −24 lib/rubygems.rb
View
24 lib/rubygems.rb
@@ -165,29 +165,6 @@ def self.try_activate path
return true
end
- ##
- # Activates an installed gem matching +dep+. The gem must satisfy
- # +requirements+.
- #
- # Returns true if the gem is activated, false if it is already
- # loaded, or an exception otherwise.
- #
- # Gem#activate adds the library paths in +dep+ to $LOAD_PATH. Before a Gem
- # is activated its required Gems are activated. If the version information
- # is omitted, the highest version Gem of the supplied name is loaded. If a
- # Gem is not found that meets the version requirements or a required Gem is
- # not found, a Gem::LoadError is raised.
- #
- # More information on version requirements can be found in the
- # Gem::Requirement and Gem::Version documentation.
-
- def self.activate(dep, *requirements)
- raise ArgumentError, "Deprecated use of Gem.activate(dep)" if
- Gem::Dependency === dep
-
- Gem::Specification.find_by_name(dep, *requirements).activate
- end
-
# DOC: This needs to be documented or nodoc'd.
def self.unresolved_deps
@@ -1306,7 +1283,6 @@ def RbConfig.datadir(package_name) # :nodoc:
module Gem
class << self
extend Gem::Deprecate
- deprecate :activate, "Specification#activate", 2011, 10
deprecate :all_load_paths, :none, 2011, 10
deprecate :all_partials, :none, 2011, 10
deprecate :latest_load_paths, :none, 2011, 10
Please sign in to comment.
Something went wrong with that request. Please try again.