evt-entity_projection-fixtures 1.0.0.0 → 1.0.0.2

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: 6cffbcc380f88101008dc1f3f076a498740ff7ed8522b3756724a2e4c0d7b004
4
- data.tar.gz: 90732b35a165137be09147ec2d4fbf1fc64de2059198f4da69594b9370264170
3
+ metadata.gz: 2b5bb6af847178f211a5ce0c03c1f429775ba6ed3fa5a901322b4fe6b90d76a8
4
+ data.tar.gz: 37c73f6050a7a9c7dabe38301807847117e01649fef6f7acc93ce969d09de0dc
5
5
  SHA512:
6
- metadata.gz: 2d88e65aee9817d462f73b86fc195024a88bf63eb996539912e851b28413e1e012fcd8c1bd04b3c58b37cfd507a023d06baea4a6a2d82874a2858b22ba0f5e6c
7
- data.tar.gz: 8b3b7ee5096cb1be923d8b79da025e9429be74f00a404da81043b702d2788cb01ccc60a20d8e5ede46287d8de735399b85ff64a543f270cde2b0dd54b210900a
6
+ metadata.gz: a2a800fdebbfdcdd40f245fdbee1053a695ed2daad68114ab507c9ee5e48e7658b0c72c11a1acc2a295a6927f2a2139fdd6dcce7825c6d435641a5c8a706f3df
7
+ data.tar.gz: 7452a9844812f778bb46b0c1f287080e7b4bc105c3d09db2cc66d5ea1d70372e4138233511105c9dd9d3a49db180196920bdfdf0ad2e9bcd830644ce93b506ce
@@ -18,7 +18,7 @@ module EntityProjection
18
18
  include Schema::DataStructure
19
19
 
20
20
  attribute :id, String
21
- attribute :amount, Numeric, default: 0
21
+ attribute :amount, Numeric, default: proc { 0 }
22
22
  attribute :time, ::Time
23
23
  attribute :updated_time, ::Time
24
24
  end
@@ -25,7 +25,7 @@ module EntityProjection
25
25
  include Messaging::Message
26
26
 
27
27
  attribute :example_id, String
28
- attribute :amount, Numeric, default: 0
28
+ attribute :amount, Numeric, default: proc { 0 }
29
29
  attribute :time, String
30
30
  attribute :processed_time, String
31
31
  end
@@ -12,13 +12,13 @@ module EntityProjection
12
12
  event.class
13
13
  end
14
14
 
15
- initializer :projection, :control_entity, :entity, :event, :action
15
+ initializer :projection, :control_entity, :entity, :event, :test_block
16
16
 
17
- def self.build(projection, event, &action)
17
+ def self.build(projection, event, &test_block)
18
18
  entity = projection.entity
19
19
  control_entity = entity.clone
20
20
 
21
- new(projection, control_entity, entity, event, action)
21
+ new(projection, control_entity, entity, event, test_block)
22
22
  end
23
23
 
24
24
  def call
@@ -35,8 +35,8 @@ module EntityProjection
35
35
 
36
36
  projection.(event)
37
37
 
38
- if not action.nil?
39
- action.call(self)
38
+ if not test_block.nil?
39
+ test_block.call(self)
40
40
  end
41
41
  end
42
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-entity_projection-fixtures
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.0
4
+ version: 1.0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-11 00:00:00.000000000 Z
11
+ date: 2024-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-entity_projection
@@ -70,7 +70,7 @@ homepage: https://github.com/eventide-project/entity-projection-fixtures
70
70
  licenses:
71
71
  - MIT
72
72
  metadata: {}
73
- post_install_message:
73
+ post_install_message:
74
74
  rdoc_options: []
75
75
  require_paths:
76
76
  - lib
@@ -85,8 +85,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  requirements: []
88
- rubygems_version: 3.1.2
89
- signing_key:
88
+ rubygems_version: 3.5.9
89
+ signing_key:
90
90
  specification_version: 4
91
91
  summary: TestBench fixtures for EntityProjection implementations
92
92
  test_files: []