slightly more straightforward rubygems integration
use instance_methods to avoid warnings

thanks @lmarburger!