yob/pdf-reader — pull request #40 by tardate (2012-01-09 03:00:53+00:00)
Title: Make PageTextReceiver::DEFAULT_GRAPHICS_STATE immutable

I gather DEFAULT_GRAPHICS_STATE should be immutable, but discovered it wasn't when parsing a series of documents in a batch and started to get non-repeatable results for the same doc.

This commit fixes the issue, and the problem is guarded with a spec. NB: I've used the adobe_sample.pdf for the test as it reliably provokes the problem - wasn't sure if you'd prefer to copy this off the a test-specific sample instead.

Note: also included another commit in the pull request that just addresses a couple of RSpec syntax warnings.