itimer 7 → 8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/itimer.rb +1 -0
  3. data/test/itimer.rb +8 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03c7871d15f037b4eca089e3a450f11c9507f36a
4
- data.tar.gz: e59146e12d5468383501dd68333441ee80db96c3
3
+ metadata.gz: df5173d93aec0faedb0a3686f8c9509c7c1b9359
4
+ data.tar.gz: 7ebb17e6857fcbe7ed386f42b09a504da53d4398
5
5
  SHA512:
6
- metadata.gz: 1e0b85378dab98fde8370ed571ba7f42147837ab53937070bd4bf2693179db0a9aac9c2d09004383abb1ef735261e2c1edbfdf43793232316d85a3755d3f36a6
7
- data.tar.gz: d0073c174fab5aa25cf8879f31ffaa1a03dd4e1289ed75e6a209f7aa7b73bd560639fb02a5a9ede0049a31622d5697f8cd3c9f9d0d85ce24f4ae323d29588933
6
+ metadata.gz: ddb3129bf814dff272dfd842b00e0d4017970fca04bbca5d096d72c458d18e5a24e0d1452a3df40b4e5b6c062591de45df1a1866a1599f6ce3cc56dba07883d9
7
+ data.tar.gz: 1f6922686455ba1a9fed363d4d88be18cecaa883a8fe97a0f4fa1ba9dd482d52ccb888a4d27c2fce93cbce4ab50c23402ca9a00f1c6071ff9d671fc4fab6318f
@@ -21,6 +21,7 @@ module Itimer
21
21
  end
22
22
 
23
23
  timed_out = true
24
+ ret = nil
24
25
 
25
26
  catch catch_name do
26
27
  set(:real, seconds)
@@ -217,4 +217,12 @@ class ItimerTest < Test::Unit::TestCase
217
217
  assert( inner_exception )
218
218
  assert( outer_exception )
219
219
  end
220
+
221
+ def test_return_value
222
+ got = Itimer.timeout(1) do
223
+ 1
224
+ end
225
+
226
+ assert_equal( 1, got )
227
+ end
220
228
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itimer
3
3
  version: !ruby/object:Gem::Version
4
- version: '7'
4
+ version: '8'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nate Mueller