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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4da084c5395b7be41bf24ec1172ff6d84240743b
4
- data.tar.gz: e7dfe45db689e505282167f34392384ad92e7025
3
+ metadata.gz: 8f5a4ff328dfed5e74fa6b802ad45f4bf46c9be0
4
+ data.tar.gz: 1b9dd9d48d2b9efeb697d3d683c9b3ca6659d615
5
5
  SHA512:
6
- metadata.gz: bc3df0e0a6bd1b85e515d5a26afc12c3e6a05b2f9d20ad84b7f7e5ad7b0a69f4741c167256f1c8b9f09ce3a4224b5def05dbd2004b9a191359b5d1e59b68f4c4
7
- data.tar.gz: caefa24a3f2356656ed7d74b0e1d9d210e9490e8dbe2e72060ee38bf794306c34ba5674f5a382e9523ac8db97b866a15484cd9dbf96e867ce4f831d504ff125c
6
+ metadata.gz: ef958732f7752f2ca4c6c898d2732d35a37f36df75e1d82f433510706a14ccd8fe555d92d18fd5ab10236eb6ae73ba050b60a57f48692be78eb4db1243c6baeb
7
+ data.tar.gz: 70c4752494cb26886d70afc19a13699a3430953f8c5fcffee51e5111c30bdb540bf197cf5ec0a1a746e56302cc1347088c74aa26fe0e08256985795d1d7dd1ab
@@ -9,7 +9,7 @@ module Norton
9
9
  # @param touches={} [type] [description]
10
10
  #
11
11
  # @return [type] [description]
12
- def timestamp(name, options={}, touches)
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
- unless options[:touch_on].present?
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
@@ -1,3 +1,3 @@
1
1
  module Norton
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
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.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Larry Zhao