summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems/compatibility.rb2
-rw-r--r--lib/rubygems/config_file.rb4
-rw-r--r--lib/rubygems/test_case.rb2
3 files changed, 8 insertions, 0 deletions
diff --git a/lib/rubygems/compatibility.rb b/lib/rubygems/compatibility.rb
index 1137407bc5..e053a99ca3 100644
--- a/lib/rubygems/compatibility.rb
+++ b/lib/rubygems/compatibility.rb
@@ -1,3 +1,5 @@
+# :stopdoc:
+
# This file contains all sorts of little compatibility hacks that we've
# had to introduce over the years. Quarantining them into one file helps
# us know when we can get rid of them.
diff --git a/lib/rubygems/config_file.rb b/lib/rubygems/config_file.rb
index 61ee3b73eb..81ee32a1d6 100644
--- a/lib/rubygems/config_file.rb
+++ b/lib/rubygems/config_file.rb
@@ -50,6 +50,8 @@ class Gem::ConfigFile
PLATFORM_DEFAULTS = {}
+ # :stopdoc:
+
system_config_path =
begin
require "etc"
@@ -77,6 +79,8 @@ class Gem::ConfigFile
end
end
+ # :startdoc:
+
SYSTEM_WIDE_CONFIG_FILE = File.join system_config_path, 'gemrc'
##
diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb
index 9776fb55b9..47fb9d4962 100644
--- a/lib/rubygems/test_case.rb
+++ b/lib/rubygems/test_case.rb
@@ -133,6 +133,8 @@ class Gem::TestCase < MiniTest::Unit::TestCase
# This makes the tempdir consistent on OS X.
# File.expand_path Dir.tmpdir #=> "/var/..."
# Dir.chdir Dir.tmpdir do File.expand_path '.' end #=> "/private/var/..."
+ # TODO use File#realpath above instead of #expand_path once 1.8 support is
+ # dropped.
Dir.chdir @tempdir do
@tempdir = File.expand_path '.'
@tempdir.untaint