Usage:
$ test/console
$ test/console --prompt xmp (recommended)
Features:
* memstore and file-based by default.
* include StrokeDB (to save typing)
* Doc = Document (for the same reason)
* save! syncs memstore to filestore
* clear! removes test filestore
* find(uuid, version) lets you find previously saved document
So now everyone can easily play with a database for all night long.
Have fun!
PS. Credits: oleg — for idea, yurii — for implementation :-)
And even better, instead of this 'find', you can use something like
this:
Page.find(:title => "Hello, world!")
==>[#<{Page} text: "Oh, yes", title: "Hello, world!",
__version__: 319f...>]