[前][次][番号順一覧][スレッド一覧]

ruby-changes:18579

From: drbrain <ko1@a...>
Date: Wed, 19 Jan 2011 13:23:20 +0900 (JST)
Subject: [ruby-changes:18579] Ruby:r30603 (trunk): Finish removing code, (fixes sources command test).

drbrain	2011-01-19 13:17:17 +0900 (Wed, 19 Jan 2011)

  New Revision: 30603

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30603

  Log:
    Finish removing code, (fixes sources command test).

  Modified files:
    trunk/ChangeLog
    trunk/lib/rubygems/commands/sources_command.rb
    trunk/test/rubygems/test_gem_commands_sources_command.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 30602)
+++ ChangeLog	(revision 30603)
@@ -1,3 +1,8 @@
+Wed Jan 19 13:16:05 2011  Eric Hodel  <drbrain@s...>
+
+	* lib/rubygems/commands/sources_command.rb: Finish removing code,
+	  (fixes sources command test).
+
 Wed Jan 19 13:04:16 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* proc.c (proc_call): Add gc guard to avoid segfault. The fix
Index: lib/rubygems/commands/sources_command.rb
===================================================================
--- lib/rubygems/commands/sources_command.rb	(revision 30602)
+++ lib/rubygems/commands/sources_command.rb	(revision 30603)
@@ -64,12 +64,6 @@
       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
Index: test/rubygems/test_gem_commands_sources_command.rb
===================================================================
--- test/rubygems/test_gem_commands_sources_command.rb	(revision 30602)
+++ test/rubygems/test_gem_commands_sources_command.rb	(revision 30603)
@@ -137,10 +137,6 @@
 
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]