Ruby script for prymatex