evt-command_line-component_generator 1.0.0.0 → 1.0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/source/lib/%component_name%.rb.tt +1 -1
- data/source/lib/%component_name%/%entity_name%.rb.tt +2 -2
- data/source/lib/%component_name%/controls.rb.tt +2 -0
- data/source/lib/%component_name%/handlers/commands.rb.tt +5 -3
- data/source/lib/%component_name%/handlers/events.rb.tt +4 -3
- data/source/lib/%component_name%/projection.rb.tt +2 -1
- data/source/test/test_init.rb.tt +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ed4b24c149e4e6a087647b4e2783576a5c4af105c3a72c37b6b5a5716efb17f
|
4
|
+
data.tar.gz: cc292c79eabea9a7b672a9a6634c23c8af0088d73cf8c20cdd9cc2059cd2c72c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e747c465a034bd3359a4575b21707cbb0dfe265687df6a6090873f9b3e79229fa7000fdabaed4d20e9395f1645ba9e6ea1865df6f03c3d088dd1e7d363a9e6d
|
7
|
+
data.tar.gz: 22954de2393fc903b00532d9d1d875cc94ec26b7080660e7aeebd3172204bd005681da2d040eb6561f6e9fc849ceea82c55209a4a834bcc946102d2a3631421c
|
@@ -8,7 +8,7 @@ module <%= component_constant_name %>
|
|
8
8
|
attribute :id, String
|
9
9
|
|
10
10
|
# TODO Implement attributes
|
11
|
-
# TODO Implement entity logic, predicates, mutations, calculations, etc
|
12
|
-
# Note: This class's methods should pertain to its attributes
|
11
|
+
# TODO Implement entity logic, predicates, mutations, calculations, etc
|
12
|
+
# Note: This class's methods should pertain only to its attributes
|
13
13
|
end
|
14
14
|
end
|
@@ -7,6 +7,8 @@ require '<%= component_name %>/controls/version'
|
|
7
7
|
|
8
8
|
require '<%= component_name %>/controls/<%= entity_name %>'
|
9
9
|
|
10
|
+
# TODO Implement command controls (if using controls as part of your testing methodology)"
|
10
11
|
# require '<%= component_name %>/controls/commands/...'
|
11
12
|
|
13
|
+
# TODO Implement event controls (if using controls as part of your testing methodology)"
|
12
14
|
# require '<%= component_name %>/controls/events/...'
|
@@ -7,8 +7,10 @@ module <%= component_constant_name %>
|
|
7
7
|
include Messaging::Handle
|
8
8
|
include Messaging::StreamName
|
9
9
|
include Log::Dependency
|
10
|
-
include Messages::Commands
|
11
|
-
include Messages::
|
10
|
+
# TODO include Messages::Commands once commands are implemented
|
11
|
+
# include Messages::Commands
|
12
|
+
# TODO include Messages::Events once commands are implemented"
|
13
|
+
# include Messages::Events
|
12
14
|
|
13
15
|
dependency :write, Messaging::Postgres::Write
|
14
16
|
dependency :clock, Clock::UTC
|
@@ -22,7 +24,7 @@ module <%= component_constant_name %>
|
|
22
24
|
|
23
25
|
category :<%= entity_name %>
|
24
26
|
|
25
|
-
# TODO Implement command handler blocks
|
27
|
+
# TODO Implement command handler blocks"
|
26
28
|
# eg:
|
27
29
|
# handle DoSomething do |do_something|
|
28
30
|
# <%= entity_name %>_id = do_something.<%= entity_name %>_id
|
@@ -7,12 +7,13 @@ module <%= component_constant_name %>
|
|
7
7
|
include Messaging::Handle
|
8
8
|
include Messaging::StreamName
|
9
9
|
include Log::Dependency
|
10
|
-
include Messages::
|
11
|
-
include Messages::Events
|
10
|
+
# include Messages::Events once events are implemented
|
11
|
+
# include Messages::Events
|
12
12
|
|
13
|
-
# TODO Implement event handler blocks
|
14
13
|
# Note: Delete this file if not handling events
|
15
14
|
|
15
|
+
# TODO Implement event handler blocks
|
16
|
+
# eg:
|
16
17
|
# handle SomethingHappened do |something_happened|
|
17
18
|
# end
|
18
19
|
end
|
data/source/test/test_init.rb.tt
CHANGED
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: 1.0.0.
|
4
|
+
version: 1.0.0.1
|
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-
|
11
|
+
date: 2018-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|