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

ruby-changes:29822

From: nobu <ko1@a...>
Date: Wed, 10 Jul 2013 08:42:01 +0900 (JST)
Subject: [ruby-changes:29822] nobu:r41874 (trunk): * remove trailing spaces.

nobu	2013-07-10 08:41:44 +0900 (Wed, 10 Jul 2013)

  New Revision: 41874

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

  Log:
    * remove trailing spaces.

  Modified files:
    trunk/ext/dl/win32/lib/win32/registry.rb
    trunk/lib/rubygems/commands/help_command.rb
    trunk/lib/rubygems/commands/install_command.rb
    trunk/lib/rubygems/commands/pristine_command.rb
    trunk/lib/rubygems/installer.rb
    trunk/lib/rubygems/package.rb
    trunk/lib/rubygems.rb
    trunk/test/rubygems/test_gem.rb
    trunk/test/rubygems/test_gem_dependency_resolver_dependency_conflict.rb
    trunk/test/rubygems/test_gem_remote_fetcher.rb

Index: lib/rubygems/commands/help_command.rb
===================================================================
--- lib/rubygems/commands/help_command.rb	(revision 41873)
+++ lib/rubygems/commands/help_command.rb	(revision 41874)
@@ -46,7 +46,7 @@ Some examples of 'gem' usage. https://github.com/ruby/ruby/blob/trunk/lib/rubygems/commands/help_command.rb#L46
 * Update all gems on your system:
 
     gem update
-    
+
 * Update your local version of RubyGems
 
     gem update --system
Index: lib/rubygems/commands/pristine_command.rb
===================================================================
--- lib/rubygems/commands/pristine_command.rb	(revision 41873)
+++ lib/rubygems/commands/pristine_command.rb	(revision 41874)
@@ -110,7 +110,7 @@ with extensions. https://github.com/ruby/ruby/blob/trunk/lib/rubygems/commands/pristine_command.rb#L110
         Gem::RemoteFetcher.fetcher.download_to_cache dep
       end
 
-      env_shebang = 
+      env_shebang =
         if options.include? :env_shebang then
           options[:env_shebang]
         else
Index: lib/rubygems/commands/install_command.rb
===================================================================
--- lib/rubygems/commands/install_command.rb	(revision 41873)
+++ lib/rubygems/commands/install_command.rb	(revision 41874)
@@ -37,7 +37,7 @@ class Gem::Commands::InstallCommand < Ge https://github.com/ruby/ruby/blob/trunk/lib/rubygems/commands/install_command.rb#L37
                'install the listed gems') do |v,o|
       o[:gemdeps] = v
     end
-    
+
     add_option(:"Install/Update", '--default',
                'Add the gem\'s full specification to',
                'specifications/default and extract only its bin') do |v,o|
@@ -157,7 +157,7 @@ to write the specification by hand.  For https://github.com/ruby/ruby/blob/trunk/lib/rubygems/commands/install_command.rb#L157
       alert_error "Can't use --version w/ multiple gems. Use name:ver instead."
       terminate_interaction 1
     end
-    
+
     # load post-install hooks appropriate to options
     if options[:install_as_default]
       require 'rubygems/install_default_message'
Index: lib/rubygems/package.rb
===================================================================
--- lib/rubygems/package.rb	(revision 41873)
+++ lib/rubygems/package.rb	(revision 41874)
@@ -340,7 +340,7 @@ EOM https://github.com/ruby/ruby/blob/trunk/lib/rubygems/package.rb#L340
     open_tar_gz io do |tar|
       tar.each do |entry|
         next unless File.fnmatch pattern, entry.full_name
-        
+
         destination = install_location entry.full_name, destination_dir
 
         FileUtils.rm_rf destination
Index: lib/rubygems/installer.rb
===================================================================
--- lib/rubygems/installer.rb	(revision 41873)
+++ lib/rubygems/installer.rb	(revision 41874)
@@ -212,17 +212,17 @@ class Gem::Installer https://github.com/ruby/ruby/blob/trunk/lib/rubygems/installer.rb#L212
     FileUtils.rm_rf gem_dir
 
     FileUtils.mkdir_p gem_dir
-    
+
     if @options[:install_as_default]
       extract_bin
       write_default_spec
     else
       extract_files
-      
+
       build_extensions
       write_build_info_file
       run_post_build_hooks
-      
+
       generate_bin
       write_spec
       write_cache_file
@@ -349,11 +349,11 @@ class Gem::Installer https://github.com/ruby/ruby/blob/trunk/lib/rubygems/installer.rb#L349
       file.fsync rescue nil # for filesystems without fsync(2)
     end
   end
-  
+
   ##
   # Writes the full .gemspec specification (in Ruby) to the gem home's
   # specifications/default directory.
-  
+
   def write_default_spec
     File.open(default_spec_file, "w") do |file|
       file.puts spec.to_ruby
@@ -738,12 +738,12 @@ EOF https://github.com/ruby/ruby/blob/trunk/lib/rubygems/installer.rb#L738
   def extract_files
     @package.extract_files gem_dir
   end
-  
+
   ##
   # Extracts only the bin/ files from the gem into the gem directory.
   # This is used by default gems to allow a gem-aware stub to function
   # without the full gem installed.
-  
+
   def extract_bin
     @package.extract_files gem_dir, "bin/*"
   end
