virtualbox 0.7.0 → 0.7.1
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.
- data/VERSION +1 -1
- data/lib/virtualbox/forwarded_port.rb +2 -3
- data/lib/virtualbox/shared_folder.rb +1 -1
- data/virtualbox.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.1
|
@@ -112,7 +112,7 @@ module VirtualBox
|
|
112
112
|
#
|
113
113
|
# **This method typically won't be used except internally.**
|
114
114
|
def save_relationship(caller, data)
|
115
|
-
data.each do |fp|
|
115
|
+
data.dup.each do |fp|
|
116
116
|
fp.save
|
117
117
|
end
|
118
118
|
end
|
@@ -166,10 +166,9 @@ module VirtualBox
|
|
166
166
|
# @return [Boolean] True if command was successful, false otherwise.
|
167
167
|
def save
|
168
168
|
return true if !new_record? && !changed?
|
169
|
-
|
170
169
|
raise Exceptions::ValidationFailedException.new(errors) if !valid?
|
171
170
|
|
172
|
-
destroy if name_changed?
|
171
|
+
destroy if !new_record? && name_changed?
|
173
172
|
|
174
173
|
parent.extra_data["#{key_prefix}Protocol"] = protocol
|
175
174
|
parent.extra_data["#{key_prefix}GuestPort"] = guestport
|
data/virtualbox.gemspec
CHANGED