logstash-codec-rubydebug 2.0.3 → 2.0.4
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 +4 -4
- data/CHANGELOG.md +3 -1
- data/README.md +3 -0
- data/lib/logstash/codecs/rubydebug.rb +6 -1
- data/logstash-codec-rubydebug.gemspec +1 -1
- data/spec/codecs/rubydebug_spec.rb +10 -14
- metadata +20 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd48b701713621db7b5aa8aa05ac0245b8926d9c
|
4
|
+
data.tar.gz: c0522fa28b069e36b4d6443eb793cf3dbc62a3c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 283aebc98fea00c5ccc24e4ca6dd0484d57e93466eb487721b6c342e2a6848a5418d00e28d1c04c93d09836f60ae64ca6152cc436d5d47b2dcc9d7993b00de9a
|
7
|
+
data.tar.gz: 4d582ebca72f7998da07ea22341ae8d0a3415c9dc123dd324d145b98222051ff36d6196a7b81e82486bc8f883d4f3c35c7ef8b70c6bf1e47a08dc5042ad481a6
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
+
## 2.0.4
|
2
|
+
- remove LogStash::Timestamp coloring
|
1
3
|
## 2.0.3
|
2
4
|
- Colorize LogStash::Timestamp as green
|
3
5
|
## 2.0.0
|
4
|
-
- Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
|
6
|
+
- Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
|
5
7
|
instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
|
6
8
|
- Dependency on logstash-core update to 2.0
|
7
9
|
|
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Logstash Plugin
|
2
2
|
|
3
|
+
[](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Codecs/job/logstash-plugin-codec-rubydebug-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.
|
@@ -10,9 +10,14 @@ class LogStash::Codecs::RubyDebug < LogStash::Codecs::Base
|
|
10
10
|
# Should the event's metadata be included?
|
11
11
|
config :metadata, :validate => :boolean, :default => false
|
12
12
|
|
13
|
+
# AWESOME_OPTIONS = {:color => {:logstash_timestamp => :green}}
|
14
|
+
# disabled options, awesome_print coloring option is buggy and only occurs once and it cannot be tested.
|
15
|
+
AWESOME_OPTIONS = {}
|
16
|
+
|
13
17
|
def register
|
14
18
|
require "awesome_print"
|
15
|
-
AwesomePrint.defaults =
|
19
|
+
AwesomePrint.defaults = AWESOME_OPTIONS
|
20
|
+
|
16
21
|
if @metadata
|
17
22
|
@encoder = method(:encode_with_metadata)
|
18
23
|
else
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-codec-rubydebug'
|
4
|
-
s.version = '2.0.
|
4
|
+
s.version = '2.0.4'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "The rubydebug codec will output your Logstash event data using the Ruby Awesome Print library."
|
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"
|
@@ -1,26 +1,22 @@
|
|
1
1
|
require "logstash/devutils/rspec/spec_helper"
|
2
2
|
require "logstash/codecs/rubydebug"
|
3
3
|
require "logstash/event"
|
4
|
-
require "awesome_print"
|
5
|
-
require "insist"
|
6
4
|
|
7
5
|
describe LogStash::Codecs::RubyDebug do
|
8
6
|
|
9
|
-
|
10
|
-
subject do
|
11
|
-
next LogStash::Codecs::RubyDebug.new
|
12
|
-
end
|
7
|
+
subject { LogStash::Codecs::RubyDebug.new }
|
13
8
|
|
14
9
|
context "#encode" do
|
15
10
|
it "should print beautiful hashes" do
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
11
|
+
subject.register
|
12
|
+
|
13
|
+
event = LogStash::Event.new({"what" => "ok", "who" => 2})
|
14
|
+
on_event = lambda { |e, d| expect(d.chomp).to eq(event.to_hash.awesome_inspect) }
|
15
|
+
|
16
|
+
subject.on_event(&on_event)
|
17
|
+
expect(on_event).to receive(:call).once.and_call_original
|
18
|
+
|
19
|
+
subject.encode(event)
|
24
20
|
end
|
25
21
|
end
|
26
22
|
|
metadata
CHANGED
@@ -1,17 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-codec-rubydebug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
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
|
+
date: 2015-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
|
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
|
-
|
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,49 +28,51 @@ 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: awesome_print
|
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: awesome_print
|
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/codecs/rubydebug.rb
|
68
|
+
- spec/codecs/rubydebug_spec.rb
|
69
|
+
- logstash-codec-rubydebug.gemspec
|
67
70
|
- CHANGELOG.md
|
71
|
+
- README.md
|
68
72
|
- CONTRIBUTORS
|
69
73
|
- Gemfile
|
70
74
|
- LICENSE
|
71
75
|
- NOTICE.TXT
|
72
|
-
- README.md
|
73
|
-
- lib/logstash/codecs/rubydebug.rb
|
74
|
-
- logstash-codec-rubydebug.gemspec
|
75
|
-
- spec/codecs/rubydebug_spec.rb
|
76
76
|
homepage: http://www.elastic.co/guide/en/logstash/current/index.html
|
77
77
|
licenses:
|
78
78
|
- Apache License (2.0)
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.
|
98
|
+
rubygems_version: 2.1.9
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: The rubydebug codec will output your Logstash event data using the Ruby Awesome Print library.
|