virtualbox 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.0
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
@@ -113,7 +113,7 @@ module VirtualBox
113
113
  #
114
114
  # **This method typically won't be used except internally.**
115
115
  def save_relationship(caller, items)
116
- items.each do |item|
116
+ items.dup.each do |item|
117
117
  item.save
118
118
  end
119
119
  end
data/virtualbox.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{virtualbox}
8
- s.version = "0.7.0"
8
+ s.version = "0.7.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mitchell Hashimoto"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 0
9
- version: 0.7.0
8
+ - 1
9
+ version: 0.7.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mitchell Hashimoto