bipbip 0.5.20 → 0.5.21

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: c924435aa7d9f1e53fc6c08024cb98378cb2d497
4
- data.tar.gz: e498fa4525d787420bffac52c3a81e204f1944f8
3
+ metadata.gz: e24d4771c2318a1b95c74c1b79401419225b1c16
4
+ data.tar.gz: 963182f66a4e3c52906f667717a737504894602c
5
5
  SHA512:
6
- metadata.gz: 585c1738149bb8756417da6f19055c33502b42d32452a8c960df7affd4f03d17847b686cd375b5874a13e8d998b32b034c80888d4abfc54bbbcb7b6b6c1982eb
7
- data.tar.gz: 307b6f882634b386f885cd811092f656e5ce8e4a2b14ffeb21e9c3971c068b6d033357ae4bfd1e43ac4e81424ab66fcd90bdb88806588e64c6f97df9fe06d84c
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[config['matchers'].map do |matcher|
28
- name = matcher['name']
29
- regexp = Regexp.new(matcher['regexp'])
30
- value = lines.reject { |line| line.match(regexp).nil? }.length
31
- [name, value]
32
- end]
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
 
@@ -1,3 +1,3 @@
1
1
  module Bipbip
2
- VERSION = '0.5.20'
2
+ VERSION = '0.5.21'
3
3
  end
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.20
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-02-16 00:00:00.000000000 Z
13
+ date: 2015-03-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: copperegg