A lightweight promises implementation in Ruby