kea-on-rails 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/kea/router.rb +3 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be85885430a4334ffccc95d8686cf5cee3469fe3
4
- data.tar.gz: 3f542790140cb6bb6449c9424de9edd7f0ff90fe
3
+ metadata.gz: f7fda01291b0865c7e0cfb458f1303ae8b43efb1
4
+ data.tar.gz: 0696592e46dddf8b88cb0867f1362596a6626e18
5
5
  SHA512:
6
- metadata.gz: 6281c904b4ace806d9333aa960577ca7adfb23b0fb70d19dea87933d04256e24dc1bba23166f54f2551f940ae22e95cea9cbf1013e32b4a55ad48f5ee8be04f7
7
- data.tar.gz: ca619389580b76b4d0f04fa0254f9ea2ffe05cdd4e07aa1fa15f3edab1d9b5558da0bbc93bb63eb8d9cc7a21eee500abb9ce2befba72ee26eb0065215f5c66ba
6
+ metadata.gz: 82fac05d9608a4c9331e1aed15dd806e017eb0e4e97b33113fc30a44b27c1ced8c904dc8a60a612b8a084f5789ec4592fa32a4475c1f54e2192b8e35ec86f67f
7
+ data.tar.gz: 70a6caded64eaf4a1b20fa160617cd0f28daeafa7ce27066efd712ba0494fa53306df6a963f86b8fa2d246a67b4593e6313c95946d787590bd294461bef7db3b
data/lib/kea/router.rb CHANGED
@@ -9,7 +9,9 @@ module Kea
9
9
 
10
10
  def call(env)
11
11
  @env = env
12
- params = (@env['action_dispatch.request.request_parameters'] || @env['rack.request.form_hash'] || Rack::Utils.parse_nested_query(@env['QUERY_STRING'])).deep_symbolize_keys
12
+
13
+ request = Rack::Request.new(env)
14
+ params = JSON.parse(request.body.string).deep_symbolize_keys
13
15
 
14
16
  begin
15
17
  @endpoint = params[:endpoint].classify.constantize
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kea-on-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marius Andra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-05 00:00:00.000000000 Z
11
+ date: 2017-04-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rails connector for kea and kea-rails-loader
14
14
  email: marius.andra@gmail.com