norton 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/norton/timestamp.rb +2 -2
- 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: 4da084c5395b7be41bf24ec1172ff6d84240743b
|
4
|
+
data.tar.gz: e7dfe45db689e505282167f34392384ad92e7025
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc3df0e0a6bd1b85e515d5a26afc12c3e6a05b2f9d20ad84b7f7e5ad7b0a69f4741c167256f1c8b9f09ce3a4224b5def05dbd2004b9a191359b5d1e59b68f4c4
|
7
|
+
data.tar.gz: caefa24a3f2356656ed7d74b0e1d9d210e9490e8dbe2e72060ee38bf794306c34ba5674f5a382e9523ac8db97b866a15484cd9dbf96e867ce4f831d504ff125c
|
data/lib/norton/timestamp.rb
CHANGED
@@ -9,7 +9,7 @@ module Norton
|
|
9
9
|
# @param touches={} [type] [description]
|
10
10
|
#
|
11
11
|
# @return [type] [description]
|
12
|
-
def timestamp(name, options={})
|
12
|
+
def timestamp(name, options={}, touches)
|
13
13
|
define_method(name) do
|
14
14
|
ts = nil
|
15
15
|
|
@@ -36,7 +36,7 @@ module Norton
|
|
36
36
|
end
|
37
37
|
|
38
38
|
# Add callback
|
39
|
-
unless options[:touch_on].
|
39
|
+
unless options[:touch_on].present?
|
40
40
|
options[:touch_on].each do |callback, condition|
|
41
41
|
self.send callback, proc{ if instance_eval(&condition) then instance_eval("touch_#{name}") end }
|
42
42
|
end
|
data/lib/norton/version.rb
CHANGED