nested 0.0.21 → 0.0.22

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 +2 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99b658c995d93d8b0dda8b3c9d37ad960ed05479
4
- data.tar.gz: 530220cfb3d7ea5009306e39c07ca8631abaf0fe
3
+ metadata.gz: 06cae830118c64588252a5ce8f980bc9e2d5b2bd
4
+ data.tar.gz: 9d5d0c70c41bc9493b164e9339634ce762e03fec
5
5
  SHA512:
6
- metadata.gz: 1e34af8825ff7696e5d8f16bda06e5f5084c01bb2d0aad3f9a5ea9154477394f7449a4a4c2e7796da53aca8f94f55a93cb51899606eaeebf99a9f5d9b321f50f
7
- data.tar.gz: d874154cb151c301db00cab8e6d895969068e2d1af7f772966005611602f396b50a7974d8d3a6e8d686a763d941aecfe9eae7bc15bbf01a796d25a143571dbf7
6
+ metadata.gz: 3f9d2bfe8f57c7c8c89d86d16906df6473e8ae8164120aa04fa2008c1909dad7fc26a66b6d1d3083e5d2101964af76ba890347906846b740755a309bd321f296
7
+ data.tar.gz: 93e50410c4fab8865e3880496ddb50a1887ebd90bc78b4ce7f569a27bcf10857d993ddef778c0d9b6823478dbed325052c3f41658e50d2731416ed266d7189ad
data/lib/nested.rb CHANGED
@@ -268,7 +268,7 @@ module Nested
268
268
  end
269
269
 
270
270
  def sinatra_response_create_data(sinatra, response, method)
271
- data = if response && collection? && method != :post
271
+ data = if response && (collection? || response.is_a?(Array)) && method != :post
272
272
  response.to_a.map{|e| sinatra.instance_exec(e, &@__serialize) }
273
273
  else
274
274
  sinatra.instance_exec(response, &@__serialize)
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.21"
3
+ s.version = "0.0.22"
4
4
 
5
5
  s.authors = ["Jan Zimmek"]
6
6
  s.email = %q{jan.zimmek@web.de}
@@ -18,4 +18,4 @@ Gem::Specification.new do |s|
18
18
  s.add_runtime_dependency "activerecord"
19
19
  s.add_runtime_dependency "sinatra"
20
20
  s.add_runtime_dependency "json"
21
- end
21
+ end
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.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Zimmek