active_memoize 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_memoize/shared.rb +2 -2
- data/lib/active_memoize/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 319bbad01c674d237b4b2c66e865ba44127de572a67cfea712b51b5e2b5bdfc0
|
4
|
+
data.tar.gz: d0f8439b424104e55939ac7fb373e08b1f3baa8e8d9997e8d01c009f781d299e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9d7c454c684d646a6a934230660d29280e992258c99f8d4ec6b7a23cc7388948b8812036d5c4fe1526905fd4b78efd34c45cb591e24ef2ecdc0ae872001949e
|
7
|
+
data.tar.gz: bbd807429d3ab6e6df57afb7adf4e6f8ff476efb38a7801cbf418a63d109cad913d59b2b620ef0c35ca14c816aba46c33583cdb56a4bd31fd66f8cec55775a58
|
@@ -10,8 +10,8 @@ module ActiveMemoize
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def key(method_name, method_args)
|
13
|
-
|
14
|
-
"#{method_name}:#{
|
13
|
+
method_sha1 = Digest::SHA1.hexdigest(method_args.to_s)
|
14
|
+
"#{method_name}:#{method_sha1}"
|
15
15
|
end
|
16
16
|
|
17
17
|
end
|