logstash-output-stdout 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f721a540a3a5dd2fa20a2e6892a93458e5c9b05
4
- data.tar.gz: d0650566fb12298cc9a4bb9647e444c3645f9638
3
+ metadata.gz: 1cc03fad3c846e0139e536575a522dcd28d3273c
4
+ data.tar.gz: 28c0aed518964cfe4ca9fc925a0878598aeca9e7
5
5
  SHA512:
6
- metadata.gz: 0746767679540fd223fa7a614916d29104ebdd3f9bee8d1461835d7f39aad7b411f7781eb8577e43fec6a6a7c1f97560bd0ea6a8012f54f894154ba7b79d2dae
7
- data.tar.gz: 6435aed095d396955b74ab5c7b26094e5dd62ebf6c0e10ad9bce997d1ab6ec7197ef731e6d53ff68310fbd67296f5696bbb0d6d7a23f74549f36f52efc8959ea
6
+ metadata.gz: aea1786709118dcd827b3574eb690090be1c1e615a29fc03dd64f4678323c05a132c723e2a04b035a7cb8a9829316772e49e381c33f620d495ac4ece912b859b
7
+ data.tar.gz: 72c13419cf3eee8cd64ede7f8ff90514c80a1a27c221ac0a0d7e849ce29efcc1db56c70ee0ba02eada8522d389b73a26a5e9610c7083607750bf5ca5b966f199
@@ -1,5 +1,8 @@
1
+ ## 2.0.3
2
+ - removed unused code to fix specs
3
+
1
4
  ## 2.0.0
2
- - Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
5
+ - Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
3
6
  instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
4
7
  - Dependency on logstash-core update to 2.0
5
8
 
data/README.md CHANGED
@@ -1,5 +1,8 @@
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/)
5
+
3
6
  This is a plugin for [Logstash](https://github.com/elastic/logstash).
4
7
 
5
8
  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.
@@ -9,12 +9,12 @@ require "logstash/namespace"
9
9
  #
10
10
  # For example, the following output configuration, in conjunction with the
11
11
  # Logstash `-e` command-line flag, will allow you to see the results
12
- # of your event pipeline for quick iteration.
12
+ # of your event pipeline for quick iteration.
13
13
  # [source,ruby]
14
14
  # output {
15
15
  # stdout {}
16
16
  # }
17
- #
17
+ #
18
18
  # Useful codecs include:
19
19
  #
20
20
  # `rubydebug`: outputs event data using the ruby "awesome_print"
@@ -32,13 +32,8 @@ require "logstash/namespace"
32
32
  # }
33
33
  #
34
34
  class LogStash::Outputs::Stdout < LogStash::Outputs::Base
35
- begin
36
- require "awesome_print"
37
- rescue LoadError
38
- end
39
-
40
35
  config_name "stdout"
41
-
36
+
42
37
  default :codec, "line"
43
38
 
44
39
  public
@@ -49,7 +44,7 @@ class LogStash::Outputs::Stdout < LogStash::Outputs::Base
49
44
  end
50
45
 
51
46
  def receive(event)
52
-
47
+
53
48
  return if event == LogStash::SHUTDOWN
54
49
  @codec.encode(event)
55
50
  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.2'
4
+ s.version = '2.0.3'
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"
metadata CHANGED
@@ -1,17 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-stdout
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-14 00:00:00.000000000 Z
11
+ date: 2015-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- requirement: !ruby/object:Gem::Requirement
14
+ name: logstash-core
15
+ version_requirements: !ruby/object:Gem::Requirement
15
16
  requirements:
16
17
  - - '>='
17
18
  - !ruby/object:Gem::Version
@@ -19,10 +20,7 @@ dependencies:
19
20
  - - <
20
21
  - !ruby/object:Gem::Version
21
22
  version: 3.0.0
22
- name: logstash-core
23
- prerelease: false
24
- type: :runtime
25
- version_requirements: !ruby/object:Gem::Requirement
23
+ requirement: !ruby/object:Gem::Requirement
26
24
  requirements:
27
25
  - - '>='
28
26
  - !ruby/object:Gem::Version
@@ -30,50 +28,52 @@ dependencies:
30
28
  - - <
31
29
  - !ruby/object:Gem::Version
32
30
  version: 3.0.0
31
+ prerelease: false
32
+ type: :runtime
33
33
  - !ruby/object:Gem::Dependency
34
+ name: logstash-codec-line
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
34
40
  requirement: !ruby/object:Gem::Requirement
35
41
  requirements:
36
42
  - - '>='
37
43
  - !ruby/object:Gem::Version
38
44
  version: '0'
39
- name: logstash-codec-line
40
45
  prerelease: false
41
46
  type: :runtime
47
+ - !ruby/object:Gem::Dependency
48
+ name: logstash-devutils
42
49
  version_requirements: !ruby/object:Gem::Requirement
43
50
  requirements:
44
51
  - - '>='
45
52
  - !ruby/object:Gem::Version
46
53
  version: '0'
47
- - !ruby/object:Gem::Dependency
48
54
  requirement: !ruby/object:Gem::Requirement
49
55
  requirements:
50
56
  - - '>='
51
57
  - !ruby/object:Gem::Version
52
58
  version: '0'
53
- name: logstash-devutils
54
59
  prerelease: false
55
60
  type: :development
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - '>='
59
- - !ruby/object:Gem::Version
60
- version: '0'
61
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
62
62
  email: info@elastic.co
63
63
  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
67
71
  - CHANGELOG.md
72
+ - README.md
68
73
  - CONTRIBUTORS
69
74
  - Gemfile
70
75
  - LICENSE
71
76
  - 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.4.8
99
+ rubygems_version: 2.1.9
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/outputs/stdout_spec.rb
105
104
  - spec/spec_helper.rb
105
+ - spec/outputs/stdout_spec.rb