lib/beaker/platform.rb in beaker-2.29.1 vs lib/beaker/platform.rb in beaker-2.30.0

- old
+ new

@@ -108,7 +108,15 @@ # @return [String] the platform string with the platform version represented as a number def with_version_number [@variant, @version, @arch].join('-') end + if RUBY_VERSION =~ /^1\.9/ + def init_with(coder) + coder.map.each do |ivar, value| + instance_variable_set("@#{ivar}", value) + end + replace("#{@variant}-#{@version}-#{@arch}") + end + end end end