No, this magic is not a new gem, just a solution for updating Rails 3.
My Rubygems failed when I tried to update Rails to Rails 3 this morning. I found that running sudo gem cleanup did all that was necessary for the Rails 3 update to run successfully.
See the Ruby on Rails 3 Tutorial for information on the new version of the framework.