Module: Kernel

Defined in:
lib/eyrubygems.rb

Instance Method Summary collapse

Instance Method Details

#require_gem(gem_name, *version_requirements) ⇒ Object

Same as the gem command, but will also require a file if the gem provides an auto-required file name.

DEPRECATED! Use gem instead.



7
8
9
10
11
# File 'lib/eyrubygems.rb', line 7

def require_gem(gem_name, *version_requirements)
  file, lineno = Gem.send(:location_of_caller)
  warn "#{file}:#{lineno}:Warning: require_gem is obsolete.  Use the 'gem' method instead, and contact the gem author about updating this gem."
  gem(gem_name, *version_requirements)
end