resqued 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/resqued/sleepy.rb +5 -3
- data/lib/resqued/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: c970fdaa5c3ed98d5a08d4f8f9ae998a70fbb700
|
4
|
+
data.tar.gz: 40b205f1d8c8da17189ccd14b9848656db3a6f10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f3f703415a15b448da9d0372763ff789c532eae258018df43b471bab0a1eceec4482cd231feef99ec46929e50d29374fa5efb1c212bb56dab79ac0988e6e539
|
7
|
+
data.tar.gz: 5e2dfa51990c8f441187ed713fbd1cc534d82d00d4e2185d44ef22b06b063e6d776eb2ecda3c68bac04345311b3942ae8fd83acba669e2b2b5412013c0212653
|
data/lib/resqued/sleepy.rb
CHANGED
@@ -5,9 +5,11 @@ module Resqued
|
|
5
5
|
module Sleepy
|
6
6
|
# Public: Like sleep, but the sleep is interrupted if input is detected on one of the provided IO objects, or if `awake` is called (e.g. from a signal handler).
|
7
7
|
def yawn(duration, *inputs)
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
if duration > 0
|
9
|
+
inputs = [self_pipe[0]] + [inputs].flatten.compact
|
10
|
+
IO.select(inputs, nil, nil, duration) or return
|
11
|
+
self_pipe[0].kgio_tryread(11)
|
12
|
+
end
|
11
13
|
end
|
12
14
|
|
13
15
|
# Public: Break out of `yawn`.
|
data/lib/resqued/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resqued
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Burke
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kgio
|