nested 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nested.rb +1 -1
- data/nested.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06cae830118c64588252a5ce8f980bc9e2d5b2bd
|
4
|
+
data.tar.gz: 9d5d0c70c41bc9493b164e9339634ce762e03fec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|