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 > Local Ruby Gem Dependencies.
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Local Ruby Gem Dependencies.

Réponse
 
LinkBack Outils de la discussion
Vieux 25/02/2008, 17h57   #1
Otto Hemmi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Local Ruby Gem Dependencies.

My work environment is very controlled. We validate certain
configurations of servers on our staging/QA servers before moving to
production. Before updates to gems that are different than our
validated version can be deployed we must first test them on the
staging and QA servers. As a result i'd like a better method to
control the versions of ruby gems that are installed on the server.
The best idea for this is to check local copies of gems into the
source repository and include these in the release (thus freezing a
versioned gem list). One thing i've noticed is that if you attempt to
install local gems gem cannot resolve local dependencies inside a
directory. So building a directory with all the gems and then running
"gem install *" or the flag "--include-dependencies"seems to not
work...
Am i going about this the wrong way? is there a way to get gem to
resolve local dependencies?
suggestions or recommendations? My experience with ruby is defiantly
limited so if i'm asking a stupid question please be nice....
  Réponse avec citation
Vieux 25/02/2008, 18h28   #2
Jano Svitok
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Local Ruby Gem Dependencies.

On Mon, Feb 25, 2008 at 6:59 PM, Otto Hemmi <ottoman01@gmail.com> wrote:
> My work environment is very controlled. We validate certain
> configurations of servers on our staging/QA servers before moving to
> production. Before updates to gems that are different than our
> validated version can be deployed we must first test them on the
> staging and QA servers. As a result i'd like a better method to
> control the versions of ruby gems that are installed on the server.
> The best idea for this is to check local copies of gems into the
> source repository and include these in the release (thus freezing a
> versioned gem list). One thing i've noticed is that if you attempt to
> install local gems gem cannot resolve local dependencies inside a
> directory. So building a directory with all the gems and then running
> "gem install *" or the flag "--include-dependencies"seems to not
> work...
> Am i going about this the wrong way? is there a way to get gem to
> resolve local dependencies?
> suggestions or recommendations? My experience with ruby is defiantly
> limited so if i'm asking a stupid question please be nice....


You can run your own gem_server, and install gems from there using
--source=http://whatever/

  Réponse avec citation
Vieux 25/02/2008, 19h34   #3
Eric Hodel
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Local Ruby Gem Dependencies.

On Feb 25, 2008, at 09:59 AM, Otto Hemmi wrote:

> One thing i've noticed is that if you attempt to install local gems
> gem cannot resolve local dependencies inside a directory. So
> building a directory with all the gems and then running "gem install
> *" or the flag "--include-dependencies"seems to not work...


Known bug, I'll be working on it this week.

  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 22h56.


É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,10512 seconds with 11 queries