bipbip 0.5.21 → 0.5.22

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: e24d4771c2318a1b95c74c1b79401419225b1c16
4
- data.tar.gz: 963182f66a4e3c52906f667717a737504894602c
3
+ metadata.gz: a8181e4038741fa6d1801abbb890ac5f50736760
4
+ data.tar.gz: 62c1485ae9a4b4eb11597deeae94409ad7040b44
5
5
  SHA512:
6
- metadata.gz: 693c4b202b53a24bf507fb1e6245d92995d86311d72415ed1f689168846f245ed6a26732a37d9a2648095d6d34e3c346ac91ef10f8b2545161072d45a4a83e9f
7
- data.tar.gz: 84f2e8d751d94554bb6a561dd88604f7255d5df3b4cd2656fa72eaba6a402dbda13b8ee798c1eed51f746bdd312b22c79b4923a93bda6cd48d7ca153ac8bb4b9
6
+ metadata.gz: ea4af038379c1556123ef4a15145c69ec8c0cd6991cf7236c7d21edeeb85f992d638c26613cdadd86281760d3be104391d2edb393e1aca9d8453a3c319252103
7
+ data.tar.gz: 70941ecf480e0dd1cbb83202089b114ce3d9d00b3b93c52f06681bc1f35d2dbff12f98cfb6d7811b128c18eb626291138950bb69122b7f5e18da77be3d3f0fca
@@ -11,7 +11,14 @@ module Bipbip
11
11
  end
12
12
 
13
13
  def monitor
14
- unless IO.select([notifier.to_io], [], [], 0).nil?
14
+ begin
15
+ io = IO.select([notifier.to_io], [], [], 0)
16
+ rescue Errno::EBADF => e
17
+ log(Logger::WARN, "Selecting from inotify IO gives EBADF, resetting notifier")
18
+ reset_notifier
19
+ end
20
+
21
+ unless io.nil?
15
22
  n = notifier
16
23
  begin
17
24
  n.process
@@ -65,10 +72,6 @@ module Bipbip
65
72
  @notifier.stop
66
73
  @notifier.close
67
74
  @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
72
75
  end
73
76
  end
74
77
 
@@ -1,3 +1,3 @@
1
1
  module Bipbip
2
- VERSION = '0.5.21'
2
+ VERSION = '0.5.22'
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.21
4
+ version: 0.5.22
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-03-03 00:00:00.000000000 Z
13
+ date: 2015-03-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: copperegg