evt-messaging 0.22.2.0 → 0.23.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
  SHA1:
3
- metadata.gz: f6b29466fda48a4e5c7087313abe8be98f0e36fd
4
- data.tar.gz: efdeb94fbf1ce6dbb5e2d336d74c1ea1a72bec8a
3
+ metadata.gz: e481188f31963f0a01fa2679617682d861a0ac1a
4
+ data.tar.gz: 2e2d93b78b30e811a0d4f99597311eef6ead93b3
5
5
  SHA512:
6
- metadata.gz: 4ee6350023625c7cd9c1b1565ef385834637f20c0dd158f5729aea17223cb2f989b5540ab3117d984678bf9b039ebae1ba15834c0c2552a2b901602da7081c45
7
- data.tar.gz: aad8ad3705a0bb26b33706ac940b04da46c6b467e1db74adbae2769bf0e496c4da1576a7a21885e14e9133d86ac14a0ccc759d45887ff641ed3ddc611f84fabb
6
+ metadata.gz: d993d1746c10ec0bc24d40d0b1c598b140e5358ee4e56b895a42fb3d2437d9175e6797da74e4822eae3b3c06014a21c6386e0bff2167a754852eccd7ec01ecdc
7
+ data.tar.gz: 822484bdce6fbfa0722e387150717f5be68df47b7a137e6af16aeeb36b0dd502c6bae46525b91da86f055fc64c15f9d1727b787e7aabde8c1307365aaf01d44a
@@ -8,8 +8,8 @@ require 'messaging/message'
8
8
  require 'messaging/message/metadata'
9
9
  require 'messaging/message/copy'
10
10
  require 'messaging/message/follow'
11
- require 'messaging/message/sequence_accessor'
12
- require 'messaging/message/sequenced'
11
+ require 'messaging/message/event/sequence_accessor'
12
+ require 'messaging/message/command/sequence_accessor'
13
13
 
14
14
  require 'messaging/message/transformer'
15
15
  require 'messaging/message/import'
@@ -48,27 +48,6 @@ module Messaging
48
48
  attribute :some_attribute
49
49
  end
50
50
 
51
- module Sequenced
52
- def self.example
53
- message = Example.new
54
-
55
- message.id = Message.id
56
- message.some_attribute = Message.attribute
57
- message.other_attribute = Message.other_attribute
58
-
59
- message.metadata = Controls::Metadata.example
60
-
61
- message
62
- end
63
-
64
- class Example
65
- include Messaging::Message::Sequenced
66
-
67
- attribute :some_attribute
68
- attribute :other_attribute
69
- end
70
- end
71
-
72
51
  def self.message_class
73
52
  SomeMessage
74
53
  end
@@ -0,0 +1,11 @@
1
+ module Messaging
2
+ module Message
3
+ module Command
4
+ module SequenceAccessor
5
+ def sequence
6
+ metadata.global_position
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,15 @@
1
+ module Messaging
2
+ module Message
3
+ module Event
4
+ module SequenceAccessor
5
+ def sequence
6
+ metadata.causation_message_global_position
7
+ end
8
+
9
+ def sequence=(val)
10
+ metadata.causation_message_global_position = val
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,14 @@
1
+ module Messaging
2
+ module Message
3
+
4
+ module GlobalAccessor
5
+ def sequence
6
+ metadata.causation_message_global_position
7
+ end
8
+
9
+ def sequence=(val)
10
+ metadata.causation_message_global_position = val
11
+ end
12
+ end
13
+ end
14
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-messaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.2.0
4
+ version: 0.23.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-07 00:00:00.000000000 Z
11
+ date: 2017-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-message_store
@@ -62,13 +62,15 @@ files:
62
62
  - lib/messaging/handle/defaults.rb
63
63
  - lib/messaging/log.rb
64
64
  - lib/messaging/message.rb
65
+ - lib/messaging/message/command/sequence_accessor.rb
65
66
  - lib/messaging/message/copy.rb
67
+ - lib/messaging/message/event/sequence_accessor.rb
66
68
  - lib/messaging/message/export.rb
67
69
  - lib/messaging/message/follow.rb
70
+ - lib/messaging/message/global_position_accessor.rb
68
71
  - lib/messaging/message/import.rb
69
72
  - lib/messaging/message/metadata.rb
70
73
  - lib/messaging/message/sequence_accessor.rb
71
- - lib/messaging/message/sequenced.rb
72
74
  - lib/messaging/message/transformer.rb
73
75
  - lib/messaging/message_registry.rb
74
76
  - lib/messaging/stream_name.rb
@@ -1,12 +0,0 @@
1
- module Messaging
2
- module Message
3
- module Sequenced
4
- def self.included(cls)
5
- cls.class_exec do
6
- include Messaging::Message
7
- include Messaging::Message::SequenceAccessor
8
- end
9
- end
10
- end
11
- end
12
- end