logstash-core 2.0.0.beta2-java → 2.0.0.beta3-java

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of logstash-core might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6026efcfb1f8b27ca3aead70d7055af4b89acc91
4
- data.tar.gz: 04df43c7a2703f14b7511906d0ab74c60b4e6954
3
+ metadata.gz: 53886b8ae0f92c2abdbd3356f943a5ceeb00f348
4
+ data.tar.gz: aba6e270fbd72a4c5e796c42ace531050716bc65
5
5
  SHA512:
6
- metadata.gz: 1d3cbf47dd791f55bb26a8c39ded8f13f7c44c44af5b6975e0f9133153d0896d5eb2807ba93564634a17ae25d6cd09ef961c687e1375cef8647ce6f458525602
7
- data.tar.gz: 4f5f02dc8a9f35ffa97f4a6789712d0e542e70e73a637055da1a143268f5e5882476549ee87918018c3ea8b689b1bac008f83a47bb1d28115b89daff2abd178e
6
+ metadata.gz: 9b3fe52111ea47334f2de75b80e5fdb944b3bef48fecd5adfa922769ce5a2f78b5c58b285d598e79bb26dfde0166abd16194e2bf724c35d3a9b24a4f304e5bbb
7
+ data.tar.gz: 4757bf593a9175e12aa8b13919731347dbc8a4ef0cf80b2a2e07af62e1a1451a39b3c42c65a4d13d726b5298e6aa098d2b745cb539bd620e9065604e46aa7f79
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  # The version of logstash.
3
- LOGSTASH_VERSION = "2.0.0-beta2"
3
+ LOGSTASH_VERSION = "2.0.0-beta3"
4
4
 
5
5
  # Note to authors: this should not include dashes because 'gem' barfs if
6
6
  # you include a dash in the version string.
@@ -39,7 +39,7 @@ Gem::Specification.new do |gem|
39
39
 
40
40
  if RUBY_PLATFORM == 'java'
41
41
  gem.platform = RUBY_PLATFORM
42
- gem.add_runtime_dependency "jrjackson", "~> 0.3.5" #(Apache 2.0 license)
42
+ gem.add_runtime_dependency "jrjackson", "~> 0.3.6" #(Apache 2.0 license)
43
43
  else
44
44
  gem.add_runtime_dependency "oj" #(MIT-style license)
45
45
  end
@@ -0,0 +1,31 @@
1
+ # encoding: utf-8
2
+ require "spec_helper"
3
+ require "logstash/util/buftok"
4
+
5
+ describe FileWatch::BufferedTokenizer do
6
+
7
+ subject { FileWatch::BufferedTokenizer.new }
8
+
9
+ it "should tokenize a single token" do
10
+ expect(subject.extract("foo\n")).to eq(["foo"])
11
+ end
12
+
13
+ it "should merge multiple token" do
14
+ expect(subject.extract("foo")).to eq([])
15
+ expect(subject.extract("bar\n")).to eq(["foobar"])
16
+ end
17
+
18
+ it "should tokenize multiple token" do
19
+ expect(subject.extract("foo\nbar\n")).to eq(["foo", "bar"])
20
+ end
21
+
22
+ it "should ignore empty payload" do
23
+ expect(subject.extract("")).to eq([])
24
+ expect(subject.extract("foo\nbar")).to eq(["foo"])
25
+ end
26
+
27
+ it "should tokenize empty payload with newline" do
28
+ expect(subject.extract("\n")).to eq([""])
29
+ expect(subject.extract("\n\n\n")).to eq(["", "", ""])
30
+ end
31
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta2
4
+ version: 2.0.0.beta3
5
5
  platform: java
6
6
  authors:
7
7
  - Jordan Sissel
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-10-14 00:00:00.000000000 Z
13
+ date: 2015-10-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: cabin
@@ -186,12 +186,12 @@ dependencies:
186
186
  requirements:
187
187
  - - ~>
188
188
  - !ruby/object:Gem::Version
189
- version: 0.3.5
189
+ version: 0.3.6
190
190
  requirement: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - ~>
193
193
  - !ruby/object:Gem::Version
194
- version: 0.3.5
194
+ version: 0.3.6
195
195
  prerelease: false
196
196
  type: :runtime
197
197
  description: The core components of logstash, the scalable log and event management tool
@@ -281,6 +281,7 @@ files:
281
281
  - spec/pluginmanager/util_spec.rb
282
282
  - spec/spec_helper.rb
283
283
  - spec/util/accessors_spec.rb
284
+ - spec/util/buftok_spec.rb
284
285
  - spec/util/charset_spec.rb
285
286
  - spec/util/defaults_printer_spec.rb
286
287
  - spec/util/gemfile_spec.rb
@@ -338,6 +339,7 @@ test_files:
338
339
  - spec/pluginmanager/util_spec.rb
339
340
  - spec/spec_helper.rb
340
341
  - spec/util/accessors_spec.rb
342
+ - spec/util/buftok_spec.rb
341
343
  - spec/util/charset_spec.rb
342
344
  - spec/util/defaults_printer_spec.rb
343
345
  - spec/util/gemfile_spec.rb