FakerMaker 1.3.0
FakerMaker adds audit functionality.
A small update to FakerMaker today, it can now stream a log of all the objects it builds. It can happily write these to a file or an output stream.
Enable it by:
FakerMaker.configure do |config|
config.audit = true
# default output stream is STDOUT, change it like this
config.audit_destination = '/tmp/faker_maker_audit
end
For each entry, it will output an envelope with some metadata and the JSONified object it has just built. This works for FM[:factory].build
and the shortcut builders FM[:factory].to_json
.
Official documentation is over here.
Member discussion