logstash-output-qingstor 0.2.1 → 0.2.2

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: 41089e1e98df15badcfb495f08a3103e8620a3b0
4
- data.tar.gz: 98da69b9f5cdedd029ed59ef6049fcb52bea57cd
3
+ metadata.gz: 40b0b5875b4b897feae16ace89fbacd458b3a851
4
+ data.tar.gz: ca7be7a607c98fbad1e5b7aee8754ef895933fe8
5
5
  SHA512:
6
- metadata.gz: 7c46fc69ecbd55569c04805a87ec3d9ee30d4bc9850c46539899ee47d4501dad0cd7cfe68d869da01b5b179d6304e7533ca7efdcc0a8a6954e9f2f7660911dd0
7
- data.tar.gz: e940a0b9eb73a14ab0d5adc093512b4aca12d443dafa1a559e3eb6da5258e138ca809ec2a0de28f071134aff711810d78228ccbad4ff7620fc98861440e3ee53
6
+ metadata.gz: 9914163d5c2cc486105ab1a65f90db8c83d57906f731591fc1fe8b6fb32e30f937400e203a8710e5043fc4de682da38649ed6baca5e2de50104131b36e4ddb24
7
+ data.tar.gz: 02b423672b8cd6fcac430e0a28583aac8377a3f9b2dc7b8245c1b65f07ce967f511aff43a25f3e89036d97e9590b2c13eff9118986a30354c1caaf531cf574a4
@@ -100,8 +100,12 @@ module LogStash
100
100
  end
101
101
 
102
102
  def size
103
- @gzip_writer.flush
104
- @gzip_writer.to_io.size
103
+ if @gzip_writer.pos == 0
104
+ 0
105
+ else
106
+ @gzip_writer.flush
107
+ @gzip_writer.to_io.size
108
+ end
105
109
  end
106
110
 
107
111
  def fsync
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-qingstor'
3
- s.version = '0.2.1'
3
+ s.version = '0.2.2'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = 'logstash output plugin for qingstor'
6
6
  s.description = 'Collect the outputs of logstash and store into Qingstor'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-qingstor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Zhao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-17 00:00:00.000000000 Z
11
+ date: 2017-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement