infopark_component_cache 3.1.1 → 3.2.0

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
  SHA1:
3
- metadata.gz: 6b4392ee6936a3806cff0347f582f57cbfeed28e
4
- data.tar.gz: d1641f2c87d92a1035982d5aa50e3f7ec484c9d4
3
+ metadata.gz: 4db4c1be6eaddd061aca35c479f44a35e3f16412
4
+ data.tar.gz: e752aa279d99336e004664651afa879fdcf2bea6
5
5
  SHA512:
6
- metadata.gz: 6c9ea046714f55daa41050585391eb9a44261805db03412909dced82ddbf0a57a4f304a9395c21e256673edf7f15770d00b339bc211b2f156370753913ba4ba7
7
- data.tar.gz: de631a47a2da04432a2f5e9b8b69f75bab7c02f64f0026e0d54041705927fd88e0d244263ab88baea946861931409df931a56082b4bcae5ec46467e4c9d7c74e
6
+ metadata.gz: 14ca4d95a52795ddfac422c79ac6fa6111f6e9c8f81d87cdb110c5739c1efe53f99ae41699b4f3775a40526785c7d8b13ff2fdc81f15c2d16473bb1980b36766
7
+ data.tar.gz: 15c8f362612ae220f10b3d54fe42b5f5585c8ea5b05af348b94b02bb33ba5cb4d059bd74231fd1bdc393f77385543d1cc127256509478ebc43e67c44b6f15fba
@@ -24,7 +24,9 @@ module InfoparkComponentCache
24
24
  end
25
25
 
26
26
  def identity_hash
27
- @params.merge({:obj_name=>@obj.name, :obj_id=>@obj.id, :obj_component=>@component})
27
+ @params
28
+ .except(:obj) #avoid the (ruby) object_id as part of the cache key (to_s), because it will change for each request
29
+ .merge({:obj_name=>@obj.name, :obj_id=>@obj.id, :obj_component=>@component})
28
30
  end
29
31
  end
30
32
  end
@@ -1,3 +1,3 @@
1
1
  module InfoparkComponentCache
2
- VERSION = "3.1.1"
2
+ VERSION = "3.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infopark_component_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomasz Przedmojski, sveninfo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-24 00:00:00.000000000 Z
11
+ date: 2019-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  version: '0'
168
168
  requirements: []
169
169
  rubyforge_project:
170
- rubygems_version: 2.6.14
170
+ rubygems_version: 2.6.13
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: Fragment caching with automatic dependency resolution and cache invalidation.