Use a Ruby script to generate the badge.