First, check http://svn.debian.org/wsvn/ for the package you're lusting after. (In this case, pkg-ruby has the ruby1.9.1 package at 1.9.1.243-2 on trunk.)
Then, use svn-buildpackage to build yourself the damn package.
Finally, install the package, basking in the warmth of replicable, reversible package management.
This is fine if the package maintainers are relatively up-to-date with the software you require, but often they aren't. Ubuntu Hardy's version of Ruby 1.9 is pretty outdated and thus probably doesn't include, amongst other things, some rather vital security fixes.
Don't get me wrong—I'm all in favour of package managers. Sometimes, however, they aren't sufficient.
But checkinstall (rather than make install) still uses the up-to-date source files. It just allows your package manager to remove the application when you're done with it (e.g. when you're ready to upgrade to a sill-newer version).
I switched to 1.9 for several greenfields projects. The postgresql gem builds cleanly, as does thin, which can be used in place of mongrel.
The biggest gotcha was having to modify my application to explicitly open text files in UTF8 mode. But the more than 100% execution speedup was a nice upside.
I reverted to 1.8 because I could not find documentation for the Standard Library of 1.9. Generating it myself also proved impossible (out of memory errors and other issues).
Yeah, ruby-doc.org is pretty annoying in this regard, especially since they do actually have the stdlib documentation available, they just don't link to it. Have a look at this search, for example:
I think that is only core, though, not the standard lib. It started for me with hearing the rumor that JSON would be part of the standard lib of Ruby 1.9. I was unable to confirm that online. Eventually I peeked into the "Programming Ruby" book in a bookshop and thus was able to confirm that Ruby 1.9.1 indeed comes with JSON.
JSON was my "benchmark" - it is supposed to be part of the 1.9.1 standard lib.
I know it is also a gem and as such the documentation for JSON can be found. But I would kind of like to have the official 1.9.1 standard library. Also because some things changed from 1.8
Hmm...not sure exactly what's going on with JSON, but it appears that an older version (1.1.4) is included in the trunk repo but not built by default. At any rate, under the "Gem" section of that site there is documentation for 1.1.4 as well as the newer 1.1.6.
AFAIK if you enter `sudo checkinstall` instead, it installs into your package manager so you can remove it more easily later.
https://help.ubuntu.com/community/CheckInstall