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

ruby-changes:39017

From: nobu <ko1@a...>
Date: Thu, 2 Jul 2015 11:36:41 +0900 (JST)
Subject: [ruby-changes:39017] nobu:r51098 (trunk): fix redefinitions

nobu	2015-07-02 11:36:23 +0900 (Thu, 02 Jul 2015)

  New Revision: 51098

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

  Log:
    fix redefinitions
    
    * test/rubygems/test_gem_resolver_git_specification.rb: require
      rubygems/installer.rb before Gem::TestCase#setup runs, otherwise
      as Gem::TestCase#teardown restores $LOADED_FEATURES to the state
      at that time, the requiring the file in GitSpecification#install
      method causes a lot of constant redefinitions.

  Modified files:
    trunk/ChangeLog
    trunk/test/rubygems/test_gem_resolver_git_specification.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51097)
+++ ChangeLog	(revision 51098)
@@ -1,3 +1,11 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Jul  2 11:36:20 2015  Nobuyoshi Nakada  <nobu@r...>
+
+	* test/rubygems/test_gem_resolver_git_specification.rb: require
+	  rubygems/installer.rb before Gem::TestCase#setup runs, otherwise
+	  as Gem::TestCase#teardown restores $LOADED_FEATURES to the state
+	  at that time, the requiring the file in GitSpecification#install
+	  method causes a lot of constant redefinitions.
+
 Thu Jul  2 10:43:36 2015  Eric Wong  <e@8...>
 
 	* ext/socket/rubysocket.h: flags for common socket families
Index: test/rubygems/test_gem_resolver_git_specification.rb
===================================================================
--- test/rubygems/test_gem_resolver_git_specification.rb	(revision 51097)
+++ test/rubygems/test_gem_resolver_git_specification.rb	(revision 51098)
@@ -1,4 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_resolver_git_specification.rb#L1
 require 'rubygems/test_case'
+require 'rubygems/installer'
 
 class TestGemResolverGitSpecification < Gem::TestCase
 

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

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