sandthorn 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/README.md +11 -0
- data/lib/sandthorn/version.rb +1 -1
- metadata +2 -3
- data/Gemfile.lock +0 -90
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1a17a62b61cd04ee60ba16439ae0d5b93ffd179
|
4
|
+
data.tar.gz: 7ee6bcb37e9016d254c2ed32dcefb45831e55f8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b9bdd8af7ca4e12d2924786328675264f60411a066b069bab152ab0a54bdecf2db3ea3bb0e69a4419c9b0114782d3e3ba753fc48e020f8c0315ca2ec6168017
|
7
|
+
data.tar.gz: 3584ac990d2df159a15ed211d43a7ef0c17abf966599efedbc27fbde9d5e727920e0c8bbc2add4f6b3f315fe398f068a94b4d7c3a2a327546f619bce55e240aa
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -147,6 +147,17 @@ SandthornDriverSequel.migrate_db url: url
|
|
147
147
|
|
148
148
|
Optionally, when using Sandthorn in your tests you can configure it in a `spec_helper.rb` which is then required by your test suites [example](https://github.com/Sandthorn/sandthorn_examples/blob/master/sandthorn_tictactoe/spec/spec_helper.rb#L20-L30). Note that the Sequel driver accepts a special parameter to empty the database between each test.
|
149
149
|
|
150
|
+
Its possible to configure how events and snapshots are serialized / deserialized. The default are YAML but can be overloaded in the configure block.
|
151
|
+
|
152
|
+
```ruby
|
153
|
+
Sandthorn.configure do |conf|
|
154
|
+
conf.serializer = Proc.new { |data| Oj::dump(data) }
|
155
|
+
conf.deserializer = Proc.new { |data| Oj::load(data) }
|
156
|
+
conf.snapshot_serializer = Proc.new { |data| Oj::dump(data) }
|
157
|
+
conf.snapshot_deserializer = Proc.new { |data| Oj::load(data) }
|
158
|
+
end
|
159
|
+
```
|
160
|
+
|
150
161
|
The Sequel driver is the only production-ready driver to date.
|
151
162
|
|
152
163
|
# Usage
|
data/lib/sandthorn/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sandthorn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lars Krantz
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-09-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -182,7 +182,6 @@ files:
|
|
182
182
|
- ".ruby-version"
|
183
183
|
- ".travis.yml"
|
184
184
|
- Gemfile
|
185
|
-
- Gemfile.lock
|
186
185
|
- Gemfile.lock.old
|
187
186
|
- LICENSE
|
188
187
|
- LICENSE.txt
|
data/Gemfile.lock
DELETED
@@ -1,90 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
sandthorn (0.8.0)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
autotest-standalone (4.5.11)
|
10
|
-
awesome_print (1.6.1)
|
11
|
-
coderay (1.1.0)
|
12
|
-
coveralls (0.7.12)
|
13
|
-
multi_json (~> 1.10)
|
14
|
-
rest-client (>= 1.6.8, < 2)
|
15
|
-
simplecov (~> 0.9.1)
|
16
|
-
term-ansicolor (~> 1.3)
|
17
|
-
thor (~> 0.19.1)
|
18
|
-
diff-lcs (1.2.5)
|
19
|
-
docile (1.1.5)
|
20
|
-
domain_name (0.5.23)
|
21
|
-
unf (>= 0.0.5, < 1.0.0)
|
22
|
-
gem-release (0.7.3)
|
23
|
-
http-cookie (1.0.2)
|
24
|
-
domain_name (~> 0.5)
|
25
|
-
method_source (0.8.2)
|
26
|
-
mime-types (2.4.3)
|
27
|
-
multi_json (1.11.0)
|
28
|
-
netrc (0.10.3)
|
29
|
-
pg (0.18.1)
|
30
|
-
pry (0.10.1)
|
31
|
-
coderay (~> 1.1.0)
|
32
|
-
method_source (~> 0.8.1)
|
33
|
-
slop (~> 3.4)
|
34
|
-
pry-doc (0.6.0)
|
35
|
-
pry (~> 0.9)
|
36
|
-
yard (~> 0.8)
|
37
|
-
rake (10.4.2)
|
38
|
-
rest-client (1.8.0)
|
39
|
-
http-cookie (>= 1.0.2, < 2.0)
|
40
|
-
mime-types (>= 1.16, < 3.0)
|
41
|
-
netrc (~> 0.7)
|
42
|
-
rspec (3.2.0)
|
43
|
-
rspec-core (~> 3.2.0)
|
44
|
-
rspec-expectations (~> 3.2.0)
|
45
|
-
rspec-mocks (~> 3.2.0)
|
46
|
-
rspec-core (3.2.2)
|
47
|
-
rspec-support (~> 3.2.0)
|
48
|
-
rspec-expectations (3.2.0)
|
49
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
-
rspec-support (~> 3.2.0)
|
51
|
-
rspec-mocks (3.2.1)
|
52
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
53
|
-
rspec-support (~> 3.2.0)
|
54
|
-
rspec-support (3.2.2)
|
55
|
-
sandthorn_driver_sequel (2.0.0)
|
56
|
-
pg
|
57
|
-
sequel (~> 4.17)
|
58
|
-
sequel (4.20.0)
|
59
|
-
simplecov (0.9.2)
|
60
|
-
docile (~> 1.1.0)
|
61
|
-
multi_json (~> 1.0)
|
62
|
-
simplecov-html (~> 0.9.0)
|
63
|
-
simplecov-html (0.9.0)
|
64
|
-
slop (3.6.0)
|
65
|
-
sqlite3 (1.3.10)
|
66
|
-
term-ansicolor (1.3.0)
|
67
|
-
tins (~> 1.0)
|
68
|
-
thor (0.19.1)
|
69
|
-
tins (1.3.5)
|
70
|
-
unf (0.1.4)
|
71
|
-
unf_ext
|
72
|
-
unf_ext (0.0.6)
|
73
|
-
yard (0.8.7.6)
|
74
|
-
|
75
|
-
PLATFORMS
|
76
|
-
ruby
|
77
|
-
|
78
|
-
DEPENDENCIES
|
79
|
-
autotest-standalone
|
80
|
-
awesome_print
|
81
|
-
bundler (~> 1.3)
|
82
|
-
coveralls
|
83
|
-
gem-release
|
84
|
-
pry
|
85
|
-
pry-doc
|
86
|
-
rake
|
87
|
-
rspec (~> 3.0)
|
88
|
-
sandthorn!
|
89
|
-
sandthorn_driver_sequel (~> 2.0)
|
90
|
-
sqlite3
|