<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -120,6 +120,7 @@ module Kernel
   # :api: public
   # @deprecated
   def dependency(name, *opts, &amp;blk)
+    warn(&quot;DEPRECATED: Use bundler to setup and load dependency #{name}.&quot;)
     immediate = opts.last.delete(:immediate) if opts.last.is_a?(Hash)
     if immediate || Merb::BootLoader.finished?(Merb::BootLoader::Dependencies)
       load_dependency(name, caller, *opts, &amp;blk)
@@ -265,4 +266,4 @@ module Kernel
     Merb.logger.warn!(&quot;The #{template_engine_plugin} gem was not found.  You may need to install it.&quot;)
     raise e
   end
-end
\ No newline at end of file
+end</diff>
      <filename>merb-core/lib/merb-core/core_ext/dependencies.rb</filename>
    </modified>
    <modified>
      <diff>@@ -19,4 +19,17 @@ describe &quot;Kernel#extract_options_from_args!&quot; do
     Kernel.extract_options_from_args!(args).should == {:baz =&gt; :bar}
     args.should == [&quot;foo&quot;, &quot;bar&quot;]
   end
-end
\ No newline at end of file
+end
+
+describe &quot;Kernel#dependencies&quot; do
+  it &quot;should warn that dependency() is deprecated&quot; do
+    warning = 'DEPRECATED: Use bundler to setup and load dependency hpricot.'
+    Kernel.should_receive(:warn).with(warning)
+    Kernel.dependency(&quot;hpricot&quot;)
+  end
+
+  it &quot;should warn that dependency() is deprecated&quot; do
+    Kernel.should_receive(:warn).twice
+    Kernel.dependencies(&quot;hpricot&quot;, &quot;rspec&quot;)
+  end
+end</diff>
      <filename>merb-core/spec/private/core_ext/kernel_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0f087f6a269b6b5fe39404ab4c5938bd56d859f8</id>
    </parent>
  </parents>
  <author>
    <name>Pavel Kunc</name>
    <email>pavel.kunc@gmail.com</email>
  </author>
  <url>http://github.com/wycats/merb/commit/e5b8f886a2ab8804ca2863d4e146ed28da0debe4</url>
  <id>e5b8f886a2ab8804ca2863d4e146ed28da0debe4</id>
  <committed-date>2009-10-14T02:34:46-07:00</committed-date>
  <authored-date>2009-10-13T17:51:58-07:00</authored-date>
  <message>[merb-core] Keep deprecation warning for dependency().</message>
  <tree>ed5f823513d4c5e10e7244d9dbf8f5fc4f645e2e</tree>
  <committer>
    <name>Pavel Kunc</name>
    <email>pavel.kunc@gmail.com</email>
  </committer>
</commit>
