norton 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7217c3c195f218f46fb007acd218121dfff1f512
4
- data.tar.gz: 0e411430bf1de867286641356e01dafaa621be4d
3
+ metadata.gz: 4669f251b3c59242c753f2be114f6076076a2464
4
+ data.tar.gz: 9448d7e0116e827427d797833fe63d2dc375b01e
5
5
  SHA512:
6
- metadata.gz: 362b4c197564adeb340c0c70f5d6583ac1b104612c527d552b66b71f4044d31a9d0bfad4970d2b73f9498ef772878427c0692c3e36968d3f64e4817228bfe697
7
- data.tar.gz: fa62bd4068ae0b92f61e4a344ccecea1e7bbdf2e39bca26dcfdee024d6bcbdb96179d845b6f1a745a9fb54946707c2dd117a644c0ea05921dce8ad4f43ac57ac
6
+ metadata.gz: efa988dce482046bd751863e1d0820dacf1314f79208ea4c38fe97277c2f8423cfcc962ac53161dd5c4d4bda034704e7080562d26aa1a06a16b03be2a52eb034
7
+ data.tar.gz: 3f772e9765ea90695edc94c01e7d73963fa90974da2447131e3a6b33f1e4cd0dbe0efb9ebad958129cf8771258be307a8e7a05de693c2073b43729ce7f9c2295
@@ -6,7 +6,8 @@ module Norton
6
6
  #
7
7
  # [counter description]
8
8
  # @param name [type] [description]
9
- # @param touches={} [type] [description]
9
+ # @param options={} [type] [description]
10
+ # @param block [description]
10
11
  #
11
12
  # @return [type] [description]
12
13
  def counter(name, options={}, &blk)
@@ -11,6 +11,8 @@ module Norton
11
11
  # @return [type] [description]
12
12
  def timestamp(name, touches={})
13
13
  define_method(name) do
14
+ ts = nil
15
+
14
16
  Norton.redis.with do |conn|
15
17
  ts = conn.get("#{self.class.to_s.pluralize.downcase}:#{self.id}:#{name}").try(:to_i)
16
18
 
@@ -1,3 +1,3 @@
1
1
  module Norton
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: norton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Larry Zhao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-18 00:00:00.000000000 Z
11
+ date: 2015-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis