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

ruby-changes:60571

From: David <ko1@a...>
Date: Mon, 30 Mar 2020 13:00:58 +0900 (JST)
Subject: [ruby-changes:60571] c16815cca7 (master): [rubygems/rubygems] Remove weird spacing from error messages

https://git.ruby-lang.org/ruby.git/commit/?id=c16815cca7

From c16815cca7c223698c11b4c520b75caeb0499f93 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Fri, 27 Mar 2020 13:49:55 +0100
Subject: [rubygems/rubygems] Remove weird spacing from error messages

https://github.com/rubygems/rubygems/commit/9e21fe7f58

diff --git a/test/rubygems/test_gem_source.rb b/test/rubygems/test_gem_source.rb
index fb53a89..caf969f 100644
--- a/test/rubygems/test_gem_source.rb
+++ b/test/rubygems/test_gem_source.rb
@@ -199,15 +199,15 @@ class TestGemSource < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_source.rb#L199
     installed = Gem::Source::Installed.new
     local     = Gem::Source::Local.new
 
-    assert_equal(0, remote.<=>(remote),    'remote    <=> remote')
+    assert_equal(0, remote.<=>(remote),    'remote <=> remote')
 
-    assert_equal(-1, remote.<=>(specific),  'remote    <=> specific')
-    assert_equal(1, specific.<=>(remote),    'specific  <=> remote')
+    assert_equal(-1, remote.<=>(specific),  'remote <=> specific')
+    assert_equal(1, specific.<=>(remote),    'specific <=> remote')
 
-    assert_equal(-1, remote.<=>(local),     'remote    <=> local')
-    assert_equal(1, local.<=>(remote),    'local     <=> remote')
+    assert_equal(-1, remote.<=>(local),     'remote <=> local')
+    assert_equal(1, local.<=>(remote),    'local <=> remote')
 
-    assert_equal(-1, remote.<=>(installed), 'remote    <=> installed')
+    assert_equal(-1, remote.<=>(installed), 'remote <=> installed')
     assert_equal(1, installed.<=>(remote),    'installed <=> remote')
 
     no_uri = @source.dup
diff --git a/test/rubygems/test_gem_source_git.rb b/test/rubygems/test_gem_source_git.rb
index cbfc057..f3cfcb9 100644
--- a/test/rubygems/test_gem_source_git.rb
+++ b/test/rubygems/test_gem_source_git.rb
@@ -208,16 +208,16 @@ class TestGemSourceGit < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_source_git.rb#L208
     installed = Gem::Source::Installed.new
     vendor    = Gem::Source::Vendor.new 'vendor/foo'
 
-    assert_equal(0, git.<=>(git),       'git    <=> git')
+    assert_equal(0, git.<=>(git),       'git <=> git')
 
-    assert_equal(1, git.<=>(remote),    'git    <=> remote')
+    assert_equal(1, git.<=>(remote),    'git <=> remote')
     assert_equal(-1, remote.<=>(git),       'remote <=> git')
 
-    assert_equal(1, git.<=>(installed), 'git       <=> installed')
+    assert_equal(1, git.<=>(installed), 'git <=> installed')
     assert_equal(-1, installed.<=>(git),       'installed <=> git')
 
-    assert_equal(-1, git.<=>(vendor),    'git       <=> vendor')
-    assert_equal(1, vendor.<=>(git),       'vendor    <=> git')
+    assert_equal(-1, git.<=>(vendor),    'git <=> vendor')
+    assert_equal(1, vendor.<=>(git),       'vendor <=> git')
   end
 
   def test_specs
diff --git a/test/rubygems/test_gem_source_installed.rb b/test/rubygems/test_gem_source_installed.rb
index 4440649..2530aa4 100644
--- a/test/rubygems/test_gem_source_installed.rb
+++ b/test/rubygems/test_gem_source_installed.rb
@@ -17,19 +17,19 @@ class TestGemSourceInstalled < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_source_installed.rb#L17
 
     assert_equal(0, installed.<=>(installed), 'installed <=> installed')
 
-    assert_equal(-1, remote.<=>(installed), 'remote    <=> installed')
+    assert_equal(-1, remote.<=>(installed), 'remote <=> installed')
     assert_equal(1, installed.<=>(remote),    'installed <=> remote')
 
     assert_equal(1, installed.<=>(local),     'installed <=> local')
-    assert_equal(-1, local.<=>(installed), 'local     <=> installed')
+    assert_equal(-1, local.<=>(installed), 'local <=> installed')
 
-    assert_equal(-1, specific.<=>(installed), 'specific  <=> installed')
+    assert_equal(-1, specific.<=>(installed), 'specific <=> installed')
     assert_equal(1, installed.<=>(specific),  'installed <=> specific')
 
-    assert_equal(1, git. <=>(installed), 'git       <=> installed')
+    assert_equal(1, git. <=>(installed), 'git <=> installed')
     assert_equal(-1, installed.<=>(git),       'installed <=> git')
 
-    assert_equal(1, vendor.<=>(installed), 'vendor    <=> installed')
+    assert_equal(1, vendor.<=>(installed), 'vendor <=> installed')
     assert_equal(-1, installed.<=>(vendor),    'installed <=> vendor')
   end
 
diff --git a/test/rubygems/test_gem_source_local.rb b/test/rubygems/test_gem_source_local.rb
index d23cb26..a58a3dd 100644
--- a/test/rubygems/test_gem_source_local.rb
+++ b/test/rubygems/test_gem_source_local.rb
@@ -93,16 +93,16 @@ class TestGemSourceLocal < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_source_local.rb#L93
     installed = Gem::Source::Installed.new
     local     = Gem::Source::Local.new
 
