logstash-codec-edn_lines 0.1.2 → 0.1.3

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: 06b64835e073f072f9397d4d49d49cbb3a66e807
4
- data.tar.gz: dea9310948a0eaf5dfa782e0157b71ab8362db42
3
+ metadata.gz: 540a7ecf39b68d15a8e3fd11f20615c1eb77c2e4
4
+ data.tar.gz: 63968d5bc5c14e539aea7fae77dcb12de4e7f087
5
5
  SHA512:
6
- metadata.gz: 184f4e4bf3bdf7d129322580ccda7ac88ab90eec152b5b4a783a67403d0e47ac96ab29fd3636806b0caeff5eb2c1d1ee07c679bd9de1eab7cf94ed921ec3adc7
7
- data.tar.gz: 2c91c69c6acabbd420e2666caba4bdfa815551e78b9d81b766fc2d27f4ae8f365602562e9c3229eb817b2a7f70ced14bc2860265764a2f32462b2a32294cd356
6
+ metadata.gz: d9d94bcaf68bd4e3b27eb8a8cdc4a37fb4bf4cb79b45310c92181293c6a8ea8bcdfca2418087cc411384ed5a4d1185ff1bb53cf53321342dfdda170822515652
7
+ data.tar.gz: 09d726a9ae5f69347310913a5bdc7ea3aac8dd4ccb04ebf3652bd9172724bd9f3edbaba239a899de1a62122b4612a349cc57a640eece23a0499157ef0c2e501a
@@ -36,7 +36,7 @@ class LogStash::Codecs::EDNLines < LogStash::Codecs::Base
36
36
  data = LogStash::Util.normalize(event.to_hash)
37
37
  # timestamp is serialized as a iso8601 string
38
38
  # merge to avoid modifying data which could have side effects if multiple outputs
39
- @on_event.call(data.merge(LogStash::Event::TIMESTAMP => event.timestamp.to_iso8601).to_edn + NL)
39
+ @on_event.call(event, data.merge(LogStash::Event::TIMESTAMP => event.timestamp.to_iso8601).to_edn + NL)
40
40
  end
41
41
 
42
42
  end
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-codec-edn_lines'
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 process EDN data"
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"
@@ -41,7 +41,7 @@ describe LogStash::Codecs::EDNLines do
41
41
  data = {"foo" => "bar", "baz" => {"bah" => ["a","b","c"]}, "@timestamp" => "2014-05-30T02:52:17.929Z"}
42
42
  event = LogStash::Event.new(data)
43
43
  got_event = false
44
- subject.on_event do |d|
44
+ subject.on_event do |e, d|
45
45
  insist { EDN.read(d)["foo"] } == data["foo"]
46
46
  insist { EDN.read(d)["baz"] } == data["baz"]
47
47
  insist { EDN.read(d)["bah"] } == data["bah"]
@@ -57,7 +57,7 @@ describe LogStash::Codecs::EDNLines do
57
57
  data = LogStash::Json.load('{"foo": "bar", "baz": {"bah": ["a","b","c"]}, "@timestamp": "2014-05-30T02:52:17.929Z"}')
58
58
  event = LogStash::Event.new(data)
59
59
  got_event = false
60
- subject.on_event do |d|
60
+ subject.on_event do |e, d|
61
61
  insist { EDN.read(d)["foo"] } == data["foo"]
62
62
  insist { EDN.read(d)["baz"] } == data["baz"]
63
63
  insist { EDN.read(d)["bah"] } == data["bah"]
metadata CHANGED
@@ -1,18 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-codec-edn_lines
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-19 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
- name: logstash
15
- version_requirements: !ruby/object:Gem::Requirement
14
+ requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
16
  - - '>='
18
17
  - !ruby/object:Gem::Version
@@ -20,7 +19,10 @@ dependencies:
20
19
  - - <
21
20
  - !ruby/object:Gem::Version
22
21
  version: 2.0.0
23
- requirement: !ruby/object:Gem::Requirement
22
+ name: logstash
23
+ prerelease: false
24
+ type: :runtime
25
+ version_requirements: !ruby/object:Gem::Requirement
24
26
  requirements:
25
27
  - - '>='
26
28
  - !ruby/object:Gem::Version
@@ -28,50 +30,48 @@ dependencies:
28
30
  - - <
29
31
  - !ruby/object:Gem::Version
30
32
  version: 2.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'
40
34
  requirement: !ruby/object:Gem::Requirement
41
35
  requirements:
42
36
  - - '>='
43
37
  - !ruby/object:Gem::Version
44
38
  version: '0'
39
+ name: logstash-codec-line
45
40
  prerelease: false
46
41
  type: :runtime
47
- - !ruby/object:Gem::Dependency
48
- name: edn
49
42
  version_requirements: !ruby/object:Gem::Requirement
50
43
  requirements:
51
44
  - - '>='
52
45
  - !ruby/object:Gem::Version
53
46
  version: '0'
47
+ - !ruby/object:Gem::Dependency
54
48
  requirement: !ruby/object:Gem::Requirement
55
49
  requirements:
56
50
  - - '>='
57
51
  - !ruby/object:Gem::Version
58
52
  version: '0'
53
+ name: edn
59
54
  prerelease: false
60
55
  type: :runtime
61
- - !ruby/object:Gem::Dependency
62
- name: logstash-devutils
63
56
  version_requirements: !ruby/object:Gem::Requirement
64
57
  requirements:
65
58
  - - '>='
66
59
  - !ruby/object:Gem::Version
67
60
  version: '0'
61
+ - !ruby/object:Gem::Dependency
68
62
  requirement: !ruby/object:Gem::Requirement
69
63
  requirements:
70
64
  - - '>='
71
65
  - !ruby/object:Gem::Version
72
66
  version: '0'
67
+ name: logstash-devutils
73
68
  prerelease: false
74
69
  type: :development
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - '>='
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
75
  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
76
76
  email: info@elasticsearch.com
77
77
  executables: []
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  version: '0'
108
108
  requirements: []
109
109
  rubyforge_project:
110
- rubygems_version: 2.4.4
110
+ rubygems_version: 2.1.9
111
111
  signing_key:
112
112
  specification_version: 4
113
113
  summary: Codec to process EDN data