franz 2.1.10 → 2.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Readme.md +1 -0
- data/VERSION +1 -1
- data/lib/franz/discover.rb +1 -1
- data/lib/franz/input_config.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ac4d511cd616ba167e59aaa1666c42ab68277d1
|
4
|
+
data.tar.gz: 7b27d7f6eeffb531f8c9d494fe64fa206a33fb1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7158f2eefb2397c8d443cf559cf6976eada6e1b29a965149351553a93ed4cf5449a02aea2ff89d505da54078bb96bf463b37035255a336f15a6047c7ca8718a
|
7
|
+
data.tar.gz: da95fa7610e4ca297f648060182c86004b9fefbe0118bc8543ea016d3c59d04723a46109daef2cde74e2bb0a930533001c1fafde6bd86a39020ccb3055e4b16a
|
data/Readme.md
CHANGED
@@ -235,6 +235,7 @@ for Chef.
|
|
235
235
|
- Allow single state file if no glob is used
|
236
236
|
- Add autoreconnect logic to `Kafka` output
|
237
237
|
- Capture errors when parsing structured logs
|
238
|
+
- Add `FNM_EXTGLOB` flag for better glob matching
|
238
239
|
- Handle `EACCESS` on `IO.read` gracefully
|
239
240
|
- New `HTTP` output (experimental)
|
240
241
|
- Remove default line limit
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.11
|
data/lib/franz/discover.rb
CHANGED
@@ -102,7 +102,7 @@ private
|
|
102
102
|
Dir[glob].each do |path|
|
103
103
|
next if known.include? path
|
104
104
|
next if config[:excludes].any? { |exclude|
|
105
|
-
File.fnmatch? exclude, File::basename(path)
|
105
|
+
File.fnmatch? exclude, File::basename(path), File::FNM_EXTGLOB
|
106
106
|
}
|
107
107
|
discovered.push path
|
108
108
|
end
|
data/lib/franz/input_config.rb
CHANGED
@@ -43,10 +43,10 @@ module Franz
|
|
43
43
|
rescue KeyError
|
44
44
|
configs.each do |config|
|
45
45
|
type = config[:type] if config[:includes].any? { |glob|
|
46
|
-
included = File.fnmatch? glob, path
|
46
|
+
included = File.fnmatch? glob, path, File::FNM_EXTGLOB
|
47
47
|
excludes = !config[:excludes].nil?
|
48
48
|
excluded = excludes && config[:excludes].any? { |exlude|
|
49
|
-
File.fnmatch? exlude, File::basename(path)
|
49
|
+
File.fnmatch? exlude, File::basename(path), File::FNM_EXTGLOB
|
50
50
|
}
|
51
51
|
included && !excluded
|
52
52
|
}
|