logstash-output-stdout 2.0.3 → 2.0.4

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: 1cc03fad3c846e0139e536575a522dcd28d3273c
4
- data.tar.gz: 28c0aed518964cfe4ca9fc925a0878598aeca9e7
3
+ metadata.gz: 723fa778c62793fd04bb757be09866c3f1cc826c
4
+ data.tar.gz: 3e10634848dc326be5357d0592bd98975a8b8085
5
5
  SHA512:
6
- metadata.gz: aea1786709118dcd827b3574eb690090be1c1e615a29fc03dd64f4678323c05a132c723e2a04b035a7cb8a9829316772e49e381c33f620d495ac4ece912b859b
7
- data.tar.gz: 72c13419cf3eee8cd64ede7f8ff90514c80a1a27c221ac0a0d7e849ce29efcc1db56c70ee0ba02eada8522d389b73a26a5e9610c7083607750bf5ca5b966f199
6
+ metadata.gz: ceb71773463dab94fb1e1b80111dfec56b20ac98eb5972212f2cd35c3e05de77fbd5f0cb4a5ba9927cfe442b3d323ca44181f1551cae8516a3f2c8f7b87bd0ee
7
+ data.tar.gz: ac83a40e86c3767e24f98dcb66cf506aedf4966300b9f929e788fefc4e3c78d5ca339159017378019cb6d24cdaee7d745f39321cdc133f0578c21f22f87bddc6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 2.0.4
2
+ - Properly declare workers_not_supported
3
+
1
4
  ## 2.0.3
2
5
  - removed unused code to fix specs
3
6
 
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Logstash Plugin
2
2
 
3
- [![Build
4
- Status](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Outputs/job/logstash-plugin-output-stdout-unit/badge/icon)](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Outputs/job/logstash-plugin-output-stdout-unit/)
3
+ [![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-output-stdout.svg)](https://travis-ci.org/logstash-plugins/logstash-output-stdout)
5
4
 
6
5
  This is a plugin for [Logstash](https://github.com/elastic/logstash).
7
6
 
@@ -86,4 +85,4 @@ Programming is not a required skill. Whatever you've seen about open source and
86
85
 
87
86
  It is more important to the community that you are able to contribute.
88
87
 
89
- For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
88
+ For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
@@ -36,8 +36,14 @@ class LogStash::Outputs::Stdout < LogStash::Outputs::Base
36
36
 
37
37
  default :codec, "line"
38
38
 
39
+ if self.respond_to?(:workers_not_supported!) # Check for v2.2+ API
40
+ declare_workers_not_supported!("Stdout only supports one worker to prevent text overlap!")
41
+ end
42
+
39
43
  public
40
44
  def register
45
+ workers_not_supported # < v2.2 API
46
+
41
47
  @codec.on_event do |event, data|
42
48
  $stdout.write(data)
43
49
  end
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-stdout'
4
- s.version = '2.0.3'
4
+ s.version = '2.0.4'
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"
@@ -25,4 +25,3 @@ Gem::Specification.new do |s|
25
25
 
26
26
  s.add_development_dependency 'logstash-devutils'
27
27
  end
28
-
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: 2.0.3
4
+ version: 2.0.4
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-16 00:00:00.000000000 Z
11
+ date: 2016-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-core
@@ -64,16 +64,16 @@ executables: []
64
64
  extensions: []
65
65
  extra_rdoc_files: []
66
66
  files:
67
- - lib/logstash/outputs/stdout.rb
68
- - spec/spec_helper.rb
69
- - spec/outputs/stdout_spec.rb
70
- - logstash-output-stdout.gemspec
71
67
  - CHANGELOG.md
72
- - README.md
73
68
  - CONTRIBUTORS
74
69
  - Gemfile
75
70
  - LICENSE
76
71
  - NOTICE.TXT
72
+ - README.md
73
+ - lib/logstash/outputs/stdout.rb
74
+ - logstash-output-stdout.gemspec
75
+ - spec/outputs/stdout_spec.rb
76
+ - spec/spec_helper.rb
77
77
  homepage: http://www.elastic.co/guide/en/logstash/current/index.html
78
78
  licenses:
79
79
  - Apache License (2.0)
@@ -96,10 +96,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  version: '0'
97
97
  requirements: []
98
98
  rubyforge_project:
99
- rubygems_version: 2.1.9
99
+ rubygems_version: 2.4.8
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: A simple output which prints to the STDOUT of the shell running Logstash.
103
103
  test_files:
104
- - spec/spec_helper.rb
105
104
  - spec/outputs/stdout_spec.rb
105
+ - spec/spec_helper.rb