Project

General

Profile

Actions

Bug #2119

closed

'gem' method has problem when gems are in ~/.gem and no version requirement is given

Added by Cezary (Cezary Baginski) over 14 years ago. Updated about 13 years ago.

Status:
Closed
ruby -v:
1.9.1 (2009-07-16 patchlevel 243)
[ruby-core:25635]

Description

=begin
$ruby -e "gem 'pg'; require 'pg'"
internal:gem_prelude:234:in push_gem_version_on_load_path': Could not find RubyGem pg (>= 0) (Gem::LoadError) from <internal:gem_prelude>:14:in gem'
from -e:1:in `'
$ ruby -e "gem 'pg', '0.8.0'; require 'pg'"

Workaround: add version requirement or call Gem.activate(...)

Sorry for not testing trunk/HEAD - it took me a while to work out how gem_prelude is used in the build system.
I'll do so as soon as I can (+14 hours).

1.8.7 works, btw.
=end


Files

patch_gems_in_home.patch (1.06 KB) patch_gems_in_home.patch patches gem_prelude.rb - workaround for gems installed in ~/.home Cezary (Cezary Baginski), 10/02/2009 07:26 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0