Fix "undefined method `generate' for nil:NilClass"

Fixes #45
Bump to 1.2.2

Concerns #45