logstash-output-s3 4.0.8 → 4.0.9

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
  SHA1:
3
- metadata.gz: 0c5e0dea828a0337ddbc6f6a16c066d96957d1e9
4
- data.tar.gz: 48349191b34fee81b5e5270bdfaa859679e0f6dc
3
+ metadata.gz: 79a35ddc5f9934f8f59be951aee92d22c0100c01
4
+ data.tar.gz: 3ecf316f196c6beba0ec704ddcdfcaa1dfa369cd
5
5
  SHA512:
6
- metadata.gz: ed282270f16481347356ee28d24905cc464dbcd5854370a351f95744d3eb6520e67079a28aaa6f736f2a23a1f1be3b015d6233101bf99fee7c34ed17f821d8df
7
- data.tar.gz: 556d6cbe0469cd0c1ca7de0ee2c6e536a15aa841444774dc9a172647f10881c6bde9c1f1b9fd67719aa09c38f65fda59cff98c7239d9f584ca28109808a4beb8
6
+ metadata.gz: 82631f069c9a23e7ce1308f76b63253780afdfde21f28c4518701eb9b1e7a6776877f1e56fe1dd6c96f8d5478b38c6549437a158867c862f29b6aa01fdb6b802
7
+ data.tar.gz: f29d8a73ccac728af1458078151fe714fe0b0d1d45b683cb7c5e7d9ff05c1b218dc33d298da9492fd9c801914262503771ec56ecf73e298b4aec8bd06d541d8b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 4.0.9
2
+ - Correct issue that allows to run on Ruby 9k. #150
3
+
4
+ ## 4.0.8
5
+ - Documentation changes
6
+
1
7
  ## 4.0.7
2
8
  - Fix: `#restore_from_crash` should use the same upload options as the normal uploader. #140
3
9
  - Fix: Wrongly named `canned_acl` options, renamed to "public-read", "public-read-write", "authenticated-read", from the documentation http://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
data/CONTRIBUTORS CHANGED
@@ -12,6 +12,8 @@ Contributors:
12
12
  * Nick Ethier (nickethier)
13
13
  * Pier-Hugues Pellerin (ph)
14
14
  * Richard Pijnenburg (electrical)
15
+ * Jake Landis (jakelandis)
16
+ * Armin Braun (original-brownbear)
15
17
 
16
18
  Note: If you've sent us patches, bug reports, or otherwise contributed to
17
19
  Logstash, and you aren't on the list above and want to be, please let us know
data/docs/index.asciidoc CHANGED
@@ -12,7 +12,7 @@ START - GENERATED VARIABLES, DO NOT EDIT!
12
12
  END - GENERATED VARIABLES, DO NOT EDIT!
13
13
  ///////////////////////////////////////////
14
14
 
15
- [id="plugins-{type}-{plugin}"]
15
+ [id="plugins-{type}s-{plugin}"]
16
16
 
17
17
  === S3 output plugin
18
18
 
@@ -198,7 +198,7 @@ class LogStash::Outputs::S3 < LogStash::Outputs::Base
198
198
  end
199
199
 
200
200
  if @validate_credentials_on_root_bucket && !WriteBucketPermissionValidator.new(@logger).valid?(bucket_resource)
201
- raise LogStash::ConfigurationError, "Logstash must have the privileges to write to root bucket `#{@bucket}`, check you credentials or your permissions."
201
+ raise LogStash::ConfigurationError, "Logstash must have the privileges to write to root bucket `#{@bucket}`, check your credentials or your permissions."
202
202
  end
203
203
 
204
204
  if @time_file.nil? && @size_file.nil? || @size_file == 0 && @time_file == 0
@@ -20,7 +20,8 @@ module LogStash
20
20
  rescue StandardError => e
21
21
  logger.error("Error validating bucket write permissions!",
22
22
  :message => e.message,
23
- :class => e.class.name
23
+ :class => e.class.name,
24
+ :backtrace => e.backtrace
24
25
  )
25
26
  false
26
27
  end
@@ -37,7 +38,6 @@ module LogStash
37
38
  f = Stud::Temporary.file
38
39
  f.write(content)
39
40
  f.fsync
40
- f.close
41
41
 
42
42
  obj = bucket_resource.object(key)
43
43
  obj.upload_file(f)
@@ -50,6 +50,7 @@ module LogStash
50
50
  # since we only really need `putobject`.
51
51
  end
52
52
  ensure
53
+ f.close
53
54
  FileUtils.rm_rf(f.path)
54
55
  end
55
56
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-s3'
3
- s.version = '4.0.8'
3
+ s.version = '4.0.9'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = "This plugin was created for store the logstash's events into Amazon Simple Storage Service (Amazon S3)"
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/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-output-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.8
4
+ version: 4.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-23 00:00:00.000000000 Z
11
+ date: 2017-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement