logstash-output-example 0.1.2 → 0.1.3

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: 157ac746e4b9ed03868560d537fb4dec76d7b268
4
- data.tar.gz: c9cafe9c612cae4a0d51fa02c2d73bdd905c5257
3
+ metadata.gz: f90decd5f55cc2d325b9fc0164611457d0f820a0
4
+ data.tar.gz: 8e6550760fcf62c33b832c015d2b8e83f56605d8
5
5
  SHA512:
6
- metadata.gz: 450140a800c2cb43d5422cc18e8d06aaa8804c5db66982983b520b8149e23c1142e0b2474499eefd1c28d1d176089dca673062548a5b45920e532d0ae8bcbee2
7
- data.tar.gz: bf56e6d8318d68103306651d20baceb7ad5453763a0732c5f21ee9bc6b1752b9fee63d1493fc13086db1dd82588e2d81f22f6ea8aedad0d20545e6968c98fb28
6
+ metadata.gz: 61abd9bde45d95e50b86b924b25cd605e348edf69a1ff8ae714bfdddc17d2e9fd2518e48c75983cead7d05c25d18e4a4e5776e0adb2602a19b89e69e3466680a
7
+ data.tar.gz: eae3b459f51901e0505984c089d295885ad212d098683b4a24c39cebabb07567bf19e5889620f491bc3081dc4e45b154d07de04f0dcbea3de75b343304ef009b
data/Gemfile CHANGED
@@ -1,2 +1,2 @@
1
1
  source 'https://rubygems.org'
2
- gemspec
2
+ gemspec
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012-2015 Elasticsearch <http://www.elasticsearch.org>
1
+ Copyright (c) 20122015 Elasticsearch <http://www.elastic.co>
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
@@ -12,5 +12,6 @@ class LogStash::Outputs::Example < LogStash::Outputs::Base
12
12
 
13
13
  public
14
14
  def receive(event)
15
+ return "Event received"
15
16
  end # def event
16
17
  end # class LogStash::Outputs::Example
@@ -1,12 +1,12 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-example'
3
- s.version = '0.1.2'
4
- s.licenses = ['Apache License (2.0)']
3
+ s.version = "0.1.3"
4
+ s.licenses = ["Apache License (2.0)"]
5
5
  s.summary = "This example output does nothing."
6
6
  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"
7
- s.authors = ["Elasticsearch"]
8
- s.email = 'info@elasticsearch.com'
9
- s.homepage = "http://www.elasticsearch.org/guide/en/logstash/current/index.html"
7
+ s.authors = ["Elastic"]
8
+ s.email = "info@elastic.co"
9
+ s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
10
10
  s.require_paths = ["lib"]
11
11
 
12
12
  # Files
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "output" }
19
19
 
20
20
  # Gem dependencies
21
- s.add_runtime_dependency "logstash-core", '>= 1.4.0', '< 2.0.0'
22
- s.add_development_dependency 'logstash-devutils'
23
- end
21
+ s.add_runtime_dependency "logstash-core", ">= 1.4.0", "< 2.0.0"
22
+ s.add_runtime_dependency "logstash-codec-plain"
23
+ s.add_development_dependency "logstash-devutils"
24
+ end
@@ -1 +1,21 @@
1
1
  require "logstash/devutils/rspec/spec_helper"
2
+ require "logstash/outputs/example"
3
+ require "logstash/codecs/plain"
4
+ require "logstash/event"
5
+
6
+ describe LogStash::Outputs::Example do
7
+ let(:sample_event) { LogStash::Event.new }
8
+ let(:output) { LogStash::Outputs::Example.new }
9
+
10
+ before do
11
+ output.register
12
+ end
13
+
14
+ describe "receive message" do
15
+ subject { output.receive(sample_event) }
16
+
17
+ it "returns a string" do
18
+ expect(subject).to eq("Event received")
19
+ end
20
+ end
21
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-example
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
- - Elasticsearch
7
+ - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-26 00:00:00.000000000 Z
11
+ date: 2015-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -30,6 +30,20 @@ dependencies:
30
30
  - - <
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.0.0
33
+ - !ruby/object:Gem::Dependency
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ name: logstash-codec-plain
40
+ prerelease: false
41
+ type: :runtime
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
33
47
  - !ruby/object:Gem::Dependency
34
48
  requirement: !ruby/object:Gem::Requirement
35
49
  requirements:
@@ -45,7 +59,7 @@ dependencies:
45
59
  - !ruby/object:Gem::Version
46
60
  version: '0'
47
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
48
- email: info@elasticsearch.com
62
+ email: info@elastic.co
49
63
  executables: []
50
64
  extensions: []
51
65
  extra_rdoc_files: []
@@ -60,7 +74,7 @@ files:
60
74
  - lib/logstash/outputs/example.rb
61
75
  - logstash-output-example.gemspec
62
76
  - spec/outputs/example_spec.rb
63
- homepage: http://www.elasticsearch.org/guide/en/logstash/current/index.html
77
+ homepage: http://www.elastic.co/guide/en/logstash/current/index.html
64
78
  licenses:
65
79
  - Apache License (2.0)
66
80
  metadata:
@@ -82,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
96
  version: '0'
83
97
  requirements: []
84
98
  rubyforge_project:
85
- rubygems_version: 2.4.5
99
+ rubygems_version: 2.1.9
86
100
  signing_key:
87
101
  specification_version: 4
88
102
  summary: This example output does nothing.