evt-consumer 0.7.0.1 → 0.7.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/consumer/consumer.rb +6 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4bbd2a49230c4c780448c17e9c7f0930a610ff2127d2551e2ee79fdef65f8e8
4
- data.tar.gz: 0cba37897953f3751f0c3f682d4b62ce01c9cd3ab0d39b039287b5fa18823ea6
3
+ metadata.gz: 9a2cd864e791d6afccb9fe4561862322802b1827ef48c39c791750e032dd5a2e
4
+ data.tar.gz: 3f295d68ea0c92cd25bdd577e78766c32c339426564c4567cf1a6232f7d33dcb
5
5
  SHA512:
6
- metadata.gz: 8f992440103af66a74344f49249bde32cc93575ef2e280e0ada2acbf6999a1a27c0d8453f662ce53893c0e69b79b4b62a0bffb60704679a235216f360be9e0be
7
- data.tar.gz: 4fbb7c2f566666e1a7496e307297d418ceb051abe8db568eaf67a323a595a02773cab3d309ed22889ac6623c489a8d0f9a59078bf54550bc8e32a1c1e583eea5
6
+ metadata.gz: 684467ec33e7b20d9586afc53b985803e157099f5894379697db51e5aa2ea8f8047847a4fb901b5d080aa36d8e30ae13569d33714a272cbeaaf565aa2be8b769
7
+ data.tar.gz: 5ea4792094e46353496441c1d36dd7c5a2ea8ccd466315afb23a71430fbe54207aa9b0c42f5b293a9de7ae484238c68237992c6463447d3fbb82cd830d3869d8
@@ -29,13 +29,13 @@ module Consumer
29
29
  end
30
30
 
31
31
  def call(message_data)
32
- logger.trace { "Dispatching event (#{LogText.message_data(message_data)})" }
32
+ logger.trace { "Dispatching message (#{LogText.message_data(message_data)})" }
33
33
 
34
34
  dispatch.(message_data)
35
35
 
36
36
  update_position(message_data.global_position)
37
37
 
38
- logger.info { "Event dispatched (#{LogText.message_data(message_data)})" }
38
+ logger.info { "Message dispatched (#{LogText.message_data(message_data)})" }
39
39
 
40
40
  rescue => error
41
41
  logger.error { "Error raised (Error Class: #{error.class}, Error Message: #{error.message}, #{LogText.message_data(message_data)})" }
@@ -88,7 +88,7 @@ module Consumer
88
88
 
89
89
  module LogText
90
90
  def self.message_data(message_data)
91
- "Stream: #{message_data.stream_name}, Position: #{message_data.position}, GlobalPosition: #{message_data.global_position}, Type: #{message_data.type}"
91
+ "Type: #{message_data.type}, Stream: #{message_data.stream_name}, Position: #{message_data.position}, GlobalPosition: #{message_data.global_position}"
92
92
  end
93
93
  end
94
94
 
@@ -120,10 +120,13 @@ module Consumer
120
120
  module Build
121
121
  def build(stream_name, batch_size: nil, position_store: nil, position_update_interval: nil, session: nil, cycle_timeout_milliseconds: nil, cycle_maximum_milliseconds: nil, **arguments)
122
122
  instance = new stream_name
123
+
123
124
  instance.position_update_interval = position_update_interval
124
125
  instance.cycle_maximum_milliseconds = cycle_maximum_milliseconds
125
126
  instance.cycle_timeout_milliseconds = cycle_timeout_milliseconds
127
+
126
128
  instance.configure(batch_size: batch_size, position_store: position_store, session: session, **arguments)
129
+
127
130
  instance
128
131
  end
129
132
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-consumer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0.1
4
+ version: 0.7.0.2
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: 2018-04-05 00:00:00.000000000 Z
11
+ date: 2018-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ntl-actor