summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2013-02-13 12:28:44 -0800
committerAndre Arko <andre@arko.net>2013-02-13 19:43:51 -0800
commitd30026e9c8fc6c98478120866a47ca5b619251b8 (patch)
tree287234fc29497e759d9028fd46dba15322615707
parentbc4403b1afb9b14e7214af96446dcc64c839fcfd (diff)
downloadbundler-d30026e9c8fc6c98478120866a47ca5b619251b8.tar.gz
warn on deprecated symbol source
-rw-r--r--lib/bundler/dsl.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb
index 2ab4d82a00..61b6d00bc3 100644
--- a/lib/bundler/dsl.rb
+++ b/lib/bundler/dsl.rb
@@ -107,6 +107,9 @@ module Bundler
def source(source, options = {})
case source
when :gemcutter, :rubygems, :rubyforge then
+ Bundler.ui.warn "The source :#{source} is deprecated because HTTP " \
+ "requests are insecure.\nPlease change your source to 'https://" \
+ "rubygems.org' if possible, or 'http://rubygems.org' if not."
@rubygems_source.add_remote "https://rubygems.org"
return
when String