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

ruby-changes:24699

From: nobu <ko1@a...>
Date: Tue, 21 Aug 2012 13:52:56 +0900 (JST)
Subject: [ruby-changes:24699] nobu:r36750 (trunk): remove trainling spaces.

nobu	2012-08-21 13:50:18 +0900 (Tue, 21 Aug 2012)

  New Revision: 36750

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36750

  Log:
    remove trainling spaces.

  Modified files:
    trunk/ChangeLog
    trunk/lib/cgi/util.rb
    trunk/lib/csv.rb
    trunk/lib/drb/drb.rb
    trunk/lib/forwardable.rb
    trunk/lib/ipaddr.rb
    trunk/lib/net/imap.rb
    trunk/lib/rubygems/commands/pristine_command.rb
    trunk/lib/webrick/httpstatus.rb
    trunk/test/csv/test_encodings.rb
    trunk/test/csv/test_features.rb
    trunk/test/date/test_switch_hitter.rb
    trunk/test/drb/test_drb.rb
    trunk/test/openssl/test_asn1.rb
    trunk/test/openssl/test_engine.rb
    trunk/test/openssl/test_pkcs12.rb
    trunk/test/openssl/test_pkcs7.rb
    trunk/test/openssl/test_pkey_ec.rb
    trunk/test/openssl/test_ssl.rb
    trunk/test/rake/test_rake_top_level_functions.rb
    trunk/test/ripper/test_files.rb
    trunk/test/rubygems/test_gem_commands_cleanup_command.rb
    trunk/test/rubygems/test_gem_silent_ui.rb
    trunk/test/rubygems/test_gem_uninstaller.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 36749)
+++ ChangeLog	(revision 36750)
@@ -9,7 +9,7 @@
 
 Tue Aug 21 10:40:06 2012  Koichi Sasada  <ko1@a...>
 
-	* test_continuation.rb (tracing_with_thread_set_trace_func): 
+	* test_continuation.rb (tracing_with_thread_set_trace_func):
 	  fix to use Thread#set_trace_func(nil), not set_trace_func(nil).
 
 Tue Aug 21 09:32:41 2012  Ryan Davis  <ryand-ruby@z...>
Index: lib/forwardable.rb
===================================================================
--- lib/forwardable.rb	(revision 36749)
+++ lib/forwardable.rb	(revision 36750)
@@ -177,7 +177,7 @@
 
   # Define +method+ as delegator instance method with an optional
   # alias name +ali+. Method calls to +ali+ will be delegated to
-  # +accessor.method+. 
+  # +accessor.method+.
   #
   #   class MyQueue
   #     extend Forwardable
@@ -185,7 +185,7 @@
   #     def initialize
   #       @queue = []
   #     end
-  #     
+  #
   #     def_delegator :@queue, :push, :mypush
   #   end
   #
Index: lib/webrick/httpstatus.rb
===================================================================
--- lib/webrick/httpstatus.rb	(revision 36749)
+++ lib/webrick/httpstatus.rb	(revision 36750)
@@ -27,13 +27,13 @@
       class << self
         attr_reader :code, :reason_phrase # :nodoc:
       end
-      
+
       # Returns the HTTP status code
       def code() self::class::code end
-      
+
       # Returns the HTTP status description
       def reason_phrase() self::class::reason_phrase end
-      
+
       alias to_i code # :nodoc:
     end
 
@@ -146,31 +146,31 @@
     def info?(code)
       code.to_i >= 100 and code.to_i < 200
     end
-    
+
     ##
     # Is +code+ a successful status?
     def success?(code)
       code.to_i >= 200 and code.to_i < 300
     end
-    
+
     ##
     # Is +code+ a redirection status?
     def redirect?(code)
       code.to_i >= 300 and code.to_i < 400
     end
-    
+
     ##
     # Is +code+ an error status?
     def error?(code)
       code.to_i >= 400 and code.to_i < 600
     end
-    
+
     ##
     # Is +code+ a client error status?
     def client_error?(code)
       code.to_i >= 400 and code.to_i < 500
     end
-    
+
     ##
     # Is +code+ a server error status?
     def server_error?(code)
