alphagov/govspeak — pull request #29 by benilovj (2014-08-04 08:56:33+00:00)
Title: Don't mutate `sanitize` config

Since `Hash#dup` in ruby is shallow and the `sanitize` config is nested, duplicating it
isn't enough to mean that changes to the duplicate are side-effect-free. This change changes the
duplication to a deep-duplication.

The Marshall load/dump pattern is the simplest implementation of deep dup in pure ruby that I've seen.