ruby helper script to generate books