motion-tickspot 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tick/timer.rb +7 -3
- data/lib/tick/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65daeef5ec026c65f2c7e092190b0c632f933136
|
4
|
+
data.tar.gz: 3dee29321d800bfe190513a43a0c7a606fe2491b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb20b4dc0791d68c2d581795e16df527eff94030bb6ad3da9a21b432bef6fec120d88859417fa3a976e6a24ff8ca0c0cc11ae6d7274f8acb6898e0d1784cfd9d
|
7
|
+
data.tar.gz: c122676e8c8b88e9c9b00e4c65e48201d49c14429f4a0045a29534fcdd7a4d17dbbc790504c5154084b07aeadfb875ae7a91819b9b997b82b23e4e3c7aefb4ee
|
data/lib/tick/timer.rb
CHANGED
@@ -46,6 +46,7 @@ module Tick
|
|
46
46
|
alias_method :started, :is_running
|
47
47
|
|
48
48
|
def start
|
49
|
+
ap "WAAAAT? START PLEASE"
|
49
50
|
# Stop the current timer if it exists
|
50
51
|
current_timer = self.class.current
|
51
52
|
current_timer.stop if current_timer
|
@@ -53,9 +54,12 @@ module Tick
|
|
53
54
|
# Start the timer and add it to the
|
54
55
|
# list of timers if it doesn't exist
|
55
56
|
self.start_time = Time.now
|
56
|
-
self.class.timers
|
57
|
-
|
58
|
-
|
57
|
+
unless self.class.timers && self.class.timers.include?(self)
|
58
|
+
if self.class.timers
|
59
|
+
self.class.timers += [self]
|
60
|
+
else
|
61
|
+
self.class.timers = [self]
|
62
|
+
end
|
59
63
|
end
|
60
64
|
|
61
65
|
true
|
data/lib/tick/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-tickspot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Pattison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: motion-cocoapods
|