Local Ruby Gem Dependencies.

O

Otto Hemmi

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....
 
J

Jano Svitok

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/
 
E

Eric Hodel

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top