sandthorn 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1029a5956517741e56d4d6803c8a505b08a4c2f3
4
- data.tar.gz: ecd66efba1d4f987cae937822730c1b407050acc
3
+ metadata.gz: a1a17a62b61cd04ee60ba16439ae0d5b93ffd179
4
+ data.tar.gz: 7ee6bcb37e9016d254c2ed32dcefb45831e55f8b
5
5
  SHA512:
6
- metadata.gz: 31df15e4008339c0281432f0e0fd1232fbfcfb4227a020ef5c7842fb80eb3ceb989de32ad34d05be2fe782889761b9a797f6cdb6128d4f2495142d2d79773905
7
- data.tar.gz: f2b21aa607186f555900725b77de6d4e8fba666e441eae7a4ae7a1882e1feb61e413905f143a80fb4306ca2feedc6e572d82fd5c7716e2fa986a42d710b555db
6
+ metadata.gz: 7b9bdd8af7ca4e12d2924786328675264f60411a066b069bab152ab0a54bdecf2db3ea3bb0e69a4419c9b0114782d3e3ba753fc48e020f8c0315ca2ec6168017
7
+ data.tar.gz: 3584ac990d2df159a15ed211d43a7ef0c17abf966599efedbc27fbde9d5e727920e0c8bbc2add4f6b3f315fe398f068a94b4d7c3a2a327546f619bce55e240aa
data/.gitignore CHANGED
@@ -12,9 +12,10 @@ spec/reports
12
12
  test/tmp
13
13
  test/version_tmp
14
14
  tmp
15
+ Gemfile.lock
15
16
 
16
17
  # YARD artifacts
17
18
  .yardoc
18
19
  _yardoc
19
20
  doc/
20
- .idea
21
+ .idea
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
@@ -1,3 +1,3 @@
1
1
  module Sandthorn
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
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.0
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-05-06 00:00:00.000000000 Z
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