* lib/getoptlong.rb (set_options): ensure that the type of argument is

Array, restoring this check that was deleted at r10239.  This caused
  rubyspec error.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2010-01-29 13:53:57 +00:00
Родитель 9433d94cff
Коммит bc7ae41e0f
2 изменённых файлов: 11 добавлений и 2 удалений

Просмотреть файл

@ -1,3 +1,9 @@
Fri Jan 29 22:49:21 2010 Yusuke Endoh <mame@tsg.ne.jp>
* lib/getoptlong.rb (set_options): ensure that the type of argument is
Array, restoring this check that was deleted at r10239. This caused
rubyspec error.
Fri Jan 29 12:59:33 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (mingw): needs $(DEFFILE) for extension libraries.

Просмотреть файл

@ -282,8 +282,11 @@ class GetoptLong
@canonical_names.clear
@argument_flags.clear
arguments.each do |*arg|
arg = arg.first # TODO: YARV Hack
arguments.each do |arg|
if !arg.is_a?(Array)
raise ArgumentError, "the option list contains non-Array argument"
end
#
# Find an argument flag and it set to `argument_flag'.
#