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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c8a66bc7036f0c7ef8b765dac6681ca3986376c
4
- data.tar.gz: 14f29d8e33ba4be6cf832db5fb7362f21971c9f5
3
+ metadata.gz: 0019a0a8e3f7265702688e55c5b340a129fcbde0
4
+ data.tar.gz: 5e2715145b399c3e161011e434d648b52d7594ff
5
5
  SHA512:
6
- metadata.gz: 3677a7d828bef5679018c3b422dc34362812ed72c4ca507af95a7d54b6cb159094728364c61a3d445650663640b7fd379036a46773c66359d7aaf58c18ee5635
7
- data.tar.gz: 6874eb447e1b69f0f2e3460d93c24b9bba6538271b4fb57a79826d1bbde77b00005d7ed5a03dbc230383b2ca88a96dc778bc49d680f3a011d9729729274bd4e3
6
+ metadata.gz: 97d765ebee9045c4f5df6ec07990d32cd7b4bf5e85b843833058656cf07b2bd6d20fb41b55ad37491deb1c15117eb9c5a2aada1b5bf6eb0ba590eb5d2c0dd218
7
+ data.tar.gz: 94e3e4fd81d0e0cd516a7a0d054a4d595a5cd0f77698a766b6981c5b08c90acbcf453dd5657742ff70cd70c3b374d6beda5f2ea884dcf409303570797aaf87c2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cache_key_for (0.1.8)
4
+ cache_key_for (0.1.9)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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 { |k, v| [k.to_s.dup.force_encoding('UTF-8'), v.dup.to_s.force_encoding('UTF-8')] }
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
@@ -1,3 +1,3 @@
1
1
  module CacheKeyFor
2
- VERSION = '0.1.8'.freeze
2
+ VERSION = '0.1.9'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cache_key_for
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Kalita