-    assert_equal(0, local.<=>(local),     'local     <=> local')
+    assert_equal(0, local.<=>(local),     'local <=> local')
 
-    assert_equal(-1, remote.<=>(local),     'remote    <=> local')
-    assert_equal(1, local.<=>(remote),    'local     <=> remote')
+    assert_equal(-1, remote.<=>(local),     'remote <=> local')
+    assert_equal(1, local.<=>(remote),    'local <=> remote')
 
     assert_equal(1, installed.<=>(local),     'installed <=> local')
-    assert_equal(-1, local.<=>(installed), 'local     <=> installed')
+    assert_equal(-1, local.<=>(installed), 'local <=> installed')
 
-    assert_equal(-1, specific.<=>(local),     'specific  <=> local')
-    assert_equal(1, local.<=>(specific),  'local     <=> specific')
+    assert_equal(-1, specific.<=>(local),     'specific <=> local')
+    assert_equal(1, local.<=>(specific),  'local <=> specific')
   end
 
 end
diff --git a/test/rubygems/test_gem_source_lock.rb b/test/rubygems/test_gem_source_lock.rb
index 4ab4fd9..5ceb5af 100644
--- a/test/rubygems/test_gem_source_lock.rb
+++ b/test/rubygems/test_gem_source_lock.rb
@@ -59,14 +59,14 @@ class TestGemSourceLock < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_source_lock.rb#L59
     lock = Gem::Source::Lock.new git
 
     assert_equal(1, lock.<=>(git),  'lock <=> git')
-    assert_equal(-1, git.<=>(lock), 'git  <=> lock')
+    assert_equal(-1, git.<=>(lock), 'git <=> lock')
   end
 
   def test_spaceship_installed
     installed = Gem::Source::Installed.new
     lock      = Gem::Source::Lock.new installed
 
-    assert_equal(1, lock.<=>(installed),  'lock      <=> installed')
+    assert_equal(1, lock.<=>(installed),  'lock <=> installed')
     assert_equal(-1, installed.<=>(lock),       'installed <=> lock')
   end
 
@@ -74,7 +74,7 @@ class TestGemSourceLock < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_source_lock.rb#L74
     local = Gem::Source::Local.new
     lock  = Gem::Source::Lock.new local # nonsense
 
-    assert_equal(1, lock.<=>(local), 'lock  <=> local')
+    assert_equal(1, lock.<=>(local), 'lock <=> local')
     assert_equal(-1, local.<=>(lock),  'local <=> lock')
   end
 
@@ -82,7 +82,7 @@ class TestGemSourceLock < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_source_lock.rb#L82
     remote = Gem::Source.new @gem_repo
     lock   = Gem::Source::Lock.new remote
 
-    assert_equal(1, lock.<=>(remote), 'lock   <=> remote')
+    assert_equal(1, lock.<=>(remote), 'lock <=> remote')
     assert_equal(-1, remote.<=>(lock),   'remote <=> lock')
   end
 
@@ -92,7 +92,7 @@ class TestGemSourceLock < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_source_lock.rb#L92
     specific = Gem::Source::SpecificFile.new gem
     lock     = Gem::Source::Lock.new specific # nonsense
 
-    assert_equal(1, lock.<=>(specific),  'lock     <=> specific')
+    assert_equal(1, lock.<=>(specific),  'lock <=> specific')
     assert_equal(-1, specific.<=>(lock),      'specific <=> lock')
   end
 
@@ -100,7 +100,7 @@ class TestGemSourceLock < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_source_lock.rb#L100
     vendor = Gem::Source::Vendor.new 'vendor/a'
     lock   = Gem::Source::Lock.new vendor
 
-    assert_equal(1, lock.<=>(vendor), 'lock   <=>    vendor')
+    assert_equal(1, lock.<=>(vendor), 'lock <=> vendor')
     assert_equal(-1, vendor.<=>(lock),   'vendor <=> lock')
   end
 
diff --git a/test/rubygems/test_gem_source_specific_file.rb b/test/rubygems/test_gem_source_specific_file.rb
index 8b91f0e..d73b0bf 100644
--- a/test/rubygems/test_gem_source_specific_file.rb
+++ b/test/rubygems/test_gem_source_specific_file.rb
@@ -46,15 +46,15 @@ class TestGemSourceSpecificFile < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_source_specific_file.rb#L46
     installed = Gem::Source::Installed.new
     local     = Gem::Source::Local.new
 
-    assert_equal(0, specific.<=>(specific),  'specific  <=> specific')
+    assert_equal(0, specific.<=>(specific),  'specific <=> specific')
 
-    assert_equal(-1, remote.<=>(specific),  'remote    <=> specific')
-    assert_equal(1, specific.<=>(remote),    'specific  <=> remote')
+    assert_equal(-1, remote.<=>(specific),  'remote <=> specific')
+    assert_equal(1, specific.<=>(remote),    'specific <=> remote')
 
-    assert_equal(-1, specific.<=>(local),     'specific  <=> local')
-    assert_equal(1, local.    <=>(specific),  'local     <=> specific')
+    assert_equal(-1, specific.<=>(local),     'specific <=> local')
+    assert_equal(1, local.    <=>(specific),  'local <=> specific')
 
-    assert_equal(-1, specific. <=>(installed), 'specific  <=> installed')
+    assert_equal(-1, specific. <=>(installed), 'specific <=> installed')
     assert_equal(1, installed.<=>(specific),  'installed <=> specific')
 
     a2 = quick_gem 'a', '2'
diff --git a/test/rubygems/test_gem_source_vendor.rb b/test/rubygems/test_gem_source_vendor.rb
index 116e397..2c5f728 100644
--- a/test/rubygems/test_gem_source_vendor.rb
+++ b/test/rubygems/test_gem_source (... truncated)

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

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