Restore gem dependencies for ruby 1.8.7