PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.ruby > Freezing a Gem (not Rails)
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Freezing a Gem (not Rails)

Réponse
 
LinkBack Outils de la discussion
Vieux 21/06/2008, 00h18   #1
Eric Marthinsen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Freezing a Gem (not Rails)

Hello-

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.

Here's the road I started down. I created a root folder for my app
(MyApp) and subfolders for lib, test, and vendor off of that. I then
went to my vendor directory (MyApp/vendor) and did a "gem unpack
right_aws", which created a right_aws-1.7.1 folder, which I renamed
right_aws. Is this the right way to get started on this? Also, once I
have all of the gems in the vendor directory, how do I make sure they
are the ones that my app is loading? Any input would be much
appreciated.

Regards-
Eric
--
Posted via http://www.ruby-forum.com/.

  Réponse avec citation
Vieux 21/06/2008, 00h44   #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
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 18h23.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,06834 seconds with 10 queries