fluent-plugin-aliyunoss 0.2.2 → 0.2.3

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: '07571483a86b19a0762dc7b7d157f7c96d75586e'
4
- data.tar.gz: caadad4b22da54a2acbf2af34320528c583810d7
3
+ metadata.gz: 5a0950bff68f15bd78b770624c723b83aeb28271
4
+ data.tar.gz: df8e802b39896614b4f90f916dd61e3349fbeb87
5
5
  SHA512:
6
- metadata.gz: 4fd16790395dbbecbbbbf479498a3bb3318f06a8581fd8c3a845f21691a1c7405c548eb3f7c4836a9c24238e1a3f12aaf9f7f8fb53433b4e13e0b2b0d9c1df84
7
- data.tar.gz: 4045881bfcfbf565223feb013469ce8b160b605d94fd1ef86c9b90fbf8a501c80814142ac9777a63afdad6bca33fc6da0aaf178b6eea401c04035b893ac78b82
6
+ metadata.gz: e582441fa75a1546df89e21d4953f1187d514b6c7b7452ad1b0ae4f84bd31923e8cd434e15e9e1f622ddaffa3d79808aec22f1d1c35bd7bf22cb8bd4607fef88
7
+ data.tar.gz: a5d7f8cae1002f4d8941b24fde46528474dfb0ccceb09ec72a823acdb426bf664a8d9a9d4a18f5e3aae89233fb6c1d84cc54fb1ea89e05414a8fa876caf8dab1
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "fluent-plugin-aliyunoss"
6
- spec.version = "0.2.2"
6
+ spec.version = "0.2.3"
7
7
  spec.authors = ["junjie"]
8
8
  spec.email = ["junjzh0205@gmail.com"]
9
9
 
@@ -72,7 +72,6 @@ module Fluent
72
72
  File::symlink(chunk_path, fake_path)
73
73
 
74
74
  command = "java -jar /orc-tools.jar convert -o #{output_path} #{fake_path}"
75
- log.debug "cmd: #{command}"
76
75
  res = system command
77
76
  unless res
78
77
  raise "failed to execute java -jar /orc-tools.jar command. status = #{$?}"
@@ -130,10 +129,10 @@ module Fluent
130
129
  def write(chunk)
131
130
  begin
132
131
  f = Tempfile.new('oss-')
132
+ output_path = f.path
133
133
  compress(chunk, f)
134
134
  path = process_object_key_format(chunk, "#{@oss_path}.#{@store_as}")
135
- log.debug "output_path: #{f.path} oss_path: #{path}"
136
- raise "Upload #{f.path} failed" unless @bucket.resumable_upload(path, f.path)
135
+ raise "Upload #{output_path} failed" unless @bucket.resumable_upload(path, output_path)
137
136
  ensure
138
137
  f.close(true)
139
138
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-aliyunoss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - junjie