fix match_name and increase coverage to 56.79%

match_name was not matching when ruby or gem was after the gem name. For
example:

mail gem .....

fixed the match_name function