lib/bundler/rubygems_ext.rb in bundler-1.1.pre vs lib/bundler/rubygems_ext.rb in bundler-1.1.pre.1
- old
+ new
@@ -103,9 +103,15 @@
class Dependency
attr_accessor :source, :groups
alias eql? ==
+ def encode_with(coder)
+ to_yaml_properties.each do |ivar|
+ coder[ivar.to_s.sub(/^@/, '')] = instance_variable_get(ivar)
+ end
+ end
+
def to_yaml_properties
instance_variables.reject { |p| ["@source", "@groups"].include?(p.to_s) }
end
def to_lock