A useful Ruby library for the Midwire development team