logstash-codec-compress_spooler 0.2.1-java → 2.0.1-java

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: 535e7ba6428662ca4841cfe17c8345e2ac97b75e
4
- data.tar.gz: bc41ec1904affc9482ad80aa416d283be3108494
3
+ metadata.gz: a8a0b1161b6006ed3858b8844f2f33eb432f049c
4
+ data.tar.gz: 9144dbf0aea24948924a6efbc73350cc26acdf09
5
5
  SHA512:
6
- metadata.gz: 23551e2e2ede76ab0d97a078fffb63c417c66d2182d7f099e7e19792482307be9be6721122df3414cd43c09768eac087fffa8592db3cac8930793c0fc6bea0fb
7
- data.tar.gz: 5033836f0cdc2a7b4cc9a005ef7ace7e8f3fbcc118003d3f08de67310de02bdbbddd204a1e9e7194173efbab5c48d8ab0fafaad9c96494130f2f7e6739166bbb
6
+ metadata.gz: 091dfba32d20e906505da511fda58f3b1e824ffaa9a4487464445343169a3bc6fe581bf19ab7f7ec5435d02e0ac85358a28ebbb597c0dbee95e571c0c4dcb25e
7
+ data.tar.gz: c3fa6bbab45ebfb392cd07d583498b3ba677258f14b879c870744affe93957c61ddd85a9ad2f6e18aad17be48591271a8e510360a89d440ec2ba0a84008d843b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 2.0.0
2
+ - Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
3
+ instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
4
+ - Dependency on logstash-core update to 2.0
5
+
1
6
  # 0.2.1
2
7
 
3
8
  * Fixes data loss that happen for each even of each new round after the
data/README.md CHANGED
@@ -1,15 +1,15 @@
1
1
  # Logstash Plugin
2
2
 
