Afficher un message
Vieux 21/06/2008, 01h44   #2
Eric Hodel
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Freezing a Gem (not Rails)

On Jun 20, 2008, at 16:18 PM, Eric Marthinsen wrote:
> I'm writing a fairly involved Ruby application. I want to stabilize
> the
> gems that I'm using by freezing them (I also want to simplify
> deployment
> of the app). Freezing gems is a pretty well understood and documented
> process for a Rails application, but I haven't found anything on how
> to
> do this with a Ruby console app.


The easiest way to do this is to use gems itself. It is smart.

Gem::Specification.new 'my_gem', MyGem::VERSION do |s|
s.add_dependency 'other_gem', '= 1.0'
end

Then simply install your ruby application as a gem.

  Réponse avec citation
 
Page generated in 0,12384 seconds with 9 queries