-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import RubyGems trunk revision 1493.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- Loading branch information
Showing
144 changed files
with
21,330 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env ruby | ||
#-- | ||
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. | ||
# All rights reserved. | ||
# See LICENSE.txt for permissions. | ||
#++ | ||
|
||
|
||
module Config | ||
|
||
# Only define datadir if it doesn't already exist. | ||
unless Config.respond_to?(:datadir) | ||
|
||
# Return the path to the data directory associated with the given | ||
# package name. Normally this is just | ||
# "#{Config::CONFIG['datadir']}/#{package_name}", but may be | ||
# modified by packages like RubyGems to handle versioned data | ||
# directories. | ||
def Config.datadir(package_name) | ||
File.join(CONFIG['datadir'], package_name) | ||
end | ||
|
||
end | ||
end |
Oops, something went wrong.