Gem add_dependency failing

M

Matt Mower

Hi,

I am about to release a newer version of Bishop which depends upon the
Stemmer gem. At the end of my Gemspec I have added

s.add_dependency( "stemmer", ">= 1.0.1" )

and rebuilt the gem. I made sure Stemmer was not installed and then
tried to install the new Bishop gem using the local gem file.

According to Page 226 of PickAxe2 when attempting a local installation
of a gem where a dependency is not satisfied I should get an error:

Could not find RubyGem stemmer (>= 1.0.1)

However I am finding that it performs the local installation despite
the dependency not being satisfied and, later, if I try to require
'bishop' I get:

irb(main):001:0> require 'bishop'
Gem::LoadError: Could not find RubyGem Stemmer (>= 1.0.1)

I'm using RubyGems 0.8.10. Can anyone help me?

Matt
 
C

Chad Fowler

Hi Matt!

Hi,

I am about to release a newer version of Bishop which depends upon the
Stemmer gem. At the end of my Gemspec I have added

s.add_dependency( "stemmer", ">= 1.0.1" )

and rebuilt the gem. I made sure Stemmer was not installed and then
tried to install the new Bishop gem using the local gem file.

According to Page 226 of PickAxe2 when attempting a local installation
of a gem where a dependency is not satisfied I should get an error:

Could not find RubyGem stemmer (>= 1.0.1)

However I am finding that it performs the local installation despite
the dependency not being satisfied and, later, if I try to require
'bishop' I get:


This is a new bug. Thanks for pointing it out. We'll look into it
and try to get it fixed quickly.

Chad

--

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

Matt Mower

Hi Chad,

Fixed in CVS. I've sent it to Jim for a review. Hopefully we can
make a point release in the next few days.

Cool. Thanks for fixing it so fast! :)

M
 

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

Forum statistics

Threads
474,170
Messages
2,570,925
Members
47,468
Latest member
Fannie44U3

Latest Threads

Top