1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2010-06-11 13:42:54 +00:00
parent 22ce9f81c3
commit 48c5afeba0
3 changed files with 10 additions and 5 deletions

View file

@ -1,3 +1,11 @@
Fri Jun 11 22:39:50 2010 Yusuke Endoh <mame@tsg.ne.jp>
* 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@fsij.org> Fri Jun 11 07:34:25 2010 Tanaka Akira <akr@fsij.org>
* time.c (find_time_t): test the result of LOCALTIME. * time.c (find_time_t): test the result of LOCALTIME.

View file

@ -59,8 +59,7 @@ module Gem::InstallUpdateOptions
end end
add_option(:"Install/Update", '-t', '--[no-]test', add_option(:"Install/Update", '-t', '--[no-]test',
'Run unit tests prior to installation') do |value, options| 'Ignored; just for compatiblity') do |value, options|
options[:test] = value
end end
add_option(:"Install/Update", '-w', '--[no-]wrappers', add_option(:"Install/Update", '-w', '--[no-]wrappers',
@ -110,7 +109,7 @@ module Gem::InstallUpdateOptions
# Default options for the gem install command. # Default options for the gem install command.
def install_update_defaults_str def install_update_defaults_str
'--rdoc --no-force --no-test --wrappers' '--rdoc --no-force --wrappers'
end end
end end

View file

@ -67,7 +67,6 @@ class TestGemCommandManager < RubyGemTestCase
check_options = nil check_options = nil
@command_manager.process_args( @command_manager.process_args(
"install --force --test --local --rdoc --install-dir . --version 3.0 --no-wrapper --bindir . ") "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[:generate_rdoc]
assert_equal true, check_options[:force] assert_equal true, check_options[:force]
assert_equal :local, check_options[:domain] assert_equal :local, check_options[:domain]
@ -197,7 +196,6 @@ class TestGemCommandManager < RubyGemTestCase
#check settings #check settings
check_options = nil check_options = nil
@command_manager.process_args("update --force --test --rdoc --install-dir .") @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[:generate_rdoc]
assert_equal true, check_options[:force] assert_equal true, check_options[:force]
assert_equal Dir.pwd, check_options[:install_dir] assert_equal Dir.pwd, check_options[:install_dir]