object-cache 0.0.3 → 0.0.4

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: 1d2f1ec4b3467a87297e809f094d3f75461b3fa9
4
- data.tar.gz: bf7eef92986a7ddb52c5f7ec2aa3110ddbaa791d
3
+ metadata.gz: f69e51190664f9a41e10f08bbb203589f16cdf71
4
+ data.tar.gz: b0e1ffa4a690f9db5637b2125472ad7e4a58072d
5
5
  SHA512:
6
- metadata.gz: 323e1806f012635837d50ac2111d607232714308376d16e9ab32718cc2217fe760d745298b3e20165b1d3e70f339b90acca9aada9ec81cf44f5b75e971403006
7
- data.tar.gz: 7b0cd11b83029e6e2b9701804a7426679e6002578777192916301c75af7faaf9780a61acd5ef8a32a8df52de45e977a5d86be1954f1a56dfdbd876bb7ea15dc7
6
+ metadata.gz: c08b047330a9dd88cebb08b6c66022e006a8979bed0535f387b3f693e5caf53f62653c072b12e894ece993da350e2142cf5e00f33fcfa2eab5f9a30a4e5ae818
7
+ data.tar.gz: 6d1413169a30723650a470c525322d51879d2e41de5ded9f86cbb7e7357a3444fab9e61c921b501df7c1b5de22ab5f12d1548485795799956fccaaabc69780de
@@ -107,7 +107,7 @@ class Cache
107
107
  case key_prefix
108
108
  when :method_name
109
109
  location = caller_locations.find { |l| "#{l.path}#{l.lineno}" == proc.source_location.join }
110
- location&.base_label
110
+ location && location.base_label
111
111
  when :class_name
112
112
  proc.binding.receiver.class.to_s
113
113
  else
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Cache
4
- VERSION = '0.0.3'
4
+ VERSION = '0.0.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: object-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean