bipbip 0.5.20 → 0.5.21
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 +4 -4
- data/lib/bipbip/plugin/log_parser.rb +12 -6
- data/lib/bipbip/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e24d4771c2318a1b95c74c1b79401419225b1c16
|
4
|
+
data.tar.gz: 963182f66a4e3c52906f667717a737504894602c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 693c4b202b53a24bf507fb1e6245d92995d86311d72415ed1f689168846f245ed6a26732a37d9a2648095d6d34e3c346ac91ef10f8b2545161072d45a4a83e9f
|
7
|
+
data.tar.gz: 84f2e8d751d94554bb6a561dd88604f7255d5df3b4cd2656fa72eaba6a402dbda13b8ee798c1eed51f746bdd312b22c79b4923a93bda6cd48d7ca153ac8bb4b9
|
@@ -24,12 +24,14 @@ module Bipbip
|
|
24
24
|
lines = @lines.entries
|
25
25
|
@lines.clear
|
26
26
|
|
27
|
-
Hash[
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
27
|
+
Hash[
|
28
|
+
config['matchers'].map do |matcher|
|
29
|
+
name = matcher['name']
|
30
|
+
regexp = Regexp.new(matcher['regexp'])
|
31
|
+
value = lines.reject { |line| line.match(regexp).nil? }.length
|
32
|
+
[name, value]
|
33
|
+
end
|
34
|
+
]
|
33
35
|
end
|
34
36
|
|
35
37
|
private
|
@@ -63,6 +65,10 @@ module Bipbip
|
|
63
65
|
@notifier.stop
|
64
66
|
@notifier.close
|
65
67
|
@notifier = nil
|
68
|
+
|
69
|
+
# Run GC to make sure file descriptor is freed
|
70
|
+
# See https://github.com/nex3/rb-inotify/pull/43
|
71
|
+
GC.start
|
66
72
|
end
|
67
73
|
end
|
68
74
|
|
data/lib/bipbip/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bipbip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cargo Media
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-03-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: copperegg
|