[Rubygems-developers] Platform selection in gem install

Austin Ziegler halostatue at gmail.com
Thu Aug 16 15:43:08 EDT 2007


On 8/16/07, Eric Hodel <drbrain at segment7.net> wrote:
> On Aug 16, 2007, at 05:30, Austin Ziegler wrote:
> > On 8/15/07, Alexey Verkhovsky <alexey.verkhovsky at gmail.com> wrote:
> >> On 8/14/07, Daniel Berger <djberg96 at gmail.com> wrote:
> >>> Alexey Verkhovsky wrote:
> >>>> There is no good place in Windows to keep system-wide overrides,
> >>>> other
> >>>> than the registry.
> >>> Dir::COMMON_APPDATA => "C:\\Documents and Settings\\All
> >>> Users\\Application Data"
> >>
> >> Ah, that's right. C:\\Documents and Settings\\All Users\\ is the
> >> place.
> >
> > No, Dir::COMMON_APPDATA is the place. Those three names will be
> > different in different languages. We should not assume a fixed
> > location, after all ;)
>
> So File.join Dir::COMMON_APPDATA, 'RubyGems', 'mumble'
>
> Would be the right place to put RubyGems system-wide configuration?

I think so. So as to not depend on anything external, I'd recommend
using the Win32API approach that Dan pointed out upthread.

-austin
-- 
Austin Ziegler * halostatue at gmail.com * http://www.halostatue.ca/
               * austin at halostatue.ca * http://www.halostatue.ca/feed/
               * austin at zieglers.ca


More information about the Rubygems-developers mailing list