def resolution_for(error)
gem_names = {
'adsf' => 'adsf',
'bluecloth' => 'bluecloth',
'builder' => 'builder',
'coderay' => 'coderay',
'cri' => 'cri',
'erubis' => 'erubis',
'haml' => 'haml',
'json' => 'json',
'less' => 'less',
'markaby' => 'markaby',
'maruku' => 'maruku',
'mime/types' => 'mime-types',
'rack' => 'rack',
'rack/cache' => 'rack-cache',
'rainpress' => 'rainpress',
'rdiscount' => 'rdiscount',
'redcloth' => 'redcloth',
'rubypants' => 'rubypants',
'sass' => 'sass',
'w3c_validators' => 'w3c_validators'
}
case error
when LoadError
lib_name = error.message.match(/no such file to load -- ([^\s]+)/)[1]
gem_name = gem_names[$1]
if gem_name
"Try installing the '#{gem_name}' gem (`gem install #{gem_name}`) and then re-running the command."
end
end
end