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

ruby-changes:33626

From: akr <ko1@a...>
Date: Thu, 24 Apr 2014 20:53:36 +0900 (JST)
Subject: [ruby-changes:33626] akr:r45707 (trunk): * lib/tmpdir.rb: Don't need to rescue LoadError for etc.so.

akr	2014-04-24 20:53:31 +0900 (Thu, 24 Apr 2014)

  New Revision: 45707

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

  Log:
    * lib/tmpdir.rb: Don't need to rescue LoadError for etc.so.

  Modified files:
    trunk/ChangeLog
    trunk/lib/tmpdir.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45706)
+++ ChangeLog	(revision 45707)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Apr 24 20:53:02 2014  Tanaka Akira  <akr@f...>
+
+	* lib/tmpdir.rb: Don't need to rescue LoadError for etc.so.
+
 Thu Apr 24 17:39:53 2014  NARUSE, Yui  <naruse@r...>
 
 	* file.c (statfs_inspect): suppress warnings.
Index: lib/tmpdir.rb
===================================================================
--- lib/tmpdir.rb	(revision 45706)
+++ lib/tmpdir.rb	(revision 45707)
@@ -5,10 +5,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/tmpdir.rb#L5
 #
 
 require 'fileutils'
-begin
-  require 'etc.so'
-rescue LoadError
-end
+require 'etc.so'
 
 class Dir
 

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

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