logstash-codec-frame 2.0.0 → 5.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: f2350bf465065c80e70bac20a476ed4c55c20ce0
4
- data.tar.gz: 8f1f8ba3930610d9ac052a789b0d2386419c2195
3
+ metadata.gz: 9e2766e74ce32f2317bc249ac6936329197f8a88
4
+ data.tar.gz: 900f929ed2ae533ad6d2d6664eea11134e4e813b
5
5
  SHA512:
6
- metadata.gz: aca70558262971363309f04c3f01f59d485593b4c2e49742c01f8f1dfe08148082cd102d3c3431f42361ca21966359ec174d8c7242e12df2e33c96a07629d79f
7
- data.tar.gz: df112c9a0baa7a563b384005c7e00298380c075eaef584bbda0530308ce1eb315d1dc592f97908bc5f2f3340847e69150efe01c8a4b5fbe31da57619cf20fdb9
6
+ metadata.gz: 3a54319177f5ea52383e7192198af8bc22d398ef69438c4266d9101e60dda509b1b82b6c3661597aa410ce88dd06443272bc79948f7199826c3c7198defd362a
7
+ data.tar.gz: 803429dce37de281d9a8f8496de15fc1f4fef7fb9781a5e49e8c6862fcecdf6778db6c0fb81fdc44c1b4cdb962c93114eb37b65846765be02ac423d3cbada35d
@@ -1,5 +1,2 @@
1
- ## 2.0.0
2
- - Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
3
- instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
4
- - Dependency on logstash-core update to 2.0
5
-
1
+ ## 0.1.0
2
+ - Plugin created with the logstash plugin generator
@@ -0,0 +1,10 @@
1
+ The following is a list of people who have contributed ideas, code, bug
2
+ reports, or in general have helped logstash along its way.
3
+
4
+ Contributors:
5
+ * your_username - your_username@example.com
6
+
7
+ Note: If you've sent us patches, bug reports, or otherwise contributed to
8
+ Logstash, and you aren't on the list above and want to be, please let us know
9
+ and we'll make sure you're here. Contributions from folks like you are what make
10
+ open source awesome.
@@ -1,2 +1,2 @@
1
- # logstash-codec-example
1
+ # logstash-codec-frame
2
2
  Example codec plugin. This should help bootstrap your effort to write your own codec plugin!
data/LICENSE CHANGED
@@ -1,5 +1,3 @@
1
- Copyright (c) 2012–2015 Elasticsearch <http://www.elastic.co>
2
-
3
1
  Licensed under the Apache License, Version 2.0 (the "License");
4
2
  you may not use this file except in compliance with the License.
5
3
  You may obtain a copy of the License at
