# Installing a branched gem from git?

**URL:** <https://www.ruby-forum.com/t/installing-a-branched-gem-from-git/156400>\
**Category:** Rails\
**Created:** [December 26, 2008, 6:19pm UTC](https://www.ruby-forum.com/t/installing-a-branched-gem-from-git/156400 "2008-12-26T18:19:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Teedub](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/f475e1/32.png) [@Teedub](https://www.ruby-forum.com/u/Teedub)\
**Post date:** [December 26, 2008, 6:19pm UTC](https://www.ruby-forum.com/t/installing-a-branched-gem-from-git/156400/1 "2008-12-26T18:19:55Z")

</div>

Happy Holidays,

This question happens to be about juggernaut, but the problem is  
generic. I am waiting to be accepted to the juggernaut google group or  
I would post there.

I am playing with juggernaut and I see that the latest commit by the  
original author is version 5.7

If I do sudo gem install juggernaut, I get version juggernaut-0.5.7 in  
usr…ruby…gems.

when I install the the branch by ripta, I get ripta-juggernaut-0.5.8  
in the gems dir.  
If I do a clone:  
git clone git://github.com/ripta/juggernaut\_gem.git

I get a third version named juggernaut\_gem (v=0.5.8) that has a  
gemspec. (not in the usr…gem dir)

As I write this the thought occurs to me that maybe I should install  
the gem from the third directory…

…Time passes as I try that…

but I can’t seem to make that work.

These fail (plus many more)  
gem install juggernaut-0.5.8 --source “/home/rubyfreak/rails\_projects/  
juggernaut/juggernaut\_gem”  
gem install juggernaut-0.5.8 --install-dir “/home/rubyfreak/  
rails\_projects/juggernaut/juggernaut\_gem”

How do I handle this?  
require ripta-juggernaut #doesn’t make sense to me.  
I want to require juggernaut and get v-0.5.8

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Teedub](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/f475e1/32.png) [@Teedub](https://www.ruby-forum.com/u/Teedub)\
**Post date:** [December 27, 2008, 8:26pm UTC](https://www.ruby-forum.com/t/installing-a-branched-gem-from-git/156400/2 "2008-12-27T20:26:09Z")

</div>

Still stuck here

any help would be appreciated as to how to handle branched gems with  
prefixed names.

Thanks

---

<div class="post-metadata">

**Author:** ![Teedub](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/f475e1/32.png) [@Teedub](https://www.ruby-forum.com/u/Teedub)\
**Post date:** [December 28, 2008, 1:52am UTC](https://www.ruby-forum.com/t/installing-a-branched-gem-from-git/156400/3 "2008-12-28T01:52:14Z")

</div>

Teedub wrote:

> Still stuck here
> 
> any help would be appreciated as to how to handle branched gems with  
> prefixed names.
> 
> Thanks

[http://ryandaigle.com/articles/2008/4/1/what-s-new-in-edge-rails-gem-dependencies](http://ryandaigle.com/articles/2008/4/1/what-s-new-in-edge-rails-gem-dependencies)

Does that help?

---

<div class="post-metadata">

**Author:** ![Teedub](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/f475e1/32.png) [@Teedub](https://www.ruby-forum.com/u/Teedub)\
**Post date:** [December 28, 2008, 2:12am UTC](https://www.ruby-forum.com/t/installing-a-branched-gem-from-git/156400/4 "2008-12-28T02:12:12Z")

</div>

Hmm  
I sure can’t hurt. I will give it a try. I didn’t realize that I could  
move gems into vendor/gems with unpack. Seems like it defeats the  
advantage of gems over plugins… unless they get updated. but I might  
get to alias the name.

I will mess with it this evening

Thanks

On Dec 27, 4:52 pm, Jeremy Weiskotten \<rails-mailing-l…@andreas-