3
- This is a plugin for [Logstash](https://github.com/elasticsearch/logstash).
3
+ This is a plugin for [Logstash](https://github.com/elastic/logstash).
4
4
 
5
5
  It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
6
6
 
7
7
  ## Documentation
8
8
 
9
- Logstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one [central location](http://www.elasticsearch.org/guide/en/logstash/current/).
9
+ Logstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one [central location](http://www.elastic.co/guide/en/logstash/current/).
10
10
 
11
11
  - For formatting code or config example, you can use the asciidoc `[source,ruby]` directive
12
- - For more asciidoc formatting tips, see the excellent reference here https://github.com/elasticsearch/docs#asciidoc-guide
12
+ - For more asciidoc formatting tips, see the excellent reference here https://github.com/elastic/docs#asciidoc-guide
13
13
 
14
14
  ## Need Help?
15
15
 
@@ -83,4 +83,4 @@ Programming is not a required skill. Whatever you've seen about open source and
83
83
 
84
84
  It is more important to the community that you are able to contribute.
85
85
 
86
- For more information about contributing, see the [CONTRIBUTING](https://github.com/elasticsearch/logstash/blob/master/CONTRIBUTING.md) file.
86
+ For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
@@ -31,7 +31,7 @@ class LogStash::Codecs::CompressSpooler < LogStash::Codecs::Base
31
31
  end
32
32
  end # def encode
33
33
 
34
- def teardown
34
+ def close
35
35
  return if @buffer.empty?
36
36
  @on_event.call(compress(@buffer, @compress_level))
37
37
  @buffer.clear
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-codec-compress_spooler'
4
- s.version = '0.2.1'
4
+ s.version = '2.0.1'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "codec that processes compressed spooled data"
7
7
  s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.require_paths = ["lib"]
12
12
 
13
13
  # Files
14
- s.files = `git ls-files`.split($\)
14
+ s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
15
15
 
16
16
  # Tests
17
17
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "codec" }
21
21
 
22
22
  # Gem dependencies
23
- s.add_runtime_dependency "logstash-core", '>= 1.4.0', '< 2.0.0'
23
+ s.add_runtime_dependency "logstash-core", ">= 2.0.0.snapshot", "< 3.0.0"
24
24
  s.add_development_dependency 'logstash-devutils'
25
25
 
26
26
  if RUBY_PLATFORM == 'java'
@@ -7,14 +7,14 @@ describe LogStash::Codecs::CompressSpooler do
7
7
 
8
8
  subject(:codec) { LogStash::Codecs::CompressSpooler.new }
9
9
 
10
- describe "register and teardown" do
10
+ describe "register and close" do
11
11
 
12
12
  it "registers without any error" do
13
13
  expect { codec.register }.to_not raise_error
14
14
  end
15
15
 
16
16
  it "tearndown without erros" do
17
- expect { codec.teardown }.to_not raise_error
17
+ expect { codec.close }.to_not raise_error
18
18
  end
19
19
 
20
20
  end
@@ -115,13 +115,13 @@ describe LogStash::Codecs::CompressSpooler do
115
115
  include_examples "Encoding data"
116
116
  end
117
117
 
118
- context "when flussing pending data during teardown" do
118
+ context "when flussing pending data during close" do
119
119
  let(:data) { {"foo" => "bar", "baz" => {"bah" => ["a","b","c"]}, "@timestamp" => "2014-05-30T02:52:17.929Z"} }
120
120
 
121
121
  before(:each) do
122
122
  codec.on_event{|data| results << data}
123
123
  codec.encode(event)
124
- codec.teardown
124
+ codec.close
125
125
  end
126
126
  include_examples "Encoding data"
127
127
 
metadata CHANGED
@@ -1,77 +1,75 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-codec-compress_spooler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 2.0.1
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-24 00:00:00.000000000 Z
11
+ date: 2015-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: logstash-core
15
- version_requirements: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: 1.4.0
20
- - - <
21
- - !ruby/object:Gem::Version
22
- version: 2.0.0
23
14
  requirement: !ruby/object:Gem::Requirement
24
15
  requirements:
25
16
  - - '>='
26
17
  - !ruby/object:Gem::Version
27
- version: 1.4.0
18
+ version: 2.0.0.snapshot
28
19
  - - <
29
20
  - !ruby/object:Gem::Version
30
- version: 2.0.0
21
+ version: 3.0.0
22
+ name: logstash-core
31
23
  prerelease: false
32
24
  type: :runtime
33
- - !ruby/object:Gem::Dependency
34
- name: logstash-devutils
35
25
  version_requirements: !ruby/object:Gem::Requirement
36
26
  requirements:
37
27
  - - '>='
38
28
  - !ruby/object:Gem::Version
39
- version: '0'
29
+ version: 2.0.0.snapshot
30
+ - - <
31
+ - !ruby/object:Gem::Version
32
+ version: 3.0.0
33
+ - !ruby/object:Gem::Dependency
40
34
  requirement: !ruby/object:Gem::Requirement
41
35
  requirements:
42
36
  - - '>='
43
37
  - !ruby/object:Gem::Version
44
38
  version: '0'
39
+ name: logstash-devutils
45
40
  prerelease: false
46
41
  type: :development
47
- - !ruby/object:Gem::Dependency
48
- name: msgpack-jruby
49
42
  version_requirements: !ruby/object:Gem::Requirement
50
43
  requirements:
51
44
  - - '>='
52
45
  - !ruby/object:Gem::Version
53
46
  version: '0'
47
+ - !ruby/object:Gem::Dependency
54
48
  requirement: !ruby/object:Gem::Requirement
55
49
  requirements:
56
50
  - - '>='
57
51
  - !ruby/object:Gem::Version
58
52
  version: '0'
53
+ name: msgpack-jruby
59
54
  prerelease: false
60
55
  type: :runtime
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - '>='
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
61
  description: This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program
62
62
  email: info@elastic.co
63
63
  executables: []
64
64
  extensions: []
65
65
  extra_rdoc_files: []
66
66
  files:
67
- - .gitignore
68
67
  - CHANGELOG.md
69
68
  - CONTRIBUTORS
70
69
  - Gemfile
71
70
  - LICENSE
72
71
  - NOTICE.TXT
73
72
  - README.md
74
- - Rakefile
75
73
  - lib/logstash/codecs/compress_spooler.rb
76
74
  - logstash-codec-compress_spooler.gemspec
77
75
  - spec/codecs/compress_spooler_spec.rb
@@ -97,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
95
  version: '0'
98
96
  requirements: []
99
97
  rubyforge_project:
100
- rubygems_version: 2.1.9
98
+ rubygems_version: 2.4.8
101
99
  signing_key:
102
100
  specification_version: 4
103
101
  summary: codec that processes compressed spooled data
data/.gitignore DELETED
@@ -1,3 +0,0 @@
1
- *.gem
2
- Gemfile.lock
3
- .bundle
data/Rakefile DELETED
@@ -1,7 +0,0 @@
1
- @files=[]
2
-
3
- task :default do
4
- system("rake -T")
5
- end
6
-
7
- require "logstash/devutils/rake"