diff options
author | Andre Arko <andre@arko.net> | 2013-02-13 12:28:44 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2013-02-13 14:17:52 -0800 |
commit | 6a99fe4b8fc5be6459701a4408f6bc83fba0ecab (patch) | |
tree | 706c4eda65ba7100b299a5f2ebd8c5347490218e | |
parent | 72fabb1b77b2f9f16e80d4551fc22cf9c102783a (diff) | |
download | bundler-6a99fe4b8fc5be6459701a4408f6bc83fba0ecab.tar.gz |
warn on deprecated symbol source
-rw-r--r-- | lib/bundler/dsl.rb | 3 |
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 |