franz 2.1.0 → 2.1.1
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/Readme.md +7 -3
- data/VERSION +1 -1
- data/bin/franz +8 -15
- data/lib/franz/metadata.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed57e3895c08ceb9e4c790783ebfc818b842a2a6
|
4
|
+
data.tar.gz: 3587e83adc31b60feb0414a58b972d2189e16910
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cc0f13bf692545d9c3dac1f7e24499dd8340c3a7985baf13baa098494ea4651195b54f11b0c40f9c988cc78f3d1eacfef7c1fd37bf6e5ea5ea226a3e753bd5c
|
7
|
+
data.tar.gz: 7fe602a97448c1fb006d916a9774c143fdbfc352d69ccbe32d5be9b1506999212cf538901bc6e0210f3ff4d9e4b1ea42bfc6fea91c1c6d6f2e7f774cb0406896
|
data/Readme.md
CHANGED
@@ -75,7 +75,7 @@ Just call for help!
|
|
75
75
|
| | | | , ; / / ,. | | | |--' ./__; .'
|
76
76
|
| : \ ---' ; : .' \| |/ ; | .'
|
77
77
|
| |,' | , .-./'---' `---'
|
78
|
-
`--' `--`---'
|
78
|
+
`--' `--`---' v2.1.0
|
79
79
|
|
80
80
|
|
81
81
|
Aggregate log file events and send them elsewhere
|
@@ -83,7 +83,7 @@ Just call for help!
|
|
83
83
|
Usage: franz [<options>]
|
84
84
|
|
85
85
|
Options:
|
86
|
-
--config, -c <s>: Configuration file to use
|
86
|
+
--config, -c <s>: Configuration file to use
|
87
87
|
--debug, -d: Enable debugging output
|
88
88
|
--trace, -t: Enable trace output
|
89
89
|
--log, -l <s>: Log to file, not STDOUT
|
@@ -208,13 +208,17 @@ At Blue Jeans, we deploy Franz with Upstart. Here's a minimal config:
|
|
208
208
|
stop on shutdown
|
209
209
|
respawn
|
210
210
|
|
211
|
-
exec franz
|
211
|
+
exec franz --config /path/to/franz.json
|
212
212
|
|
213
213
|
We actually use the [`bjn_franz` cookbook](https://github.com/sczizzo/bjn-franz-cookbook)
|
214
214
|
for Chef.
|
215
215
|
|
216
216
|
### Changelog
|
217
217
|
|
218
|
+
#### v2.1.0
|
219
|
+
|
220
|
+
- Self-contained packages now available for OS X and Linux thanks to [Traveling Ruby](http://phusion.github.io/traveling-ruby) and [FPM](https://github.com/jordansissel/fpm).
|
221
|
+
|
218
222
|
#### v2.0.0
|
219
223
|
|
220
224
|
- Added new outputs: `StdOut`, `Kafka` (experimental)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.1
|
data/bin/franz
CHANGED
@@ -9,23 +9,10 @@ require 'trollop'
|
|
9
9
|
require 'franz'
|
10
10
|
|
11
11
|
|
12
|
-
# If we find a local config, try to use it
|
13
|
-
# N.B. We'll fall back to the last guy listed here
|
14
|
-
config = nil
|
15
|
-
%w[
|
16
|
-
config.json
|
17
|
-
%{HOME}/.franz.json
|
18
|
-
/etc/franz/franz.json
|
19
|
-
].each do |path|
|
20
|
-
config = path % ENV rescue next
|
21
|
-
break if File.exist? config
|
22
|
-
end
|
23
|
-
|
24
|
-
|
25
12
|
# Franz really only accepts a config file as an option, and that config file
|
26
13
|
# has got to conform to a certain format. If you're unsure, just look at the
|
27
14
|
# default options hashes in both Franz::Input and Franz::Output
|
28
|
-
|
15
|
+
parser = Trollop::Parser.new do
|
29
16
|
version Franz::VERSION
|
30
17
|
banner Franz::ART + "\n\n" + <<-EOS.gsub(/^ /, '')
|
31
18
|
#{Franz::SUMMARY}
|
@@ -34,12 +21,18 @@ opts = Trollop::options(ARGV) do
|
|
34
21
|
|
35
22
|
Options:
|
36
23
|
EOS
|
37
|
-
opt :config, 'Configuration file to use', type: :string,
|
24
|
+
opt :config, 'Configuration file to use', type: :string, required: true
|
38
25
|
opt :debug, 'Enable debugging output', default: false
|
39
26
|
opt :trace, 'Enable trace output', default: false
|
40
27
|
opt :log, 'Log to file, not STDOUT', type: :string, default: nil
|
41
28
|
end
|
42
29
|
|
30
|
+
opts = Trollop.with_standard_exception_handling(parser) do
|
31
|
+
raise Trollop::HelpNeeded if ARGV.empty?
|
32
|
+
parser.parse ARGV
|
33
|
+
end
|
34
|
+
|
35
|
+
|
43
36
|
Thread.abort_on_exception = true # Die quickly and with great ceremony
|
44
37
|
|
45
38
|
config = Franz::Config.new opts[:config]
|
data/lib/franz/metadata.rb
CHANGED
@@ -21,9 +21,9 @@ module Franz
|
|
21
21
|
EMAIL = 'sclemmer@bluejeans.com'
|
22
22
|
|
23
23
|
# Bundled extensions
|
24
|
-
TRAVELING_RUBY_VERSION = '20150210-2.
|
24
|
+
TRAVELING_RUBY_VERSION = '20150210-2.2.0'
|
25
25
|
SNAPPY_VERSION = '0.0.11'
|
26
|
-
EM_VERSION = '1.0.
|
26
|
+
EM_VERSION = '1.0.4'
|
27
27
|
|
28
28
|
# Every project deserves its own ASCII art
|
29
29
|
ART = <<-'EOART' % VERSION
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Clemmer
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - '='
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.0.
|
117
|
+
version: 1.0.4
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - '='
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.0.
|
124
|
+
version: 1.0.4
|
125
125
|
description: Aggregate log file events and send them elsewhere.
|
126
126
|
email: sclemmer@bluejeans.com
|
127
127
|
executables:
|
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
173
|
version: '0'
|
174
174
|
requirements: []
|
175
175
|
rubyforge_project:
|
176
|
-
rubygems_version: 2.
|
176
|
+
rubygems_version: 2.4.5
|
177
177
|
signing_key:
|
178
178
|
specification_version: 4
|
179
179
|
summary: Aggregate log file events and send them elsewhere
|