Bugs item #27099, was opened at 2009-09-14 00:00
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=27099&group_id=126

Category: #gem and #require methods
Group: v1.3.x
Status: Open
Resolution: None
Priority: 3
Submitted By: Cezary Baginski (czarek)
Assigned to: Nobody (None)
Summary: Problems with gems (treetop, polyglot, test-unit) installed in 
$HOME/.gem instead of /usr/local/...

Initial Comment:
I filed it initially as a bug in Lighthouse (cucumber):

https://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/445-patch-cucumber-cannot-find-treetop-if-all-gems-are-in-homegem#ticket-445-4

It seems like adding:

    gem 'foo-bar'

fixes things for some gems, others need:

    Gem.activate('foo-bar')

The Lighthouse ticket has a specific, detailed example in cucumber.

----------------------------------------------------------------------

>Comment By: Cezary Baginski (czarek)
Date: 2009-09-18 20:21

Message:
Workaround - add a version requirement, e.g.:

gem 'foo-bar', '>=0'

Ticket on redmine / ruby-core:

http://redmine.ruby-lang.org/issues/show/2119

----------------------------------------------------------------------

Comment By: Cezary Baginski (czarek)
Date: 2009-09-14 00:56

Message:
Just to make sure, I tried trunk (r2296), but it wouldn't
let me even install gems in $HOME, even with --user-install
(exception with Requirement being Nil in <=>() ). Maybe I'll
submit a bug tomorrow.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=27099&group_id=126
_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
Rubygems-developers@rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to