Ruby gem to capture IO writes