Ruby implementation of Rabbit and CraftRabbit