grape_ape_rails 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/grape_ape_rails/handlers/formatters.rb +1 -1
- data/lib/grape_ape_rails/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: 538ba6a4cbe421342e7575867c44c41da0d780cd
|
4
|
+
data.tar.gz: 77c5426d1d7966022d346563578eb1966c24fb91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdfe5587170319a5b2ee41538b3b4ae1633499e0329e8cbf890d2cc8419c1c142d3fbbda84169e458f5c84d13f154deb051986ea5379987b3ca1e9b5147f3a60
|
7
|
+
data.tar.gz: 49668f635f052ffd13cfe046e7c0b220202b170e9f02f5f4791ff33f774e3f30c9693754b0fdc344c413de63c68b376a1734e89a42f83cde9ee39e02c15a0aac
|
@@ -37,7 +37,7 @@ module Grape
|
|
37
37
|
single = serializer.try(:resource_singular) || serializer.instance_variable_get(:@resource_name).try(:singularize) || serializer.instance_variable_get(:@object).class.name.underscore
|
38
38
|
plural = serializer.try(:resource_plural) || serializer.instance_variable_get(:@resource_name) || single.pluralize
|
39
39
|
|
40
|
-
return %Q[{\"result\":#{MultiJson.dump(serializer)}}] if [serializer.object].flatten.size >
|
40
|
+
return %Q[{\"result\":#{MultiJson.dump(serializer)}}] if [serializer.object].flatten.size > 0
|
41
41
|
|
42
42
|
serializer.root = false
|
43
43
|
out = serializer.object.try(:empty?) ? nil : MultiJson.dump(serializer)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grape_ape_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt E. Patterson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|