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

remove trainling spaces

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-11-29 08:10:23 +00:00
parent 0a7d24cc5a
commit cf1d6730c1
10 changed files with 13 additions and 14 deletions

View file

@ -29,7 +29,7 @@ class Gem::Commands::YankCommand < Gem::Command
add_option('--undo') do |value, options|
options[:undo] = true
end
add_option('-k', '--key KEY_NAME',
'Use API key from your gem credentials file') do |value, options|
options[:key] = value

View file

@ -900,7 +900,7 @@ class Gem::Specification
spec.instance_eval { @specification_version ||= NONEXISTENT_SPECIFICATION_VERSION }
spec.reset_nil_attributes_to_default
spec
end
@ -2527,7 +2527,7 @@ class Gem::Specification
##
# Reset nil attributes to their default values to make the spec valid
def reset_nil_attributes_to_default
nil_attributes = self.class.non_nil_attributes.find_all do |name|
!instance_variable_defined?("@#{name}") || instance_variable_get("@#{name}").nil?

View file

@ -504,7 +504,7 @@ rdoc_include:
end
assert_equal 0, e.status
assert File.exist? '.rdoc_options'
end
ensure
@ -583,7 +583,7 @@ rdoc_include:
def test_write_options
temp_dir do |dir|
@options.write_options
assert File.exist? '.rdoc_options'
assert_equal @options, YAML.load(File.read('.rdoc_options'))

View file

@ -491,7 +491,7 @@ void Init_File(void) {
rb_include_module(rb_cIO, rb_mFConst);
/* Document-const: LOCK_SH
*
*
* Shared lock
*/
rb_file_const("LOCK_SH", INT2FIX(LOCK_SH));

View file

@ -153,7 +153,7 @@ The comments associated with
text = <<-TEXT
/*
* we don't worry too much.
*
*
* The comments associated with
*/
TEXT
@ -171,7 +171,7 @@ The comments associated with
text = <<-TEXT
/*
* we don't worry too much.
*
*
* The comments associated with
*/
TEXT

View file

@ -327,7 +327,7 @@ class TestGemConfigFile < Gem::TestCase
end
# Avoid writing stuff to output when running tests
Gem::ConfigFile.class_eval { def warn(args); end }
Gem::ConfigFile.class_eval { def warn(args); end }
# This should not raise exception
util_config_file

View file

@ -229,7 +229,7 @@ class TestGemDependencyInstaller < Gem::TestCase
FileUtils.mv @a1_gem, @tempdir
FileUtils.mv a2_gem, @tempdir # not in index
FileUtils.mv @b1_gem, @tempdir
FileUtils.mv a3_gem, @tempdir
FileUtils.mv a3_gem, @tempdir
inst = nil
@ -771,7 +771,7 @@ class TestGemDependencyInstaller < Gem::TestCase
set = inst.find_gems_with_sources(dep)
assert_kind_of Gem::AvailableSet, set
s = set.set.first
assert_equal @b1, s.spec

View file

@ -151,7 +151,7 @@ class TestGemPackage < Gem::Package::TarTestCase
reader = Gem::Package.new spec.file_name
assert_equal spec, reader.spec
assert_equal %w[metadata.gz data.tar.gz checksums.yaml.gz],
assert_equal %w[metadata.gz data.tar.gz checksums.yaml.gz],
reader.files
assert_equal %w[lib/code.rb], reader.contents

View file

@ -33,7 +33,7 @@ class TestGemVersion < Gem::TestCase
assert_same fake, Gem::Version.create(fake)
assert_nil Gem::Version.create(nil)
assert_equal v("5.1"), Gem::Version.create("5.1")
ver = '1.1'.freeze
assert_equal v('1.1'), Gem::Version.create(ver)
end

View file

@ -941,7 +941,6 @@ rb_debug_inspector_open(rb_debug_inspector_func_t func, void *data)
TH_POP_TAG();
/* invalidate bindings? */
if (state) {
JUMP_TAG(state);