active_memoize 2.0.0 → 2.0.1

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
  SHA256:
3
- metadata.gz: 91f66190445f2955c5905be5a7e0f5fce6a9842dbb5cc6b92755927cfe29f0b9
4
- data.tar.gz: a1806275ccb0004f7260b5cb38d54f2651299216932eb4db1c52558baa7d6ede
3
+ metadata.gz: 57549a776e911db388a0fa908c7688e289a829985b829962f184fc0bd5873b2a
4
+ data.tar.gz: 0d1fbf9069ff2abbf12c6076ec245f9c29ea74e1c0ad4f3f8fd7766f290fb21c
5
5
  SHA512:
6
- metadata.gz: 3f1e19d175f9e2ba0ca739737c88d347aadb9c8a7f7b8e00569593452384d8ac9d9ffec1e73975f0065bed362dddfb549ecff411795f8f236785eb20b9d9e4f8
7
- data.tar.gz: 06fa2777ea5b110690dd16e55c6f6773a8c3b6aec1fb695c96cfedc9f31809ad812207f0044535eb4514fe456adcf0627270d74915dc65d22c9efdbbb120cf72
6
+ metadata.gz: 65e09de372029ecf6d83615b4f167d39ae7ff8b9d1f78763ab9c9451d67f712d8af393f486553edec4936b61f4f443b6e6a7980214a7d4ddaf3d4a24a54d7375
7
+ data.tar.gz: ef516fc6e64bdbb6a07a22d903532f0853d66512345d802f5f6678129fc585a0a400b36500c8d81a14f6bf238f666fdf754b73910c201bced3b86fe4a363991e
@@ -10,7 +10,8 @@ module ActiveMemoize
10
10
  end
11
11
 
12
12
  def key(method_name, method_args)
13
- Digest::SHA1.hexdigest("#{method_name}:#{method_args}")
13
+ method_md5 = Digest::MD5.hexdigest(method_args.to_s)
14
+ "#{method_name}:#{method_md5}"
14
15
  end
15
16
 
16
17
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveMemoize
4
- VERSION ||= '2.0.0'
4
+ VERSION ||= '2.0.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_memoize
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez