def gather_results(spec, output, result)
{
:arch => RbConfig::CONFIG["arch"],
:vendor => RbConfig::CONFIG["target_vendor"],
:os => RbConfig::CONFIG["target_os"],
:machine_arch => RbConfig::CONFIG["target_cpu"],
:name => spec.name,
:version => {
:release => spec.version.to_s,
:prerelease => spec.version.prerelease?
},
:platform => (Kernel.const_get("RUBY_ENGINE") rescue "ruby"),
:ruby_version => RUBY_VERSION,
:result => result,
:test_output => output,
:rubygems_test_version => VERSION
}.to_yaml
end