data/README.md CHANGED
@@ -1,8 +1,5 @@
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-example-unit/badge/icon)](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Codecs/job/logstash-plugin-codec-example-unit/)
5
-
6
3
  This is a plugin for [Logstash](https://github.com/elastic/logstash).
7
4
 
8
5
  It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
@@ -25,7 +22,7 @@ Need help? Try #logstash on freenode IRC or the https://discuss.elastic.co/c/log
25
22
  #### Code
26
23
  - To get started, you'll need JRuby with the Bundler gem installed.
27
24
 
28
- - Create a new plugin or clone and existing from the GitHub [logstash-plugins](https://github.com/logstash-plugins) organization.
25
+ - Create a new plugin or clone and existing from the GitHub [logstash-plugins](https://github.com/logstash-plugins) organization. We also provide [example plugins](https://github.com/logstash-plugins?query=example).
29
26
 
30
27
  - Install dependencies
31
28
  ```sh
@@ -34,26 +31,15 @@ bundle install
34
31
 
35
32
  #### Test
36
33
 
37
- ```sh
38
- bundle exec rspec
39
- ```
34
+ - Update your dependencies
40
35
 
41
- The Logstash code required to run the tests/specs is specified in the `Gemfile` by the line similar to:
42
- ```ruby
43
- gem "logstash", :github => "elasticsearch/logstash", :branch => "1.5"
44
- ```
45
- To test against another version or a local Logstash, edit the `Gemfile` to specify an alternative location, for example:
46
- ```ruby
47
- gem "logstash", :github => "elasticsearch/logstash", :ref => "master"
48
- ```
49
- ```ruby
50
- gem "logstash", :path => "/your/local/logstash"
36
+ ```sh
37
+ bundle install
51
38
  ```
52
39
 
53
- Then update your dependencies and run your tests:
40
+ - Run tests
54
41
 
55
42
  ```sh
56
- bundle install
57
43
  bundle exec rspec
58
44
  ```
59
45
 
@@ -61,29 +47,31 @@ bundle exec rspec
61
47
 
62
48
  #### 2.1 Run in a local Logstash clone
63
49
 
64
- - Edit Logstash `tools/Gemfile` and add the local plugin path, for example:
50
+ - Edit Logstash `Gemfile` and add the local plugin path, for example:
65
51
  ```ruby
66
- gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
52
+ gem "logstash-codec-awesome", :path => "/your/local/logstash-codec-awesome"
67
53
  ```
68
- - Update Logstash dependencies
54
+ - Install plugin
69
55
  ```sh
70
- rake vendor:gems
56
+ bin/logstash-plugin install --no-verify
71
57
  ```
72
58
  - Run Logstash with your plugin
73
59
  ```sh
74
- bin/logstash -e 'filter {awesome {}}'
60
+ bin/logstash -e 'codec {awesome {}}'
75
61
  ```
76
62
  At this point any modifications to the plugin code will be applied to this local Logstash setup. After modifying the plugin, simply rerun Logstash.
77
63
 
78
64
  #### 2.2 Run in an installed Logstash
79
65
 
66
+ You can use the same **2.1** method to run your plugin in an installed Logstash by editing its `Gemfile` and pointing the `:path` to your local plugin development directory or you can build the gem and install it using:
67
+
80
68
  - Build your plugin gem
81
69
  ```sh
82
- gem build logstash-filter-awesome.gemspec
70
+ gem build logstash-codec-awesome.gemspec
83
71
  ```
84
72
  - Install the plugin from the Logstash home
85
73
  ```sh
86
- bin/plugin install /your/local/plugin/logstash-filter-awesome.gem
74
+ bin/logstash-plugin install /your/local/plugin/logstash-codec-awesome.gem
87
75
  ```
88
76
  - Start Logstash and proceed to test the plugin
89
77
 
@@ -93,6 +81,6 @@ All contributions are welcome: ideas, patches, documentation, bug reports, compl
93
81
 
94
82
  Programming is not a required skill. Whatever you've seen about open source and maintainers or community members saying "send patches or die" - you will not see that here.
95
83
 
96
- It is more important to me that you are able to contribute.
84
+ It is more important to the community that you are able to contribute.
97
85
 
98
86
  For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
@@ -1,26 +1,24 @@
1
1
  Gem::Specification.new do |s|
2
-
3
- s.name = 'logstash-codec-frame'
4
- s.version = '2.0.0'
5
- s.licenses = ['Apache License (2.0)']
6
- s.summary = "Frame-oriented text 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"
8
- s.authors = ["Gunter Zeilinger"]
9
- s.email = 'gunterze@gmail.com'
10
- s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
11
- s.require_paths = ["lib"]
2
+ s.name = 'logstash-codec-frame'
3
+ s.version = '5.0.0'
4
+ s.licenses = ['Apache License (2.0)']
5
+ s.summary = 'Frame-oriented text data.'
6
+ 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.'
7
+ s.homepage = 'https://github.com/dcm4che/logstash-codec-frame'
8
+ s.authors = ['Gunter Zeilinger']
9
+ s.email = 'gunterze@gmail.com'
10
+ s.require_paths = ['lib']
12
11
 
13
12
  # Files
14
13
  s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
15
-
16
- # Tests
14
+ # Tests
17
15
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
18
16
 
19
17
  # Special flag to let us know this is actually a logstash plugin
20
18
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "codec" }
21
19
 
22
20
  # Gem dependencies
23
- s.add_runtime_dependency "logstash-core", ">= 2.0.0.beta2", "< 3.0.0"
24
-
21
+ s.add_runtime_dependency 'logstash-core-plugin-api', "~> 2.0"
22
+ s.add_runtime_dependency 'logstash-codec-line'
25
23
  s.add_development_dependency 'logstash-devutils'
26
24
  end
@@ -1,6 +1,5 @@
1
1
  # encoding: utf-8
2
-
3
- require "logstash/devutils/rspec/spec_helper"
2
+ require_relative '../spec_helper'
4
3
  require "logstash/codecs/frame"
5
4
  require "logstash/event"
6
5
 
@@ -0,0 +1,2 @@
1
+ # encoding: utf-8
2
+ require "logstash/devutils/rspec/spec_helper"
metadata CHANGED
@@ -1,56 +1,65 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-codec-frame
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gunter Zeilinger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-01 00:00:00.000000000 Z
11
+ date: 2017-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: logstash-core
15
- version_requirements: !ruby/object:Gem::Requirement
14
+ requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - ">="
16
+ - - ~>
18
17
  - !ruby/object:Gem::Version
19
- version: 2.0.0.beta2
20
- - - "<"
18
+ version: '2.0'
19
+ name: logstash-core-plugin-api
20
+ prerelease: false
21
+ type: :runtime
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
21
25
  - !ruby/object:Gem::Version
22
- version: 3.0.0
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
23
28
  requirement: !ruby/object:Gem::Requirement
24
29
  requirements:
25
- - - ">="
30
+ - - '>='
26
31
  - !ruby/object:Gem::Version
27
- version: 2.0.0.beta2
28
- - - "<"
29
- - !ruby/object:Gem::Version
30
- version: 3.0.0
32
+ version: '0'
33
+ name: logstash-codec-line
31
34
  prerelease: false
32
35
  type: :runtime
33
- - !ruby/object:Gem::Dependency
34
- name: logstash-devutils
35
36
  version_requirements: !ruby/object:Gem::Requirement
36
37
  requirements:
37
- - - ">="
38
+ - - '>='
38
39
  - !ruby/object:Gem::Version
39
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
40
42
  requirement: !ruby/object:Gem::Requirement
41
43
  requirements:
42
- - - ">="
44
+ - - '>='
43
45
  - !ruby/object:Gem::Version
44
46
  version: '0'
47
+ name: logstash-devutils
45
48
  prerelease: false
46
49
  type: :development
47
- 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
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ 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.
48
56
  email: gunterze@gmail.com
49
57
  executables: []
50
58
  extensions: []
51
59
  extra_rdoc_files: []
52
60
  files:
53
61
  - CHANGELOG.md
62
+ - CONTRIBUTORS
54
63
  - DEVELOPER.md
55
64
  - Gemfile
56
65
  - LICENSE
@@ -59,7 +68,8 @@ files:
59
68
  - lib/logstash/codecs/frame.rb
60
69
  - logstash-codec-frame.gemspec
61
70
  - spec/codecs/frame_spec.rb
62
- homepage: http://www.elastic.co/guide/en/logstash/current/index.html
71
+ - spec/spec_helper.rb
72
+ homepage: https://github.com/dcm4che/logstash-codec-frame
63
73
  licenses:
64
74
  - Apache License (2.0)
65
75
  metadata:
@@ -71,19 +81,20 @@ require_paths:
71
81
  - lib
72
82
  required_ruby_version: !ruby/object:Gem::Requirement
73
83
  requirements:
74
- - - ">="
84
+ - - '>='
75
85
  - !ruby/object:Gem::Version
76
86
  version: '0'
77
87
  required_rubygems_version: !ruby/object:Gem::Requirement
78
88
  requirements:
79
- - - ">="
89
+ - - '>='
80
90
  - !ruby/object:Gem::Version
81
91
  version: '0'
82
92
  requirements: []
83
93
  rubyforge_project:
84
- rubygems_version: 2.4.8
94
+ rubygems_version: 2.4.5
85
95
  signing_key:
86
96
  specification_version: 4
87
97
  summary: Frame-oriented text data.
88
98
  test_files:
89
99
  - spec/codecs/frame_spec.rb
100
+ - spec/spec_helper.rb