franz 2.2.2 → 2.2.3

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: 98e3643c3a665282fa261b24ffc11703d31b7d4f
4
- data.tar.gz: 3ffac79b8b665635a53daf79a5a45fea8c95085a
3
+ metadata.gz: 0082fd7ad9dc467ca6784ea44500b35cba7b57da
4
+ data.tar.gz: bbf6a2e929c8e6081ed3a3dad6eb6d0319e30df7
5
5
  SHA512:
6
- metadata.gz: 6528dc6195f95e35a67e7266af4ace7a5bbbaa0b5181f7141839008bd769c4f59fe090d4d1badd2adc35058aa4605f52c1fc099c57b03dcbef0ab2f3279fcb0c
7
- data.tar.gz: 42d947ca88f7afa6ed88e284a951aa79df4d8155389856fda1c76a2a98acb4adbe089d0e74dc14a2e1d8a33a9dc7a8222e6cb999704651543f37be3a63875fd1
6
+ metadata.gz: a0f57203664109685e72b08c530fbe36063c23a41f47c02440a02f65669363600507689130b4b79f6962718136f25ca5dc9917ddab848addb33b53c22126fdf0
7
+ data.tar.gz: 4a3d2c1191ec3ba7753346ea8e821be30105998c6c3e4f05253d488670b51f36a5887b4c0c2098f5b162543f867be2495f1c697b9ee8818be406be7c245e9883
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.2.2
1
+ 2.2.3
data/lib/franz/stats.rb CHANGED
@@ -80,6 +80,9 @@ module Franz
80
80
  ready_stats = with_lock do
81
81
  stats.map { |k,vhash| [ k, vhash[:val] ] }
82
82
  end
83
+
84
+ raise 'No stats?!' if ready_stats.size < 2 # HACK! Need a more elegant solution...
85
+
83
86
  log.info \
84
87
  event: 'stats',
85
88
  interval: @interval,
data/test/Dockerfile CHANGED
@@ -1,16 +1,16 @@
1
1
  FROM phusion/baseimage:0.9.18
2
-
3
2
  MAINTAINER Sean Clemmer <sczizzo@gmail.com>
4
-
5
3
  ENV DEBIAN_FRONTEND=noninteractive
6
4
 
7
- COPY ./ /tmp/franz/
5
+ COPY . /build
8
6
 
9
7
  RUN apt-get update \
10
8
  && apt-get install -y libtool libsnappy1 libsnappy-dev \
11
- && rm -rf /tmp/* \
12
- && rm -rf /var/lib/apt/lists/*
9
+ && apt-get autoremove --purge \
10
+ && apt-get autoclean \
11
+ && apt-get clean \
12
+ && rm -rf /build /tmp/* /var/lib/apt/lists/*
13
13
 
14
- RUN ls -la /tmp/franz
14
+ RUN ls -la /build
15
15
 
16
16
  CMD [ "whoami" ]
@@ -8,6 +8,7 @@ require 'minitest/autorun'
8
8
  require 'slog'
9
9
  require 'deep_merge'
10
10
 
11
+ require_relative 'test_helper'
11
12
  require_relative '../lib/franz'
12
13
 
13
14
  Thread.abort_on_exception = true
@@ -7,6 +7,7 @@ require 'minitest/autorun'
7
7
  require 'slog'
8
8
  require 'deep_merge'
9
9
 
10
+ require_relative 'test_helper'
10
11
  require_relative '../lib/franz'
11
12
 
12
13
  Thread.abort_on_exception = true
@@ -7,6 +7,7 @@ require 'minitest/autorun'
7
7
  require 'slog'
8
8
  require 'deep_merge'
9
9
 
10
+ require_relative 'test_helper'
10
11
  require_relative '../lib/franz'
11
12
 
12
13
  Thread.abort_on_exception = true
@@ -7,6 +7,7 @@ require 'minitest/autorun'
7
7
  require 'slog'
8
8
  require 'deep_merge'
9
9
 
10
+ require_relative 'test_helper'
10
11
  require_relative '../lib/franz'
11
12
 
12
13
  Thread.abort_on_exception = true
@@ -0,0 +1,7 @@
1
+ require 'simplecov'
2
+ require 'simplecov-cobertura'
3
+ SimpleCov.formatters = [
4
+ SimpleCov::Formatter::HTMLFormatter,
5
+ SimpleCov::Formatter::CoberturaFormatter
6
+ ]
7
+ SimpleCov.start
@@ -8,6 +8,7 @@ require 'minitest/autorun'
8
8
  require 'slog'
9
9
  require 'deep_merge'
10
10
 
11
+ require_relative 'test_helper'
11
12
  require_relative '../lib/franz'
12
13
 
13
14
  Thread.abort_on_exception = true
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.2.2
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Clemmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-09 00:00:00.000000000 Z
11
+ date: 2016-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slog
@@ -154,6 +154,7 @@ files:
154
154
  - test/test_franz_discover.rb
155
155
  - test/test_franz_tail.rb
156
156
  - test/test_franz_watch.rb
157
+ - test/test_helper.rb
157
158
  - test/test_performance.rb
158
159
  homepage: https://github.com/sczizzo/franz
159
160
  licenses:
@@ -185,4 +186,5 @@ test_files:
185
186
  - test/test_franz_discover.rb
186
187
  - test/test_franz_tail.rb
187
188
  - test/test_franz_watch.rb
189
+ - test/test_helper.rb
188
190
  - test/test_performance.rb