logstash-input-file 4.1.9 → 4.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/filewatch/winhelper.rb +6 -6
- data/lib/jars/filewatch-1.0.1.jar +0 -0
- data/logstash-input-file.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eea2f22866efce67cb91a5d75a51eebd069066ccae0b1f233d5a19b334db8ede
|
4
|
+
data.tar.gz: 63e048f427921c5bbd5c4f5480430672191fbcc2f321d165e86fc10542188ca9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b1443c34d164485eef7009018c79ce6c9b8a4e9be796d9aa383c7c406208abfc48dda0e3e3097fc41d6554b7a4dc74beab5ffc5cd6bb08737c15ebb208d7cb2
|
7
|
+
data.tar.gz: 0111f31a170259bb3bcb38eda87ef219a16b805f2a3f8171123cfde57a19c1878a71d9f8666e237ceb8af367b7ca07f5f77d8a49810ef8f06c4a125a5b11ed1e
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 4.1.10
|
2
|
+
- Fixed problem in Windows where some paths would fail to return an identifier ("inode"). Make path into a C style String before encoding to UTF-16LE. [#232](https://github.com/logstash-plugins/logstash-input-file/issues/232)
|
3
|
+
|
1
4
|
## 4.1.9
|
2
5
|
- Fixed issue where logs were being spammed with needless error messages [#224](https://github.com/logstash-plugins/logstash-input-file/pull/224)
|
3
6
|
|
data/lib/filewatch/winhelper.rb
CHANGED
@@ -177,11 +177,7 @@ module Winhelper
|
|
177
177
|
private
|
178
178
|
|
179
179
|
def self.open_handle_from_path(path)
|
180
|
-
CreateFileW(
|
181
|
-
end
|
182
|
-
|
183
|
-
def self.in_buffer(string)
|
184
|
-
utf16le(string)
|
180
|
+
CreateFileW(utf16le(path), 0, 7, nil, 3, 128, nil)
|
185
181
|
end
|
186
182
|
|
187
183
|
def self.char_pointer_to_ruby_string(char_pointer, length = 256)
|
@@ -192,7 +188,11 @@ module Winhelper
|
|
192
188
|
end
|
193
189
|
|
194
190
|
def self.utf16le(string)
|
195
|
-
string.encode("UTF-16LE")
|
191
|
+
to_cstring(string).encode("UTF-16LE")
|
192
|
+
end
|
193
|
+
|
194
|
+
def self.to_cstring(rubystring)
|
195
|
+
rubystring + 0.chr
|
196
196
|
end
|
197
197
|
|
198
198
|
def self.win1252(string)
|
Binary file
|
data/logstash-input-file.gemspec
CHANGED
@@ -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.
|
4
|
+
s.version = '4.1.10'
|
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.
|
4
|
+
version: 4.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|