From: Gregory Brown Date: 2007-01-21T16:09:48+09:00 Subject: Re: Getting the version number for rubygems? On 1/21/07, Eric Hodel wrote: > On Jan 20, 2007, at 21:03, Jeremy McAnally wrote: > > require 'rubygems' > > > > unless Kernel.respond_to? :gem > > alias gem require_gem > > end > > > > gem 'ruport' > > > > That should work I believe... > > NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! There you go being an asshole again Eric. (please stop) > if Kernel.respond_to? :gem then > gem blah > else > require_gem blah > end > > DO NOT go aliasing methods on top of each other. #require and > #require_gem do different things, much like #sub and #sub! do > different things, respect that. I'm aware of this. I actually need to just lock version and do a normal require. I'll do it that way.