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

ruby-changes:31276

From: nobu <ko1@a...>
Date: Fri, 18 Oct 2013 17:03:51 +0900 (JST)
Subject: [ruby-changes:31276] nobu:r43355 (trunk): resolv.rb: workaround for recent Rubygems

nobu	2013-10-18 17:03:32 +0900 (Fri, 18 Oct 2013)

  New Revision: 43355

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

  Log:
    resolv.rb: workaround for recent Rubygems
    
    * lib/resolv.rb (Resolv::Hosts): get rid of load error in require
      which causes recent Rubygems to build all extension libraries.

  Modified files:
    trunk/lib/resolv.rb
Index: lib/resolv.rb
===================================================================
--- lib/resolv.rb	(revision 43354)
+++ lib/resolv.rb	(revision 43355)
@@ -166,6 +166,7 @@ class Resolv https://github.com/ruby/ruby/blob/trunk/lib/resolv.rb#L166
 
   class Hosts
     begin
+      raise LoadError unless /mswin|mingw|cygwin/ =~ RUBY_PLATFORM
       require 'win32/resolv'
       DefaultFileName = Win32::Resolv.get_hosts_path
     rescue LoadError

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

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