roda-component 0.1.31 → 0.1.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/roda/component/version.rb +1 -1
- data/lib/roda/plugins/component.rb +2 -5
- 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: ebd6f0139e53a87721af0a4243f0bf8f7204c006
|
4
|
+
data.tar.gz: 8687918303e9219d7e27b63ec095137ab9955919
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a4c6fc2ebf51ca861d11d4d8313ff7d5c16e9f4a7f56712c9f66b4e2240608faff849399fd75598af9e753a87f24e73ff6754463ef5d255e346cb4591928d0a
|
7
|
+
data.tar.gz: b9e1b5ef676984dd8fca2a218bffd45138f95cb50023beaa58955c970cb2b205c7cf474d0e5f0c4dc52ef742d19e47a1f0d0bd92a68005359affb5de7f32c864
|
@@ -235,11 +235,8 @@ class Roda
|
|
235
235
|
end
|
236
236
|
|
237
237
|
on self.class.component_route_regex do |comp, type, action|
|
238
|
-
|
239
|
-
|
240
|
-
else
|
241
|
-
data = {}
|
242
|
-
end
|
238
|
+
body = scope.request.body.read
|
239
|
+
data = body ? JSON.parse(body) : {}
|
243
240
|
|
244
241
|
if data.is_a? Array
|
245
242
|
data = {args: data}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roda-component
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|