[Rubygems-developers] Getting ready for release 0.9.0

TRANS transfire at gmail.com
Wed Jun 7 22:30:10 EDT 2006


On 6/7/06, Jim Weirich <jim at weirichhouse.org> wrote:
>    module Config
>      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

Yea! A good solution! I will add it to the next release of Ruby Facets.

  require 'facet/config/datadir'

Thanks Jim,
T.


More information about the Rubygems-developers mailing list