Skip to content

Commit

Permalink
Import RubyGems trunk revision 1493.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
drbrain committed Nov 10, 2007
1 parent 7a4aad7 commit fbf59bd
Show file tree
Hide file tree
Showing 144 changed files with 21,330 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
Sat Nov 10 16:37:07 2007 Eric Hodel <drbrain@segment7.net>

* lib/rubygems: Import RubyGems revision 1493.

* lib/rubygems.rb: ditto.

* lib/ubygems.rb: ditto.

* lib/rbconfig/datadir.rb: ditto.

* test/rubygems: ditto.

Sat Nov 10 16:34:21 2007 Eric Hodel <drbrain@segment7.net>

* lib/soap/property.rb: Don't override Enumerable#inject for 1.9.
Expand Down
24 changes: 24 additions & 0 deletions lib/rbconfig/datadir.rb
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
Loading

0 comments on commit fbf59bd

Please sign in to comment.