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

ruby-changes:16307

From: mame <ko1@a...>
Date: Fri, 11 Jun 2010 22:49:26 +0900 (JST)
Subject: [ruby-changes:16307] Ruby:r28279 (trunk): * lib/rubygems/install_update_options.rb

mame	2010-06-11 22:42:54 +0900 (Fri, 11 Jun 2010)

  New Revision: 28279

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

  Log:
    * lib/rubygems/install_update_options.rb
      (Gem::InstallUpdateOptions#add_install_update_options): deprecate
      --test option which has not worked.  [ruby-core:21714]
    
    * test/rubygems/test_gem_command_manager.rb: ditto.

  Modified files:
    trunk/ChangeLog
    trunk/lib/rubygems/install_update_options.rb
    trunk/test/rubygems/test_gem_command_manager.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 28278)
+++ ChangeLog	(revision 28279)
@@ -1,3 +1,11 @@
+Fri Jun 11 22:39:50 2010  Yusuke Endoh  <mame@t...>
+
+	* lib/rubygems/install_update_options.rb
+	  (Gem::InstallUpdateOptions#add_install_update_options): deprecate
+	  --test option which has not worked.  [ruby-core:21714]
+	
+	* test/rubygems/test_gem_command_manager.rb: ditto.
+
 Fri Jun 11 07:34:25 2010  Tanaka Akira  <akr@f...>
 
 	* time.c (find_time_t): test the result of LOCALTIME.
Index: lib/rubygems/install_update_options.rb
===================================================================
--- lib/rubygems/install_update_options.rb	(revision 28278)
+++ lib/rubygems/install_update_options.rb	(revision 28279)
@@ -59,8 +59,7 @@
     end
 
     add_option(:"Install/Update", '-t', '--[no-]test',
-               'Run unit tests prior to installation') do |value, options|
-      options[:test] = value
+               'Ignored; just for compatiblity') do |value, options|
     end
 
     add_option(:"Install/Update", '-w', '--[no-]wrappers',
@@ -110,7 +109,7 @@
   # Default options for the gem install command.
 
   def install_update_defaults_str
-    '--rdoc --no-force --no-test --wrappers'
+    '--rdoc --no-force --wrappers'
   end
 
 end
Index: test/rubygems/test_gem_command_manager.rb
===================================================================
--- test/rubygems/test_gem_command_manager.rb	(revision 28278)
+++ test/rubygems/test_gem_command_manager.rb	(revision 28279)
@@ -67,7 +67,6 @@
       check_options = nil
       @command_manager.process_args(
         "install --force --test --local --rdoc --install-dir . --version 3.0 --no-wrapper --bindir . ")
-      assert_equal true, check_options[:test]
       assert_equal true, check_options[:generate_rdoc]
       assert_equal true, check_options[:force]
       assert_equal :local, check_options[:domain]
@@ -197,7 +196,6 @@
     #check settings
     check_options = nil
     @command_manager.process_args("update --force --test --rdoc --install-dir .")
-    assert_equal true, check_options[:test]
     assert_equal true, check_options[:generate_rdoc]
     assert_equal true, check_options[:force]
     assert_equal Dir.pwd, check_options[:install_dir]

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

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