fluent-plugin-azure-storage-append-blob 0.1.0 → 0.1.1

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: 86a7a8f0c9164564d064640c1db1ccf3f97a3d0fb99fb6c14c65cdc0a104619c
4
- data.tar.gz: c144705806010e9e6feb1d7bd84070156f413139a80ffdebad9325c639112329
3
+ metadata.gz: 71879d8031373e9beacb9314ded1569bf606e18d4ba4cd7b1804bf6b197b130e
4
+ data.tar.gz: e1073c5e8275a61cd18641254aa4d19446dad9e1673c8b8de5751604b63d85e6
5
5
  SHA512:
6
- metadata.gz: e8ff1cf315f5f330f1d202db8cd0ca74ba77f41cdf11f961926f97eb9be8a3ecd963cba06ad7a8bad20fc4151e454f396ccc2c5b1568251127e99e1e4b2416ab
7
- data.tar.gz: c27e7414feec0113b1d3b7bcc613c0a351e3eaac60e37bca3f8f04b9c66248f92c7b8f2a81ea71de375f62008d5f6d40cf29937829dd3a2e4c45d3b27fa1c6f1
6
+ metadata.gz: 3e891db80e04fe02d1250f3c2d4a16705738c19fd945872b3ddde8d1f263e77d00fa19e6913890ed638aa5487f1f7f819d44336394ad73c82ee6c35637e897db
7
+ data.tar.gz: c17efa89408c12fc5a991baaff846dd4e57f24e169e3f325c3d31df0b28a193123e5c8fbe835448b3c6ada157ceaad7c5005e6270591a42ed9ec1b3dbcd9f268
@@ -0,0 +1,20 @@
1
+ # Ruby
2
+ # Package your Ruby project.
3
+ # Add steps that install rails, analyze code, save build artifacts, deploy, and more:
4
+ # https://docs.microsoft.com/azure/devops/pipelines/languages/ruby
5
+
6
+ pool:
7
+ vmImage: 'Ubuntu 16.04'
8
+
9
+ steps:
10
+ - task: UseRubyVersion@0
11
+ inputs:
12
+ versionSpec: '>= 2.5'
13
+
14
+ - script: |
15
+ gem install bundler
16
+ bundle install --retry=3 --jobs=4
17
+ displayName: 'bundle install'
18
+
19
+ - script: bundle exec rake
20
+ displayName: 'bundle exec rake'
@@ -3,8 +3,8 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "fluent-plugin-azure-storage-append-blob"
6
- spec.version = "0.1.0"
7
- spec.authors = ["Microsoft"]
6
+ spec.version = "0.1.1"
7
+ spec.authors = ["Microsoft Corporation"]
8
8
  spec.email = [""]
9
9
 
10
10
  spec.summary = "Azure Storage Append Blob output plugin for Fluentd event collector"
@@ -96,7 +96,7 @@ module Fluent
96
96
 
97
97
  content = File.open(tmp.path, 'rb') { |file| file.read }
98
98
 
99
- append_blob(content)
99
+ append_blob(content, metadata)
100
100
  @last_azure_storage_path = @azure_storage_path
101
101
  ensure
102
102
  tmp.unlink
@@ -133,7 +133,7 @@ module Fluent
133
133
  end
134
134
 
135
135
  private
136
- def append_blob(content)
136
+ def append_blob(content, metadata)
137
137
  position = 0
138
138
  log.debug "azure_storage_append_blob: append_blob.start: Content size: #{content.length}"
139
139
  loop do
@@ -149,7 +149,7 @@ module Fluent
149
149
  if status_code == 409 # exceeds azure block limit
150
150
  @current_index += 1
151
151
  old_azure_storage_path = @azure_storage_path
152
- generate_log_name(metadata, time_slice, @current_index)
152
+ generate_log_name(metadata, @current_index)
153
153
 
154
154
  # If index is not a part of format, rethrow exception.
155
155
  if old_azure_storage_path == @azure_storage_path
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-azure-storage-append-blob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
- - Microsoft
7
+ - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
@@ -98,6 +98,7 @@ files:
98
98
  - LICENSE
99
99
  - README.md
100
100
  - Rakefile
101
+ - azure-pipelines.yml
101
102
  - fluent-plugin-azure-storage-append-blob.gemspec
102
103
  - lib/fluent/plugin/out_azure-storage-append-blob.rb
103
104
  - test/helper.rb