* lib/rubygems, test/rubygems: properties.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-06-01 04:05:03 +00:00
Родитель d22130922e
Коммит b204eabf05
6 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -50,7 +50,7 @@ class Gem::Commands::ServerCommand < Gem::Command
options[:addresses].push(*address) options[:addresses].push(*address)
end end
add_option '-l', '--launch[=COMMAND]', add_option '-l', '--launch[=COMMAND]',
'launches a browser window', 'launches a browser window',
"COMMAND defaults to 'start' on Windows", "COMMAND defaults to 'start' on Windows",
"and 'open' on all other platforms" do |launch, options| "and 'open' on all other platforms" do |launch, options|

Просмотреть файл

@ -19,7 +19,7 @@ class Gem::Ext::Builder
def self.make(dest_path, results) def self.make(dest_path, results)
unless File.exist? 'Makefile' then unless File.exist? 'Makefile' then
raise Gem::InstallError, "Makefile not found:\n\n#{results.join "\n"}" raise Gem::InstallError, "Makefile not found:\n\n#{results.join "\n"}"
end end
mf = File.read('Makefile') mf = File.read('Makefile')

Просмотреть файл

@ -236,7 +236,7 @@ class Gem::Package::TarWriter
name = newname name = newname
if name.size > 100 or prefix.size > 155 then if name.size > 100 or prefix.size > 155 then
raise Gem::Package::TooLongFileName raise Gem::Package::TooLongFileName
end end
end end

Просмотреть файл

@ -8,7 +8,7 @@ require 'rubygems/test_case'
require 'rubygems/commands/cleanup_command' require 'rubygems/commands/cleanup_command'
class TestGemCommandsCleanupCommand < Gem::TestCase class TestGemCommandsCleanupCommand < Gem::TestCase
def setup def setup
super super

Просмотреть файл

@ -55,7 +55,7 @@ class TestGemSilentUI < Gem::TestCase
assert_empty out, 'No output' assert_empty out, 'No output'
assert_empty err, 'No output' assert_empty err, 'No output'
out, err = capture_io do out, err = capture_io do
use_ui @sui do use_ui @sui do
value = @sui.ask_yes_no 'Problem?', true value = @sui.ask_yes_no 'Problem?', true
@ -66,7 +66,7 @@ class TestGemSilentUI < Gem::TestCase
assert_empty err, 'No output' assert_empty err, 'No output'
assert value, 'Value is true' assert value, 'Value is true'
out, err = capture_io do out, err = capture_io do
use_ui @sui do use_ui @sui do
value = @sui.ask_yes_no 'Problem?', false value = @sui.ask_yes_no 'Problem?', false

Просмотреть файл

@ -216,7 +216,7 @@ class TestGemUninstaller < Gem::InstallerTestCase
def test_uninstall_selection_greater_than_one def test_uninstall_selection_greater_than_one
util_make_gems util_make_gems
list = Gem::Specification.find_all_by_name('a') list = Gem::Specification.find_all_by_name('a')
uninstaller = Gem::Uninstaller.new('a') uninstaller = Gem::Uninstaller.new('a')