That's actually described in the post. Check out the part where Gemfile* is copied to /tmp, it results in gems getting cached between deploys as long as Gemfile itself was not modified.
Bumping the patch version on your CSS library resulting in a full redownload and recompile of every gem sucks.