[Rubygems-developers] Personal repos, for development and testing?

Jim Weirich jim.weirich at gmail.com
Wed Feb 1 14:21:08 EST 2006

On 2/1/06, Hugh Sasse <hgs at dmu.ac.uk> wrote:
> At present, Rubygems has the concept of a local repository,
> the concept of a remote repository which defaults to the central
> Rubygems repository, and that is it.  I've just downloaded a package
> (YAX, but the details don't matter) and because it used Rubygems it
> was expecting me to do the full install as root.  If there were a
> way to have secondary repositories, or private ones, then I could
> install the gem within my home directory, where if it were
> damaged/evil it would do less damage.
> Rubygems Environment:
>   - VERSION: 0.8.11 (0.8.11)
>   - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8
>   - GEM PATH:
>      - /usr/local/lib/ruby/gems/1.8
>      - http://gems.rubyforge.org
> This environment isn't actually held in my environment variables, is
> it?.  Maybe if it were I could set it temporarily to something else?
> There seem to be no gem commands to set it for me.
> Has anyone given these matters more thought recently?

gem install PACKAGEXYZ -i my_personal_repository
export GEM_HOME=my_personal_repository

(untested ... but something like that should work)

-- Jim Weirich    jim at weirichhouse.org     http://onestepback.org
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)

More information about the Rubygems-developers mailing list