Index: lib/rubygems.rb
===================================================================
--- lib/rubygems.rb	(revision 41873)
+++ lib/rubygems.rb	(revision 41874)
@@ -1013,20 +1013,20 @@ module Gem https://github.com/ruby/ruby/blob/trunk/lib/rubygems.rb#L1013
 
     def register_default_spec(spec)
       new_format, prefix_pattern = nil
-      
+
       spec.files.each do |file|
         if new_format == nil
           new_format = spec.require_paths.any? {|path| file.start_with? path}
-          
+
           prefix_group = spec.require_paths.map {|f| f + "/"}.join("|")
           prefix_pattern = /^(#{prefix_group})/
         end
-        
+
         if new_format
           file = file.sub(prefix_pattern, "")
           next unless $~
         end
-        
+
         @path_to_default_spec_map[file] = spec
       end
     end
Index: ext/dl/win32/lib/win32/registry.rb
===================================================================
--- ext/dl/win32/lib/win32/registry.rb	(revision 41873)
+++ ext/dl/win32/lib/win32/registry.rb	(revision 41874)
@@ -278,7 +278,7 @@ For detail, see the MSDN[http://msdn.mic https://github.com/ruby/ruby/blob/trunk/ext/dl/win32/lib/win32/registry.rb#L278
 
       def CreateKey(hkey, name, opt, desired)
         result = packhandle(0)
-        disp = packdw(0) 
+        disp = packdw(0)
         check RegCreateKeyExW.call(hkey, make_wstr(name), 0, 0, opt, desired,
                                    0, result, disp)
         [ unpackhandle(result), unpackdw(disp) ]
Index: test/rubygems/test_gem_remote_fetcher.rb
===================================================================
--- test/rubygems/test_gem_remote_fetcher.rb	(revision 41873)
+++ test/rubygems/test_gem_remote_fetcher.rb	(revision 41874)
@@ -600,7 +600,7 @@ gems: https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_remote_fetcher.rb#L600
     skip 'openssl is missing' unless defined?(OpenSSL::SSL)
 
     ssl_server = self.class.start_ssl_server({
-      :SSLVerifyClient => 
+      :SSLVerifyClient =>
         OpenSSL::SSL::VERIFY_PEER|OpenSSL::SSL::VERIFY_FAIL_IF_NO_PEER_CERT})
 
     temp_ca_cert = File.join(DIR, 'ca_cert.pem')
@@ -617,7 +617,7 @@ gems: https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_remote_fetcher.rb#L617
     skip 'openssl is missing' unless defined?(OpenSSL::SSL)
 
     ssl_server = self.class.start_ssl_server({
-      :SSLVerifyClient => 
+      :SSLVerifyClient =>
         OpenSSL::SSL::VERIFY_PEER|OpenSSL::SSL::VERIFY_FAIL_IF_NO_PEER_CERT})
 
     temp_ca_cert = File.join(DIR, 'ca_cert.pem')
Index: test/rubygems/test_gem_dependency_resolver_dependency_conflict.rb
===================================================================
--- test/rubygems/test_gem_dependency_resolver_dependency_conflict.rb	(revision 41873)
+++ test/rubygems/test_gem_dependency_resolver_dependency_conflict.rb	(revision 41874)
@@ -6,7 +6,7 @@ class TestGemDependencyResolverDependenc https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_dependency_resolver_dependency_conflict.rb#L6
   def test_explanation
     root  =
       dependency_request dep('net-ssh', '>= 2.0.13'), 'rye', '0.9.8'
-    child = 
+    child =
       dependency_request dep('net-ssh', '>= 2.6.5'), 'net-ssh', '2.2.2', root
 
     conflict =
@@ -23,7 +23,7 @@ class TestGemDependencyResolverDependenc https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_dependency_resolver_dependency_conflict.rb#L23
   def test_request_path
     root  =
       dependency_request dep('net-ssh', '>= 2.0.13'), 'rye', '0.9.8'
-    child = 
+    child =
       dependency_request dep('net-ssh', '>= 2.6.5'), 'net-ssh', '2.2.2', root
 
     conflict =
Index: test/rubygems/test_gem.rb
===================================================================
--- test/rubygems/test_gem.rb	(revision 41873)
+++ test/rubygems/test_gem.rb	(revision 41874)
@@ -1112,29 +1112,29 @@ class TestGem < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem.rb#L1112
 
     assert_equal '["a-1", "b-1", "c-1"]', out.strip
   end
-  
+
   def test_register_default_spec
     Gem.clear_default_specs
-    
+
     old_style = Gem::Specification.new do |spec|
       spec.files = ["foo.rb", "bar.rb"]
     end
-    
+
     Gem.register_default_spec old_style
-    
+
     assert_equal old_style, Gem.find_unresolved_default_spec("foo.rb")
     assert_equal old_style, Gem.find_unresolved_default_spec("bar.rb")
     assert_equal nil, Gem.find_unresolved_default_spec("baz.rb")
-    
+
     Gem.clear_default_specs
-    
+
     new_style = Gem::Specification.new do |spec|
       spec.files = ["lib/foo.rb", "ext/bar.rb", "bin/exec", "README"]
       spec.require_paths = ["lib", "ext"]
     end
-    
+
     Gem.register_default_spec new_style
-    
+
     assert_equal new_style, Gem.find_unresolved_default_spec("foo.rb")
     assert_equal new_style, Gem.find_unresolved_default_spec("bar.rb")
     assert_equal nil, Gem.find_unresolved_default_spec("exec")

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

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