logstash-output-pipe 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f270fe00001291c3c785e9a36260195dfd7cfe18
4
- data.tar.gz: 437dc3b50a36ba0317091b8e3927c059dbac72e6
3
+ metadata.gz: 4d3084fe033f5252c596d3613f859f2bd02270d5
4
+ data.tar.gz: 2aeeffa1df5f0605e791c3808e4d8ed3b9361f7c
5
5
  SHA512:
6
- metadata.gz: ad7ba327aab68f51f836d19adc6759ae2c959ad28ae89ec21b2bfbc81995247cad70759808788bf9e96be4d7f18916c07e163a84dd061004d8c2ab5785693669
7
- data.tar.gz: 42616edfeed99710bebd2367a3f6e59ae777154e8a8711237ff2036dc751688b2856ecb547271a493fb805eabad7e627f2832bfbd0bb5c2a47e9c00c7c9d4a5d
6
+ metadata.gz: e6b913aa4fefd7dbe4fd8e9aa8b94d65507851f9f1801cd8785c9ab0f6e8b05c519f247dbeb2024ae2729e6c8924aee479fba5da53dbb2f8ecb7133ea6c22f52
7
+ data.tar.gz: ac4ea38bf1609679bd5ff915fa4dba5a438e28ef2492e86694e4a304f00fd074b99e670c5e8ff63fc1207cb63788c7ad9b2e9953339a0bdccc23bd7e41765ec9
data/CHANGELOG.md CHANGED
@@ -0,0 +1,2 @@
1
+ # 1.1.0
2
+ - Add test to the project
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-pipe'
4
- s.version = '1.0.0'
4
+ s.version = '1.1.0'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Pipe events to stdin of another program."
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($\)+::Dir.glob('vendor/*')
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)/})
@@ -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 +1,35 @@
1
- require "logstash/devutils/rspec/spec_helper"
1
+ # encoding: utf-8
2
+ require_relative "../spec_helper"
3
+ require "logstash/plugin"
4
+ require "logstash/event"
5
+
6
+ describe LogStash::Outputs::Pipe do
7
+
8
+ let(:format) { "%{message}" }
9
+ let(:cmd) { "cmd" }
10
+
11
+ it "should register without errors" do
12
+ plugin = LogStash::Plugin.lookup("output", "pipe").new({"command" => cmd})
13
+ expect { plugin.register }.to_not raise_error
14
+ end
15
+
16
+ describe "#send" do
17
+
18
+ subject { LogStash::Outputs::Pipe.new("command" => cmd) }
19
+
20
+ let(:properties) { { "message" => "This is a message!"} }
21
+ let(:event) { LogStash::Event.new(properties) }
22
+
23
+ let(:pipe) { double("pipe") }
24
+ before(:each) do
25
+ allow(PipeWrapper).to receive(:new).and_return(pipe)
26
+ subject.register
27
+ end
28
+
29
+ it "sends the generated event to the pipe" do
30
+ expect(pipe).to receive(:puts).with(event.to_json)
31
+ subject.receive(event)
32
+ end
33
+
34
+ end
35
+ end
@@ -0,0 +1,3 @@
1
+ # encoding: utf-8
2
+ require "logstash/devutils/rspec/spec_helper"
3
+ require "logstash/outputs/pipe"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-pipe
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
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-06-24 00:00:00.000000000 Z
11
+ date: 2015-09-18 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
@@ -50,17 +64,16 @@ executables: []
50
64
  extensions: []
51
65
  extra_rdoc_files: []
52
66
  files:
53
- - .gitignore
67
+ - lib/logstash/outputs/pipe.rb
68
+ - spec/spec_helper.rb
69
+ - spec/outputs/pipe_spec.rb
70
+ - logstash-output-pipe.gemspec
71
+ - README.md
54
72
  - CHANGELOG.md
55
73
  - CONTRIBUTORS
56
74
  - Gemfile
57
75
  - LICENSE
58
76
  - NOTICE.TXT
59
- - README.md
60
- - Rakefile
61
- - lib/logstash/outputs/pipe.rb
62
- - logstash-output-pipe.gemspec
63
- - spec/outputs/pipe_spec.rb
64
77
  homepage: http://www.elastic.co/guide/en/logstash/current/index.html
65
78
  licenses:
66
79
  - Apache License (2.0)
@@ -83,9 +96,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
96
  version: '0'
84
97
  requirements: []
85
98
  rubyforge_project:
86
- rubygems_version: 2.2.2
99
+ rubygems_version: 2.1.9
87
100
  signing_key:
88
101
  specification_version: 4
89
102
  summary: Pipe events to stdin of another program.
90
103
  test_files:
104
+ - spec/spec_helper.rb
91
105
  - spec/outputs/pipe_spec.rb
data/.gitignore DELETED
@@ -1,4 +0,0 @@
1
- *.gem
2
- Gemfile.lock
3
- .bundle
4
- vendor
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"