cloud_former 0.3.0 → 0.3.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f390c741a72a1ffd06c179e2367d5fd9b124be9c
|
4
|
+
data.tar.gz: cd679a0474e7a7cf68a45d4bc6eb4d185b8cd284
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 068bed558e1b29b2548773a90ce97b270d3157eb09632ae92c1b3e7c3c873676d09d0c42a02c26b2c7c13736dd30c8c930079d043fa52bdf7a060ed1bee53bee
|
7
|
+
data.tar.gz: c40b8b035e036583f6a2453c54ba3ab4a2fbd4c4264dfdeb05d2a7eae8fb0654935ed38250273466ccf525bf2738de198efe6e1249c08c9a723d9f80b4ce262a
|
@@ -54,7 +54,7 @@ module CloudFormer
|
|
54
54
|
define_method(name) do |val='!!!****noarggiven****!!!'|
|
55
55
|
if val != '!!!****noarggiven****!!!'
|
56
56
|
if options[:list] && !val.respond_to?(:each)
|
57
|
-
|
57
|
+
if (!val.respond_to?(:acts_as_list?) || !val.acts_as_list?) && options[:list] != :ok
|
58
58
|
raise ArgumentError.new(
|
59
59
|
"A list is required for #{name} in #{self.class.name}, but a #{val.class.name} was given."
|
60
60
|
)
|
@@ -63,8 +63,18 @@ module CloudFormer
|
|
63
63
|
|
64
64
|
if options[:list]
|
65
65
|
unless val.respond_to?(:acts_as_list?) && val.acts_as_list?
|
66
|
-
|
67
|
-
|
66
|
+
if options[:list] == :ok
|
67
|
+
if val.respond_to?(:each)
|
68
|
+
val.each do |item|
|
69
|
+
self.class.check_type_of_aws_value(item, options)
|
70
|
+
end
|
71
|
+
else
|
72
|
+
self.class.check_type_of_aws_value(val, options)
|
73
|
+
end
|
74
|
+
else
|
75
|
+
val.each do |item|
|
76
|
+
self.class.check_type_of_aws_value(item, options)
|
77
|
+
end
|
68
78
|
end
|
69
79
|
end
|
70
80
|
else
|
data/lib/cloud_former/version.rb
CHANGED