From 6969043477575df3525725a9488be7b6a04ad8f3 Mon Sep 17 00:00:00 2001 From: drbrain Date: Fri, 30 Nov 2012 06:20:34 +0000 Subject: [PATCH] * lib/rubygems/package.rb: Load YAML for building gems. * test/rubygems/test_gem_commands_contents_command.rb: Sort expected output of default gem contents. Re-fixes r38004 and r38005. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ lib/rubygems/package.rb | 1 + test/rubygems/test_gem_commands_contents_command.rb | 12 ++++++------ 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index d4cba24ea9..e2e63054eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Nov 30 15:20:12 2012 Eric Hodel + + * lib/rubygems/package.rb: Load YAML for building gems. + * test/rubygems/test_gem_commands_contents_command.rb: Sort expected + output of default gem contents. Re-fixes r38004 and r38005. + Fri Nov 30 15:15:00 2012 Zachary Scott * vm_trace.c (set_trace_func): Formatting of params and events diff --git a/lib/rubygems/package.rb b/lib/rubygems/package.rb index 51df43be93..1769af061b 100644 --- a/lib/rubygems/package.rb +++ b/lib/rubygems/package.rb @@ -217,6 +217,7 @@ class Gem::Package # Builds this package based on the specification set by #spec= def build skip_validation = false + Gem.load_yaml require 'rubygems/security' @spec.validate unless skip_validation diff --git a/test/rubygems/test_gem_commands_contents_command.rb b/test/rubygems/test_gem_commands_contents_command.rb index 42e6053b21..60df53f53b 100644 --- a/test/rubygems/test_gem_commands_contents_command.rb +++ b/test/rubygems/test_gem_commands_contents_command.rb @@ -140,13 +140,13 @@ lib/foo.rb @cmd.execute end - expected = <<-EOF -#{Gem::ConfigMap[:bindir]}/default_command -#{Gem::ConfigMap[:rubylibdir]}/default/gem.rb -#{Gem::ConfigMap[:archdir]}/default_gem.so - EOF + expected = %W[ + #{Gem::ConfigMap[:bindir]}/default_command + #{Gem::ConfigMap[:rubylibdir]}/default/gem.rb + #{Gem::ConfigMap[:archdir]}/default_gem.so + ].sort.join "\n" - assert_equal expected, @ui.output + assert_equal expected, @ui.output.chomp assert_equal "", @ui.error end