Where does bundler installs a git gem locally?

23 views
Skip to first unread message

Wins Lin

unread,
Jun 17, 2013, 4:00:56 PM6/17/13
to rubyonra...@googlegroups.com
I want to use a gem from git. So in app's Gemfile I write:
> gem "some_gem" :git => https://github.com/foo/bar.git

Then I have to install that gem with bundler:
> bundler install
or
> bundler update bar

When I do this all works just fine, the gem from git is in use. But
where is that gem locally stored? Where does bundler hides it? I connot
find it
neither in /gems directory nor in app's vendor directory. Where does
> bundler install
installs that git gem?

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

Colin Law

unread,
Jun 17, 2013, 4:58:56 PM6/17/13
to rubyonra...@googlegroups.com
gem list some_gem -d

Colin

Tamara Temple

unread,
Jun 17, 2013, 11:47:31 PM6/17/13
to rubyonra...@googlegroups.com
or:

bundle show some_gem

Wins Lin

unread,
Jun 18, 2013, 3:18:14 AM6/18/13
to rubyonra...@googlegroups.com
tamouse m. wrote in post #1112726:
> Colin Law <cla...@googlemail.com> wrote:
>>
>> gem list some_gem -d
>>
>> Colin
>
> or:
>
> bundle show some_gem

The second one did the trick.

It turns out that there is also Bundler's directory where it stores
gems. On my Windows machine it is here:
> C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\bundler\gems

Thank you.
Reply all
Reply to author
Forward
0 new messages