ruby-win32/lib/ruby/site_ruby/1.8/rubygems.rb
def active_gem_with_options(gem_name, version_requirements, options={})
    skip_list = (ENV['GEM_SKIP'] || "").split(/:/)
    raise Gem::LoadError, "skipping #{gem_name}" if skip_list.include? gem_name
    Gem.activate(gem_name, options[:auto_require], *version_requirements)
  end
# Adds a Ruby Gem to the $LOAD_PATH.  Before a Gem is loaded, its
# required Gems are loaded.  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 requirement and/or a required
# Gem is not found, a Gem::LoadError is raised. More information on
# version requirements can be found in the Gem::Version
# documentation.
#
# The +gem+ directive should be executed *before* any require
# statements (otherwise rubygems might select a conflicting library
# version).
#
# You can define the environment variable GEM_SKIP as a way to not
# load specified gems.  You might do this to test out changes that
# haven't been installed yet.  Example:
#
#   GEM_SKIP=libA:libB ruby-I../libA -I../libB ./mycode.rb
#
# gem:: [String or Gem::Dependency] The gem name or dependency
#       instance.
#
# version_requirement:: [default=">= 0"] The version
#                       requirement.
#
# return:: [Boolean] true if the Gem is loaded, otherwise false.
#
# raises:: [Gem::LoadError] if Gem cannot be found, is listed in
#          GEM_SKIP, or version requirement not met.
#
Adds a Ruby Gem to the $LOAD_PATH.  Before a Gem is loaded, its
required Gems are loaded.  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 requirement and/or a required
Gem is not found, a Gem::LoadError is raised. More information on
version requirements can be found in the Gem::Version
documentation.

The +gem+ directive should be executed *before* any require
statements (otherwise rubygems might select a conflicting library
version).

You can define the environment variable GEM_SKIP as a way to not
load specified gems.  You might do this to test out changes that
haven't been installed yet.  Example.



: [String or Gem::Dependency] The gem name or dependency
instance.

: [default=">= 0"] The version
requirement.

: [Boolean] true if the Gem is loaded, otherwise false.

: [Gem::LoadError] if Gem cannot be found, is listed in
GEM_SKIP, or version requirement not met.
Adds a Ruby Gem to the $LOAD_PATH . Before a Gem is loaded its required Gems are loaded . 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 requirement and / or a required Gem is not found a Gem :: LoadError is raised . More information on version requirements can be found in the Gem :: Version documentation . The + gem + directive should be executed * before * any require statements ( otherwise rubygems might select a conflicting library version ) . You can define the environment variable GEM_SKIP as a way to not load specified gems . You might do this to test out changes that haven ' t been installed yet . Example . : [ String or Gem :: Dependency ] The gem name or dependency instance . : [ default = " > = 0 " ] The version requirement . : [ Boolean ] true if the Gem is loaded otherwise false . : [ Gem :: LoadError ] if Gem cannot be found is listed in GEM_SKIP or version requirement not met .
def active_gem_with_options(gem_name, version_requirements, options={})
    skip_list = (ENV['GEM_SKIP'] || "").split(/:/)
    raise Gem::LoadError, "skipping #{gem_name}" if skip_list.include? gem_name
    Gem.activate(gem_name, options[:auto_require], *version_requirements)
  end
def active_gem_with_options ( gem_name , version_requirements , options = { } ) skip_list = ( ENV [ 'GEM_SKIP' ] || "" ) . split ( / : / ) raise Gem :: LoadError , "skipping #{gem_name}" if skip_list . include? gem_name Gem . activate ( gem_name , options [ :auto_require ] , * version_requirements ) end
Adds a Ruby Gem to the $LOAD_PATH.
Adds a Ruby Gem to the $LOAD_PATH .
gem_name
version_requirements
options