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 +4 -4
- data/Gemfile.lock +2 -2
- data/lib/cache_key_for/cache_key_for_helper.rb +2 -2
- data/lib/cache_key_for/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c8a66bc7036f0c7ef8b765dac6681ca3986376c
|
4
|
+
data.tar.gz: 14f29d8e33ba4be6cf832db5fb7362f21971c9f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3677a7d828bef5679018c3b422dc34362812ed72c4ca507af95a7d54b6cb159094728364c61a3d445650663640b7fd379036a46773c66359d7aaf58c18ee5635
|
7
|
+
data.tar.gz: 6874eb447e1b69f0f2e3460d93c24b9bba6538271b4fb57a79826d1bbde77b00005d7ed5a03dbc230383b2ca88a96dc778bc49d680f3a011d9729729274bd4e3
|
data/Gemfile.lock
CHANGED
@@ -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
|
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.
|
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-
|
11
|
+
date: 2016-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appraisal
|