logstash-codec-bytes 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/Gemfile +1 -1
- data/logstash-codec-bytes.gemspec +2 -3
- data/spec/codecs/bytes_spec.rb +2 -2
- data/spec/spec_helper.rb +0 -5
- metadata +7 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf6567d4e489e286e2b78387010ffb8da8fd5bee
|
4
|
+
data.tar.gz: 357caf768a122933366da13dce382c2b310161ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aff44de16111c3f1852ca2222c4b856d097bdb371957f93371e46a1f65d17ddcae8c44c8623294114c787574d1611316ccc655bb1412e2444f51a4e7e4c53eda
|
7
|
+
data.tar.gz: cd4fb3b23ac28034f0cc6f45930d600ff84b95fc0ce01f421a38ced0ebb3e54ee4c3d55c752d446c1e6da54dcb049dea11c5d9a2942a700253cb464d11d1fdae
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
## 2.0.0 (2016-11-4)
|
2
|
+
|
3
|
+
##### Breaking Changes
|
4
|
+
|
5
|
+
* This plugin now uses the new [Logstash Event API](https://www.elastic.co/guide/en/logstash/current/event-api.html), so it is only compatible with Logstash 5.0
|
6
|
+
|
7
|
+
##### Chores
|
8
|
+
|
9
|
+
* **logstash-version:** Upgrade dependencies to be compatible with Logstash 5.0 (cfe7dee3)
|
10
|
+
|
11
|
+
##### New Features
|
12
|
+
|
13
|
+
* **badges:** add readme badges (79198e67)
|
14
|
+
* **travis:** switch to travis (5996de69)
|
15
|
+
* **open-source:** add license (1fa6e39d)
|
16
|
+
|
1
17
|
## 1.0.0 (2016-7-6)
|
2
18
|
|
3
19
|
##### New Features
|
data/Gemfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "logstash-codec-bytes"
|
3
|
-
s.version = "
|
3
|
+
s.version = "2.0.0"
|
4
4
|
s.licenses = ["MIT"]
|
5
5
|
s.authors = ["Lob"]
|
6
6
|
s.email = ["support@lob.com"]
|
@@ -15,9 +15,8 @@ Gem::Specification.new do |s|
|
|
15
15
|
|
16
16
|
s.metadata = { "logstash_plugin" => "true", "logstash_group" => "codec" }
|
17
17
|
|
18
|
-
s.add_runtime_dependency "logstash-core", "
|
18
|
+
s.add_runtime_dependency "logstash-core-plugin-api", "~> 2.0"
|
19
19
|
|
20
20
|
s.add_development_dependency "logstash-devutils"
|
21
|
-
s.add_development_dependency "coveralls", "~> 0.8.1"
|
22
21
|
s.add_development_dependency "simplecov"
|
23
22
|
end
|
data/spec/codecs/bytes_spec.rb
CHANGED
@@ -11,14 +11,14 @@ describe LogStash::Codecs::Bytes do
|
|
11
11
|
data = "TestTest"
|
12
12
|
|
13
13
|
subject.decode(data) do |event|
|
14
|
-
expect(event
|
14
|
+
expect(event.get("message").length).to eq(subject.length)
|
15
15
|
end
|
16
16
|
|
17
17
|
end
|
18
18
|
|
19
19
|
it "creates an event for each complete chunk" do
|
20
20
|
data = "TestTes"
|
21
|
-
expected_count = data.bytes.
|
21
|
+
expected_count = data.bytes.count / subject.length
|
22
22
|
count = 0
|
23
23
|
|
24
24
|
subject.decode(data) { count += 1 }
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,35 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-codec-bytes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
15
15
|
requirements:
|
16
|
-
- - "
|
17
|
-
- !ruby/object:Gem::Version
|
18
|
-
version: 2.0.0
|
19
|
-
- - "<"
|
16
|
+
- - "~>"
|
20
17
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
22
|
-
name: logstash-core
|
18
|
+
version: '2.0'
|
19
|
+
name: logstash-core-plugin-api
|
23
20
|
prerelease: false
|
24
21
|
type: :runtime
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 2.0.0
|
30
|
-
- - "<"
|
24
|
+
- - "~>"
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
26
|
+
version: '2.0'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
requirement: !ruby/object:Gem::Requirement
|
35
29
|
requirements:
|
@@ -44,20 +38,6 @@ dependencies:
|
|
44
38
|
- - ">="
|
45
39
|
- !ruby/object:Gem::Version
|
46
40
|
version: '0'
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
requirements:
|
50
|
-
- - "~>"
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: 0.8.1
|
53
|
-
name: coveralls
|
54
|
-
prerelease: false
|
55
|
-
type: :development
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
requirements:
|
58
|
-
- - "~>"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: 0.8.1
|
61
41
|
- !ruby/object:Gem::Dependency
|
62
42
|
requirement: !ruby/object:Gem::Requirement
|
63
43
|
requirements:
|