README.md in madeleine-0.9.0.pre vs README.md in madeleine-0.9.0
- old
+ new
@@ -52,10 +52,24 @@
# logic.
madeleine.take_snapshot
```
+# A Madeleine instance can be create with an execution context, that will
+# be passed to all commands as a second argument. This is useful for passing
+# in things that are neither persistent nor global, e.g. the current Rack application.
+madeleine = SnapshotMadeleine.new("my_example_storage", execution_context: rack_app) {
+ Hash.new
+}
+
+class WebRelatedCommand
+ def execute(system, context)
+ # The context will now be the Rack application
+ ...
+ end
+end
+
### Requirements
* Ruby 1.8.7 or later
### Contact
@@ -66,19 +80,18 @@
BSD (see the file ```COPYING```)
### Credits
-Anders Bengtsson - Prevalence core impl.
-Stephen Sykes - Automatic commands impl.
+Anders Kindberg (Bengtsson) - Prevalence core impl.
Madeleine's design is based on Prevayler, the original Java
prevalence layer.
With the help of patches, testing and feedback from:
Steve Conover, David Heinemeier Hansson, Johan Lind, Håkan Råberg,
-IIMA Susumu, Martin Tampe and Jon Tirsén
+IIMA Susumu, Stephen Sykes, Martin Tampe and Jon Tirsén
Thanks to Klaus Wuestefeld and the Prevayler developers for the
model of this software; to Minero Aoki for the installer; to Matz and
the core developers for the Ruby language!