logstash-output-stdout 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/Gemfile +1 -1
- data/README.md +4 -4
- data/logstash-output-stdout.gemspec +3 -4
- data/spec/outputs/stdout_spec.rb +26 -1
- data/spec/spec_helper.rb +3 -0
- metadata +9 -9
- data/.gitignore +0 -4
- data/Rakefile +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c429e87c39052d0b026ce640e3c9cfe3dafa8f2d
|
4
|
+
data.tar.gz: c7fa38c0980ec8dddfa60bb15ec845c3014b4da0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 723dbb41c2c72df85dda8e81bbfb3abe3a40093ed304a3f8ba8dedef5851fcb1fe04489af670796914a6a2e2a84dead57cd6c1df2d57596063e20d47ce66a972
|
7
|
+
data.tar.gz: 0a9f70fe9d53582cd6be244af0cb59b163a47678d732cade4620b67be13d9b3796ec2c39c7a1fa6158d1738e55b3f5af737bf7eb95045b0636ad9be4a761bb21
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
|
-
gemspec
|
2
|
+
gemspec
|
data/README.md
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Logstash Plugin
|
2
2
|
|
3
|
-
This is a plugin for [Logstash](https://github.com/
|
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.
|
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/
|
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/
|
86
|
+
For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-output-stdout'
|
4
|
-
s.version = '1.
|
4
|
+
s.version = '1.1.0'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "A simple output which prints to the STDOUT of the shell running Logstash."
|
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 =
|
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,8 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.metadata = { "logstash_plugin" => "true", "logstash_group" => "output" }
|
21
21
|
|
22
22
|
# Gem dependencies
|
23
|
-
s.add_runtime_dependency
|
24
|
-
|
23
|
+
s.add_runtime_dependency 'logstash-core', '>= 1.4.0', '< 2.0.0'
|
25
24
|
s.add_runtime_dependency 'logstash-codec-line'
|
26
25
|
|
27
26
|
s.add_development_dependency 'logstash-devutils'
|
data/spec/outputs/stdout_spec.rb
CHANGED
@@ -1,4 +1,29 @@
|
|
1
|
-
|
1
|
+
# encoding: utf-8
|
2
|
+
require_relative "../spec_helper"
|
2
3
|
|
3
4
|
describe LogStash::Outputs::Stdout do
|
5
|
+
|
6
|
+
it "should register without errors" do
|
7
|
+
plugin = LogStash::Plugin.lookup("output", "stdout").new({})
|
8
|
+
expect { plugin.register }.to_not raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
describe "#send" do
|
12
|
+
|
13
|
+
subject { LogStash::Outputs::Stdout.new({}) }
|
14
|
+
|
15
|
+
let(:properties) { { "message" => "This is a message!"} }
|
16
|
+
let(:event) { LogStash::Event.new(properties) }
|
17
|
+
|
18
|
+
before(:each) do
|
19
|
+
subject.register
|
20
|
+
end
|
21
|
+
|
22
|
+
it "sends the generated event out" do
|
23
|
+
expect(subject.codec).to receive(:encode).with(event)
|
24
|
+
subject.receive(event)
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
|
4
29
|
end
|
data/spec/spec_helper.rb
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-stdout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash-core
|
@@ -64,17 +64,16 @@ executables: []
|
|
64
64
|
extensions: []
|
65
65
|
extra_rdoc_files: []
|
66
66
|
files:
|
67
|
-
- .
|
67
|
+
- lib/logstash/outputs/stdout.rb
|
68
|
+
- spec/spec_helper.rb
|
69
|
+
- spec/outputs/stdout_spec.rb
|
70
|
+
- logstash-output-stdout.gemspec
|
68
71
|
- CHANGELOG.md
|
72
|
+
- README.md
|
69
73
|
- CONTRIBUTORS
|
70
74
|
- Gemfile
|
71
75
|
- LICENSE
|
72
76
|
- NOTICE.TXT
|
73
|
-
- README.md
|
74
|
-
- Rakefile
|
75
|
-
- lib/logstash/outputs/stdout.rb
|
76
|
-
- logstash-output-stdout.gemspec
|
77
|
-
- spec/outputs/stdout_spec.rb
|
78
77
|
homepage: http://www.elastic.co/guide/en/logstash/current/index.html
|
79
78
|
licenses:
|
80
79
|
- Apache License (2.0)
|
@@ -97,9 +96,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
96
|
version: '0'
|
98
97
|
requirements: []
|
99
98
|
rubyforge_project:
|
100
|
-
rubygems_version: 2.
|
99
|
+
rubygems_version: 2.1.9
|
101
100
|
signing_key:
|
102
101
|
specification_version: 4
|
103
102
|
summary: A simple output which prints to the STDOUT of the shell running Logstash.
|
104
103
|
test_files:
|
104
|
+
- spec/spec_helper.rb
|
105
105
|
- spec/outputs/stdout_spec.rb
|
data/.gitignore
DELETED