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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b66259a2e6113c635f4267a135820e849e4d771a3a593c80029dcc70f04b2f1
4
- data.tar.gz: ecaeb373398df80672a2f4b841187cabacfbaa7e4894f2fe82ab9d8280d49f7b
3
+ metadata.gz: 7a97be891b6a7a0c5314a0a34f89b6e18f5e8283b0207c72621728a064a70268
4
+ data.tar.gz: 4cfb2e32358aab8e0b0f0ead0159929debffa966b340755a8cc23e24bbfb886e
5
5
  SHA512:
6
- metadata.gz: cc3d8ca7e50e1a2ae9c55498c606f2c1415ab8ad8ecebe4735859e56be6c94a0fb66fe66f9053e209abbff9d81c1d19bd51137e855b1a1d63e52e7fc8fe090f8
7
- data.tar.gz: 2432d418f002073924616ac1938033e12a1f55c555d6211cbf570995aa028e174a874771b80c6b35ce80c1716e33150854ff3bf482c37527a144ac5cc674376a
6
+ metadata.gz: e3301ee3dd43f54fa384ff3c96d58637e14e9f1377d4a32cea79eff7306b770492f2accbcae3f9dfbaa04e2c8c92bb0640b82492d280ebd2c2e3a0c312f7a929
7
+ data.tar.gz: 941d43760f6f3ba7822ccf1c9609829177a37e7feb1e8f93e73ca1d3876aa9bba62d04d1d0b092fc71f33b280f63ac296442a6899af7fab1d3a1c137d375d393
@@ -0,0 +1,7 @@
1
+ # <%= component_name %>
2
+
3
+ This component was generated by the Eventide component generator.
4
+
5
+ See: [http://docs.eventide-project.org](http://docs.eventide-project.org)
6
+
7
+ Search the code for "TODO" for hints on work to complete.
@@ -1,5 +1,6 @@
1
1
  require 'eventide/postgres'
2
2
 
3
+ # TODO Implement command and event messages
3
4
  # require '<%= component_name %>/messages/commands/...'
4
5
  # require '<%= component_name %>/messages/events/...'
5
6
 
@@ -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 block
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,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 Events
@@ -1,3 +1,6 @@
1
+ # Projection user guide: http://docs.eventide-project.org/user-guide/projection.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
  class Projection
3
6
  include EntityProjection
@@ -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
- snapshot EntitySnapshot::Postgres, interval: 1000
10
+ reader MessageStore::Postgres::Read, batch_size: 1000
11
+
12
+ # Optional snapshotting
13
+ # snapshot EntitySnapshot::Postgres, interval: 1000
10
14
  end
11
15
  end
@@ -1,3 +1,4 @@
1
+ // Session settings user guide: http://docs.eventide-project.org/user-guide/session.html#settings
1
2
  {
2
3
  "dbname": "message_store",
3
4
  "host": "localhost",
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: 0.1.1.0
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-07-31 00:00:00.000000000 Z
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