Replacing plugin to gem