diff --git a/ChangeLog b/ChangeLog index 4fd5c76d6f..0c40a7669c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Dec 1 13:48:13 2012 Eric Hodel + + * lib/rubygems/specification.rb: Don't add default gems to $LOAD_PATH + as they are already there. + Sat Dec 1 12:22:17 2012 Kouhei Sutou * re-added r38053 that is reverted by r38061. Problems by r38053 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