logfile_interval 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7f2e7cabde319d9e316d67b25f41786d30a3a65
4
- data.tar.gz: 31af6fa687dbd9368e13faa64154ce778d27f3a2
3
+ metadata.gz: fb3032305ac05c92d90932759dad187ae7d73224
4
+ data.tar.gz: 4c26ef238239e8df6666ed8c506d67f1c25f0496
5
5
  SHA512:
6
- metadata.gz: bafa4a0527c1c2b33479ce61276830c39ca588648c95a22e39660e3c26ec410dcdeaf9c47453902619347e6f7b15dcdb40d0dfb8ef8a6fb8e2584882a3b77ffc
7
- data.tar.gz: 0dcafb906ba7c9ad3e2e88733858e8e54cfa9a54ae8e9f94a3e3acc6d4a14b87c4193541d1af98620bdac73ebd2ad3721815b56fa4ecf282e6bcb93d46be1855
6
+ metadata.gz: 658b93a7d5fda1a1608b5cb794b4be565bbc2fa3ff960488dc2751ee8e7c64c097fc6bdadd16778de7000078ec0545efd1433bcf67d0421a45912beb8ed03d39
7
+ data.tar.gz: 10bc1d338042fefe6aa3a61e5d19edc6a34c0f0d020227569da01838571854e8fc05b15b4777a67c890c7fd1023b80042afbdf7893d569f6d3a0e77882b776bd
@@ -12,7 +12,9 @@ module LogfileInterval
12
12
  def add(record)
13
13
  @parser_columns.each do |name, options|
14
14
  next unless @aggregators[name]
15
- next unless options[:noskip] || !record.skip_with_exceptions?
15
+ if record.skip_with_exceptions? && (!options.key?(:noskip) || options[:noskip] == false)
16
+ next
17
+ end
16
18
 
17
19
  group_by_value = record[options[:group_by]] if options[:group_by]
18
20
  @aggregators[name].add(record[name], group_by_value)
@@ -70,6 +70,14 @@ module LogfileInterval
70
70
  end
71
71
  end
72
72
 
73
+ skip_columns_with_exceptions.each do |options|
74
+ val = match_data[options[:pos]]
75
+ if val =~ options[:regex]
76
+ data[:skip_with_exceptions] = true
77
+ break
78
+ end
79
+ end
80
+
73
81
  data
74
82
  end
75
83
 
@@ -1,3 +1,3 @@
1
1
  module LogfileInterval
2
- VERSION = "2.2.1"
2
+ VERSION = "2.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logfile_interval
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
  - Philippe Le Rohellec