From: gabriele renzi Date: 2006-02-02T06:57:24+09:00 Subject: Re: One-Click Ruby Installer 184-16 preview2 is available! Jim Weirich ha scritto: > Joel VanderWerf wrote: > >>Is there some way to "lock" older gems that are needed by applications? >>Or would FreeRIDE have to be a gem itself and have an explicit >>dependency? > > > I assume you mean lock down so that the gem cleanup command won't remove > particular versions. > > There is no direct way to do this in RubyGems. However, you could > create a gem of your own that installed no software but did depened on > the versions of the software you needed. It is pretty trivial to create > gems, so this is not hard. As long as your "lock down" gem is > installed, the cleanup command won't remove the referenced gem versions. > (caveat: technique untried, but can't think of a reason it wouldn't > work). would it be reasonable to add a switch (I'm thinking of "gem lock foo-x.y.z") to gem to do this automagically? It could update a rubygems-locked gem each time "lock" is called, providing users a nice interface to a useful feature.