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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 13c96f8a620669b01f601f34af91650a659abe58
4
- data.tar.gz: cc5387a93eef2b5f89e84389ebc0b50a082a8022
3
+ metadata.gz: f70c203f7ad3e56ab62f3a274d7e0bcd6bc0a845
4
+ data.tar.gz: f7166b3b4c013035f61ea88e4839fdb8cec1517e
5
5
  SHA512:
6
- metadata.gz: 0ee0e7bb33d4510a69ce5d5bee743b89f6bd22d25146890cd3066aa142245e70780938d84b8d12c73580c0a6224498bed90157f5276db6ec601d21a52aa31119
7
- data.tar.gz: 1ff759fbb09f36d3abf8c294aeb6c5764c79c042d54b449c9a21ccc40e85f4940edbce49ea792eb1deb74c12c85be16b242048031a3efbbcd911795f9a3242ff
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] [tip]
11
+ [293cb9597072]
6
12
 
7
13
  * .hgsigs:
8
14
  Added signature for changeset 5f4e1c27760a
data/History.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## v0.2.0 [2017-04-29] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ Enhancements:
4
+
5
+ - Allow timers to be resumed after they're removed.
6
+
7
+
1
8
  ## v0.1.0 [2017-04-12] Michael Granger <ged@FaerieMUD.org>
2
9
 
3
10
  Initial release.
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.1.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
  #
@@ -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.1.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-12 00:00:00.000000000 Z
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