evt-messaging 1.1.0.0 → 1.1.0.1

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: 24472eac9b26b277a4bab22bff5613538f38d7d3ed4bc68dba79cd0b4c3ceac8
4
- data.tar.gz: f6b13eaaa7c188d0fc073355f644570e7073f5f3f87078df9690df799169f385
3
+ metadata.gz: db095afa4e8358fbd78113c1fb5913a9227dbd245c5bc4eb5d905a66d591a6fa
4
+ data.tar.gz: 2b3c5ff5ac0e070a25b70de4d6285cc30f66a499253a44cdf91e2c230bf86f93
5
5
  SHA512:
6
- metadata.gz: 4824ca60bb35bdee29c00d6aa0a8766498cb5d27d37b14cfb224c366094bc8a5fbb0d96ced4433d15e54d95a1d7a7823bd9329611b388797aa918805872403aa
7
- data.tar.gz: 482d4223bc1827d6d1d95194c53ee79faa6533142c2a94ef4d3213d30c0c2dd31517c804c830225f732ffad4a8a202ecc1ae97e1e96e4c08ae6351c1ee282ccb
6
+ metadata.gz: 8b35750ca9a1b565d61b613b821c7e943c8c2628cdbdf30e516027bd1d1a90806e4ce6cf630f521485ee350a7c07abdca9dfd2ecc9364298537fca6e5af80869
7
+ data.tar.gz: a7e04bd995671a31e228393fd1529abe6967fcd8b910726b8a45656bc935d5c4b76cbaa60b465748edf5b837a67ecfe3fea6f07669ef32a917fc277f5c4ecf2c
@@ -48,6 +48,16 @@ module Messaging
48
48
  attribute :some_attribute
49
49
  end
50
50
 
51
+ class Import
52
+ include Messaging::Message
53
+
54
+ attribute :some_attribute
55
+
56
+ def import(data)
57
+ data[:some_attribute] = "#{data[:some_attribute]} imported"
58
+ end
59
+ end
60
+
51
61
  def self.message_class
52
62
  SomeMessage
53
63
  end
@@ -72,6 +72,7 @@ module Messaging
72
72
  metadata = build_metadata(metadata)
73
73
 
74
74
  new.tap do |instance|
75
+ instance.import(data)
75
76
  set_attributes(instance, data)
76
77
  instance.metadata = metadata
77
78
  end
@@ -43,6 +43,7 @@ module Messaging
43
43
  return nil if causation_message_stream_name.nil? || causation_message_position.nil?
44
44
  "#{causation_message_stream_name}/#{causation_message_position}"
45
45
  end
46
+ alias :causation_identifier :causation_message_identifier
46
47
 
47
48
  def follow(preceding_metadata)
48
49
  self.causation_message_stream_name = preceding_metadata.stream_name
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: 1.1.0.0
4
+ version: 1.1.0.1
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: 2019-01-21 00:00:00.000000000 Z
11
+ date: 2019-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-message_store
@@ -92,8 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
94
  requirements: []
95
- rubyforge_project:
96
- rubygems_version: 2.7.3
95
+ rubygems_version: 3.0.1
97
96
  signing_key:
98
97
  specification_version: 4
99
98
  summary: Common primitives for platform-specific messaging implementations for Eventide