aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/source_local.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/source_local.rb')
-rw-r--r--lib/rubygems/source_local.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rubygems/source_local.rb b/lib/rubygems/source_local.rb
index 07cb9e6e8f..9869158e7d 100644
--- a/lib/rubygems/source_local.rb
+++ b/lib/rubygems/source_local.rb
@@ -2,5 +2,7 @@
require 'rubygems/source'
require 'rubygems/source_local'
-# TODO warn upon require, this file is deprecated.
+unless Gem::Deprecate.skip
+ Kernel.warn "#{Gem.location_of_caller(3).join(':')}: Warning: Requiring rubygems/source_local is deprecated; please use rubygems/source/local instead."
+end