active_memoize 1.0.1 → 1.0.2

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: 015016fd4836bee8c837390c05995b41418300e6f7e01969f01edf6a84b37c67
4
- data.tar.gz: ba742c8d1b57bd933802e43116abad77852d09a67107ee131d9f14f9b7ec2f8c
3
+ metadata.gz: 425d8890f016d16f38c83696cbaea31b94464e8ba4ad342d9269105c13088ce6
4
+ data.tar.gz: 3f3811292ef795f16bb98e97f08808da42bf3609e576aa28f98ef0211d580fea
5
5
  SHA512:
6
- metadata.gz: 8b4e94ab818fa3ef706ed242b6040acc2b9a36547e802f2c42bb7e43238114227e9daf50d26c26086f174cc9485bc14c28527ba355f8af0e04f9e5e6fc397fce
7
- data.tar.gz: 7636d0d034229521857339f49060a364df6eefdc57c46efc409123478912177f2223a750dd48b5047468fdfbdd132f787f19f75d4d707fe69eaf761ea9190162
6
+ metadata.gz: a30a94212503902063d674fd76c1b553db9d4ddaa565b515c567cc48557cef149e886eb7d1688250adfa043bcffbc2daec8c86566475dca60c5174e8e5e392a5
7
+ data.tar.gz: c7acaedbddbec2d474ca41281512cf044e62639c1d044416b67ccf2a49cf217986be6eb654f48a6e039e024c3ab0841480b808a243598c1e1834a4f3172d4ac4
@@ -87,6 +87,8 @@ module ActiveMemoize
87
87
  def caller_locals(block)
88
88
  local_vars = block.binding.local_variables
89
89
  local_vars = local_vars.flat_map { |name| [name, block.binding.local_variable_get(name)].join('=') }
90
+ return if local_vars.empty?
91
+
90
92
  local_vars.join(',')
91
93
  end
92
94
  # rubocop:enable Metrics/LineLength
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveMemoize
4
- VERSION ||= '1.0.1'
4
+ VERSION ||= '1.0.2'
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: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez