ruby_marks 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,7 @@ module RubyMarks
23
23
  def reset_document
24
24
  @current_position = {x: 0, y: 0}
25
25
  @clock_marks = []
26
- @raised_watchers = []
26
+ @raised_watchers = {}
27
27
  @watchers = {}
28
28
  end
29
29
 
@@ -52,7 +52,8 @@ module RubyMarks
52
52
  def raise_watcher(name, *args)
53
53
  watcher = @watchers[name]
54
54
  if watcher
55
- @raised_watchers << watcher.name unless @raised_watchers.include?(watcher.name)
55
+ @raised_watchers[watcher.name] ||= 0
56
+ @raised_watchers[watcher.name] += 1
56
57
  watcher.run(*args)
57
58
  end
58
59
  end
@@ -1,3 +1,3 @@
1
1
  module RubyMarks
2
- VERSION = "0.1.1".freeze
2
+ VERSION = "0.1.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_marks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: