norton 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/norton/counter.rb +2 -2
- data/lib/norton/timestamp.rb +1 -1
- data/lib/norton/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee3da14bf4d8ec51e4e8d54c25ea0966c9c58d07
|
4
|
+
data.tar.gz: 813138687ec12b2644a58057124bb2dec28ed932
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abc487e4bcf8af8f0daec1bea18ac0a3ff6ae386a6af0b60e0b03f5513051967be3e0d5733296c8cf1cc80259c74e3805fa86406184357d8855a65d099e9ad5a
|
7
|
+
data.tar.gz: fded12ea44ef90a3937e38ce58340f68c379ec713463cb9dd4c2daea8e96e3a267feba80f31a8724a2bd57393b34be389265dc4856de69ddc307226c089ad927
|
data/lib/norton/counter.rb
CHANGED
@@ -46,14 +46,14 @@ module Norton
|
|
46
46
|
# Add Increment callback
|
47
47
|
unless options[:incr].nil?
|
48
48
|
options[:incr].each do |callback|
|
49
|
-
self.send callback, proc{ instance_eval("incr_#{name}"
|
49
|
+
self.send callback, proc{ instance_eval("incr_#{name}") }
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
53
|
# Add Decrement callback
|
54
54
|
unless options[:decr].nil?
|
55
55
|
options[:decr].each do |callback|
|
56
|
-
self.send callback, proc{ instance_eval("decr_#{name}"
|
56
|
+
self.send callback, proc{ instance_eval("decr_#{name}") }
|
57
57
|
end
|
58
58
|
end
|
59
59
|
end
|
data/lib/norton/timestamp.rb
CHANGED
@@ -34,7 +34,7 @@ module Norton
|
|
34
34
|
# Add callback
|
35
35
|
unless touches.empty?
|
36
36
|
touches.each do |callback, condition|
|
37
|
-
self.send callback, proc{ if instance_eval(&condition) then instance_eval("touch_#{name}"
|
37
|
+
self.send callback, proc{ if instance_eval(&condition) then instance_eval("touch_#{name}") end }
|
38
38
|
end
|
39
39
|
end
|
40
40
|
end
|
data/lib/norton/version.rb
CHANGED