cache_key_for 0.1.7 → 0.1.8

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: 19bbb71e82136eb4265cda4ffc27c761486944f3
4
- data.tar.gz: bdbd6c7122ea401d17c09b10c9de9d6e9cb8e3ea
3
+ metadata.gz: 4c8a66bc7036f0c7ef8b765dac6681ca3986376c
4
+ data.tar.gz: 14f29d8e33ba4be6cf832db5fb7362f21971c9f5
5
5
  SHA512:
6
- metadata.gz: 3aa306cf70c9da0c321730250c345652693f861e7312972f0c381b9eb9c1e7f1ce261bc14aada6fee310c41b6bf27e36f29e87f3ccb9a25ec7b2746fc01141d6
7
- data.tar.gz: 5dbf8f57465d6709ca40719c8c6df188569291d7cfb7bcf25afe525dbd1d1666aec4f4ca19bc93559a1373fed79f33a8a14b9274b13b1e754b67a44d2be5c47e
6
+ metadata.gz: 3677a7d828bef5679018c3b422dc34362812ed72c4ca507af95a7d54b6cb159094728364c61a3d445650663640b7fd379036a46773c66359d7aaf58c18ee5635
7
+ data.tar.gz: 6874eb447e1b69f0f2e3460d93c24b9bba6538271b4fb57a79826d1bbde77b00005d7ed5a03dbc230383b2ca88a96dc778bc49d680f3a011d9729729274bd4e3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cache_key_for (0.1.7)
4
+ cache_key_for (0.1.8)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -132,4 +132,4 @@ DEPENDENCIES
132
132
  sqlite3 (~> 1.3)
133
133
 
134
134
  BUNDLED WITH
135
- 1.12.3
135
+ 1.12.5
@@ -66,9 +66,9 @@ module CacheKeyForHelper
66
66
  blacklist_params = ['utm_source', 'utm_medium', 'utm_term', 'utm_content', 'utm_campaign']
67
67
  request_params = if request.params
68
68
  if whitelist_params.empty?
69
- default_params.merge(request.params).reject { |k, _v| blacklist_params.include?(k.to_s) }
69
+ default_params.merge(request.params).reject { |k, _v| blacklist_params.map(&:to_s).include?(k.to_s) }
70
70
  else
71
- default_params.merge(request.params).select { |k, _v| whitelist_params.include?(k.to_s) }
71
+ default_params.merge(request.params).select { |k, _v| whitelist_params.map(&:to_s).include?(k.to_s) }
72
72
  end.map { |k, v| [k.to_s.dup.force_encoding('UTF-8'), v.dup.to_s.force_encoding('UTF-8')] }
73
73
  else
74
74
  nil
@@ -1,3 +1,3 @@
1
1
  module CacheKeyFor
2
- VERSION = '0.1.7'.freeze
2
+ VERSION = '0.1.8'.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.7
4
+ version: 0.1.8
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-28 00:00:00.000000000 Z
11
+ date: 2016-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appraisal