зеркало из https://github.com/github/ruby.git
* lib/fileutils.rb (FileUtils::Entry_#entries): use utility method
instead of typoed regexp. [ruby-core:41829] [Bug #5817] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
ddec35cf3d
Коммит
6a6c314fd0
|
@ -1,3 +1,8 @@
|
|||
Wed Dec 28 11:22:45 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/fileutils.rb (FileUtils::Entry_#entries): use utility method
|
||||
instead of typoed regexp. [ruby-core:41829] [Bug #5817]
|
||||
|
||||
Wed Dec 28 02:08:04 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
|
||||
|
||||
* vm_insnhelper.c (unknown_keyword_error): add GC guard to prevent
|
||||
|
|
|
@ -1271,7 +1271,7 @@ module FileUtils
|
|||
|
||||
def entries
|
||||
opts = {}
|
||||
opts[:encoding] = "UTF-8" if /mswin|mignw/ =~ RUBY_PLATFORM
|
||||
opts[:encoding] = ::Encoding::UTF_8 if fu_windows?
|
||||
Dir.entries(path(), opts)\
|
||||
.reject {|n| n == '.' or n == '..' }\
|
||||
.map {|n| Entry_.new(prefix(), join(rel(), n.untaint)) }
|
||||
|
|
Загрузка…
Ссылка в новой задаче