kea-on-rails 0.6.0 → 0.6.1

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 +4 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f7fda01291b0865c7e0cfb458f1303ae8b43efb1
4
- data.tar.gz: 0696592e46dddf8b88cb0867f1362596a6626e18
3
+ metadata.gz: 0335b8d3183a04e00f759c04b3d508aef5ea49e1
4
+ data.tar.gz: 23c1cd52eb5c46fad6d750716d22f2dae387892f
5
5
  SHA512:
6
- metadata.gz: 82fac05d9608a4c9331e1aed15dd806e017eb0e4e97b33113fc30a44b27c1ced8c904dc8a60a612b8a084f5789ec4592fa32a4475c1f54e2192b8e35ec86f67f
7
- data.tar.gz: 70a6caded64eaf4a1b20fa160617cd0f28daeafa7ce27066efd712ba0494fa53306df6a963f86b8fa2d246a67b4593e6313c95946d787590bd294461bef7db3b
6
+ metadata.gz: 8b27950b43786c4b35a6f79f91e508c13c5ab3351270aa39edb68813c998305637ac23ba4f0b22f018b995c3ee5001f317c9ba944f4ebcdcff96308e792880a7
7
+ data.tar.gz: a58196766694556976ffeb7dc8945545cf415a9e1ad343bf7fb5169fb5fa63b98519224e4915436d24b42902fe0dad2f7c7997e87a8a6e6126385facc110b9ea
data/lib/kea/router.rb CHANGED
@@ -11,7 +11,10 @@ module Kea
11
11
  @env = env
12
12
 
13
13
  request = Rack::Request.new(env)
14
- params = JSON.parse(request.body.string).deep_symbolize_keys
14
+ body = request.body.read
15
+ params = JSON.parse(body).deep_symbolize_keys
16
+
17
+ request.body.rewind
15
18
 
16
19
  begin
17
20
  @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.6.0
4
+ version: 0.6.1
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-06 00:00:00.000000000 Z
11
+ date: 2017-04-07 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