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

ruby-changes:60568

From: David <ko1@a...>
Date: Mon, 30 Mar 2020 13:00:57 +0900 (JST)
Subject: [ruby-changes:60568] 4cd90c7bc0 (master): [rubygems/rubygems] Remove weird spacing between receiver and method

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

From 4cd90c7bc01a128f239fe9329e05ae774429286d 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:17 +0100
Subject: [rubygems/rubygems] Remove weird spacing between receiver and method

https://github.com/rubygems/rubygems/commit/d45cd34a67

diff --git a/test/rubygems/test_gem_source.rb b/test/rubygems/test_gem_source.rb
index 30b45ea..fb53a89 100644
--- a/test/rubygems/test_gem_source.rb
+++ b/test/rubygems/test_gem_source.rb
@@ -199,30 +199,30 @@ 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
     no_uri.instance_variable_set :@uri, nil
 
-    assert_equal(-1, remote.   <=>(no_uri),    'remote <=> no_uri')
+    assert_equal(-1, remote.<=>(no_uri),    'remote <=> no_uri')
   end
 
   def test_spaceship_order_is_preserved_when_uri_differs
     sourceA = Gem::Source.new "http://example.com/a"
     sourceB = Gem::Source.new "http://example.com/b"
 
-    assert_equal(0, sourceA. <=>(sourceA), 'sourceA <=> sourceA')
-    assert_equal(1, sourceA. <=>(sourceB), 'sourceA <=> sourceB')
-    assert_equal(1, sourceB. <=>(sourceA), 'sourceB <=> sourceA')
+    assert_equal(0, sourceA.<=>(sourceA), 'sourceA <=> sourceA')
+    assert_equal(1, sourceA.<=>(sourceB), 'sourceA <=> sourceB')
+    assert_equal(1, sourceB.<=>(sourceA), 'sourceB <=> sourceA')
   end
 
   def test_update_cache_eh
diff --git a/test/rubygems/test_gem_source_git.rb b/test/rubygems/test_gem_source_git.rb
index 22fbdee..cbfc057 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, remote.   <=>(git),       'remote <=> git')
+    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 b4a75d8..4440649 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 2f796f0..d23cb26 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 953941b..4ab4fd9 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 9e4ebaa..8b91f0e 100644
--- a/test/rubygems/test_gem_source_specific_file.rb
+++ b/test/rubygems/test_gem_source_specific_file.rb
@@ -46,12 +46,12 @@ 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.<=>(spe (... truncated)

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

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