logstash-input-s3-sns-sqs 1.5.9 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61ebe297717052d3ebfb240a9eb254180eccd365
4
- data.tar.gz: 3d9634f79fd6f48b988f5aea5cfdc04e33ee823a
3
+ metadata.gz: 90767d180f6cd7b2fa9f6a5bcabc1a48145ea6da
4
+ data.tar.gz: 5edfbb1c18997d348c26b1a64aaebb8d122b6469
5
5
  SHA512:
6
- metadata.gz: 1168a6a1dd47371ba8e49b228c135a8e7b7db81433cec982be2e49308de856f2d26f715ab4f1bfdac1f6aa9aa6ee6531d0f36fa46320284b5b5c5651e72ccf7c
7
- data.tar.gz: 4d073e317dd2be93d24007cc3952706e24d9217afc6f75bf493051dd5a68396cc712c6311e2bbfc700ad1136bf18f9e4538ac633e64e136fc1d521d6bb9bfebe
6
+ metadata.gz: 40bc21baac61cbcbcd7fe6af69f8a58dc2ad8f77d2869bbc26886232ef864dae3427768077a81e2bb5b5690121d78c01b36c5ec3534b8818be98d46cdee32d2f
7
+ data.tar.gz: 942de0725fa1befd61163fd9a66a8e151d9149ec44bf5eadaf88ce0a8ddf0a97df12e03df43a91a62d07e53382f9e7cdd9bc070321c6b250c2f8a0010be235b0
@@ -1,3 +1,6 @@
1
+ ##1.6.0
2
+ - add a test to tmp file deletion
3
+ - revert type folder regex
1
4
  ##1.5.9
2
5
  - Fix regex for type folder
3
6
  ##1.5.8
@@ -223,7 +223,7 @@ class LogStash::Inputs::S3SNSSQS < LogStash::Inputs::Threadable
223
223
  if download_remote_file(object, filename)
224
224
  if process_local_log( filename, key, folder, instance_codec, queue, bucket, message, size)
225
225
  begin
226
- FileUtils.remove_entry_secure(filename, true)
226
+ FileUtils.remove_entry_secure(filename, true) if File.exists? filename
227
227
  delete_file_from_bucket(object)
228
228
  rescue Exception => e
229
229
  @logger.debug("We had problems to delete your file", :file => filename, :error => e)
@@ -231,7 +231,7 @@ class LogStash::Inputs::S3SNSSQS < LogStash::Inputs::Threadable
231
231
  end
232
232
  else
233
233
  begin
234
- FileUtils.remove_entry_secure(filename, true)
234
+ FileUtils.remove_entry_secure(filename, true) if File.exists? filename
235
235
  rescue Exception => e
236
236
  @logger.debug("We had problems clean up your tmp dir", :file => filename, :error => e)
237
237
  end
@@ -336,7 +336,7 @@ class LogStash::Inputs::S3SNSSQS < LogStash::Inputs::Threadable
336
336
 
337
337
  private
338
338
  def get_object_folder(key)
339
- if match=/#{s3_key_prefix}\/?(?<type_folder>.+)\/.*/.match(key)
339
+ if match=/#{s3_key_prefix}\/?(?<type_folder>.*?)\/.*/.match(key)
340
340
  return match['type_folder']
341
341
  else
342
342
  return ""
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-s3-sns-sqs'
3
- s.version = '1.5.9'
3
+ s.version = '1.6.0'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "Get logs from AWS s3 buckets as issued by an object-created event via sns -> sqs."
6
6
  s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/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-s3-sns-sqs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.9
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Herweg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-09 00:00:00.000000000 Z
11
+ date: 2018-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement