sequent 2.0.0 → 2.1.0
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 +5 -5
- data/lib/sequent/test/event_stream_helpers.rb +5 -5
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 73d2ee9247b64d69617de99ffed129de86385e4a58f463b52d5558126ccf89ba
|
|
4
|
+
data.tar.gz: 32b61b477f9a7ff2d0df8b93a7a704705a20b661cdeab3b9388431e4ec4b9d8d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 784e843cfc6a86120b9f48779fad3104d3504fd7d472ab925a19f0de897fd2b0f745d1fb4e8c77bcecbb254976e0148443d18bed52dabd8f9400cf1551c451d3
|
|
7
|
+
data.tar.gz: 9f027d9bb65d643ecb5cf2b37c854890d4c3b3bba840373088e3a1b35db92de0d7f22bc76ebc92910d076e6ed102aba9d20fe96f5195e0e9ed3f36bd5a53ee4c
|
|
@@ -3,7 +3,7 @@ module Sequent
|
|
|
3
3
|
##
|
|
4
4
|
# Use in tests
|
|
5
5
|
#
|
|
6
|
-
# This provides a nice DSL for generating streams of events.
|
|
6
|
+
# This provides a nice DSL for generating streams of events. FactoryBot is required when using this helper.
|
|
7
7
|
#
|
|
8
8
|
# Example for Rspec config
|
|
9
9
|
#
|
|
@@ -19,7 +19,7 @@ module Sequent
|
|
|
19
19
|
# s.owner_joined_group owner_aggregate_id: 'Y'
|
|
20
20
|
# end
|
|
21
21
|
#
|
|
22
|
-
# Methods on `s` will be
|
|
22
|
+
# Methods on `s` will be FactoryBot factories. All arguments will be passed on to FactoryBot's build method.
|
|
23
23
|
# Aggregate ids and sequence numbers will be set automatically.
|
|
24
24
|
#
|
|
25
25
|
# The example above can also be written as follows:
|
|
@@ -43,7 +43,7 @@ module Sequent
|
|
|
43
43
|
|
|
44
44
|
def method_missing(name, *args, &block)
|
|
45
45
|
args = prepare_arguments(args)
|
|
46
|
-
@events <<
|
|
46
|
+
@events << FactoryBot.build(name, *args, &block)
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
private
|
|
@@ -69,9 +69,9 @@ module Sequent
|
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
def self.included(spec)
|
|
72
|
-
require '
|
|
72
|
+
require 'factory_bot'
|
|
73
73
|
rescue LoadError
|
|
74
|
-
raise ArgumentError, "Factory
|
|
74
|
+
raise ArgumentError, "Factory bot is required to use the event stream helpers"
|
|
75
75
|
end
|
|
76
76
|
end
|
|
77
77
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sequent
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lars Vonk
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 2018-05-18 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: activerecord
|
|
@@ -282,7 +282,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
282
282
|
version: '0'
|
|
283
283
|
requirements: []
|
|
284
284
|
rubyforge_project:
|
|
285
|
-
rubygems_version: 2.
|
|
285
|
+
rubygems_version: 2.7.3
|
|
286
286
|
signing_key:
|
|
287
287
|
specification_version: 4
|
|
288
288
|
summary: Event sourcing framework for Ruby
|