logstash-codec-plain 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: c7a8aafa6338ff6aa2192fe8ac92bcdaf8a373e7
4
- data.tar.gz: 0d4bbbe494b0faf312d8d5d4c1836589e8a32e77
3
+ metadata.gz: 5b190482d0ada662bf68bf8802de95f41772f2bb
4
+ data.tar.gz: 1a2e29430a20698384995ddf5c58d7bc2a0d071c
5
5
  SHA512:
6
- metadata.gz: 304453573badeef3a39e6c669009be636aa0c1d85b92a9ff5674b096e2f1856034efe468a97e4c8f28bee8c8dd33f1a24a7f8e8d3a72d498de35d79002ff48f9
7
- data.tar.gz: f619cd3466e8d720feea86f76531bc2025216ca317d347f51c8aa22f9ecbf2d657ed12cf2c78098b50bb8a2a481bc3f1254b407e23c36871be3c50145eab542d
6
+ metadata.gz: 97fc8cfcebea818bf753e2e7c14e50e2c2cd33ab8b21c15ea9a7fd20b22a651d0515c3410f351762285d8e7500b8f514fcecde9f49a442afe0b624f9e2f90e74
7
+ data.tar.gz: 8e74e4f7eae99ae3a216ba13ea269459096c9297fb6fd86e2db9a2a1ee99465f0384ddcb09571d01e33ba6a36b82f92a42da66b96d19f3549084d9b9be0edaad
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-plain-unit/badge/icon)](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Codecs/job/logstash-plugin-codec-plain-unit/)
3
+ [![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-codec-plain.svg)](https://travis-ci.org/logstash-plugins/logstash-codec-plain)
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
 
@@ -1,10 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-codec-plain'
4
- s.version = '2.0.4'
4
+ s.version = '3.0.0'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "The plain codec is for plain text with no delimiting between events."
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_development_dependency 'logstash-devutils'
26
26
  end
@@ -19,8 +19,8 @@ describe LogStash::Codecs::Plain do
19
19
  insist { data.encoding.name } == "UTF-8"
20
20
  insist { data.valid_encoding? } == true
21
21
  subject.decode(data) do |event|
22
- insist { event["message"] } == data
23
- insist { event["message"].encoding.name } == "UTF-8"
22
+ insist { event.get("message") } == data
23
+ insist { event.get("message").encoding.name } == "UTF-8"
24
24
  end
25
25
  end
26
26
  end
@@ -30,8 +30,8 @@ describe LogStash::Codecs::Plain do
30
30
  insist { data.encoding.name } == "UTF-8"
31
31
  insist { data.valid_encoding? } == false
32
32
  subject.decode(data) do |event|
33
- insist { event["message"] } == data.inspect[1..-2]
34
- insist { event["message"].encoding.name } == "UTF-8"
33
+ insist { event.get("message") } == data.inspect[1..-2]
34
+ insist { event.get("message").encoding.name } == "UTF-8"
35
35
  end
36
36
  end
37
37
  end
@@ -53,8 +53,8 @@ describe LogStash::Codecs::Plain do
53
53
  insist { a.valid_encoding? } == true
54
54
 
55
55
  subject.decode(a) do |event|
56
- insist { event["message"] } == b
57
- insist { event["message"].encoding.name } == "UTF-8"
56
+ insist { event.get("message") } == b
57
+ insist { event.get("message").encoding.name } == "UTF-8"
58
58
  end
59
59
  end
60
60
  end
@@ -75,8 +75,8 @@ describe LogStash::Codecs::Plain do
75
75
  insist { a.valid_encoding? } == true
76
76
 
77
77
  subject.decode(a) do |event|
78
- insist { event["message"] } == b
79
- insist { event["message"].encoding.name } == "UTF-8"
78
+ insist { event.get("message") } == b
79
+ insist { event.get("message").encoding.name } == "UTF-8"
80
80
  end
81
81
  end
82
82
  end
@@ -86,7 +86,7 @@ describe LogStash::Codecs::Plain do
86
86
  context "#encode" do
87
87
  it "should return a plain text encoding" do
88
88
  event = LogStash::Event.new
89
- event["message"] = "Hello World."
89
+ event.set("message", "Hello World.")
90
90
  subject.on_event do |event, data|
91
91
  insist { data } == event.to_s
92
92
  end
metadata CHANGED
@@ -1,44 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-codec-plain
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-devutils
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-devutils
34
- prerelease: false
35
34
  type: :development
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
- 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
+ description: This gem is a Logstash plugin required to be installed on top of the
42
+ Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
43
+ gem is not a stand-alone program
42
44
  email: info@elastic.co
43
45
  executables: []
44
46
  extensions: []
@@ -59,7 +61,7 @@ licenses:
59
61
  metadata:
60
62
  logstash_plugin: 'true'
61
63
  logstash_group: codec
62
- post_install_message:
64
+ post_install_message:
63
65
  rdoc_options: []
64
66
  require_paths:
65
67
  - lib
@@ -74,9 +76,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
76
  - !ruby/object:Gem::Version
75
77
  version: '0'
76
78
  requirements: []
77
- rubyforge_project:
78
- rubygems_version: 2.4.8
79
- signing_key:
79
+ rubyforge_project:
80
+ rubygems_version: 2.5.1
81
+ signing_key:
80
82
  specification_version: 4
81
83
  summary: The plain codec is for plain text with no delimiting between events.
82
84
  test_files: