cache_key_for 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/cache_key_for/cache_key_for_helper.rb +4 -1
- data/lib/cache_key_for/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0019a0a8e3f7265702688e55c5b340a129fcbde0
|
4
|
+
data.tar.gz: 5e2715145b399c3e161011e434d648b52d7594ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97d765ebee9045c4f5df6ec07990d32cd7b4bf5e85b843833058656cf07b2bd6d20fb41b55ad37491deb1c15117eb9c5a2aada1b5bf6eb0ba590eb5d2c0dd218
|
7
|
+
data.tar.gz: 94e3e4fd81d0e0cd516a7a0d054a4d595a5cd0f77698a766b6981c5b08c90acbcf453dd5657742ff70cd70c3b374d6beda5f2ea884dcf409303570797aaf87c2
|
data/Gemfile.lock
CHANGED
@@ -69,7 +69,10 @@ module CacheKeyForHelper
|
|
69
69
|
default_params.merge(request.params).reject { |k, _v| blacklist_params.map(&:to_s).include?(k.to_s) }
|
70
70
|
else
|
71
71
|
default_params.merge(request.params).select { |k, _v| whitelist_params.map(&:to_s).include?(k.to_s) }
|
72
|
-
end.map
|
72
|
+
end.map do |k, v|
|
73
|
+
# don't care about data type in the `v`, convert all to string
|
74
|
+
[k.to_s.dup.force_encoding('UTF-8'), v.to_s.dup.force_encoding('UTF-8')]
|
75
|
+
end
|
73
76
|
else
|
74
77
|
nil
|
75
78
|
end
|