From 4993a1a814b0a3ec13ae68505e40329cbb1fdf3e Mon Sep 17 00:00:00 2001 From: drbrain Date: Wed, 19 Jan 2011 04:17:17 +0000 Subject: Finish removing code, (fixes sources command test). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/rubygems/commands/sources_command.rb | 6 ------ test/rubygems/test_gem_commands_sources_command.rb | 4 ---- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2d9b354a41..a4b9701183 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Jan 19 13:16:05 2011 Eric Hodel + + * lib/rubygems/commands/sources_command.rb: Finish removing code, + (fixes sources command test). + Wed Jan 19 13:04:16 2011 KOSAKI Motohiro * proc.c (proc_call): Add gc guard to avoid segfault. The fix diff --git a/lib/rubygems/commands/sources_command.rb b/lib/rubygems/commands/sources_command.rb index 7e04379bf4..ce483c0b5e 100644 --- a/lib/rubygems/commands/sources_command.rb +++ b/lib/rubygems/commands/sources_command.rb @@ -64,12 +64,6 @@ class Gem::Commands::SourcesCommand < Gem::Command else say "*** Unable to remove source cache ***" end - - sic = Gem::SourceInfoCache - remove_cache_file 'user', sic.user_cache_file - remove_cache_file 'latest user', sic.latest_user_cache_file - remove_cache_file 'system', sic.system_cache_file - remove_cache_file 'latest system', sic.latest_system_cache_file end if options[:add] then diff --git a/test/rubygems/test_gem_commands_sources_command.rb b/test/rubygems/test_gem_commands_sources_command.rb index 5930e2a9b7..718a0709dc 100644 --- a/test/rubygems/test_gem_commands_sources_command.rb +++ b/test/rubygems/test_gem_commands_sources_command.rb @@ -137,10 +137,6 @@ beta-gems.example.com is not a URI expected = <<-EOF *** Removed specs cache *** -*** Removed user source cache *** -*** Removed latest user source cache *** -*** Removed system source cache *** -*** Removed latest system source cache *** EOF assert_equal expected, @ui.output -- cgit v1.2.3