franz 2.1.7 → 2.1.8

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: b6f56ba47d6adce9b725e89c82f9d77763b87162
4
- data.tar.gz: 923a2838012eb28fec495490887326786fbfbbb8
3
+ metadata.gz: 11f00654a465bdcecd3268306209bb0ca09eb0c5
4
+ data.tar.gz: ec6e7b3bd6c6f8710739dc9a1f7eb6d402d29087
5
5
  SHA512:
6
- metadata.gz: dd5ce1689ecdd4667476b11ff74540bc4f262fec7959c4b9c6b1d488809e3f33e1277e51b05d4aa33ef4c851e364d51dab9c05d1478c966c0b9c22033234486b
7
- data.tar.gz: 9985397b685ae376718dca6ba2802367ec1c7dc8d8b856e777bd630f0f4053681713d067d783af9b5f486e53ce6692612ce91df576f3e69e26d6f2c38340d342
6
+ metadata.gz: ab263c372d9b576c6435271d186e7e9e771c050d70ed8d023c0f31d84a162bb178a546d9abae21e22a4738c0b9e4cfebcec9e1f1e6a5aca0663172890baf6c4e
7
+ data.tar.gz: db6572a16aec153ed1b22255e41f7f4dfad8d6e897eccaee0b89204d4789bf65e77039f6de5b8b600c3e25d3e346f47f136ecee5a7b30f19128c88f06e9dbd3d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.7
1
+ 2.1.8
data/lib/franz/input.rb CHANGED
@@ -86,7 +86,7 @@ module Franz
86
86
  watch_events = possibly_bounded_queue opts[:input][:watch_bound]
87
87
  tail_events = possibly_bounded_queue opts[:input][:tail_bound]
88
88
 
89
- ic = InputConfig.new opts[:input][:configs]
89
+ ic = InputConfig.new opts[:input][:configs], @logger
90
90
 
91
91
  @disover = Franz::Discover.new \
92
92
  input_config: ic,
@@ -2,7 +2,8 @@ module Franz
2
2
  class InputConfig
3
3
  attr_reader :configs
4
4
 
5
- def initialize configs
5
+ def initialize configs, logger=nil
6
+ @logger = logger || Logger.new(STDOUT)
6
7
  @configs = configs
7
8
  @configs.map! do |c|
8
9
  normalized_config c
@@ -62,6 +63,8 @@ module Franz
62
63
 
63
64
 
64
65
  private
66
+ def log ; @logger end
67
+
65
68
  def normalized_config config
66
69
  config[:keep] = realize_regexps config[:keep]
67
70
  config[:drop] = realize_regexps config[:drop]
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.7
4
+ version: 2.1.8
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-05-26 00:00:00.000000000 Z
11
+ date: 2015-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slog