prismicio/ruby-kit — pull request #20 by rudyrigot (2013-12-19 21:32:57+00:00)
Title: Support for unknown types (ignores with warning)

Today, I added new "Group" fragments in my content repository's masks, and suddenly, some pages on my example website were not working anymore, with an obscure error (cannot execute "call" on nil, or something), even though I wasn't yet using those fragments in my views, nor did I touch anything in the code.
Reason: during the document parsing, when the kit encounters a type it doesn't know, it goes mad and raises an error.

With this fix, the parsing of an unknown fragment just ignores it; it also sends a warning once per unknown type, advising to update the gem.