evt-consumer 0.7.0.2 → 0.8.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
  SHA256:
3
- metadata.gz: 9a2cd864e791d6afccb9fe4561862322802b1827ef48c39c791750e032dd5a2e
4
- data.tar.gz: 3f295d68ea0c92cd25bdd577e78766c32c339426564c4567cf1a6232f7d33dcb
3
+ metadata.gz: c4d4be2ff1d29dd830d043007c6112369f41dff3ab6966d22445224719c868be
4
+ data.tar.gz: 4a16a984d0e2192cda71a4839206761d99e3ebb7af1d61e0ca5e94ca1fea2181
5
5
  SHA512:
6
- metadata.gz: 684467ec33e7b20d9586afc53b985803e157099f5894379697db51e5aa2ea8f8047847a4fb901b5d080aa36d8e30ae13569d33714a272cbeaaf565aa2be8b769
7
- data.tar.gz: 5ea4792094e46353496441c1d36dd7c5a2ea8ccd466315afb23a71430fbe54207aa9b0c42f5b293a9de7ae484238c68237992c6463447d3fbb82cd830d3869d8
6
+ metadata.gz: c01497154272cdfd2bca6818d3f028e627ba7f60fdb74193d25870bc58c8f7cd45bce82712b76a7cd090bcc2bdf6b363165f2b52fa140afa18920a4d5d10e20f
7
+ data.tar.gz: c7a00242127366d1bb2f8048d7fd81cbccc7b243815204ff6442c7aa2b30776cf05dcbb71775fc62330d445db18bb5e59e1664a7a847cf4f409061d36fce68ff
@@ -18,7 +18,7 @@ module Consumer
18
18
  @position_update_interval ||= Defaults.position_update_interval
19
19
  end
20
20
 
21
- attr_accessor :cycle_maximum_milliseconds
21
+ attr_accessor :cycle_interval_milliseconds
22
22
  attr_accessor :cycle_timeout_milliseconds
23
23
 
24
24
  dependency :dispatch, Dispatch
@@ -105,7 +105,7 @@ module Consumer
105
105
  stream_name,
106
106
  get,
107
107
  position: starting_position,
108
- cycle_maximum_milliseconds: cycle_maximum_milliseconds,
108
+ cycle_interval_milliseconds: cycle_interval_milliseconds,
109
109
  cycle_timeout_milliseconds: cycle_timeout_milliseconds
110
110
  )
111
111
 
@@ -118,11 +118,11 @@ module Consumer
118
118
  end
119
119
 
120
120
  module Build
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)
121
+ def build(stream_name, batch_size: nil, position_store: nil, position_update_interval: nil, session: nil, cycle_timeout_milliseconds: nil, cycle_interval_milliseconds: nil, **arguments)
122
122
  instance = new stream_name
123
123
 
124
124
  instance.position_update_interval = position_update_interval
125
- instance.cycle_maximum_milliseconds = cycle_maximum_milliseconds
125
+ instance.cycle_interval_milliseconds = cycle_interval_milliseconds
126
126
  instance.cycle_timeout_milliseconds = cycle_timeout_milliseconds
127
127
 
128
128
  instance.configure(batch_size: batch_size, position_store: position_store, session: session, **arguments)
@@ -3,12 +3,12 @@ module Consumer
3
3
  module Cycle
4
4
  def self.example
5
5
  ::Cycle.build(
6
- maximum_milliseconds: maximum_milliseconds,
6
+ interval_milliseconds: interval_milliseconds,
7
7
  timeout_milliseconds: timeout_milliseconds
8
8
  )
9
9
  end
10
10
 
11
- def self.maximum_milliseconds
11
+ def self.interval_milliseconds
12
12
  1
13
13
  end
14
14
 
@@ -16,8 +16,8 @@ module Consumer
16
16
 
17
17
  dependency :cycle, Cycle
18
18
 
19
- def self.build(stream_name, get, position: nil, cycle_maximum_milliseconds: nil, cycle_timeout_milliseconds: nil)
20
- cycle_maximum_milliseconds ||= Defaults.cycle_maximum_milliseconds
19
+ def self.build(stream_name, get, position: nil, cycle_interval_milliseconds: nil, cycle_timeout_milliseconds: nil)
20
+ cycle_interval_milliseconds ||= Defaults.cycle_interval_milliseconds
21
21
  cycle_timeout_milliseconds ||= Defaults.cycle_timeout_milliseconds
22
22
 
23
23
  instance = new(stream_name, get)
@@ -26,7 +26,7 @@ module Consumer
26
26
 
27
27
  Cycle.configure(
28
28
  instance,
29
- maximum_milliseconds: cycle_maximum_milliseconds,
29
+ interval_milliseconds: cycle_interval_milliseconds,
30
30
  timeout_milliseconds: cycle_timeout_milliseconds
31
31
  )
32
32
 
@@ -1,7 +1,7 @@
1
1
  module Consumer
2
2
  class Subscription
3
3
  module Defaults
4
- def self.cycle_maximum_milliseconds
4
+ def self.cycle_interval_milliseconds
5
5
  100
6
6
  end
7
7
 
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.2
4
+ version: 0.8.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: 2018-07-23 00:00:00.000000000 Z
11
+ date: 2018-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ntl-actor