summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-19 04:17:17 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-19 04:17:17 +0000
commit4993a1a814b0a3ec13ae68505e40329cbb1fdf3e (patch)
tree2eddef44c4bc2bf6b4d26d81bc9ebb4c99aec27b
parentb7dd8d07f6eab485ac3a08435b12058fd54690d3 (diff)
Finish removing code, (fixes sources command test).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/rubygems/commands/sources_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_sources_command.rb4
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 <drbrain@segment7.net>
+
+ * lib/rubygems/commands/sources_command.rb: Finish removing code,
+ (fixes sources command test).
+
Wed Jan 19 13:04:16 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* 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