Installing nokogiri with native extensions... Every Rails developer knows it's time to get a cup of coffee, but why is it in every project and what makes it so slow to install?
Nokogiri provides HTML, XML and various other parsing tools. Having been early on the scene back in 2008, it has accumulated a staggering 632,822 dependent GitHub repositories. In Rails, it is required by Action View, the primary templating engine- so you aren't going to avoid it easily.
There is still hope for faster deploys. It's possible to install Nokogiri without re-compiling libxml2, which accounts for most of the delay. Simply set the environment variable NOKOGIRI_USE_SYSTEM_LIBRARIES=true and you can shave a whole minute off deploy times.