aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r--lib/rubygems.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index dfc1006fd4..ad23a42a7c 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -1013,20 +1013,20 @@ module Gem
def register_default_spec(spec)
new_format, prefix_pattern = nil
-
+
spec.files.each do |file|
if new_format == nil
new_format = spec.require_paths.any? {|path| file.start_with? path}
-
+
prefix_group = spec.require_paths.map {|f| f + "/"}.join("|")
prefix_pattern = /^(#{prefix_group})/
end
-
+
if new_format
file = file.sub(prefix_pattern, "")
next unless $~
end
-
+
@path_to_default_spec_map[file] = spec
end
end