mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/tmpdir.rb: test RUBY_PLATFORM for loading tmpdir.so to avoid
LoadError. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ec0b0144b3
commit
3b9c00306f
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu May 6 14:12:39 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/tmpdir.rb: test RUBY_PLATFORM for loading tmpdir.so to avoid
|
||||
LoadError.
|
||||
|
||||
Thu May 6 12:41:00 2010 Kenta Murata <mrkn@mrkn.jp>
|
||||
|
||||
* NEWS: add rationalize methods of Complex, Float, Integer, NilClass,
|
||||
|
|
|
@ -5,9 +5,8 @@
|
|||
#
|
||||
|
||||
require 'fileutils'
|
||||
begin
|
||||
if /mswin|mingw/ =~ RUBY_PLATFORM
|
||||
require 'tmpdir.so'
|
||||
rescue LoadError
|
||||
end
|
||||
|
||||
class Dir
|
||||
|
|
Loading…
Add table
Reference in a new issue