Error : Gem::SourceIndex#search

Error :

boot.rb:20:Warning: Gem::SourceIndex#search support for String
patterns is deprecated

Fix :

There is a call to Gem Source Index in  boot.rb:

‘Gem.cache.search’

Just replace ‘search’ with ‘find_name’ .

It should look something like this :

rails_gem = Gem.cache.find_name(`rails’,”=#{rails_gem_version}.0″).sort_by { |g| g.version.version}.last

Filed Under: Quick fixesTechnical

Tags:

About the Author: InstaCarma is a provider of Enterprise Class Solutions for the Hosting Industry

RSSComments (0)

Trackback URL

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
InstaCarma provides outsourced web hosting technical support, helpdesk management, datacenter automation, cloud service management. Sales - 1800 810 6547 - visit www.instacarma.com