Bug #3480

gem_prelude: activation should accomodate for '=' and gem 'gem_name', 'version'

Added by rogerdpack (Roger Pack) over 10 years ago. Updated over 9 years ago.

Target version:
ruby -v:
ruby 1.9.3dev (2010-06-22) [i386-mingw32]


Hi all.
Noticed that currently gem_prelude.rb doesn't allow for gem activation like:

gem 'gem_name', '2.3.8'


gem 'gem_name', '= 2.3.8'

The attached patch attempts to remedy this unseemly condition.


gem_prelude_accomodate.diff (8.22 KB) gem_prelude_accomodate.diff rogerdpack (Roger Pack), 06/25/2010 11:13 AM

Related issues

Related to Ruby master - Bug #3617: respond_to?(:gem) is false in 1.9.2-rc2Rejected07/26/2010Actions

Updated by rogerdpack (Roger Pack) over 10 years ago

come to think of it, I'm not sure if gem_prelude accomodates for this style currently, either...

gem 'gem_name', '=2.3.8'


Updated by mame (Yusuke Endoh) over 10 years ago

  • Assignee set to nobu (Nobuyoshi Nakada)




Updated by mame (Yusuke Endoh) over 10 years ago

  • Category set to lib
  • Target version set to 2.0.0


I decide this issue as WONTFIX for 1.9.2.

Kernel#gem in gem_prelude.rb accepts ">", ">=", and "=" (with your
patch), but they behave the completely same. This feature does not
work correctly at all, I think. Though it may be intended behavior
since the original code was commited at r14011 by Eric himself.

Anyway, it is too late to fix this issue for 1.9.2. In addition,
I think it is no use waiting for this issue to be fixed, even if
the release is postponed. Really hopeless.

I think this issue should be fixed in 1.9.3, by the approach of
nobu's patch in #3140.

Yusuke Endoh


Updated by rogerdpack (Roger Pack) about 10 years ago

  • Status changed from Open to Rejected

moving this feature request to rubygems proper and/or the faster_rubygems gem.

Also available in: Atom PDF