logstash-codec-edn_lines 2.0.4 → 3.0.0

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: 4bf914ab42f9b59e1b1102c46b2b69900d1c86a9
4
- data.tar.gz: 1b2cc57d42c4ef1fb4a5b3273c1c3a35605a7ea6
3
+ metadata.gz: 8ca83bfee91644d904da035d47bc36e9f809dddf
4
+ data.tar.gz: fb1bdca54be2afaf70d6ee80cc859f0d29e425f1
5
5
  SHA512:
6
- metadata.gz: a53ef1d27dc47f6139e85c84882aa9252824165121ec75f315a179d466df4be9e12ada16e5765526c726b7fd5b8c091d70c740537167504f68ffcd4c41fbe975
7
- data.tar.gz: 8a641b2a12896f661d0b6eb616c87a087f6b1768a2d673f9a9fb1fae1082192646b9fd5f6ffa4209f0edfaa837a86611dd013f40ed367dfce67972794146729c
6
+ metadata.gz: 1a9e21806e3810587eb6bf6ae68bac282cc4aa7a7c9eb75c0f0d10a77a2f2aba1cff62a95ab6f438a0014c00200d018729157e50023ea0d3be3d6aedae0af624
7
+ data.tar.gz: ccfa9d43ccd8e53e8c7db1fb6a46dc9b680175048da6164639da672e9a396e97af4bf4fbecca4df7e691d8b85c8e852266b19beffbec52fb853b92db6bfe13cc
data/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ ## 3.0.0
2
+ - Update the plugin to the version 2.0 of the plugin api, this change is required for Logstash 5.0 compatibility. See https://github.com/elastic/logstash/issues/5141
1
3
  # 2.0.4
2
4
  - Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
3
5
  # 2.0.3
data/Gemfile CHANGED
@@ -1,2 +1,4 @@
1
1
  source 'https://rubygems.org'
2
- gemspec
2
+
3
+ # Specify your gem's dependencies in logstash-mass_effect.gemspec
4
+ gemspec
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012–2015 Elasticsearch <http://www.elastic.co>
1
+ Copyright (c) 2012–2016 Elasticsearch <http://www.elastic.co>
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Logstash Plugin
2
2
 
