[Q] RubyGems dependencies.

G

George Moschovitis

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
 
G

George Moschovitis

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.
 
C

Chad Fowler

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?

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!


--

Chad Fowler
http://chadfowler.com
http://rubycentral.org
http://rubygarden.org
http://rubygems.rubyforge.org (over 50,000 gems served!)
 
G

George Moschovitis

Should make it into a release soon!

Ok, nice to hear, thank you.

regards,
George.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,167
Messages
2,570,911
Members
47,453
Latest member
MadelinePh

Latest Threads

Top