Error : Gem::SourceIndex#search
admin | Jun 02, 2009 | Comments 0
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 fixes • Technical
About the Author: InstaCarma is a provider of Enterprise Class Solutions for the Hosting Industry

1800 810 6547