This expression would match more than just "puppet".

Example:

root@eggplant:~/infra-puppet# gem list | grep puppet
librarian-puppet (0.9.9)
root@eggplant:~/infra-puppet# gem uninstall -ax puppet facter
ERROR:  While executing gem ... (Gem::InstallError)
    cannot uninstall, check `gem list -d puppet`