rack-reducer 1.1.1 → 1.1.2

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
  SHA256:
3
- metadata.gz: 3658ebc181adebd904bdb3da749349c92686b173a168dc5f73a5ef1f968ff7bf
4
- data.tar.gz: eef09ce59406c0341c95977d3967be1e402be4288cf63af7ed5e6604375bc438
3
+ metadata.gz: 4f873c82d2086af18eb08d88accb164a6694ff5be7c88f468db013ba068ae009
4
+ data.tar.gz: e0ebf95f94eedc38f61da779e578844c0d7645f725871713af73759ce9817ef2
5
5
  SHA512:
6
- metadata.gz: 4ccd88dd529cfcbc6c71fff712f509509030d1ba74a705ae6e41b74b9e93146198cfa3ec5820407bec3221c8256146630221ae040e80e64aad89467625c25e1f
7
- data.tar.gz: c170a6b2a71b8df5f46e9faf57bd74074e79c1189a18ea0fd07404dc1a97dd206b4a7f855f715ec4fc9d30f7ff1607bd3f5816d0b72603d1c376efd030ea90b6
6
+ metadata.gz: 18b2af15129314633b9c3e29a5045bf4cf7927e8b6cae72b4cb160129e0edc55b4f231312481098ba654d30d3b0e464fd9c3b272f1dd2d736622e43d4d866fce
7
+ data.tar.gz: be9d27ca83200a17a6462f0f637d7c95ad1c55d17327e606c60c1733d8e52b6b6790d57a5b70732261d393a6ba3fa91740e2ccc0bd6fca5b9ea8df746944cf6c
@@ -31,7 +31,7 @@ module Rack
31
31
  refine Hash do
32
32
  def symbolize_keys
33
33
  each_with_object({}) do |(key, val), hash|
34
- hash[key.to_sym] = val.is_a?(Hash) ? symbolize(val) : val
34
+ hash[key.to_sym] = val.is_a?(Hash) ? val.symbolize_keys : val
35
35
  end
36
36
  end
37
37
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rack
4
4
  module Reducer
5
- VERSION = '1.1.1'
5
+ VERSION = '1.1.2'
6
6
  end
7
7
  end
data/spec/reducer_spec.rb CHANGED
@@ -108,4 +108,10 @@ RSpec.describe Rack::Reducer do
108
108
  expect(@warnings.first).to include('mixin-style is deprecated')
109
109
  end
110
110
  end
111
+
112
+ it 'accepts nested params' do
113
+ get('/artists?range[min]=1&range[max]=100') do |response|
114
+ expect(response.status).to eq(200)
115
+ end
116
+ end
111
117
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-reducer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Frank
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-17 00:00:00.000000000 Z
11
+ date: 2019-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack