class Bundler::RubygemsIntegration

def backport_yaml_initialize

This backport fixes the marshaling of @segments.
def backport_yaml_initialize
  redefine_method(Gem::Version, :yaml_initialize) do |tag, map|
    @version = map['version']
    @segments = nil
    @hash = nil
  end
end