Index: lib/rubygems/commands/pristine_command.rb
===================================================================
--- lib/rubygems/commands/pristine_command.rb	(revision 36749)
+++ lib/rubygems/commands/pristine_command.rb	(revision 36750)
@@ -96,7 +96,7 @@
       # TODO use installer options
       install_defaults = Gem::ConfigFile::PLATFORM_DEFAULTS['install']
       installer_env_shebang = install_defaults.to_s['--env-shebang']
-      
+
       installer = Gem::Installer.new(gem,
                                      :wrappers => true,
                                      :force => true,
Index: lib/csv.rb
===================================================================
--- lib/csv.rb	(revision 36749)
+++ lib/csv.rb	(revision 36750)
@@ -2342,8 +2342,8 @@
 
   private
 
-  # 
-  # Returns the encoding of the internal IO object or the +default+ if the 
+  #
+  # Returns the encoding of the internal IO object or the +default+ if the
   # encoding cannot be determined.
   #
   def raw_encoding(default = Encoding::ASCII_8BIT)
Index: lib/ipaddr.rb
===================================================================
--- lib/ipaddr.rb	(revision 36749)
+++ lib/ipaddr.rb	(revision 36750)
@@ -392,7 +392,7 @@
     return self
   end
 
-  # Set current netmask to given mask. 
+  # Set current netmask to given mask.
   def mask!(mask)
     if mask.kind_of?(String)
       if mask =~ /^\d+$/
@@ -626,7 +626,7 @@
 
     # Returns a +String+ based representation of a valid DNS hostname,
     # IPv4 or IPv6 address.
-    # 
+    #
     #   IPSocket.getaddress 'localhost'         #=> "::1"
     #   IPSocket.getaddress 'broadcasthost'     #=> "255.255.255.255"
     #   IPSocket.getaddress 'www.ruby-lang.org' #=> "221.186.184.68"
Index: lib/cgi/util.rb
===================================================================
--- lib/cgi/util.rb	(revision 36749)
+++ lib/cgi/util.rb	(revision 36750)
@@ -91,7 +91,7 @@
   def CGI::escape_html(str)
     escapeHTML(str)
   end
-  
+
   # Synonym for CGI::unescapeHTML(str)
   def CGI::unescape_html(str)
     unescapeHTML(str)
@@ -145,7 +145,7 @@
   def CGI::escape_element(str)
     escapeElement(str)
   end
-  
+
   # Synonym for CGI::unescapeElement(str)
   def CGI::unescape_element(str)
     unescapeElement(str)
Index: lib/net/imap.rb
===================================================================
--- lib/net/imap.rb	(revision 36749)
+++ lib/net/imap.rb	(revision 36750)
@@ -299,7 +299,7 @@
     def self.default_port
       return PORT
     end
-    
+
     # The default port for IMAPS connections, port 993
     def self.default_tls_port
       return SSL_PORT
@@ -1140,7 +1140,7 @@
         @tagged_response_arrival.broadcast
         @continuation_request_arrival.broadcast
         if @idle_done_cond
-          @idle_done_cond.signal 
+          @idle_done_cond.signal
         end
       end
     end
Index: lib/drb/drb.rb
===================================================================
--- lib/drb/drb.rb	(revision 36749)
+++ lib/drb/drb.rb	(revision 36750)
@@ -1382,7 +1382,7 @@
     def alive?
       @thread.alive?
     end
-    
+
     def here?(uri)
       @exported_uri.include?(uri)
     end
Index: test/rake/test_rake_top_level_functions.rb
===================================================================
--- test/rake/test_rake_top_level_functions.rb	(revision 36749)
+++ test/rake/test_rake_top_level_functions.rb	(revision 36750)
@@ -23,7 +23,7 @@
   def test_namespace
     block = proc do end
 
-    namespace("xyz", &block) 
+    namespace("xyz", &block)
 
     expected = [
       [[:in_namespace, 'xyz'], block]
Index: test/openssl/test_pkey_ec.rb
===================================================================
--- test/openssl/test_pkey_ec.rb	(revision 36749)
+++ test/openssl/test_pkey_ec.rb	(revision 36750)
@@ -119,7 +119,7 @@
       assert_equal(a, b)
     end
   end
-  
+
   def test_read_private_key_der
     ec = OpenSSL::TestUtils::TEST_KEY_EC_P256V1
     der = ec.to_der
Index: test/openssl/test_pkcs7.rb
===================================================================
--- test/openssl/test_pkcs7.rb	(revision 36749)
+++ test/openssl/test_pkcs7.rb	(revision 36750)
@@ -146,7 +146,7 @@
     assert_equal(3, recip[1].serial)
     assert_equal(data, p7.decrypt(@rsa1024, @ee2_cert))
   end
-  
+
   def test_graceful_parsing_failure #[ruby-core:43250]
     contents = File.read(__FILE__)
     assert_raise(ArgumentError) { OpenSSL::PKCS7.new(contents) }
Index: test/openssl/test_ssl.rb
===================================================================
--- test/openssl/test_ssl.rb	(revision 36749)
+++ test/openssl/test_ssl.rb	(revision 36750)
@@ -412,7 +412,7 @@
   # SSL/TLS version that has been marked as forbidden, therefore either of
   # these may be raised
   FORBIDDEN_PROTOCOL_ERRORS = [OpenSSL::SSL::SSLError, Errno::ECONNRESET]
-  
+
 if OpenSSL::SSL::SSLContext::METHODS.include? :TLSv1
 
   def test_forbid_ssl_v3_for_client
@@ -515,7 +515,7 @@
       }
     }
   end
