aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/path_support.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/path_support.rb')
-rw-r--r--lib/rubygems/path_support.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rubygems/path_support.rb b/lib/rubygems/path_support.rb
index 02332cef80..ed680d6553 100644
--- a/lib/rubygems/path_support.rb
+++ b/lib/rubygems/path_support.rb
@@ -25,7 +25,7 @@ class Gem::PathSupport
def initialize(env)
@home = env["GEM_HOME"] || Gem.default_dir
- if File::ALT_SEPARATOR then
+ if File::ALT_SEPARATOR
@home = @home.gsub(File::ALT_SEPARATOR, File::SEPARATOR)
end
@@ -43,7 +43,7 @@ class Gem::PathSupport
##
# Split the Gem search path (as reported by Gem.path).
- def split_gem_path gpaths, home
+ def split_gem_path(gpaths, home)
# FIX: it should be [home, *path], not [*path, home]
gem_path = []
@@ -56,7 +56,7 @@ class Gem::PathSupport
gem_path += default_path
end
- if File::ALT_SEPARATOR then
+ if File::ALT_SEPARATOR
gem_path.map! do |this_path|
this_path.gsub File::ALT_SEPARATOR, File::SEPARATOR
end