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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a49c6efaf3841a405282e8cfc2d1463f6b76dc46
4
- data.tar.gz: a14a4b7f11d9d7b13e776967c3d12a48fbf02ed9
3
+ metadata.gz: cf6567d4e489e286e2b78387010ffb8da8fd5bee
4
+ data.tar.gz: 357caf768a122933366da13dce382c2b310161ac
5
5
  SHA512:
6
- metadata.gz: 8589102994eb0363cf0b0b378a99cc76175172379103bfafd1f2f14096f5c0c6477be7ed754e9b857a92be2242748043216eb8f93bbda13ba8c783e194fdf19f
7
- data.tar.gz: 5ab982e7fc74b073265fc37957924e8589a2d1b2f845baf25ee658eb5238ce3cc171106dc927e1a2d0eb2375d382a7871d369ce382647dc7ec903aed31e216e2
6
+ metadata.gz: aff44de16111c3f1852ca2222c4b856d097bdb371957f93371e46a1f65d17ddcae8c44c8623294114c787574d1611316ccc655bb1412e2444f51a4e7e4c53eda
7
+ data.tar.gz: cd4fb3b23ac28034f0cc6f45930d600ff84b95fc0ce01f421a38ced0ebb3e54ee4c3d55c752d446c1e6da54dcb049dea11c5d9a2942a700253cb464d11d1fdae
@@ -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,3 +1,3 @@
1
- #ruby=jruby-9.0.5.0
1
+ #ruby=jruby-1.7.25
2
2
  source 'https://rubygems.org'
3
3
  gemspec
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "logstash-codec-bytes"
3
- s.version = "1.0.0"
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", ">= 2.0.0", "< 3.0.0"
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
@@ -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["message"].length).to eq(subject.length)
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.length / subject.length
21
+ expected_count = data.bytes.count / subject.length
22
22
  count = 0
23
23
 
24
24
  subject.decode(data) { count += 1 }
@@ -1,10 +1,5 @@
1
1
  require 'simplecov'
2
- require 'coveralls'
3
2
 
4
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
5
- SimpleCov::Formatter::HTMLFormatter,
6
- Coveralls::SimpleCov::Formatter
7
- ]
8
3
  SimpleCov.minimum_coverage 100
9
4
  SimpleCov.start
10
5
 
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: 1.0.0
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-07-18 00:00:00.000000000 Z
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: 3.0.0
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: 3.0.0
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: