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

ruby-changes:52347

From: svn <ko1@a...>
Date: Mon, 27 Aug 2018 19:05:11 +0900 (JST)
Subject: [ruby-changes:52347] svn:r64556 (trunk): * remove trailing spaces.

svn	2018-08-27 19:05:06 +0900 (Mon, 27 Aug 2018)

  New Revision: 64556

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64556

  Log:
    * remove trailing spaces.

  Modified files:
    trunk/lib/rubygems/requirement.rb
    trunk/lib/rubygems/specification_policy.rb
    trunk/test/rubygems/test_gem_commands_install_command.rb
    trunk/test/rubygems/test_gem_commands_query_command.rb
    trunk/test/rubygems/test_gem_server.rb
    trunk/test/rubygems/test_gem_specification.rb
Index: test/rubygems/test_gem_server.rb
===================================================================
--- test/rubygems/test_gem_server.rb	(revision 64555)
+++ test/rubygems/test_gem_server.rb	(revision 64556)
@@ -377,9 +377,9 @@ class TestGemServer < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_server.rb#L377
     assert_equal 200, @res.status
     assert_match 'xsshomepagegem 1', @res.body
 
-    # This verifies that the homepage for this spec is not displayed and is set to ".", because it's not a 
+    # This verifies that the homepage for this spec is not displayed and is set to ".", because it's not a
     # valid HTTP/HTTPS URL and could be unsafe in an HTML context.  We would prefer to throw an exception here,
-    # but spec.homepage is currently free form and not currently required to be a URL, this behavior may be 
+    # but spec.homepage is currently free form and not currently required to be a URL, this behavior may be
     # validated in future versions of Gem::Specification.
     #
     # There are two variant we're checking here, one where rdoc is not present, and one where rdoc is present in the same regex:
@@ -432,9 +432,9 @@ class TestGemServer < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_server.rb#L432
     assert_equal 200, @res.status
     assert_match 'invalidhomepagegem 1', @res.body
 
-    # This verifies that the homepage for this spec is not displayed and is set to ".", because it's not a 
+    # This verifies that the homepage for this spec is not displayed and is set to ".", because it's not a
     # valid HTTP/HTTPS URL and could be unsafe in an HTML context.  We would prefer to throw an exception here,
-    # but spec.homepage is currently free form and not currently required to be a URL, this behavior may be 
+    # but spec.homepage is currently free form and not currently required to be a URL, this behavior may be
     # validated in future versions of Gem::Specification.
     #
     # There are two variant we're checking here, one where rdoc is not present, and one where rdoc is present in the same regex:
Index: test/rubygems/test_gem_commands_install_command.rb
===================================================================
--- test/rubygems/test_gem_commands_install_command.rb	(revision 64555)
+++ test/rubygems/test_gem_commands_install_command.rb	(revision 64556)
@@ -451,23 +451,23 @@ ERROR:  Possible alternatives: non_exist https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_commands_install_command.rb#L451
     specs = spec_fetcher do |fetcher|
       fetcher.gem 'a', 2
     end
-  
+
     Gem.done_installing(&Gem::RDoc.method(:generation_hook))
-  
+
     @cmd.options[:document] = %w[rdoc ri]
     @cmd.options[:domain] = :local
     @cmd.options[:install_dir] = 'whatever'
-  
+
     a2 = specs['a-2']
     FileUtils.mv a2.cache_file, @tempdir
-  
+
     @cmd.options[:args] = %w[a]
-  
+
     use_ui @ui do
       # Don't use Dir.chdir with a block, it warnings a lot because
       # of a downstream Dir.chdir with a block
       old = Dir.getwd
-  
+
       begin
         Dir.chdir @tempdir
         assert_raises Gem::MockGemUi::SystemExitException, @ui.error do
@@ -477,9 +477,9 @@ ERROR:  Possible alternatives: non_exist https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_commands_install_command.rb#L477
         Dir.chdir old
       end
     end
-  
+
     wait_for_child_process_to_exit
-  
+
     assert_path_exists 'whatever/doc/a-2', 'documentation not installed'
   end
 
Index: test/rubygems/test_gem_commands_query_command.rb
===================================================================
--- test/rubygems/test_gem_commands_query_command.rb	(revision 64555)
+++ test/rubygems/test_gem_commands_query_command.rb	(revision 64556)
@@ -11,7 +11,7 @@ module TestGemCommandsQueryCommandSetup https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_commands_query_command.rb#L11
     @specs = add_gems_to_fetcher
     @stub_ui = Gem::MockGemUi.new
     @stub_fetcher = Gem::FakeFetcher.new
-    
+
     @stub_fetcher.data["#{@gem_repo}Marshal.#{Gem.marshal_version}"] = proc do
       raise Gem::RemoteFetcher::FetchError
     end
Index: test/rubygems/test_gem_specification.rb
===================================================================
--- test/rubygems/test_gem_specification.rb	(revision 64555)
+++ test/rubygems/test_gem_specification.rb	(revision 64556)
@@ -1184,7 +1184,7 @@ dependencies: [] https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_specification.rb#L1184
     gem = 'mingw'
     v   = '1.1.1'
     platforms = ['x86-mingw32', 'x64-mingw32']
-    
+
     #create specs
     platforms.each do |plat|
       spec = Gem::Specification.new(gem, v) { |s| s.platform = plat }
Index: lib/rubygems/specification_policy.rb
===================================================================
--- lib/rubygems/specification_policy.rb	(revision 64555)
+++ lib/rubygems/specification_policy.rb	(revision 64556)
@@ -245,13 +245,13 @@ open-ended dependency on #{dep} is not r https://github.com/ruby/ruby/blob/trunk/lib/rubygems/specification_policy.rb#L245
 
   def validate_self_inclusion_in_files_list
     return unless files.include?(file_name)
-    
+
     error "#{full_name} contains itself (#{file_name}), check your files list"
   end
 
   def validate_specification_version
     return if specification_version.is_a?(Integer)
-    
+
     error 'specification_version must be an Integer (did you mean version?)'
   end
 
Index: lib/rubygems/requirement.rb
===================================================================
--- lib/rubygems/requirement.rb	(revision 64555)
+++ lib/rubygems/requirement.rb	(revision 64556)
@@ -284,7 +284,7 @@ class Gem::Requirement https://github.com/ruby/ruby/blob/trunk/lib/rubygems/requirement.rb#L284
   end
 
   def sort_requirements! # :nodoc:
-    @requirements.sort! do |l, r| 
+    @requirements.sort! do |l, r|
       comp = l.last <=> r.last # first, sort by the requirement's version
       next comp unless comp == 0
       l.first <=> r.first # then, sort by the operator (for stability)

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

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