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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 20422c62cc84a467cf851caf000e326cad7a591b
4
- data.tar.gz: bfef0b9673d1b27f2daa4b5660a6180860767d42
3
+ metadata.gz: 4da084c5395b7be41bf24ec1172ff6d84240743b
4
+ data.tar.gz: e7dfe45db689e505282167f34392384ad92e7025
5
5
  SHA512:
6
- metadata.gz: f70c087bb056a4f11c9d19216653b12b3699df906b05b06814206d08688bb72a0615beb052956a24cc190ad29374e8ceb5fec64b021850cdbe4876b2534d5f05
7
- data.tar.gz: eefb0c5a1ed7201a01acf3a9aecc3d466fd964c90d9d2925633040e44dfa1abd50f71e30a6808458de04afa074272c07bce57a64855fcb0b9365dd664e3e1ce2
6
+ metadata.gz: bc3df0e0a6bd1b85e515d5a26afc12c3e6a05b2f9d20ad84b7f7e5ad7b0a69f4741c167256f1c8b9f09ce3a4224b5def05dbd2004b9a191359b5d1e59b68f4c4
7
+ data.tar.gz: caefa24a3f2356656ed7d74b0e1d9d210e9490e8dbe2e72060ee38bf794306c34ba5674f5a382e9523ac8db97b866a15484cd9dbf96e867ce4f831d504ff125c
@@ -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].empty?
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
@@ -1,3 +1,3 @@
1
1
  module Norton
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: norton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Larry Zhao