Specifying the gem dependecies for plugin - gem does not exist

That is one hell of a scary advice.
I advise to figure out which user needs write permissions, and then chown it to that user, keeping the permissions at 0755.