logstash-codec-oldlogstashjson 0.1.2 → 0.1.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: 8922722b4589b221be084fde699842b763ba612c
4
- data.tar.gz: c148b9b23bd256a375833775c085764e7c9bbc03
3
+ metadata.gz: 7022d8667566859c598e7da8c56765d00633b6e0
4
+ data.tar.gz: ca7d63628a727e0cfc655df7f4e296b5660e4c39
5
5
  SHA512:
6
- metadata.gz: 17f7f898876d09afea300252318414594f3c269373464ec6b6091e030b75f8648b1bc45dfa11b7c35f15ca1d116894469676196c8d1943d81e3891c6dada901e
7
- data.tar.gz: b712152b864a0763dec199b28af5feffc1dc466c03e827aa492a4b855a4c104d07a77888dc255b95594f01f5f9e9e5bb4f626510487f870b22b9e7308b442e3e
6
+ metadata.gz: 1394c3535cfb3b91a2885f342581f7cd9f7f54b8b2a1945bacbc1d78dcbfcc2f8188120947e2ca63b16e8be0102e30c63a6b6024a082911126b986e65b9356c7
7
+ data.tar.gz: bf622c836c1fd5af663db7f90725a2af18d2b565f96ef3b03548cf353dd8cd04eb8eb5b4ca746a9b17009c050e16d31281f5f4a2cf17b5886cd341acc56bf617
@@ -51,7 +51,7 @@ class LogStash::Codecs::OldLogStashJSON < LogStash::Codecs::Base
51
51
  end
52
52
 
53
53
  # Tack on a \n because JSON outputs 1.1.x had them.
54
- @on_event.call(LogStash::Json.dump(h) + NL)
54
+ @on_event.call(event, LogStash::Json.dump(h) + NL)
55
55
  end # def encode
56
56
 
57
57
  end # class LogStash::Codecs::OldLogStashJSON
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-codec-oldlogstashjson'
4
- s.version = '0.1.2'
4
+ s.version = '0.1.3'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Codec to convert v0 logstash format to v1"
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"
@@ -38,7 +38,7 @@ describe LogStash::Codecs::OldLogStashJSON do
38
38
  "bah" => "baz"}
39
39
  event = LogStash::Event.new(data)
40
40
  got_event = false
41
- subject.on_event do |d|
41
+ subject.on_event do |e, d|
42
42
  insist { LogStash::Json.load(d)["@timestamp"] } != nil
43
43
  insist { LogStash::Json.load(d)["@type"] } == data["type"]
44
44
  insist { LogStash::Json.load(d)["@message"] } == data["message"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-codec-oldlogstashjson
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elasticsearch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-21 00:00:00.000000000 Z
11
+ date: 2014-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement