# File lib/merb-core/core_ext/kernel.rb, line 6 def dependency(name, *opts, &blk) warn "DEPRECATED: Use bundler to setup and load dependency #{name}." options = opts.last.is_a?(Hash) ? opts.pop : {} version = opts.pop unless opts.empty? if version warn "DEPRECATED: You want to load gem #{name} with specific version " \ "#{version}. This feature is not supported and the LATEST VERSION " \ "OF THE GEM WILL BE LOADED." end require (options[:require_as] ? options[:require_as] : name) nil end