You can do it without root if you take precautions, but the default is to use root.
$ cat /etc/gemrc
# --user-install is used to install to $HOME/.gem/ by default since we want to separate
# pacman installed gems and gem installed gems
gem: --user-install