franz 2.1.8 → 2.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/franz/config.rb +4 -0
- data/lib/franz/input_config.rb +3 -1
- data/lib/franz/watch.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 57ec3c8168602750bc3d92b7fb85b3726e8ee388
|
|
4
|
+
data.tar.gz: 37a3fcd07aadd473385364afb214dc69a3221fa4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ae213ef7b324adf8a1fe4047569bbe4e567118eaa84bcee7a712d734f7002ff626ab3f93b7a086c64833c10b1110940af3cff08810fedf10f75b93fc2e8cc0d
|
|
7
|
+
data.tar.gz: cdb3ef21b32939fff9b9695c814f7154aa01d5e0ed487c7c584b709b1767694e4c335be453c9a51f5f3285231e136bdf2e59ee49fe60e3ec91f6805e3a159bff
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.1.
|
|
1
|
+
2.1.9
|
data/lib/franz/config.rb
CHANGED
|
@@ -13,6 +13,10 @@ module Franz
|
|
|
13
13
|
# @return [Hash] config compiled into a native Hash
|
|
14
14
|
def self.new path
|
|
15
15
|
config = JSON::parse File.read(path), symbolize_names: true
|
|
16
|
+
config = {
|
|
17
|
+
input: { configs: [] },
|
|
18
|
+
output: {}
|
|
19
|
+
}.deep_merge!(config)
|
|
16
20
|
config[:input][:configs].map! do |input|
|
|
17
21
|
input[:multiline] = Regexp.new input[:multiline] if input.has_key?(:multiline)
|
|
18
22
|
input[:type] = input[:type].to_sym
|
data/lib/franz/input_config.rb
CHANGED
data/lib/franz/watch.rb
CHANGED
|
@@ -41,7 +41,11 @@ module Franz
|
|
|
41
41
|
if @play_catchup
|
|
42
42
|
log.debug event: 'play catchup'
|
|
43
43
|
stats.keys.each do |path|
|
|
44
|
-
|
|
44
|
+
if @ic.type path
|
|
45
|
+
stats[path][:size] = opts[:cursors][path] || 0
|
|
46
|
+
else # we shouldn't be watching this file anymore
|
|
47
|
+
stats.delete path
|
|
48
|
+
end
|
|
45
49
|
end
|
|
46
50
|
end
|
|
47
51
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: franz
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sean Clemmer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-07-
|
|
11
|
+
date: 2015-07-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: slog
|