motion-tickspot 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 582d6af18aa9916eeeaf386d0bdf5b19fd80347d
4
- data.tar.gz: 252b61c39253445f207b19221324e259f0c4cb0b
3
+ metadata.gz: 65daeef5ec026c65f2c7e092190b0c632f933136
4
+ data.tar.gz: 3dee29321d800bfe190513a43a0c7a606fe2491b
5
5
  SHA512:
6
- metadata.gz: e3b5a48011ba2413a7bc2d9daf66bd7e532df9aa124526c19a01fd628d8914b4f46d25941cbfccc34cddfe594d0b27d2427063d22d51eafa72a44e61e394de5d
7
- data.tar.gz: c4b9cecb66183a99091e1d68fb153edfd7d18c8adb76d436a5e7fc0d1b5ffa037e5f45c7b935e513d643599e3be31e8f7d6ce4e8185d12b4bdb403352df222c5
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
- unless self.class.timers.include?(self)
58
- self.class.timers += [self]
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
@@ -1,3 +1,3 @@
1
1
  module Tick
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.9"
3
3
  end
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.8
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-02 00:00:00.000000000 Z
11
+ date: 2014-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: motion-cocoapods