madeleine 0.9.0.pre → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.txt +2 -0
- data/README.md +16 -3
- data/lib/madeleine/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1468189fcb7f1a7cdbc1356f6b4e87a511a1b7d
|
4
|
+
data.tar.gz: 3ed2b79db54103bdd6ee863890106118c8dd7922
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1504b35fbaa98ccb1dab34bfa39c96e6a54cba2eee4c0dd338e7c673de04ff514f5a5648e85f40712970a3cee1caf57f859ccb80d214a81599aef515f89644b
|
7
|
+
data.tar.gz: ad2c6cef2887bf272d22cac7c1a0630c8c2557673e22e642df6867f66fa1f6ce7b329620951f4827f5b87bd759a1665754b47e7d5663aaa4359545b7915954cc
|
data/CHANGES.txt
CHANGED
data/README.md
CHANGED
@@ -54,6 +54,20 @@ madeleine.execute_command(command)
|
|
54
54
|
madeleine.take_snapshot
|
55
55
|
```
|
56
56
|
|
57
|
+
# A Madeleine instance can be create with an execution context, that will
|
58
|
+
# be passed to all commands as a second argument. This is useful for passing
|
59
|
+
# in things that are neither persistent nor global, e.g. the current Rack application.
|
60
|
+
madeleine = SnapshotMadeleine.new("my_example_storage", execution_context: rack_app) {
|
61
|
+
Hash.new
|
62
|
+
}
|
63
|
+
|
64
|
+
class WebRelatedCommand
|
65
|
+
def execute(system, context)
|
66
|
+
# The context will now be the Rack application
|
67
|
+
...
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
57
71
|
### Requirements
|
58
72
|
|
59
73
|
* Ruby 1.8.7 or later
|
@@ -68,8 +82,7 @@ BSD (see the file ```COPYING```)
|
|
68
82
|
|
69
83
|
### Credits
|
70
84
|
|
71
|
-
Anders Bengtsson
|
72
|
-
Stephen Sykes - Automatic commands impl.
|
85
|
+
Anders Kindberg (Bengtsson) - Prevalence core impl.
|
73
86
|
|
74
87
|
Madeleine's design is based on Prevayler, the original Java
|
75
88
|
prevalence layer.
|
@@ -77,7 +90,7 @@ prevalence layer.
|
|
77
90
|
With the help of patches, testing and feedback from:
|
78
91
|
|
79
92
|
Steve Conover, David Heinemeier Hansson, Johan Lind, Håkan Råberg,
|
80
|
-
IIMA Susumu, Martin Tampe and Jon Tirsén
|
93
|
+
IIMA Susumu, Stephen Sykes, Martin Tampe and Jon Tirsén
|
81
94
|
|
82
95
|
Thanks to Klaus Wuestefeld and the Prevayler developers for the
|
83
96
|
model of this software; to Minero Aoki for the installer; to Matz and
|
data/lib/madeleine/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: madeleine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.0
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anders Kindberg (Bengtsson)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -97,12 +97,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
97
97
|
version: 1.8.7
|
98
98
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
|
-
- - '
|
100
|
+
- - '>='
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version:
|
102
|
+
version: '0'
|
103
103
|
requirements: []
|
104
104
|
rubyforge_project:
|
105
|
-
rubygems_version: 2.
|
105
|
+
rubygems_version: 2.1.11
|
106
106
|
signing_key:
|
107
107
|
specification_version: 4
|
108
108
|
summary: Madeleine is a Ruby implementation of Object Prevalence
|