logstash-input-file 4.1.11 → 4.1.12

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: baa1c2799ed5e23bd68535fd9855a9709d12f968328c8a41995586cd6344329a
4
- data.tar.gz: 0f1932332f87abbd99c7403ab2ed0bbb7e1f1f87504b68ceedb9053361619b13
3
+ metadata.gz: f7a99266c87fd0a7279a20334fbcf34844bd15bd5602b1011add91f512cd2816
4
+ data.tar.gz: 8b913a6f8ccf185dfd0aa325a41f6902c958caf2e496b71c9d5b635d090d383b
5
5
  SHA512:
6
- metadata.gz: 34cd6042e45507de116eb4cf88855a6391fd840c1f41711845c94b0ba88ecc94819cc420c8b13c102b201271348b6826903e3264cb8f0810e0be8e64f8e99fd5
7
- data.tar.gz: 39012bbd1e6abc0ae4889a6973d2a404117a8f588e750b76ac29f94c02d320eaf244e7dbbe8dbffc147b4ee6567c4588506d54d48a8dbb556d1709ba91e7def8
6
+ metadata.gz: dd40437784392572ebfd2c0bba20676ae5dfdb3ea3079d706c19e7202c557b55157a614392bd2430b7acee2e875c3ae2d3dd25ac057e2d6e6209c3946a446f8f
7
+ data.tar.gz: b37cb04b73602dc63b9931810ee93402bde5f2599f937c4b74824168e3f4692442da6d8da5b29f8928131bae172d5a374fb0f74b2139958624525fe4373833ae
@@ -1,3 +1,7 @@
1
+ ## 4.1.12
2
+ - Fix regression in `exclude` handling. Patterns are matched against the filename, not full path.
3
+ [Issue #237](https://github.com/logstash-plugins/logstash-input-file/issues/237)
4
+
1
5
  ## 4.1.11
2
6
  - Fixed link to FAQ [#247](https://github.com/logstash-plugins/logstash-input-file/pull/247)
3
7
 
@@ -35,7 +35,7 @@ module FileWatch
35
35
 
36
36
  def can_exclude?(watched_file, new_discovery)
37
37
  @exclude.each do |pattern|
38
- if watched_file.pathname.fnmatch?(pattern)
38
+ if watched_file.pathname.basename.fnmatch?(pattern)
39
39
  if new_discovery
40
40
  logger.trace("Discoverer can_exclude?: #{watched_file.path}: skipping " +
41
41
  "because it matches exclude #{pattern}")
Binary file
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-file'
4
- s.version = '4.1.11'
4
+ s.version = '4.1.12'
5
5
  s.licenses = ['Apache-2.0']
6
6
  s.summary = "Streams events from files"
7
7
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-file
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.11
4
+ version: 4.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-25 00:00:00.000000000 Z
11
+ date: 2020-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement