logstash-output-azure 1.0.0 → 2.0.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
  SHA256:
3
- metadata.gz: a0957c333ee69df3b98978bda9a84c26d0d2752f1904fbd104d7d4d58e249095
4
- data.tar.gz: dc9b4e1a009d29a98183bcc984825e41680ba83bd51f5968e7933097f532619e
3
+ metadata.gz: 22cba4abc7cffb1f59f4371d0b00dbbcec9e67e0098a9d4fa72abda065f20376
4
+ data.tar.gz: a0c8a04d0ceae24e4c305d7a8233b4ebf1461005e98d07560f4eedd729df51ce
5
5
  SHA512:
6
- metadata.gz: 65aa1e9eba3e573294306710165a91f06b4f5c304a8020f8f1abd5ce5dde5c3c45d6931665baad8a014a66eec52fe0a81b190e752ce23dedca26aa0d9f724f3b
7
- data.tar.gz: 5fcdca862617607b619586f854331aa1eda6a47af66f508d3f04bcd9fb5f953d9a2e966a5cfb141763aab0e5d590f4e15d5b7c3678c71c505c9cc1ad2f902ac2
6
+ metadata.gz: b615b6c35389c88d7c98ac359fa94c5ccad73380eba382c3761776b1011283b2ec56d6590e1ce2d9b8fae1b3e1cca1bd6419bbc5371433d4bb7b66feb97f3111
7
+ data.tar.gz: 7f6e0a3d610c363ff405871ea6255880c6c233ee5f03e2ac86f241622e73e3321d1952570feb3b1261c2841eebdb4a5be484b3d19c6c50fafecd38ade19f11ae
@@ -3,3 +3,5 @@
3
3
  ## 1.0.0
4
4
  - updated specs
5
5
  - Documented methods
6
+ ## 2.0.0
7
+ - Removed `upload_options`
@@ -4,6 +4,7 @@ reports, or in general have helped logstash along its way.
4
4
  Contributors:
5
5
  * Tuffk - tuffkmulhall@gmail.com
6
6
  * BrunoLerner - bru.lerner@gmail.com
7
+ * Alex-Tsyganok -
7
8
 
8
9
  Note: If you've sent us patches, bug reports, or otherwise contributed to
9
10
  Logstash, and you aren't on the list above and want to be, please let us know
@@ -244,8 +244,7 @@ class LogStash::Outputs::LogstashAzureBlobOutput < LogStash::Outputs::Base
244
244
  temp_file.close # make sure the content is on disk
245
245
  unless temp_file.empty? # rubocop:disable GuardClause
246
246
  @uploader.upload_async(temp_file,
247
- on_complete: method(:clean_temporary_file),
248
- upload_options: upload_options)
247
+ on_complete: method(:clean_temporary_file))
249
248
  end
250
249
  end
251
250
 
@@ -277,7 +276,7 @@ class LogStash::Outputs::LogstashAzureBlobOutput < LogStash::Outputs::Base
277
276
  .each do |file|
278
277
  temp_file = TemporaryFile.create_from_existing_file(file, temp_folder_path)
279
278
  @logger.debug('Recovering from crash and uploading', file: temp_file.path)
280
- @crash_uploader.upload_async(temp_file, on_complete: method(:clean_temporary_file), upload_options: upload_options)
279
+ @crash_uploader.upload_async(temp_file, on_complete: method(:clean_temporary_file))
281
280
  end
282
281
  end
283
282
  end
@@ -13,7 +13,7 @@ module LogStash
13
13
  max_queue: 1,
14
14
  fallback_policy: :caller_runs)
15
15
 
16
- attr_accessor :upload_options, :logger, :container_name, :blob_account
16
+ attr_accessor :logger, :container_name, :blob_account
17
17
 
18
18
  # Initializes the class
19
19
  # @param blob_account [Object] endpoint to azure gem
@@ -35,7 +35,6 @@ module LogStash
35
35
 
36
36
  # Uploads the file to the container
37
37
  def upload(file, options = {})
38
- upload_options = options.fetch(:upload_options, {})
39
38
 
40
39
  begin
41
40
  content = Object::File.open(file.path, 'rb').read
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-azure'
3
- s.version = '1.0.0'
3
+ s.version = '2.0.0'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = 'Plugin for logstash to send output to Microsoft Azure Blob'
6
6
  # s.description = 'TODO: Write a longer description or delete this line.'
@@ -20,6 +20,6 @@ Gem::Specification.new do |s|
20
20
  # Gem dependencies
21
21
  s.add_runtime_dependency 'azure', '~> 0.7'
22
22
  s.add_runtime_dependency 'logstash-codec-plain'
23
- s.add_runtime_dependency 'logstash-core-plugin-api', '~> 2.0'
23
+ s.add_runtime_dependency 'logstash-core-plugin-api', '~> 2.1'
24
24
  s.add_development_dependency 'logstash-devutils'
25
25
  end
@@ -11,7 +11,6 @@ describe LogStash::Outputs::LogstashAzureBlobOutput::Uploader do
11
11
  let(:temporary_directory) { Stud::Temporary.pathname }
12
12
  let(:temporary_file) { Stud::Temporary.file }
13
13
  let(:storage_access_key) { 'foobar' }
14
- let(:upload_options) { {} }
15
14
  let(:threadpool) do
16
15
  Concurrent::ThreadPoolExecutor.new(min_threads: 1,
17
16
  max_threads: 8,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-azure
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tuffk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-22 00:00:00.000000000 Z
11
+ date: 2019-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: azure
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2.0'
47
+ version: '2.1'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '2.0'
54
+ version: '2.1'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: logstash-devutils
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -121,8 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
- rubyforge_project:
125
- rubygems_version: 2.7.2
124
+ rubygems_version: 3.0.3
126
125
  signing_key:
127
126
  specification_version: 4
128
127
  summary: Plugin for logstash to send output to Microsoft Azure Blob