Only install ruby-dev if required

Omnibus doesn't need a ruby-dev package so only install it if we fail
our omnibus check
Skip ri and rdoc generation

Generating the docs takes forever for some gems and is just a waste of
time, why would you read ri/rdoc on your server?