summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-29 08:10:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-29 08:10:23 +0000
commitcf1d6730c1a850d885632477fb9f5463cc46035d (patch)
treec023bd44e0f66da6f3ed794adbc67913de9ff9a4
parent0a7d24cc5aa8d0066e123a9b0594ac6fba9ad60a (diff)
remove trainling spaces
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/rubygems/commands/yank_command.rb2
-rw-r--r--lib/rubygems/specification.rb4
-rw-r--r--test/rdoc/test_rdoc_options.rb4
-rw-r--r--test/rdoc/test_rdoc_parser_c.rb2
-rw-r--r--test/rdoc/test_rdoc_text.rb4
-rw-r--r--test/rubygems/test_gem_config_file.rb2
-rw-r--r--test/rubygems/test_gem_dependency_installer.rb4
-rw-r--r--test/rubygems/test_gem_package.rb2
-rw-r--r--test/rubygems/test_gem_version.rb2
-rw-r--r--vm_backtrace.c1
10 files changed, 13 insertions, 14 deletions
diff --git a/lib/rubygems/commands/yank_command.rb b/lib/rubygems/commands/yank_command.rb
index da0cf7a..df4142d 100644
--- a/lib/rubygems/commands/yank_command.rb
+++ b/lib/rubygems/commands/yank_command.rb
@@ -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
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb
index 1d290c8..d1f8e5e 100644
--- a/lib/rubygems/specification.rb
+++ b/lib/rubygems/specification.rb
@@ -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?
diff --git a/test/rdoc/test_rdoc_options.rb b/test/rdoc/test_rdoc_options.rb
index 7fa0c10..440c77b 100644
--- a/test/rdoc/test_rdoc_options.rb
+++ b/test/rdoc/test_rdoc_options.rb
@@ -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'))
diff --git a/test/rdoc/test_rdoc_parser_c.rb b/test/rdoc/test_rdoc_parser_c.rb
index f2e2473..e739476 100644
--- a/test/rdoc/test_rdoc_parser_c.rb
+++ b/test/rdoc/test_rdoc_parser_c.rb
@@ -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));
diff --git a/test/rdoc/test_rdoc_text.rb b/test/rdoc/test_rdoc_text.rb
index 78d5fde..473bd3c 100644
--- a/test/rdoc/test_rdoc_text.rb
+++ b/test/rdoc/test_rdoc_text.rb
@@ -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
diff --git a/test/rubygems/test_gem_config_file.rb b/test/rubygems/test_gem_config_file.rb
index ab6f87e..0781e16 100644
--- a/test/rubygems/test_gem_config_file.rb
+++ b/test/rubygems/test_gem_config_file.rb
@@ -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
diff --git a/test/rubygems/test_gem_dependency_installer.rb b/test/rubygems/test_gem_dependency_installer.rb
index c021568..01e28d1 100644
--- a/test/rubygems/test_gem_dependency_installer.rb
+++ b/test/rubygems/test_gem_dependency_installer.rb
@@ -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
diff --git a/test/rubygems/test_gem_package.rb b/test/rubygems/test_gem_package.rb
index a668f18..9768515 100644
--- a/test/rubygems/test_gem_package.rb
+++ b/test/rubygems/test_gem_package.rb
@@ -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
diff --git a/test/rubygems/test_gem_version.rb b/test/rubygems/test_gem_version.rb
index 4a7c223..da3b87d 100644
--- a/test/rubygems/test_gem_version.rb
+++ b/test/rubygems/test_gem_version.rb
@@ -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
diff --git a/vm_backtrace.c b/vm_backtrace.c
index de429ab..6a43fbf 100644
--- a/vm_backtrace.c
+++ b/vm_backtrace.c
@@ -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);