io-event 1.6.3 → 1.6.4

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
  SHA256:
3
- metadata.gz: dbd1596a8aee7671e72fa97a26edea4613394765bb99723729228e6e6d5705cd
4
- data.tar.gz: 42039ad9987d6e780e33091a812d9296527591cc7f187bf5c0a23fbf22d77981
3
+ metadata.gz: 7e8079059cd981f3843b5887e4eb8b3059330ee939febdf21b2541011ec4a864
4
+ data.tar.gz: fd6c2d19dcd0a63b93a0f395faec3ac11933072f08a2a14de2546a6a402a2b09
5
5
  SHA512:
6
- metadata.gz: 49c7e7ea64f291f831e77b83fccc5ebd9cc610eb25032bd8c8d2bac5937190bcdaa68da6149831ed90b8a508b7a7ad68cf629663aa03c6f1892272db234ed3ba
7
- data.tar.gz: 1c51c881b4746c819f0967041e3fb580ee5cc79163be5783831a5a72f16d64ad5ca592746d530ec78b77f70590ed81cdffbf34c46b4d46982d950e5ca46e1bfa
6
+ metadata.gz: 887a130e38d3f4e2c514099aaeb8f34925e62b8ec4329d5c93df66db6d4bf277a5b3c3632db5e751b4974ada1b7f5ed99ed2d9cb5de56e26a0aa51bdca0f2e68
7
+ data.tar.gz: 1daa6130d762d3aa8c3df4771327e955813d7bcb18281cc155026dddbbceee5b4a08b52eac31134408e77768a9d7f4a4392b5d2fe8805bfb9353d4b1375f483e
checksums.yaml.gz.sig CHANGED
Binary file
@@ -421,7 +421,6 @@ module IO::Event
421
421
  error = nil
422
422
 
423
423
  if duration
424
- duration = duration/1.0
425
424
  if duration > 0
426
425
  start_time = Process.clock_gettime(Process::CLOCK_MONOTONIC)
427
426
  end
@@ -50,18 +50,19 @@ class IO
50
50
  end
51
51
 
52
52
  # Schedule a block to be called at a specific time in the future.
53
- # @parameter time [Time] The time at which the block should be called, relative to {#now}.
53
+ # @parameter time [Float] The time at which the block should be called, relative to {#now}.
54
54
  def schedule(time, block)
55
55
  handle = Handle.new(time, block)
56
+
56
57
  @scheduled << handle
57
58
 
58
59
  return handle
59
60
  end
60
61
 
61
62
  # Schedule a block to be called after a specific time offset, relative to the current time as returned by {#now}.
62
- # @parameter offset [Time] The time offset from the current time at which the block should be called.
63
+ # @parameter offset [#to_f] The time offset from the current time at which the block should be called.
63
64
  def after(offset, &block)
64
- schedule(self.now + offset, block)
65
+ schedule(self.now + offset.to_f, block)
65
66
  end
66
67
 
67
68
  def wait_interval(now = self.now)
@@ -5,6 +5,6 @@
5
5
 
6
6
  class IO
7
7
  module Event
8
- VERSION = "1.6.3"
8
+ VERSION = "1.6.4"
9
9
  end
10
10
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: io-event
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.3
4
+ version: 1.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -44,7 +44,7 @@ cert_chain:
44
44
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
45
45
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
46
46
  -----END CERTIFICATE-----
47
- date: 2024-06-12 00:00:00.000000000 Z
47
+ date: 2024-06-13 00:00:00.000000000 Z
48
48
  dependencies: []
49
49
  description:
50
50
  email:
metadata.gz.sig CHANGED
Binary file