[Rubygems-developers] Alternatives to deprecated Gem::cache.search

Eric Hodel drbrain at segment7.net
Mon Oct 20 21:23:26 EDT 2008

On Oct 19, 2008, at 14:05 PM, Pratik wrote:
> Rails currently uses deprecated "Gem::cache.search(/_generator$/)"
> which is deprecated in rubygems 1.3.0. This causes a warning to be
> thrown everytime "script/generate" is called. Could someone please
> suggest an alternative that's backwards compatible ?
> I came up with this patch
> https://gist.github.com/99481e566e2a2d925651.txt after quickly going
> through rubygems source. But I'm not sure if that's the best way to go
> about it.
> Any help/suggestions are greatly appreciated!

That is correct.

More information about the Rubygems-developers mailing list