logstash-output-qingstor 0.2.4 → 0.2.5

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
- SHA1:
3
- metadata.gz: 4148a5fc3a5984437ed841345923a4d97184d301
4
- data.tar.gz: c0cccd6b5775441c87a92b7ca7fe00fba4fa3544
2
+ SHA256:
3
+ metadata.gz: 7564fd0b6a8c4a7241dc27cb5f1328557394033e0cf17a6e6f76d3f0934d4b9a
4
+ data.tar.gz: 8445db4f27ec881bb9e54a0b3266f1bc77e0ec909c2a795ec2f284b295495f2f
5
5
  SHA512:
6
- metadata.gz: a69dd280bc7ba81e82b389d31210270696080b61146f161f4545b2d999dad846a6efc2880d75834f10ba18bbb1d0e6b2902326ff1cb355e4b87ad227ead150ac
7
- data.tar.gz: fa90f2a985de74c2f82a36b884658ccb2643541e9aaabfccce2e5e5022bb958167cbb3312768ab62e2371ce28c23dada4646d522942a1f9e043bab40aaee7db8
6
+ metadata.gz: 14a409865bb71577410a82832696d3f56efb251a4c96d8d30ec265597728d97ea9be736f04d49107415c9e4a3a1f18359a7db14873ab26f3346aabfe7c605def
7
+ data.tar.gz: daca98515e8dee4c70d6cd61c8a589a2f39d748ef75b08d52675a38784229f872e589fa89b1c5b788f1ffa005aa2de073515c35e00fd8aef24cb26243f62827f
@@ -1,2 +1,5 @@
1
+ ## 0.2.5
2
+ - Fix: remove uuid directories which cannotbe removed properly
3
+
1
4
  ## 0.1.0
2
5
  - Plugin created with the logstash plugin generator
@@ -45,7 +45,7 @@ module LogStash
45
45
  rescue
46
46
  IOError
47
47
  end
48
- FileUtils.rm_r(@tmp_path, :secure => true)
48
+ FileUtils.rm(::File.join(@tmp_path, @key), :force => true)
49
49
  end
50
50
 
51
51
  def empty?
@@ -55,9 +55,9 @@ module LogStash
55
55
  def self.create_from_existing_file(file_path, tmp_folder)
56
56
  key_parts = Pathname.new(file_path).relative_path_from(tmp_folder)
57
57
  .to_s.split(::File::SEPARATOR)
58
- TemporaryFile.new(key_parts.slice(1, key_parts.size).join('/'),
58
+ TemporaryFile.new(key_parts.join('/'),
59
59
  ::File.open(file_path, 'r'),
60
- ::File.join(tmp_folder, key_parts.slice(0, 1)))
60
+ tmp_folder.to_s)
61
61
  end
62
62
  end
63
63
  end
@@ -67,9 +67,8 @@ module LogStash
67
67
  end
68
68
 
69
69
  def new_file
70
- uuid = SecureRandom.uuid
71
70
  name = generate_name
72
- path = ::File.join(@tmpdir, uuid)
71
+ path = @tmpdir # ::File.join(@tmpdir, uuid)
73
72
  key = ::File.join(@prefix, name)
74
73
 
75
74
  FileUtils.mkdir_p(::File.join(path, @prefix))
@@ -1,9 +1,9 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-qingstor'
3
- s.version = '0.2.4'
3
+ s.version = '0.2.5'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = 'logstash output plugin for qingstor'
6
- s.description = 'Collect the outputs of logstash and store into Qingstor'
6
+ s.description = 'Collect the outputs of logstash and store into QingStor'
7
7
  s.homepage = 'https://github.com/yunify/logstash-output-qingstor'
8
8
  s.authors = ['Evan Zhao']
9
9
  s.email = 'tacingiht@gmail.com'
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  # Gem dependencies
21
21
  s.add_runtime_dependency 'logstash-core-plugin-api', '~> 2.0'
22
22
  s.add_runtime_dependency 'logstash-codec-plain'
23
- s.add_runtime_dependency 'qingstor-sdk', '>=1.9.2'
23
+ s.add_runtime_dependency 'qingstor-sdk', '>= 1.9.3'
24
24
  s.add_runtime_dependency 'concurrent-ruby'
25
25
 
26
26
  s.add_development_dependency 'stud', '~> 0.0.22'
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.4
4
+ version: 0.2.5
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-18 00:00:00.000000000 Z
11
+ date: 2017-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -43,7 +43,7 @@ dependencies:
43
43
  requirements:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 1.9.2
46
+ version: 1.9.3
47
47
  name: qingstor-sdk
48
48
  prerelease: false
49
49
  type: :runtime
@@ -51,7 +51,7 @@ dependencies:
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 1.9.2
54
+ version: 1.9.3
55
55
  - !ruby/object:Gem::Dependency
56
56
  requirement: !ruby/object:Gem::Requirement
57
57
  requirements:
@@ -94,7 +94,7 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
- description: Collect the outputs of logstash and store into Qingstor
97
+ description: Collect the outputs of logstash and store into QingStor
98
98
  email: tacingiht@gmail.com
99
99
  executables: []
100
100
  extensions: []
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  version: '0'
149
149
  requirements: []
150
150
  rubyforge_project:
151
- rubygems_version: 2.4.8
151
+ rubygems_version: 2.6.13
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: logstash output plugin for qingstor