def_cache 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Njg0YzFlNjJkYWE0N2M5ZmFlMTE1ZmJkNjgwY2E5NjI5M2M3Mjc2MA==
4
+ ZTEyMGI3NjEzNjA5ZWEzOTZhYmI2OGY1MTY0ZjhhZDRlMGYwZGM3MQ==
5
5
  data.tar.gz: !binary |-
6
- NTY1ZTcwODU3NGU0Zjg0MDhmZDVlOTg2ZjNjNTI1YTgzMDdkZmY1OA==
6
+ ZDU2YjJiODFiOTI0MmMzNTVmZTQ5ZjVlYjI3ZGRhNmU0ZjRlZmFiYQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NDBjMGIxZWJiY2MwMTNiMDA1Y2QzODk4ODE4NGNjZDVkZjkxNDVlYzJjY2U5
10
- MTgzZjgyYTE2ZTNjYmYxN2RmN2UzMTE1YTBhNTEyODg0ZDdhNTZlZGFlOTcx
11
- NjBhYTBjYWM3ZWJiYThjNjI0MmYzYjkzMjIwZTU4MWEwODRhYzc=
9
+ ZjIxYTlmMDc1ZTk5ZDA2NTEwZjMzZDU4NmJhNDExNjk3MzYxMDk2ODYwZjU4
10
+ MWI1YTZkYjNhZWViMjA4YzA4OWNiM2RmYzYxOTJlYzE1ZGVkZjA3YWViMzg3
11
+ YTE4ZjZiYTVhNTNlNDY3Y2U2MjkzMDExZGI1YTdmZWRkYjUxN2M=
12
12
  data.tar.gz: !binary |-
13
- ZDQxMjZlNDRhMzEyNzg1YmRlMWQ5OTgyNjA4NTI3M2Y5MDM4Y2FmM2M2Mzc3
14
- OTI5NWZiYjFmNjY5OTY2NGIyM2EyZWJiMDhhNGU3NDdlOWYzNjcyYjBmMWM2
15
- MTQwNWM2OGQ4ZjRjZjAzZWRkOTk5ZmQ1YjcyMzg2ZjY4YWFhYTg=
13
+ YjQ2YmU1ZDNlYzY4NGFkZmE2NjMyYWVhMjE1MDhlYTA5MTE0YTViNjZkNDJl
14
+ NTlhY2U5ZDU1Zjk5ZmEwM2UyYWEzMzNiNDU2NzZhYTUzNWEzYWM4ZTY0MDgz
15
+ Y2VhOTgwOWJmMDNmYWJjMDM4NmRhNjRjMzFmMGUzZDMzNmJhNzg=
@@ -26,7 +26,8 @@ class DefCache::CacheHandler
26
26
  def instance_cache_key
27
27
  instance.cache_key
28
28
  rescue NoMethodError
29
- instance.class.name
29
+ klass = (instance.is_a?(Module) ? self : instance.class)
30
+ klass.name || klass.object_id
30
31
  end
31
32
 
32
33
  def logger
@@ -1,3 +1,3 @@
1
1
  module DefCache
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: def_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Waldrip