[Q] RubyGems dependencies

Hello everyone,

I have a small question regarding RubyGems. In my GemSpec
I add a number of dependencies:

  s.add_dependency 'postgres', '>= 0.7.1'
  s.add_dependency 'extensions', '>= 0.5'
  s.add_dependency 'sqlite3-ruby', '>= 1.0.0'
  ...

Then I build the gem.

When I try to install the gem from the local file, the dependencies are
not resolved:

gem install --local mygem.gem

I get errors like 'postgres not found' instead of Gems asking about
downloading the postgres gem. So I cannot test my Gem. Any idea?

regards,
George

gem install mygem.gem

Alex

···

On Feb 10, 2005, at 2:50 PM, George Moschovitis wrote:

gem install --local mygem.gem

It's a limitation of RubyGems that was originally by intention. Now
it just hasn't been fixed yet (we've seen the error of our (actually
my) ways). Should make it into a release soon!

···

On Thu, 10 Feb 2005 22:50:04 +0900, George Moschovitis <george.moschovitis@gmail.com> wrote:

Hello everyone,

I have a small question regarding RubyGems. In my GemSpec
I add a number of dependencies:

  s.add_dependency 'postgres', '>= 0.7.1'
  s.add_dependency 'extensions', '>= 0.5'
  s.add_dependency 'sqlite3-ruby', '>= 1.0.0'
  ...

Then I build the gem.

When I try to install the gem from the local file, the dependencies are
not resolved:

gem install --local mygem.gem

I get errors like 'postgres not found' instead of Gems asking about
downloading the postgres gem. So I cannot test my Gem. Any idea?

--

Chad Fowler
http://chadfowler.com

http://rubygems.rubyforge.org (over 50,000 gems served!)

Hello Alex

As I said, I tried that and I get errors:

-> Local installation can't proceed due to LoadError:
Could not find RubyGem postgres (>= 0.7.1)

instead of RubyGems asking me to download the postgres gem.

regards,
George.

Should make it into a release soon!

Ok, nice to hear, thank you.

regards,
George.