summaryrefslogtreecommitdiff
path: root/lib/bundler/rubygems_ext.rb
diff options
context:
space:
mode:
authorwycats <wycats@gmail.com>2010-07-15 20:58:03 -0500
committerwycats <wycats@gmail.com>2010-07-15 22:43:45 -0500
commit7078db948751cdc4626bd65509f65bdc371656ba (patch)
tree5b46a66b73a2cbadf1ae2ef24eee483ce32dfdb0 /lib/bundler/rubygems_ext.rb
parenta0082b979c0c60b0ba49fce99c173d80794c3d50 (diff)
downloadbundler-7078db948751cdc4626bd65509f65bdc371656ba.tar.gz
Actually test #gemspec and deprecate #add_bundler_dependencies
Diffstat (limited to 'lib/bundler/rubygems_ext.rb')
-rw-r--r--lib/bundler/rubygems_ext.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bundler/rubygems_ext.rb b/lib/bundler/rubygems_ext.rb
index 2eb81b3778..8429d439a3 100644
--- a/lib/bundler/rubygems_ext.rb
+++ b/lib/bundler/rubygems_ext.rb
@@ -111,6 +111,11 @@ module Gem
end
def add_bundler_dependencies(*groups)
+ Bundler.ui.warn "#add_bundler_dependencies is deprecated and will " \
+ "be removed in Bundler 1.0. Instead, please use the #gemspec method " \
+ "in your Gemfile, which will pull in any dependencies specified in " \
+ "your gemspec"
+
groups = [:default] if groups.empty?
Bundler.definition.dependencies.each do |dep|
if dep.groups.include?(:development)