franz 2.2.1 → 2.2.2

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: 4ab67878a33a64705a5a546e9e98616c763a1007
4
- data.tar.gz: 94d3def362509f2a8804fd99914ccf3d2d03f926
3
+ metadata.gz: 98e3643c3a665282fa261b24ffc11703d31b7d4f
4
+ data.tar.gz: 3ffac79b8b665635a53daf79a5a45fea8c95085a
5
5
  SHA512:
6
- metadata.gz: ed1e406ff1202a326e49c874ebdebfe50ba55281564a3ab4d28e546f953f2c072478eb9bae5bb66923f91da60e36ce859e7b2bbe06d0e71fc5925a5fa40aaaf4
7
- data.tar.gz: 0e471cbe59903ce9f1220431ff6a0d96972306b690b197d4badf762a97e5ffa421046374bb862e9cc5456d2fe41054c8b2f927d9f0415433bdcbf16aed8b24a2
6
+ metadata.gz: 6528dc6195f95e35a67e7266af4ace7a5bbbaa0b5181f7141839008bd769c4f59fe090d4d1badd2adc35058aa4605f52c1fc099c57b03dcbef0ab2f3279fcb0c
7
+ data.tar.gz: 42d947ca88f7afa6ed88e284a951aa79df4d8155389856fda1c76a2a98acb4adbe089d0e74dc14a2e1d8a33a9dc7a8222e6cb999704651543f37be3a63875fd1
data/Readme.md CHANGED
@@ -229,6 +229,7 @@ for Chef.
229
229
  - Updated dependencies, improved packaging
230
230
  - No more `TRACE`-level logging (demoted to `DEBUG`)
231
231
  - Better command-line options backed by environment variables
232
+ - Basic Auth support in HTTP output
232
233
 
233
234
 
234
235
  #### v2.1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.2.1
1
+ 2.2.2
@@ -24,7 +24,7 @@ module Franz
24
24
  tags: [],
25
25
  input: [],
26
26
  output: {
27
- server: 'http://localhost:3000',
27
+ uri: 'http://user:pass@localhost:3000/v2/.theon',
28
28
  flush_size: 500,
29
29
  flush_interval: 10,
30
30
  ssl: {
@@ -44,9 +44,9 @@ module Franz
44
44
  @stop = false
45
45
  @foreground = opts[:foreground]
46
46
 
47
- server = opts[:output].delete :server
48
- @uri = URI(server)
49
- @ssl = if @uri.scheme =~ /https/
47
+ uri = opts[:output].delete(:uri) || opts[:output].delete(:server)
48
+ @uri = URI(uri)
49
+ @ssl = if @uri.scheme =~ /https/
50
50
  opts[:output].delete :ssl
51
51
  end
52
52
  open_uri
@@ -164,6 +164,7 @@ module Franz
164
164
 
165
165
  def emit body
166
166
  request = Net::HTTP::Post.new(@uri)
167
+ request.basic_auth @uri.user, @uri.password if @uri.user
167
168
  request.body = body
168
169
  @http.request(request)
169
170
  rescue EOFError, Errno::ECONNREFUSED, Errno::EPIPE
@@ -0,0 +1,16 @@
1
+ FROM phusion/baseimage:0.9.18
2
+
3
+ MAINTAINER Sean Clemmer <sczizzo@gmail.com>
4
+
5
+ ENV DEBIAN_FRONTEND=noninteractive
6
+
7
+ COPY ./ /tmp/franz/
8
+
9
+ RUN apt-get update \
10
+ && apt-get install -y libtool libsnappy1 libsnappy-dev \
11
+ && rm -rf /tmp/* \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ RUN ls -la /tmp/franz
15
+
16
+ CMD [ "whoami" ]
@@ -12,9 +12,13 @@ require_relative '../lib/franz'
12
12
 
13
13
  Thread.abort_on_exception = true
14
14
 
15
+ # Work around Docker limits
16
+ def docker? ; File.exist? '.docker' end
17
+
18
+
15
19
  class TestPerformance < MiniTest::Test
16
20
  def setup
17
- @ulimit = Process.getrlimit(:NOFILE).first
21
+ @ulimit = docker? ? 512 : Process.getrlimit(:NOFILE).first
18
22
 
19
23
  @discover_interval = 2
20
24
  @watch_interval = 2
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.1
4
+ version: 2.2.2
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-01-29 00:00:00.000000000 Z
11
+ date: 2016-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slog
@@ -149,6 +149,7 @@ files:
149
149
  - lib/franz/stats.rb
150
150
  - lib/franz/tail.rb
151
151
  - lib/franz/watch.rb
152
+ - test/Dockerfile
152
153
  - test/test_franz_agg.rb
153
154
  - test/test_franz_discover.rb
154
155
  - test/test_franz_tail.rb
@@ -179,6 +180,7 @@ signing_key:
179
180
  specification_version: 4
180
181
  summary: Aggregate log file events and send them elsewhere
181
182
  test_files:
183
+ - test/Dockerfile
182
184
  - test/test_franz_agg.rb
183
185
  - test/test_franz_discover.rb
184
186
  - test/test_franz_tail.rb