fluent-plugin-buffer-event_limited 0.1.1 → 0.1.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: 1ac06f3326a37f00dbce173463746fac8a77a693
4
- data.tar.gz: 35b7b2257f3f435b25dd6cd743ad2634b98e5d86
3
+ metadata.gz: da62097bd8e3f3ef5005a70271cf63a51eb7ffd8
4
+ data.tar.gz: 1ebc0568345ce566851ace6206e49b303b0a4b98
5
5
  SHA512:
6
- metadata.gz: 7eb922abcbee4971fdaf89999d508883d4120c4298f080a7c832c2e0905c1286c154f04d64486adcd83dc23ec42e8cada739d689e0f842a94a1d33affe6109a4
7
- data.tar.gz: 73b1866f83553e3ca96cd7546c5b3c57d4dd4f5bf571eda5b82096f5b6d528f92825248852e0c5cc62cb6535152a6928d015ab40658e9c1edceac1c49df46ee3
6
+ metadata.gz: f5498467b6ee27c0589e40af603f2e6079d1bf063f6dee59864598b6ec46a09d19955b2667d8fc96a6b403e85ef46c318778e57db4aafb1e214e08897c9b3da6
7
+ data.tar.gz: 548e98a7238a41b3d752bb9985a0ca814689fd35d6c3e0846ab29e4afb87bfedd285420846217c6f2c0609cc58c7555cfc16bd6cbc7edfed42c5e45d73408b5d
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "fluent-plugin-buffer-event_limited"
5
- spec.version = "0.1.1"
5
+ spec.version = "0.1.2"
6
6
  spec.authors = ["TAGOMORI Satoshi", 'Gergo Sulymosi']
7
7
  spec.email = ["tagomoris@gmail.com", 'gergo.sulymosi@gmail.com']
8
8
  spec.description = %q{Fluentd memory buffer plugin with many types of chunk limits}
@@ -6,7 +6,7 @@ module Fluent
6
6
 
7
7
  def initialize(key, path, unique_id, mode = "a+", symlink_path = nil)
8
8
  super
9
- @record_counter = %x{wc -l < "#{path}"}.to_i
9
+ @record_counter = File.foreach(path).inject(0) { |c, _| c + 1 }
10
10
  end
11
11
 
12
12
  def <<(data)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-buffer-event_limited
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - TAGOMORI Satoshi