Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
warn on deprecated symbol source
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Feb 14, 2013
1 parent bc4403b commit d30026e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/bundler/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ def gem(name, *args)
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
Expand Down

0 comments on commit d30026e

Please sign in to comment.