logstash-output-null 1.0.0 → 1.0.1

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: cb8380504927d5f1c474338db52938686190dee0
4
- data.tar.gz: 0d3e878ffad4256ffdc967c60d7052870a64e19d
3
+ metadata.gz: ad0c5634b4d336ae9b29b2990b55078fd2251bf8
4
+ data.tar.gz: 6ad545397560b2ae60cf7fae935bf2d0fc5eb788
5
5
  SHA512:
6
- metadata.gz: a687d17c0f6c4af1e5d6f3ce9796676de3863df87d3de08b57ca6bf8ee9e1477583ce8e7ecca492267e990113ee1340d76341aea5eb29cf08d813587c63dca3e
7
- data.tar.gz: acd465ef361cd28835457151740a9e969b9e1ceab654707127a5a4cc503dfbed1462ce45670ca799f7e064d9813a7429bfe05b04886a34769757d39a4c34c042
6
+ metadata.gz: 52658f7c4548a364e33abe32f9e1ddd88ebba4da9377897fcb894fcb02b39cc6b780059298b2303cda33ca90161352e47914c89f1d5f3aa738eb5dfcb009a59d
7
+ data.tar.gz: 0d9a55f405e354ff9051f9b0aeb59297d0e0032ecb3a15901326482a42f00831b109f08c21727845049537cc83055cbbd8ccebfacac20acba02494d6f370272d
data/CHANGELOG.md CHANGED
@@ -0,0 +1,3 @@
1
+ # 1.0.1
2
+ - add minimal test coverage
3
+ - add a runtime dependencies on `logstash-codec-plain`
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.
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-null'
4
- s.version = '1.0.0'
4
+ s.version = '1.0.1'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "A null output. This is useful for testing logstash inputs and filters for performance."
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"
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
21
21
 
22
22
  # Gem dependencies
23
23
  s.add_runtime_dependency "logstash-core", '>= 1.4.0', '< 2.0.0'
24
+ s.add_runtime_dependency "logstash-codec-plain"
24
25
 
25
26
  s.add_development_dependency 'logstash-devutils'
26
27
  end
@@ -1,7 +1,21 @@
1
1
  # encoding: utf-8
2
- require "logstash/devutils/rspec/spec_helper"
3
2
  require "logstash/outputs/null"
3
+ require "logstash/event"
4
+ require "logstash/devutils/rspec/spec_helper"
4
5
 
5
6
  describe LogStash::Outputs::Null do
7
+ context "#register" do
8
+ it "should not raise an error" do
9
+ expect {subject.register }.not_to raise_error
10
+ end
11
+ end
12
+
13
+ context "#receive" do
14
+ let(:event) { LogStash::Event.new({ "message" => "foobar" }) }
15
+
16
+ it "should not raise an error" do
17
+ expect {subject.receive(event) }.not_to raise_error
18
+ end
19
+ end
6
20
  end
7
21
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-null
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-24 00:00:00.000000000 Z
11
+ date: 2015-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-core
@@ -30,6 +30,20 @@ dependencies:
30
30
  version: 2.0.0
31
31
  prerelease: false
32
32
  type: :runtime
33
+ - !ruby/object:Gem::Dependency
34
+ name: logstash-codec-plain
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirement: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ prerelease: false
46
+ type: :runtime
33
47
  - !ruby/object:Gem::Dependency
34
48
  name: logstash-devutils
35
49
  version_requirements: !ruby/object:Gem::Requirement
@@ -83,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
97
  version: '0'
84
98
  requirements: []
85
99
  rubyforge_project:
86
- rubygems_version: 2.2.2
100
+ rubygems_version: 2.1.9
87
101
  signing_key:
88
102
  specification_version: 4
89
103
  summary: A null output. This is useful for testing logstash inputs and filters for performance.