aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-09 23:41:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-09 23:41:44 +0000
commit71110cb745abfa54df51f305f2481f23a5925f09 (patch)
tree00ca151b503a0912646d3a527625f68d210d7b31 /lib/rubygems.rb
parent47f0248b0858898dd24d1e654cedf174059ca677 (diff)
downloadruby-71110cb745abfa54df51f305f2481f23a5925f09.tar.gz
* remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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