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 +4 -4
- data/lib/moonrope/request.rb +7 -1
- data/lib/moonrope/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80700af7c27546f50de0702ce8227eea82d83b2a
|
4
|
+
data.tar.gz: cc7a25be219939e46dc0d7b6c4df96de2737490a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 08e2fc6253306a690cde289ad1f177fa36bdb96e79f5122c97cb61fae4d01977cb4ea54069094b4ffad6eec81fff48f44dc234fa94daf3e997387646e7bed624
|
7
|
+
data.tar.gz: 52dd204932782283c9e82d2ba4bb5be34a6a8ed3aa17171aaf6cc8ca67172b29dbbca36efabb4cc111ffdcf255f2fd90523735c5b2c00c3ce71b3a45bdf1173f
|
data/lib/moonrope/request.rb
CHANGED
@@ -108,7 +108,13 @@ module Moonrope
|
|
108
108
|
# @return [Moonrope::ParamSet]
|
109
109
|
#
|
110
110
|
def params
|
111
|
-
@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
|
#
|
data/lib/moonrope/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|