3
- [![Build
4
- Status](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Codecs/job/logstash-plugin-codec-edn_lines-unit/badge/icon)](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Codecs/job/logstash-plugin-codec-edn_lines-unit/)
3
+ [![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-codec-edn_lines.svg)](https://travis-ci.org/logstash-plugins/logstash-codec-edn_lines)
5
4
 
6
5
  This is a plugin for [Logstash](https://github.com/elastic/logstash).
7
6
 
@@ -56,7 +55,12 @@ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
56
55
  ```
57
56
  - Install plugin
58
57
  ```sh
58
+ # Logstash 2.3 and higher
59
+ bin/logstash-plugin install --no-verify
60
+
61
+ # Prior to Logstash 2.3
59
62
  bin/plugin install --no-verify
63
+
60
64
  ```
61
65
  - Run Logstash with your plugin
62
66
  ```sh
@@ -74,7 +78,12 @@ gem build logstash-filter-awesome.gemspec
74
78
  ```
75
79
  - Install the plugin from the Logstash home
76
80
  ```sh
77
- bin/plugin install /your/local/plugin/logstash-filter-awesome.gem
81
+ # Logstash 2.3 and higher
82
+ bin/logstash-plugin install --no-verify
83
+
84
+ # Prior to Logstash 2.3
85
+ bin/plugin install --no-verify
86
+
78
87
  ```
79
88
  - Start Logstash and proceed to test the plugin
80
89
 
@@ -20,7 +20,7 @@ class LogStash::Codecs::EDNLines < LogStash::Codecs::Base
20
20
  def decode(data)
21
21
  @lines.decode(data) do |event|
22
22
  begin
23
- yield LogStash::Event.new(EDN.read(event["message"]))
23
+ yield LogStash::Event.new(EDN.read(event.get("message")))
24
24
  rescue => e
25
25
  @logger.warn("EDN parse failure. Falling back to plain-text", :error => e, :data => data)
26
26
  yield LogStash::Event.new("message" => data)
@@ -1,10 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-codec-edn_lines'
4
- s.version = '2.0.4'
4
+ s.version = '3.0.0'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Codec to process EDN data"
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"
7
+ s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
8
8
  s.authors = ["Elastic"]
9
9
  s.email = 'info@elastic.co'
10
10
  s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "codec" }
21
21
 
22
22
  # Gem dependencies
23
- s.add_runtime_dependency "logstash-core-plugin-api", "~> 1.0"
23
+ s.add_runtime_dependency "logstash-core-plugin-api", "~> 2.0"
24
24
 
25
25
  s.add_runtime_dependency 'logstash-codec-line'
26
26
  s.add_runtime_dependency 'edn'
@@ -14,10 +14,10 @@ describe LogStash::Codecs::EDNLines do
14
14
  data = {"foo" => "bar", "baz" => {"bah" => ["a", "b", "c"]}, "@timestamp" => "2014-05-30T02:52:17.929Z"}
15
15
  subject.decode(data.to_edn + "\n") do |event|
16
16
  insist { event }.is_a?(LogStash::Event)
17
- insist { event["foo"] } == data["foo"]
18
- insist { event["baz"] } == data["baz"]
19
- insist { event["bah"] } == data["bah"]
20
- insist { event["@timestamp"].to_iso8601 } == data["@timestamp"]
17
+ insist { event.get("foo") } == data["foo"]
18
+ insist { event.get("baz") } == data["baz"]
19
+ insist { event.get("bah") } == data["bah"]
20
+ insist { event.get("@timestamp").to_iso8601 } == data["@timestamp"]
21
21
  end
22
22
  end
23
23
 
@@ -28,10 +28,10 @@ describe LogStash::Codecs::EDNLines do
28
28
  end
29
29
  subject.decode("\n") do |event|
30
30
  insist { event.is_a? LogStash::Event }
31
- insist { event["foo"] } == data["foo"]
32
- insist { event["baz"] } == data["baz"]
33
- insist { event["bah"] } == data["bah"]
34
- insist { event["@timestamp"].to_iso8601 } == data["@timestamp"]
31
+ insist { event.get("foo") } == data["foo"]
32
+ insist { event.get("baz") } == data["baz"]
33
+ insist { event.get("bah") } == data["bah"]
34
+ insist { event.get("@timestamp").to_iso8601 } == data["@timestamp"]
35
35
  end
36
36
  end
37
37
  end
@@ -46,7 +46,7 @@ describe LogStash::Codecs::EDNLines do
46
46
  insist { EDN.read(d)["baz"] } == data["baz"]
47
47
  insist { EDN.read(d)["bah"] } == data["bah"]
48
48
  insist { EDN.read(d)["@timestamp"] } == "2014-05-30T02:52:17.929Z"
49
- insist { EDN.read(d)["@timestamp"] } == event["@timestamp"].to_iso8601
49
+ insist { EDN.read(d)["@timestamp"] } == event.get("@timestamp").to_iso8601
50
50
  got_event = true
51
51
  end
52
52
  subject.encode(event)
@@ -62,7 +62,7 @@ describe LogStash::Codecs::EDNLines do
62
62
  insist { EDN.read(d)["baz"] } == data["baz"]
63
63
  insist { EDN.read(d)["bah"] } == data["bah"]
64
64
  insist { EDN.read(d)["@timestamp"] } == "2014-05-30T02:52:17.929Z"
65
- insist { EDN.read(d)["@timestamp"] } == event["@timestamp"].to_iso8601
65
+ insist { EDN.read(d)["@timestamp"] } == event.get("@timestamp").to_iso8601
66
66
  got_event = true
67
67
  end
68
68
  subject.encode(event)
metadata CHANGED
@@ -1,72 +1,74 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-codec-edn_lines
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-24 00:00:00.000000000 Z
11
+ date: 2016-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: logstash-core-plugin-api
14
15
  requirement: !ruby/object:Gem::Requirement
15
16
  requirements:
16
17
  - - "~>"
17
18
  - !ruby/object:Gem::Version
18
- version: '1.0'
19
- name: logstash-core-plugin-api
20
- prerelease: false
19
+ version: '2.0'
21
20
  type: :runtime
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
+ name: logstash-codec-line
28
29
  requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - ">="
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
- name: logstash-codec-line
34
- prerelease: false
35
34
  type: :runtime
35
+ prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
+ name: edn
42
43
  requirement: !ruby/object:Gem::Requirement
43
44
  requirements:
44
45
  - - ">="
45
46
  - !ruby/object:Gem::Version
46
47
  version: '0'
47
- name: edn
48
- prerelease: false
49
48
  type: :runtime
49
+ prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
+ name: logstash-devutils
56
57
  requirement: !ruby/object:Gem::Requirement
57
58
  requirements:
58
59
  - - ">="
59
60
  - !ruby/object:Gem::Version
60
61
  version: '0'
61
- name: logstash-devutils
62
- prerelease: false
63
62
  type: :development
63
+ prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- 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
69
+ description: This gem is a Logstash plugin required to be installed on top of the
70
+ Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
71
+ gem is not a stand-alone program
70
72
  email: info@elastic.co
71
73
  executables: []
72
74
  extensions: []
@@ -87,7 +89,7 @@ licenses:
87
89
  metadata:
88
90
  logstash_plugin: 'true'
89
91
  logstash_group: codec
90
- post_install_message:
92
+ post_install_message:
91
93
  rdoc_options: []
92
94
  require_paths:
93
95
  - lib
@@ -102,9 +104,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
104
  - !ruby/object:Gem::Version
103
105
  version: '0'
104
106
  requirements: []
105
- rubyforge_project:
106
- rubygems_version: 2.4.8
107
- signing_key:
107
+ rubyforge_project:
108
+ rubygems_version: 2.5.1
109
+ signing_key:
108
110
  specification_version: 4
109
111
  summary: Codec to process EDN data
110
112
  test_files: