[Rubygems-developers] Gems on Github and Dependencies
Jim Freeze
rubygems at freeze.org
Fri Nov 28 20:31:04 EST 2008
On Fri, Nov 28, 2008 at 9:02 AM, Josh Susser <josh at hasmanythrough.com> wrote:
> You can tell rubygems where to look for gems by adding a source.
>
> ~> gem source -l
> *** CURRENT SOURCES ***
>
> http://gems.rubyforge.org
> ~> gem source -a http://gems.github.com
> http://gems.github.com added to sources
> ~> gem source -l
> *** CURRENT SOURCES ***
>
> http://gems.rubyforge.org
> http://gems.github.com
Ok, I wasn't aware of this new feature. So, it appears that I can add
a gem to github and if that gem has dependencies on gems at rubyforge,
someone could install it with the following:
% gem source -a http://gems.github.com
% sudo gem install some-githubgem
and rubygems will pull from github for some-githubgem and will pull
the other dependencies from rubyforge.
Is that right?
Thanks Josh.
--
Jim Freeze
More information about the Rubygems-developers
mailing list