mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
style
This commit is contained in:
parent
8cf737a826
commit
9690cde783
2 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@ require "logstash/codecs/base"
|
|||
require "json"
|
||||
|
||||
# This codec will encode and decode JSON.
|
||||
class LogStash::Codecs::Json < LogStash::Codecs::Base
|
||||
class LogStash::Codecs::JSON < LogStash::Codecs::Base
|
||||
config_name "json"
|
||||
|
||||
milestone 1
|
||||
|
@ -43,4 +43,4 @@ class LogStash::Codecs::Json < LogStash::Codecs::Base
|
|||
@on_event.call(data.to_json + "\n")
|
||||
end # def encode
|
||||
|
||||
end # class LogStash::Codecs::Json
|
||||
end # class LogStash::Codecs::JSON
|
||||
|
|
|
@ -2,9 +2,9 @@ require "logstash/codecs/json"
|
|||
require "logstash/event"
|
||||
require "insist"
|
||||
|
||||
describe LogStash::Codecs::Json do
|
||||
describe LogStash::Codecs::JSON do
|
||||
subject do
|
||||
next LogStash::Codecs::Json.new
|
||||
next LogStash::Codecs::JSON.new
|
||||
end
|
||||
|
||||
context "#decode" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue