timers 4.1.2 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rspec +1 -4
- data/.travis.yml +15 -17
- data/Gemfile +7 -11
- data/README.md +60 -24
- data/Rakefile +2 -6
- data/lib/timers.rb +5 -0
- data/lib/timers/events.rb +108 -106
- data/lib/timers/group.rb +124 -119
- data/lib/timers/interval.rb +43 -0
- data/lib/timers/timer.rb +121 -116
- data/lib/timers/version.rb +6 -1
- data/lib/timers/wait.rb +47 -42
- data/spec/spec_helper.rb +30 -13
- data/spec/timers/cancel_spec.rb +33 -28
- data/spec/timers/events_spec.rb +40 -35
- data/spec/timers/every_spec.rb +27 -22
- data/spec/timers/group_spec.rb +247 -242
- data/spec/timers/performance_spec.rb +83 -54
- data/spec/timers/strict_spec.rb +37 -32
- data/spec/timers/wait_spec.rb +22 -17
- data/timers.gemspec +27 -20
- metadata +29 -18
- data/.coveralls.yml +0 -1
- data/.rubocop.yml +0 -28
- data/.ruby-version +0 -1
- data/AUTHORS.md +0 -15
- data/CHANGES.md +0 -62
- data/LICENSE +0 -23
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.3.3
|
data/AUTHORS.md
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
# The Celluloid timers gem is beamed directly to you from the minds of...
|
2
|
-
|
3
|
-
- Tony Arcieri <bascule@gmail.com>
|
4
|
-
- Jeremy Hinegardner
|
5
|
-
- Sean Gregory
|
6
|
-
- Chuck Remes
|
7
|
-
- Utenmiki
|
8
|
-
- Ron Evans
|
9
|
-
- Larry Lv
|
10
|
-
- Bruno Enten
|
11
|
-
- Jesse Cooke
|
12
|
-
- Nicholas Evans
|
13
|
-
- Dimitrij Denissenko
|
14
|
-
- Ryan LeCompte
|
15
|
-
- Samuel G. D. Williams
|
data/CHANGES.md
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
## 4.1.2 (2016-11-26)
|
2
|
-
|
3
|
-
* RuboCop reformatting
|
4
|
-
|
5
|
-
## 4.1.1 (2015-08-21)
|
6
|
-
|
7
|
-
* Remove `RubyProf` from Gemfile and a test, due to it providing no substantial benefit while increasing problems building bundles under Rubinius.
|
8
|
-
|
9
|
-
## 4.1.0 (2015-08-16)
|
10
|
-
|
11
|
-
* Addition of `now_and_every` method; fires block immediately, then sets recurring timer.
|
12
|
-
* Includes `now_and_after` method; does the same as above for one-shot timers: essentially a "two-shot" timer.
|
13
|
-
|
14
|
-
# 4.0.4 (2015-09-01)
|
15
|
-
|
16
|
-
* Re-release of the `4.1.1` version under the `4.0.4` designation to work-around issues caused by yanking `4.0.2` a couple weeks ago.
|
17
|
-
|
18
|
-
## 4.0.1 (2014-09-10)
|
19
|
-
|
20
|
-
* Memory leak fixes
|
21
|
-
* mathn fix for those crazy enough to use it
|
22
|
-
|
23
|
-
## 4.0.0 (2014-07-27)
|
24
|
-
|
25
|
-
* Replace Timers::Timeout with Timers::Wait
|
26
|
-
* Timers::Group#wait_interval now returns nil when no timers, a positive or
|
27
|
-
negative interval which if positive is the amount of time required to wait
|
28
|
-
and if negative, how far in the past the latest timer should have fired
|
29
|
-
* Performance improvements
|
30
|
-
|
31
|
-
## 3.0.1 (2014-06-27)
|
32
|
-
|
33
|
-
* Require 'set' automatically
|
34
|
-
|
35
|
-
# 3.0.0 (2014-06-14)
|
36
|
-
|
37
|
-
* Refactor `Timers` class into `Timers::Group`
|
38
|
-
* Add `Timers::Timeout` class for implementing timeouts
|
39
|
-
* Fix timer fudging
|
40
|
-
* Update to RSpec 3
|
41
|
-
|
42
|
-
## 2.0.0 (2013-12-30)
|
43
|
-
|
44
|
-
* Switch to Hitimes for high precision monotonic counters
|
45
|
-
* Removed Timers#time. Replaced with Timers#current_offset which provides a
|
46
|
-
monotonic time counter.
|
47
|
-
|
48
|
-
## 1.1.0
|
49
|
-
|
50
|
-
* Timers#after_milliseconds and #after_ms for waiting in milliseconds
|
51
|
-
|
52
|
-
## 1.0.2
|
53
|
-
|
54
|
-
* Handle overdue timers correctly
|
55
|
-
|
56
|
-
## 1.0.1
|
57
|
-
|
58
|
-
* Explicitly require Forwardable from stdlib
|
59
|
-
|
60
|
-
## 1.0.0
|
61
|
-
|
62
|
-
* Initial release
|
data/LICENSE
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
Copyright (c) 2012-16 The Celluloid Timers Developers: given in the file
|
2
|
-
AUTHORS.md at https://github.com/celluloid/timers/blob/master/AUTHORS.md
|
3
|
-
|
4
|
-
MIT License
|
5
|
-
|
6
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
7
|
-
a copy of this software and associated documentation files (the
|
8
|
-
"Software"), to deal in the Software without restriction, including
|
9
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
10
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
11
|
-
permit persons to whom the Software is furnished to do so, subject to
|
12
|
-
the following conditions:
|
13
|
-
|
14
|
-
The above copyright notice and this permission notice shall be
|
15
|
-
included in all copies or substantial portions of the Software.
|
16
|
-
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
18
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
19
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
20
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
21
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
22
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
23
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|