add loaded_or_latest

this pattern repeats in every `rubygems_plugin` I had pleasure to write, with the helper it will be a lot simpler and will help authors keep the code clean.

check code for example usage