cztop-reactor 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/ChangeLog +7 -1
- data/History.md +7 -0
- data/lib/cztop/reactor.rb +7 -1
- data/spec/cztop/reactor_spec.rb +8 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f70c203f7ad3e56ab62f3a274d7e0bcd6bc0a845
|
4
|
+
data.tar.gz: f7166b3b4c013035f61ea88e4839fdb8cec1517e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f24b280136af590d7c05685d7db0a31e702f2b013fb9bce3ed3271579ecf917d47faa81d3c0bcb289422b7ed819fc599ee75f5dc5dfc309188b14b2e2159cd16
|
7
|
+
data.tar.gz: f1477bbfb5427e0e62e2309160231f515062e25fdc2ec440361817c0a69d070c9d07adb13e217b51368684f702d30f4b24169b7bcf6e90486a272e9b4a9ddc5f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/ChangeLog
CHANGED
@@ -1,8 +1,14 @@
|
|
1
|
+
2017-04-19 Michael Granger <ged@FaerieMUD.org>
|
2
|
+
|
3
|
+
* Rakefile, cztop-reactor.gemspec:
|
4
|
+
Remove Rakefile guard against public release.
|
5
|
+
[bb56a75ae424] [tip]
|
6
|
+
|
1
7
|
2017-04-12 Michael Granger <ged@FaerieMUD.org>
|
2
8
|
|
3
9
|
* .hgtags:
|
4
10
|
Added tag v0.1.0 for changeset 436507f28e4d
|
5
|
-
[293cb9597072]
|
11
|
+
[293cb9597072]
|
6
12
|
|
7
13
|
* .hgsigs:
|
8
14
|
Added signature for changeset 5f4e1c27760a
|
data/History.md
CHANGED
data/lib/cztop/reactor.rb
CHANGED
@@ -22,7 +22,7 @@ class CZTop::Reactor
|
|
22
22
|
extend Loggability
|
23
23
|
|
24
24
|
# The version of this library
|
25
|
-
VERSION = '0.
|
25
|
+
VERSION = '0.2.0'
|
26
26
|
|
27
27
|
# The maximum number of seconds to wait for events when there are no timers
|
28
28
|
# registered.
|
@@ -231,6 +231,12 @@ class CZTop::Reactor
|
|
231
231
|
end
|
232
232
|
|
233
233
|
|
234
|
+
### Restore the specified +timer+ to the reactor.
|
235
|
+
def resume_timer( timer )
|
236
|
+
timer.reset
|
237
|
+
end
|
238
|
+
|
239
|
+
|
234
240
|
#
|
235
241
|
# Monitors
|
236
242
|
#
|
data/spec/cztop/reactor_spec.rb
CHANGED
@@ -204,6 +204,14 @@ describe CZTop::Reactor do
|
|
204
204
|
expect( reactor.timers ).to_not include( handle )
|
205
205
|
end
|
206
206
|
|
207
|
+
|
208
|
+
it "allows a timer to be resumed" do
|
209
|
+
handle = reactor.add_periodic_timer( 5 ) {}
|
210
|
+
reactor.remove_timer( handle )
|
211
|
+
reactor.resume_timer( handle )
|
212
|
+
expect( reactor.timers ).to include( handle )
|
213
|
+
end
|
214
|
+
|
207
215
|
end
|
208
216
|
|
209
217
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cztop-reactor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Granger
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
w8aNA5re5+Rt/Vvjxj5AcEnZnZiz5x959NaddQocX32Z1unHw44pzRNUur1GInfW
|
36
36
|
p4vpx2kUSFSAGjtCbDGTNV2AH8w9OU4xEmNz8c5lyoA=
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2017-04-
|
38
|
+
date: 2017-04-29 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: loggability
|
metadata.gz.sig
CHANGED
Binary file
|