fluent-plugin-azurestorage 0.0.3 → 0.0.4
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 +4 -4
- data/fluent-plugin-azurestorage.gemspec +1 -1
- data/lib/fluent/plugin/out_azurestorage.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1024ca1afd1b9a6a5028997eae223fdc4465063
|
4
|
+
data.tar.gz: e425024fcca589100141ca175d0d0becd9ae81dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: befb0695bfab1613338036174568dda9e60d36419392c2845810ed553aba3e23a50fe97f073443c0840ddb6592e6317b895dc68bf6d15a17261df0a9862aa41c
|
7
|
+
data.tar.gz: 0227f1436809f145e4fc83ebea1b850970c003377d0b319c843c9d90fb44b668f76696742d69309674be9ad749936d27af8a4533baab743c202a86629c6dbd1e
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "fluent-plugin-azurestorage"
|
7
|
-
spec.version = "0.0.
|
7
|
+
spec.version = "0.0.4"
|
8
8
|
spec.authors = ["Hidemasa Togashi"]
|
9
9
|
spec.email = ["togachiro@gmail.com"]
|
10
10
|
spec.description = %q{Fluent plugin for store to Azure Storage}
|
@@ -97,6 +97,8 @@ module Fluent
|
|
97
97
|
|
98
98
|
def write(chunk)
|
99
99
|
i = 0
|
100
|
+
previous_path = nil
|
101
|
+
|
100
102
|
begin
|
101
103
|
path = @path_slicer.call(@path)
|
102
104
|
values_for_object_key = {
|
@@ -108,7 +110,13 @@ module Fluent
|
|
108
110
|
storage_path = @azure_object_key_format.gsub(%r(%{[^}]+})) { |expr|
|
109
111
|
values_for_object_key[expr[2...expr.size-1]]
|
110
112
|
}
|
113
|
+
|
114
|
+
if (i > 0) && (storage_path == previous_path)
|
115
|
+
raise "duplicated path is generated. use %{index} in azure_object_key_format: path = #{storage_path}"
|
116
|
+
end
|
117
|
+
|
111
118
|
i += 1
|
119
|
+
previous_path = storage_path
|
112
120
|
end while blob_exists?(@azure_container, storage_path)
|
113
121
|
|
114
122
|
tmp = Tempfile.new("azure-")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-azurestorage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hidemasa Togashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|