Correct way of installing gem and jekyll?

Hi,

I’m confused what the correct way of installing jekyll is on openSUSE 13.2? I’ve successfully installed nodejs by adding repository http://download.opensuse.org/repositories/devel:languages:nodejs/openSUSE_13.2/devel:languages:nodejs.repo

Source: https://software.opensuse.org/download.html?project=devel%3Alanguages%3Anodejs&package=nodejs

But installing ruby gem with sudo is not recommended from what I can read on various forums and blog posts and there are so many different solutions how to do this, everything from taking ownership of folders in root category level, to run scripts that I don’t feel to confident to use. So to avoid spending hours digging trough various blogs etc., I would like to ask here if someone had success with installing jekyll on openSUSE 13.2?

Currently running openSUSE 13.2 minimal server in a VM. I followed these instructions but with sudo, which didn’t work. The command jekyll was not found: https://gist.github.com/marloncabrera/cadac29004993da7f52b

Solved. Had to use user install switch on jekyll so gem downloaded all files only for the local user and then add path to gems dir in bashrc.