rubysketch 0.5.24 → 0.5.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +6 -0
- data/VERSION +1 -1
- data/lib/rubysketch/context.rb +6 -6
- data/lib/rubysketch/easings.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41b147fcb3fd31ea85f6b29b30681a0280140ded656677ade8bddf91399af6b8
|
4
|
+
data.tar.gz: 3cc93b88d182703d4c08750029058e0911fe3a17f9c98aa6f951482552c8f1b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68665dc8c90267229151102218044d4a95f9a7fbdae5ed61dd8a16cdc9ef14b65b0b582e491bb5be7576618594721ad101e0923245dcb8ed20f004ed658c9c85
|
7
|
+
data.tar.gz: 94bdd58eda1690e820446a8b58fe2628110ec00d5093515416b9f0e64c2f31d9c545f075d436123abce715359cfe46f39a1d08f3125a1616248b15be2eead5eb
|
data/ChangeLog.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.25
|
data/lib/rubysketch/context.rb
CHANGED
@@ -9,7 +9,7 @@ module RubySketch
|
|
9
9
|
# @private
|
10
10
|
def initialize(window)
|
11
11
|
super
|
12
|
-
@timers__, @nextTimerID__ = {}, 0
|
12
|
+
@timers__, @firingTimers__, @nextTimerID__ = {}, {}, 0
|
13
13
|
|
14
14
|
@layer__ = window.add_overlay SpriteLayer.new
|
15
15
|
|
@@ -71,7 +71,7 @@ module RubySketch
|
|
71
71
|
# @return [nil] nil
|
72
72
|
#
|
73
73
|
def clearTimer(id)
|
74
|
-
@timers__.delete id
|
74
|
+
[@timers__, @firingTimers__].each {|timers| timers.delete id}
|
75
75
|
nil
|
76
76
|
end
|
77
77
|
|
@@ -87,11 +87,11 @@ module RubySketch
|
|
87
87
|
# @private
|
88
88
|
def fireTimers__()
|
89
89
|
now = Time.now.to_f
|
90
|
-
|
91
|
-
@timers__.delete_if do |
|
92
|
-
(now >= time).tap {|fire|
|
90
|
+
@firingTimers__.clear
|
91
|
+
@timers__.delete_if do |id, (time, args, block)|
|
92
|
+
(now >= time).tap {|fire| @firingTimers__[id] = [block, args] if fire}
|
93
93
|
end
|
94
|
-
|
94
|
+
@firingTimers__.each {|_, (block, args)| block.call *args}
|
95
95
|
end
|
96
96
|
|
97
97
|
# Animate with easing functions
|
data/lib/rubysketch/easings.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubysketch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.25
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- xordog
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xot
|