logstash-output-file 2.2.1 → 2.2.2

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: ac759dbc6b4d7a8f6d20148a827b42e715c8c18c
4
- data.tar.gz: f56368f0a158b234ab87389aca19f77b8313d986
3
+ metadata.gz: a764f6a8510cb8b185ca81ec48c9b893473e0313
4
+ data.tar.gz: a525b4b6f8e3c998a44e4f0ed3d3a5857205a2ba
5
5
  SHA512:
6
- metadata.gz: 1e1bd228df425931225906a795a43f9f931fffde10c35551067beea7fb926777350ed60687e7c78bad2263f20eea111dc9042efe17ac6a4733d82c1cdce069f5
7
- data.tar.gz: 37aadaa7778fea4461561fe2235fc247d042f99aae46f81cb82ba08df4ec9257ae9c0623bacfe52df5102d1c161c8890cb72ab4d5491d0d76b015c259ad084c3
6
+ metadata.gz: 1a06888dc105e4f66b6c1e844b547d43c52f65d1a3e478de4f259b00d820b3ad3d6be8530fe05312d43fa36a1d41a733149b16922fad097498f22fa3ddced6fb
7
+ data.tar.gz: 897c0e4db7c8225958e82750b4fd6b9989ec7738ceca6da9caa63c084ef341fe5217a293ed505ea949f5f0b95af7661fff6e41a52fe2daaba70839852ce51229
@@ -1,3 +1,6 @@
1
+ ## 2.2.1
2
+ - Fixed specs to not depend on pipeline ordering
3
+
1
4
  ## 2.2.1
2
5
  - Fixed Time specs
3
6
 
@@ -14,4 +17,3 @@
14
17
  - Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
15
18
  instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
16
19
  - Dependency on logstash-core update to 2.0
17
-
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-file'
4
- s.version = '2.2.1'
4
+ s.version = '2.2.2'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This output will write events to files on disk"
7
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"
@@ -32,8 +32,9 @@ describe LogStash::Outputs::File do
32
32
  line_num = 0
33
33
 
34
34
  # Now check all events for order and correctness.
35
- tmp_file.each_line do |line|
36
- event = LogStash::Event.new(LogStash::Json.load(line))
35
+ events = tmp_file.map {|line| LogStash::Event.new(LogStash::Json.load(line))}
36
+ sorted = events.sort_by {|e| e['sequence']}
37
+ sorted.each do |event|
37
38
  insist {event["message"]} == "hello world"
38
39
  insist {event["sequence"]} == line_num
39
40
  line_num += 1
@@ -66,8 +67,9 @@ describe LogStash::Outputs::File do
66
67
  agent do
67
68
  line_num = 0
68
69
  # Now check all events for order and correctness.
69
- Zlib::GzipReader.open(tmp_file.path).each_line do |line|
70
- event = LogStash::Event.new(LogStash::Json.load(line))
70
+ events = Zlib::GzipReader.open(tmp_file.path).map {|line| LogStash::Event.new(LogStash::Json.load(line)) }
71
+ sorted = events.sort_by {|e| e["sequence"]}
72
+ sorted.each do |event|
71
73
  insist {event["message"]} == "hello world"
72
74
  insist {event["sequence"]} == line_num
73
75
  line_num += 1
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-file
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-16 00:00:00.000000000 Z
11
+ date: 2015-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-core