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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0254e4a5cd6fe35768ce76fb92b0804724a83663
4
- data.tar.gz: cc5860e5c27def4543d104edc0ce30f0f6acf65a
3
+ metadata.gz: a1468189fcb7f1a7cdbc1356f6b4e87a511a1b7d
4
+ data.tar.gz: 3ed2b79db54103bdd6ee863890106118c8dd7922
5
5
  SHA512:
6
- metadata.gz: e009aac28e96a06499feeff40c43156bc8dfa7139ae20588fc2c5eef88277868b77cbff63be153971b59230e956b35b91483783dd8983ce6e33a8837c301a343
7
- data.tar.gz: c5c67ada967d93f9d280ade1304c07328b439acf4aa787e5c1441d68213394252c4bd8a1227a3f8485db46cfe98856969360b08e07fd896dcdc08ea87b4c65d2
6
+ metadata.gz: a1504b35fbaa98ccb1dab34bfa39c96e6a54cba2eee4c0dd338e7c673de04ff514f5a5648e85f40712970a3cee1caf57f859ccb80d214a81599aef515f89644b
7
+ data.tar.gz: ad2c6cef2887bf272d22cac7c1a0630c8c2557673e22e642df6867f66fa1f6ce7b329620951f4827f5b87bd759a1665754b47e7d5663aaa4359545b7915954cc
@@ -1,3 +1,5 @@
1
+ Madeleine 0.9.0 (December 7, 2013):
2
+ * Support for optional "execution context" passed to commands.
1
3
  * Ruby 2.0 fix for self-tests.
2
4
 
3
5
  Madeleine 0.8.0 (December 17, 2012):
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 - Prevalence core impl.
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
@@ -1,3 +1,3 @@
1
1
  module Madeleine
2
- VERSION = "0.9.0.pre"
2
+ VERSION = "0.9.0"
3
3
  end
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.pre
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-08-25 00:00:00.000000000 Z
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: 4.3.0
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: 4.3.0
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: 1.3.1
102
+ version: '0'
103
103
  requirements: []
104
104
  rubyforge_project:
105
- rubygems_version: 2.0.5
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