summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-01 04:48:36 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-01 04:48:36 +0000
commit6e46c0485022917576837a3daafa3e05a9d1166f (patch)
tree65ef9d61c61af5cef3fe2da8a53430adf3d28e36 /lib
parentf593911dbe7dc70d53c7626db75cb63ee7421803 (diff)
* lib/rubygems/specification.rb: Don't add default gems to $LOAD_PATH
as they are already there. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems/specification.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb
index 37044dac85..23393f2025 100644
--- a/lib/rubygems/specification.rb
+++ b/lib/rubygems/specification.rb
@@ -1244,6 +1244,8 @@ class Gem::Specification
# Adds this spec's require paths to LOAD_PATH, in the proper location.
def add_self_to_load_path
+ return if default_gem?
+
paths = require_paths.map do |path|
File.join full_gem_path, path
end