logstash-input-file 4.1.9 → 4.1.10

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: a4cd574c914c10b7f4e538437e8f256bad1c98f3fc96bf9c959589e010586a36
4
- data.tar.gz: bbe6366ab6f431c9491476b76b3c4dddac051fc7b3a474dd3964bdfd4e1a2afb
3
+ metadata.gz: eea2f22866efce67cb91a5d75a51eebd069066ccae0b1f233d5a19b334db8ede
4
+ data.tar.gz: 63e048f427921c5bbd5c4f5480430672191fbcc2f321d165e86fc10542188ca9
5
5
  SHA512:
6
- metadata.gz: 81736925b4ecc298a76caff16a820d5be68961570dd5456496b5a9a03a80e03a65085abdeba76d1e63fc1f3d3ae15b4ad26f41f03061cae3620303758f1713bc
7
- data.tar.gz: ce86be6801c71aa9863e61592a244f4cb6a8f4c25e3d7d21e29be8182e5709b54455cb339a183c86e987bec4fd4ea9c969265f3071793e0fa8d74a133c39a3a1
6
+ metadata.gz: 8b1443c34d164485eef7009018c79ce6c9b8a4e9be796d9aa383c7c406208abfc48dda0e3e3097fc41d6554b7a4dc74beab5ffc5cd6bb08737c15ebb208d7cb2
7
+ data.tar.gz: 0111f31a170259bb3bcb38eda87ef219a16b805f2a3f8171123cfde57a19c1878a71d9f8666e237ceb8af367b7ca07f5f77d8a49810ef8f06c4a125a5b11ed1e
@@ -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
 
@@ -177,11 +177,7 @@ module Winhelper
177
177
  private
178
178
 
179
179
  def self.open_handle_from_path(path)
180
- CreateFileW(in_buffer(path), 0, 7, nil, 3, 128, nil)
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
@@ -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.9'
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.9
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: 2018-12-19 00:00:00.000000000 Z
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