norton 0.0.10 → 0.0.11
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: 8f5a4ff328dfed5e74fa6b802ad45f4bf46c9be0
|
4
|
+
data.tar.gz: 1b9dd9d48d2b9efeb697d3d683c9b3ca6659d615
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef958732f7752f2ca4c6c898d2732d35a37f36df75e1d82f433510706a14ccd8fe555d92d18fd5ab10236eb6ae73ba050b60a57f48692be78eb4db1243c6baeb
|
7
|
+
data.tar.gz: 70c4752494cb26886d70afc19a13699a3430953f8c5fcffee51e5111c30bdb540bf197cf5ec0a1a746e56302cc1347088c74aa26fe0e08256985795d1d7dd1ab
|
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={})
|
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
|
-
|
39
|
+
if 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