nested 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nested.rb +1 -1
  3. data/nested.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49bb517e6971a0a86442877831128da5bba7655d
4
- data.tar.gz: 02518d037ff5a282f2617d78aed2c6cdf93b7624
3
+ metadata.gz: 1da30913da1721509e3310efdcf6fb168f66cba2
4
+ data.tar.gz: b0651cc3cee6b4f23c1477d9a9e5cb41cca3c0f1
5
5
  SHA512:
6
- metadata.gz: f9aa03054fc3fcb2dd7cfbe8ac8f91442b37dde54976e865ca43ddc05681117a70cf9b24fd0eb254b9ffd652267c8f180619a839173cb1315df4c4a5dbd58637
7
- data.tar.gz: 41ce15bbd4beb3000ce43bb56172f20843a9509872d0b1b0b9b8c65b23b3938228c4f1a91de01a5b094aa8a60e296eed39e3cf3450b8f90ba94be059fba05626
6
+ metadata.gz: 3c5fa1babd027eca810e0cf89c2da126bb88fc9ace44082040e6baf121dd212b063cab71eae249aeaeb33d1cf9a7548d26974616b0551228fce0e4a3be8039d0
7
+ data.tar.gz: ba7ed143ec326111981a03c361bd80b531a6de237f3ac660045f694cbf18bab9dd159a045db1f8e55725717d36ba445803d76669280f6e586a23ad88a0e6ac52
data/lib/nested.rb CHANGED
@@ -228,7 +228,7 @@ module Nested
228
228
  end
229
229
 
230
230
  def sinatra_response_create_data(sinatra, response)
231
- data = if response.respond_to?(:to_a)
231
+ data = if response && collection?
232
232
  response.to_a.map{|e| serializer.call(e, sinatra, self)}
233
233
  else
234
234
  serializer.call(response, sinatra, self)
data/nested.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "nested"
3
- s.version = "0.0.6"
3
+ s.version = "0.0.7"
4
4
 
5
5
  s.authors = ["Jan Zimmek"]
6
6
  s.email = %q{jan.zimmek@web.de}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nested
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Zimmek