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

ruby-changes:31645

From: nobu <ko1@a...>
Date: Tue, 19 Nov 2013 23:00:49 +0900 (JST)
Subject: [ruby-changes:31645] nobu:r43723 (trunk): rubygems/source/git.rb: discard output

nobu	2013-11-19 23:00:29 +0900 (Tue, 19 Nov 2013)

  New Revision: 43723

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

  Log:
    rubygems/source/git.rb: discard output
    
    * lib/rubygems/source/git.rb (Gem::Source::Git#checkout): discard git
      output.

  Modified files:
    trunk/lib/rubygems/source/git.rb
    trunk/test/rubygems/test_gem_source_git.rb
Index: lib/rubygems/source/git.rb
===================================================================
--- lib/rubygems/source/git.rb	(revision 43722)
+++ lib/rubygems/source/git.rb	(revision 43723)
@@ -90,7 +90,7 @@ class Gem::Source::Git < Gem::Source https://github.com/ruby/ruby/blob/trunk/lib/rubygems/source/git.rb#L90
 
       success &&=
         system @git, 'submodule', 'update',
-               '--quiet', '--init', '--recursive' if @need_submodules
+               '--quiet', '--init', '--recursive', out: IO::NULL if @need_submodules
 
       success
     end
Index: test/rubygems/test_gem_source_git.rb
===================================================================
--- test/rubygems/test_gem_source_git.rb	(revision 43722)
+++ test/rubygems/test_gem_source_git.rb	(revision 43723)
@@ -25,7 +25,7 @@ class TestGemSourceGit < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_source_git.rb#L25
     git_gem 'b'
 
     Dir.chdir 'git/a' do
-      system @git, 'submodule', '--quiet', 'add', File.expand_path('../b'), 'b'
+      system @git, 'submodule', '--quiet', 'add', File.expand_path('../b'), 'b', out: IO::NULL
       system @git, 'commit', '--quiet', '-m', 'add submodule b'
     end
 

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

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