[Rubygems-developers] Getting ready for release 0.9.0

Lyle Johnson lyle.johnson at gmail.com
Wed Jun 7 17:45:13 EDT 2006


On 6/7/06, John Gabriele <jmg3000 at gmail.com> wrote:

> What is "the datadir issue"?

This refers to the problem of how to deal with application data in
Gems. For example, if your GUI application requires a bunch of image
files that are loaded at run time, where do you load them from? What
if different versions of your application require different sets of
image files?

In the same way you just type:

    require 'some_library'

and RubyGems magically finds the right code, in the latest gem, it
would be useful to be able to do this:

    icons_dir = File.join(Config.datadir('my_app'), "icons")

and trust that it will find your application's data files (and, the
right versions of those files).

Hope this helps,

Lyle


More information about the Rubygems-developers mailing list