cache_key_for 0.1.6 → 0.1.7

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: d793373a7919dfb8ffd28f2538db4b3b2095c84d
4
- data.tar.gz: e7724aae76d14e231f430b8f9c8c1d4f24efbe59
3
+ metadata.gz: 19bbb71e82136eb4265cda4ffc27c761486944f3
4
+ data.tar.gz: bdbd6c7122ea401d17c09b10c9de9d6e9cb8e3ea
5
5
  SHA512:
6
- metadata.gz: 4a0a96ae20a85d30066805cc2e18bccfd5ac32c6cdc91aa74f205915acfc4b2167eff0a127c1dd856de4385188f9d67cdb235d237de43e079400eead27148583
7
- data.tar.gz: 771f3129b4081a9883ef98564617e5b27bf85d254952fbba935c9e2b4764360d253dca269cf8fe6c9d9d8000c3cfc66d4bb7d68756709de89952ed22f98fcbd8
6
+ metadata.gz: 3aa306cf70c9da0c321730250c345652693f861e7312972f0c381b9eb9c1e7f1ce261bc14aada6fee310c41b6bf27e36f29e87f3ccb9a25ec7b2746fc01141d6
7
+ data.tar.gz: 5dbf8f57465d6709ca40719c8c6df188569291d7cfb7bcf25afe525dbd1d1666aec4f4ca19bc93559a1373fed79f33a8a14b9274b13b1e754b67a44d2be5c47e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cache_key_for (0.1.6)
4
+ cache_key_for (0.1.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # CacheKeyFor [![Build Status](https://travis-ci.org/efigence/cache_key_for.svg?branch=master)](https://travis-ci.org/efigence/cache_key_for) [![Coverage Status](https://coveralls.io/repos/github/efigence/cache_key_for/badge.svg?branch=master)](https://coveralls.io/github/efigence/cache_key_for?branch=master) [![Code Climate](https://codeclimate.com/github/efigence/cache_key_for/badges/gpa.svg)](https://codeclimate.com/github/efigence/cache_key_for)
1
+ # CacheKeyFor [![Gem Version](https://badge.fury.io/rb/cache_key_for.svg)](https://badge.fury.io/rb/cache_key_for) [![Build Status](https://travis-ci.org/efigence/cache_key_for.svg?branch=master)](https://travis-ci.org/efigence/cache_key_for) [![Coverage Status](https://coveralls.io/repos/github/efigence/cache_key_for/badge.svg?branch=master)](https://coveralls.io/github/efigence/cache_key_for?branch=master) [![Code Climate](https://codeclimate.com/github/efigence/cache_key_for/badges/gpa.svg)](https://codeclimate.com/github/efigence/cache_key_for)
2
2
  Comprehensive cache key generator (complements Rails `cache` helper)
3
3
 
4
4
  How to design a perfect cache key? This project's goal is to provide the bulletproof solution for most use cases.
@@ -50,6 +50,7 @@ module CacheKeyForHelper
50
50
  rescue ActiveRecord::EagerLoadPolymorphicError
51
51
  Rails.logger.debug "[CacheKeyForHelper] Fallback to array (ActiveRecord::EagerLoadPolymorphicError)"
52
52
  scoped_collection = scoped_collection.to_a
53
+ max_updated_at = scoped_collection.to_a.map { |i| i.updated_at ? i.updated_at.utc.to_f : 0 }.max
53
54
  end
54
55
  elsif scoped_collection.class == Array
55
56
  max_updated_at = scoped_collection.to_a.map { |i| i.updated_at ? i.updated_at.utc.to_f : 0 }.max
@@ -1,3 +1,3 @@
1
1
  module CacheKeyFor
2
- VERSION = '0.1.6'.freeze
2
+ VERSION = '0.1.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cache_key_for
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Kalita
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-06 00:00:00.000000000 Z
11
+ date: 2016-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appraisal