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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ed5d31f357458ac47e0fea4de39a228190de119
4
- data.tar.gz: 9b497df070f5e9eb8be89d62d2b722035dcab780
3
+ metadata.gz: 538ba6a4cbe421342e7575867c44c41da0d780cd
4
+ data.tar.gz: 77c5426d1d7966022d346563578eb1966c24fb91
5
5
  SHA512:
6
- metadata.gz: 2e9ddff44eebbd29203bb36644b91a7c8c0f36ad7c8c551429b1ecdb1930073d8d7de8a2a148821f79299e9e421882f16c0c87e2d2fa09138cb55a4fb29cfee6
7
- data.tar.gz: 6d39757e3076506730ad99544907cfc096cb12a9c405fc27185299366f01f21e357759cad029b4525d70f1534cb4e78e6aa92c2205abc9ddcc570f90a0242398
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 > 1
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)
@@ -1,3 +1,3 @@
1
1
  module GrapeApeRails
2
- VERSION = "0.9.4"
2
+ VERSION = "0.9.5"
3
3
  end
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
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-10 00:00:00.000000000 Z
11
+ date: 2015-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport