added spec file and .rb for 'ranker'