alblogs 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/alblogs.gemspec +1 -1
- data/lib/alblogs/entry.rb +6 -0
- data/lib/alblogs/iterator.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76c233cf10e2558be79ef68d0f92670181be1b7bd1b24eb7c5376a21264856bc
|
4
|
+
data.tar.gz: f4bf7a47915a7a8763e9826f694e19a3c270440b047a93e73327a19c47a59684
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0de9e99529e3f13eddccf1f450bc11ee96a8e1b9c0827833343bd376f52e47d6de13aab8979bbc05273ddad67bfb3303235d3973c7ccdf50bb8388a2bfc76b34
|
7
|
+
data.tar.gz: 8cf0c70772dd797c748b606243585704af31d15964be8eae00856bb470d4e5f4ff844b4b4566ffa9ce68f83b495cef4e89230a0a49343949b81e1d93017d01f8
|
data/alblogs.gemspec
CHANGED
data/lib/alblogs/entry.rb
CHANGED
data/lib/alblogs/iterator.rb
CHANGED
@@ -31,10 +31,10 @@ module Alblogs
|
|
31
31
|
|
32
32
|
stats[:total_file_processing_time] += measure do
|
33
33
|
File.open(tmp_file, 'rb') do |f|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
34
|
+
::Alblogs::Entry.each_entry(f) do |entry|
|
35
|
+
break if @stop
|
36
|
+
|
37
|
+
stats[:entries] += 1
|
38
38
|
stats[:min_log_time] = ! stats[:min_log_time] || stats[:min_log_time] > entry.timestamp ? entry.timestamp : stats[:min_log_time]
|
39
39
|
stats[:max_log_time] = ! stats[:max_log_time] || stats[:max_log_time] < entry.timestamp ? entry.timestamp : stats[:max_log_time]
|
40
40
|
next if request_matcher && !request_matcher.match?(entry)
|