moonrope 1.3.1 → 1.3.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
  SHA1:
3
- metadata.gz: 81c19996325ee4342d9c027d043e03dc15dbf4b1
4
- data.tar.gz: 6a5859ecd39d546385894fd3d114aee48b0dd166
3
+ metadata.gz: 80700af7c27546f50de0702ce8227eea82d83b2a
4
+ data.tar.gz: cc7a25be219939e46dc0d7b6c4df96de2737490a
5
5
  SHA512:
6
- metadata.gz: c8795f460fcbb66d4c93acd896fcb2a1e15b73650f3e824069366fdb3d8fd3a6699a3fce21f2b76c41387070d9cd52730f34b94984750880258783c6644e2ec1
7
- data.tar.gz: 02fc479ae9b0c7609935605c7296eab781eaf3d8d82ced6e826f94b24fc965fca1ce5ba8f1a44926772ac79b36d4df21811b837501ab97caecc5f690b8abe4a8
6
+ metadata.gz: 08e2fc6253306a690cde289ad1f177fa36bdb96e79f5122c97cb61fae4d01977cb4ea54069094b4ffad6eec81fff48f44dc234fa94daf3e997387646e7bed624
7
+ data.tar.gz: 52dd204932782283c9e82d2ba4bb5be34a6a8ed3aa17171aaf6cc8ca67172b29dbbca36efabb4cc111ffdcf255f2fd90523735c5b2c00c3ce71b3a45bdf1173f
@@ -108,7 +108,13 @@ module Moonrope
108
108
  # @return [Moonrope::ParamSet]
109
109
  #
110
110
  def params
111
- @params ||= Moonrope::ParamSet.new(rack_request.params['params'])
111
+ @params ||= begin
112
+ if @env['CONTENT_TYPE'] == 'application/json'
113
+ Moonrope::ParamSet.new(rack_request.body.read)
114
+ else
115
+ Moonrope::ParamSet.new(rack_request.params['params'])
116
+ end
117
+ end
112
118
  end
113
119
 
114
120
  #
@@ -1,3 +1,3 @@
1
1
  module Moonrope
2
- VERSION = '1.3.1'
2
+ VERSION = '1.3.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moonrope
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-26 00:00:00.000000000 Z
11
+ date: 2014-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json