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


Shares
Contact Us On WhatsApp