# Local Ruby Gem Dependencies

**URL:** <https://www.ruby-forum.com/t/local-ruby-gem-dependencies/186748>\
**Category:** Ruby\
**Created:** [February 25, 2008, 7:02pm UTC](https://www.ruby-forum.com/t/local-ruby-gem-dependencies/186748 "2008-02-25T19:02:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![spiral](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e79b87/32.png) [@spiral](https://www.ruby-forum.com/u/spiral)\
**Post date:** [February 25, 2008, 7:02pm UTC](https://www.ruby-forum.com/t/local-ruby-gem-dependencies/186748/1 "2008-02-25T19:02:16Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![spiral](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e79b87/32.png) [@spiral](https://www.ruby-forum.com/u/spiral)\
**Post date:** [February 25, 2008, 8:36pm UTC](https://www.ruby-forum.com/t/local-ruby-gem-dependencies/186748/2 "2008-02-25T20:36:26Z")

</div>

On Feb 25, 2008, at 09:59 AM, Otto H. 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.

---

<div class="post-metadata">

**Author:** ![spiral](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e79b87/32.png) [@spiral](https://www.ruby-forum.com/u/spiral)\
**Post date:** [February 25, 2008, 7:29pm UTC](https://www.ruby-forum.com/t/local-ruby-gem-dependencies/186748/3 "2008-02-25T19:29:26Z")

</div>

On Mon, Feb 25, 2008 at 6:59 PM, Otto H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 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/](http://whatever/)
