evt-messaging 0.9.0.1 → 0.9.1.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: 617f222f09f3cea3ebfb2385ae356025d0951199
4
- data.tar.gz: 3e2455f8277ab02b62245fb5b959cc53e4970af4
3
+ metadata.gz: 741a729c4c252808507531a9df991abe1f6a466f
4
+ data.tar.gz: b259aac5c248a7fd8d51bcf5792a75edb838cce0
5
5
  SHA512:
6
- metadata.gz: 3dee3a0bafb0730b817cdd9eb75466e53caf621825d4c35db81ca4de2cc241267bb57541bf567d8e68770aa23797599ca60ba76a3673fafb45bd5c2a3b4f1989
7
- data.tar.gz: cd6f0b5913ec1768865a19ade9d902b67bfdeebc773caae70a1b794ea8d188fac6203c65188da7878f8268b3ae3b2b094bc7ebcd3153cd9d9ebe57d8523acea7
6
+ metadata.gz: 6d13601756c8d4ccf92b29dee6a88e02e10d41713cf93bde6439cbbfd3f2d4260877843206957bbbc76e746cb1e2c7a6b0534fc0c985ab8edc279c8eea852212
7
+ data.tar.gz: 1a312ecbb155cefe8a2c9bf53860e12d59d47a886d95269fdbdd1341b7894d47524faa675e4e55fd705ca2001c6a0e4302e7ecd2163cf033bda26f0f3f397a7d
@@ -33,6 +33,7 @@ module Messaging
33
33
  attribute :some_attribute
34
34
  attribute :other_attribute
35
35
  end
36
+ Example = SomeMessage
36
37
 
37
38
  class OtherMessage
38
39
  include Messaging::Message
@@ -8,6 +8,7 @@ module Messaging
8
8
  extend Build
9
9
  extend Copy
10
10
  extend Follow
11
+ extend Correlate
11
12
  extend Transformer
12
13
 
13
14
  attribute :id, String
@@ -83,5 +84,13 @@ module Messaging
83
84
  end
84
85
  end
85
86
  end
87
+
88
+ module Correlate
89
+ def correlate(correlation_stream_name)
90
+ instance = build
91
+ instance.metadata.correlation_stream_name = correlation_stream_name
92
+ instance
93
+ end
94
+ end
86
95
  end
87
96
  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.9.0.1
4
+ version: 0.9.1.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-01-25 00:00:00.000000000 Z
11
+ date: 2017-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-event_source