The main goal here was to allow storing the content-type with each cached document, so it could be more easily served back out with Sinatra. In the process I converted the DocumentCache itself to an Actor, created a new Document wrapper, and added specs.
The main goal here was to allow storing the content-type with each cached document, so it could be more easily served back out with Sinatra. In the process I converted the DocumentCache itself to an Actor, created a new Document wrapper, and added specs.