-  
+
   private
 
   def start_server_version(version, ctx_proc=nil, server_proc=nil, &blk)
@@ -524,11 +524,11 @@
       ctx_proc.call(ctx) if ctx_proc
     }
     start_server(
-      PORT, 
-      OpenSSL::SSL::VERIFY_NONE, 
-      true, 
-      :ctx_proc => ctx_wrap, 
-      :server_proc => server_proc, 
+      PORT,
+      OpenSSL::SSL::VERIFY_NONE,
+      true,
+      :ctx_proc => ctx_wrap,
+      :server_proc => server_proc,
       &blk
     )
   end
Index: test/openssl/test_asn1.rb
===================================================================
--- test/openssl/test_asn1.rb	(revision 36749)
+++ test/openssl/test_asn1.rb	(revision 36750)
@@ -200,7 +200,7 @@
 
   def test_encode_nil
     m = OpenSSL::ASN1
-    [ 
+    [
       m::Boolean, m::Integer, m::BitString, m::OctetString,
       m::ObjectId, m::Enumerated, m::UTF8String, m::UTCTime,
       m::GeneralizedTime, m::Sequence, m::Set
Index: test/openssl/test_pkcs12.rb
===================================================================
--- test/openssl/test_pkcs12.rb	(revision 36749)
+++ test/openssl/test_pkcs12.rb	(revision 36750)
@@ -16,7 +16,7 @@
         ["subjectKeyIdentifier","hash",false],
         ["authorityKeyIdentifier","keyid:always",false],
       ]
-      
+
       @cacert = issue_cert(ca, TEST_KEY_RSA2048, 1, now, now+3600, ca_exts,
                             nil, nil, OpenSSL::Digest::SHA1.new)
 
@@ -108,7 +108,7 @@
       assert_equal chain.size, decoded.ca_certs.size
       assert_include_cert @cacert, decoded.ca_certs
       assert_include_cert @inter_cacert, decoded.ca_certs
-      assert_cert @mycert, decoded.certificate 
+      assert_cert @mycert, decoded.certificate
       assert_equal TEST_KEY_RSA1024.to_der, decoded.key.to_der
     end
 
Index: test/openssl/test_engine.rb
===================================================================
--- test/openssl/test_engine.rb	(revision 36749)
+++ test/openssl/test_engine.rb	(revision 36750)
@@ -56,7 +56,7 @@
       $stderr.reopen(err_back)
       err_back.close
     end
-  end 
+  end
 
   private
 
Index: test/rubygems/test_gem_uninstaller.rb
===================================================================
--- test/rubygems/test_gem_uninstaller.rb	(revision 36749)
+++ test/rubygems/test_gem_uninstaller.rb	(revision 36750)
@@ -220,7 +220,7 @@
 
   def test_uninstall_selection_greater_than_one
     util_make_gems
-    
+
     list = Gem::Specification.find_all_by_name('a')
 
     uninstaller = Gem::Uninstaller.new('a')
Index: test/rubygems/test_gem_commands_cleanup_command.rb
===================================================================
--- test/rubygems/test_gem_commands_cleanup_command.rb	(revision 36749)
+++ test/rubygems/test_gem_commands_cleanup_command.rb	(revision 36750)
@@ -2,7 +2,7 @@
 require 'rubygems/commands/cleanup_command'
 
 class TestGemCommandsCleanupCommand < Gem::TestCase
-  
+
   def setup
     super
 
Index: test/rubygems/test_gem_silent_ui.rb
===================================================================
--- test/rubygems/test_gem_silent_ui.rb	(revision 36749)
+++ test/rubygems/test_gem_silent_ui.rb	(revision 36750)
@@ -49,7 +49,7 @@
 
     assert_empty out, 'No output'
     assert_empty err, 'No output'
-    
+
     out, err = capture_io do
       use_ui @sui do
         value = @sui.ask_yes_no 'Problem?', true
@@ -60,7 +60,7 @@
     assert_empty err, 'No output'
 
     assert value, 'Value is true'
-    
+
     out, err = capture_io do
       use_ui @sui do
         value = @sui.ask_yes_no 'Problem?', false
Index: test/date/test_switch_hitter.rb
===================================================================
--- test/date/test_switch_hitter.rb	(revision 36749)
+++ test/date/test_switch_hitter.rb	(revision 36750)
@@ -292,7 +292,7 @@
       Date.today.strftime('%100000z')
     end
     assert_raise(Errno::ERANGE) do
-      Date.new(1 << 10000).strftime('%Y') 
+      Date.new(1 << 10000).strftime('%Y')
     end
     assert_equal('-3786825600', Date.new(1850).strftime('%s'))
     assert_equal('-3786825600000', Date.new(1850).strftime('%Q'))
Index: test/csv/test_features.rb
===================================================================
--- test/csv/test_features.rb	(revision 36749)
+++ test/csv/test_features.rb	(revision 36750)
@@ -274,13 +274,13 @@
     assert(CSV::VERSION.frozen?)
     assert_match(/\A\d\.\d\.\d\Z/, CSV::VERSION)
   end
-  
+
   def test_accepts_comment_skip_lines_option
     assert_nothing_raised(ArgumentError) do
       CSV.new nil, :skip_lines => /\A\s*#/
     end
   end
-  
+
   def test_accepts_comment_defaults_to_nil
     c = CSV.new nil
     assert_equal c.skip_lines, nil
Index: test/csv/test_encodings.rb
===================================================================
--- test/csv/test_encodings.rb	(revision 36749)
+++ test/csv/test_encodings.rb	(revision 36750)
@@ -329,7 +329,7 @@
       yield encoding
     end
   end
-  
+
   def no_warnings
     old_verbose, $VERBOSE = $VERBOSE, nil
     yield
Index: test/ripper/test_files.rb
===================================================================
--- test/ripper/test_files.rb	(revision 36749)
+++ test/ripper/test_files.rb	(revision 36750)
@@ -16,7 +16,7 @@
     SCANNER_EVENTS.each {|n| eval "def on_#{n}(*args) r = [:#{n}, *args]; r.inspect; Object.new end" }
   end
 
-  TEST_RATIO = 0.05 # testing all files needs too long time... 
+  TEST_RATIO = 0.05 # testing all files needs too long time...
 
   def capture_stderr
     err = StringIO.new
Index: test/drb/test_drb.rb
===================================================================
--- test/drb/test_drb.rb	(revision 36749)
+++ test/drb/test_drb.rb	(revision 36750)
@@ -310,7 +310,7 @@
   def teardown
     @ext.stop_service if @ext
   end
-  
+
   def test_bug4409
     foo = @there.foo
     assert(@there.foo?(foo))

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

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