evt-command_line-component_generator 0.1.1.0 → 1.0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/source/README.md.tt +7 -0
- data/source/lib/%component_name%.rb.tt +1 -0
- data/source/lib/%component_name%/%entity_name%.rb.tt +3 -0
- data/source/lib/%component_name%/handlers/commands.rb.tt +4 -1
- data/source/lib/%component_name%/handlers/events.rb.tt +3 -0
- data/source/lib/%component_name%/projection.rb.tt +3 -0
- data/source/lib/%component_name%/store.rb.tt +6 -2
- data/source/settings/message_store_postgres.json.example +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a97be891b6a7a0c5314a0a34f89b6e18f5e8283b0207c72621728a064a70268
|
4
|
+
data.tar.gz: 4cfb2e32358aab8e0b0f0ead0159929debffa966b340755a8cc23e24bbfb886e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3301ee3dd43f54fa384ff3c96d58637e14e9f1377d4a32cea79eff7306b770492f2accbcae3f9dfbaa04e2c8c92bb0640b82492d280ebd2c2e3a0c312f7a929
|
7
|
+
data.tar.gz: 941d43760f6f3ba7822ccf1c9609829177a37e7feb1e8f93e73ca1d3876aa9bba62d04d1d0b092fc71f33b280f63ac296442a6899af7fab1d3a1c137d375d393
|
data/source/README.md.tt
ADDED
@@ -1,3 +1,6 @@
|
|
1
|
+
# Entity user guide: http://docs.eventide-project.org/user-guide/entities.html
|
2
|
+
# Entity snapshotting user guide: http://docs.eventide-project.org/user-guide/entity-store/snapshotting.html
|
3
|
+
|
1
4
|
module <%= component_constant_name %>
|
2
5
|
class <%= entity_constant_name %>
|
3
6
|
include Schema::DataStructure
|
@@ -1,3 +1,6 @@
|
|
1
|
+
# Handler user guide: http://docs.eventide-project.org/user-guide/handlers.html
|
2
|
+
# Message user guide: http://docs.eventide-project.org/user-guide/messages-and-message-data/
|
3
|
+
|
1
4
|
module <%= component_constant_name %>
|
2
5
|
module Handlers
|
3
6
|
class Commands
|
@@ -19,7 +22,7 @@ module <%= component_constant_name %>
|
|
19
22
|
|
20
23
|
category :<%= entity_name %>
|
21
24
|
|
22
|
-
# TODO Implement command handler
|
25
|
+
# TODO Implement command handler blocks
|
23
26
|
# eg:
|
24
27
|
# handle DoSomething do |do_something|
|
25
28
|
# <%= entity_name %>_id = do_something.<%= entity_name %>_id
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# Entity store user guide: http://docs.eventide-project.org/user-guide/entity-store/
|
2
|
+
|
1
3
|
module <%= component_constant_name %>
|
2
4
|
class Store
|
3
5
|
include EntityStore
|
@@ -5,7 +7,9 @@ module <%= component_constant_name %>
|
|
5
7
|
category :<%= entity_name %>
|
6
8
|
entity <%= entity_constant_name %>
|
7
9
|
projection Projection
|
8
|
-
reader MessageStore::Postgres::Read
|
9
|
-
|
10
|
+
reader MessageStore::Postgres::Read, batch_size: 1000
|
11
|
+
|
12
|
+
# Optional snapshotting
|
13
|
+
# snapshot EntitySnapshot::Postgres, interval: 1000
|
10
14
|
end
|
11
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-command_line-component_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
8
8
|
autorequire:
|
9
9
|
bindir: executable
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -66,6 +66,7 @@ files:
|
|
66
66
|
- source/%component_name%.gemspec.tt
|
67
67
|
- source/.gitignore
|
68
68
|
- source/Gemfile.tt
|
69
|
+
- source/README.md.tt
|
69
70
|
- source/init.rb.tt
|
70
71
|
- source/install-gems.sh
|
71
72
|
- source/lib/%component_name%.rb.tt
|