fog-hyperv 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/fog/collection.rb +2 -0
- data/lib/fog/hyperv/fog_extensions/enum.rb +0 -3
- data/lib/fog/hyperv/version.rb +1 -1
- 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: d413da26ba431799ba2942c0ed4581a7f60f4f40
|
4
|
+
data.tar.gz: c6157dfc48592586f7eb9d18a84aea7ddb99d564
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9534704bde262413503cbecf96604962b9656fe0d273219b5168cfa998c7596f8fa9104c9a504c8be7f7062831cce9e1aee1a0f001aa3dc12356187116823506
|
7
|
+
data.tar.gz: f3b7e93e5cb2d48af3d0de82e42952fe295aa02c7a6fb9c03d2b3658b133989b9a63638d5c419baa1660a009a9c4abae06314d80f00850835bcd7d3da029f89e
|
data/CHANGELOG.md
CHANGED
data/lib/fog/collection.rb
CHANGED
@@ -25,10 +25,8 @@ module Fog
|
|
25
25
|
# FIXME: Prepare a key comparison array in advance
|
26
26
|
if new_#{name}.is_a?(Fixnum)
|
27
27
|
if _values.class.to_s == 'Array' # TODO: Better way to do class comparison in generated code
|
28
|
-
puts "\#{_values} (\#{_values.class}) Is array"
|
29
28
|
raise Fog::Hyperv::Errors::ServiceError, "\#{new_#{name}} is not in the range (0..\#{_values.length - 1})" unless new_#{name} >= 0 && new_#{name} < _values.length
|
30
29
|
else
|
31
|
-
puts "\#{_values} (\#{_values.class}) Is not array"
|
32
30
|
raise Fog::Hyperv::Errors::ServiceError, "\#{new_#{name}} is not one of \#{_values.is_a?(Hash) ? _values.keys : _values})" unless (_values.is_a?(Hash) ? _values.keys : _values).include? new_#{name}
|
33
31
|
end
|
34
32
|
|
@@ -36,7 +34,6 @@ module Fog
|
|
36
34
|
elsif new_#{name}.nil?
|
37
35
|
attributes[:#{name}] = nil
|
38
36
|
else
|
39
|
-
puts "Is string"
|
40
37
|
new_#{name} = new_#{name}.to_s.to_sym unless new_#{name}.is_a? String
|
41
38
|
raise Fog::Hyperv::Errors::ServiceError, "\#{new_#{name}} is not one of \#{_values.is_a?(Hash) ? _values.keys : _values})" unless (_values.is_a?(Hash) ? _values.keys : _values).include? new_#{name}
|
42
39
|
attributes[:#{name}] = new_#{name}
|
data/lib/fog/hyperv/version.rb
CHANGED