diff options
author | Terence Lee <hone02@gmail.com> | 2011-02-01 19:45:09 -0600 |
---|---|---|
committer | Terence Lee <hone02@gmail.com> | 2011-02-01 19:45:09 -0600 |
commit | a7927d1cddc15f3115ae341316197eeb53053b3a (patch) | |
tree | 4dde9333090334feade9c0618b6d6322c27c99fe /lib/bundler/rubygems_ext.rb | |
parent | facde9d8e86b4dd48ae7155c3fbe8f6597a084ff (diff) | |
parent | 2c9d47949444dc6f0216c096d9bfdedac95db630 (diff) | |
download | bundler-a7927d1cddc15f3115ae341316197eeb53053b3a.tar.gz |
Merge branch '1-0-stable'
Conflicts:
CHANGELOG.md
lib/bundler/version.rb
Diffstat (limited to 'lib/bundler/rubygems_ext.rb')
-rw-r--r-- | lib/bundler/rubygems_ext.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bundler/rubygems_ext.rb b/lib/bundler/rubygems_ext.rb index 29b12d79d4..f2c640c664 100644 --- a/lib/bundler/rubygems_ext.rb +++ b/lib/bundler/rubygems_ext.rb @@ -105,6 +105,12 @@ module Gem 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 |