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 14:17:52 -0800
commit6a99fe4b8fc5be6459701a4408f6bc83fba0ecab (patch)
tree706c4eda65ba7100b299a5f2ebd8c5347490218e
parent72fabb1b77b2f9f16e80d4551fc22cf9c102783a (diff)
downloadbundler-6a99fe4b8fc5be6459701a4408f6bc83fba0ecab.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 d07a491c00..6d76d16136 100644
--- a/lib/bundler/dsl.rb
+++ b/lib/bundler/dsl.rb
@@ -104,6 +104,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 "http://rubygems.org"
return
when String