summaryrefslogtreecommitdiffstats
path: root/lib/optparse.rb
Commit message (Collapse)AuthorAgeFilesLines
* * lib/optparse.rb (OptionParser#environment): requires shellwords.nobu2008-07-131-0/+1
| | | | | | | [ruby-dev:35466] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc.rb: massive spelling correction patch from Evan Farrarmatz2008-06-041-3/+3
| | | | | | <evanfarrar at gmail.com> in [ruby-doc:1382] applied. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::Switch::summarize): fix for long formnobu2007-11-041-1/+1
| | | | | | | | option with very long argument. a patch from Kobayashi Noritada <nori1 AT dolphin.c.u-tokyo.ac.jp> in [ruby-list:44179]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::List::summarize): use each_line ifnobu2007-09-211-1/+3
| | | | | | | defined rather than each. [ruby-Patches-14096] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb: fix to override conv proc.nobu2007-04-201-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb: fix to override conv proc.ko12007-04-191-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (make_switch): do not clobber converter if patternnobu2007-04-161-2/+2
| | | | | | | has no convert method. reported by sheepman in [ruby-dev:30709]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (Switch#parse_arg, Switch#conv_arg): splat failures.nobu2006-12-121-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb: cannot put :nodoc: before method definition.usa2006-12-081-8/+4
| | | | | | | put after it. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb (install_recursive): get rid of warning.nobu2006-12-041-1/+2
| | | | | | | * lib/optparse.rb (CompletingHash#match): get rid of splat failure. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb, lib/fileutils.rb, lib/mkmf.rb, lib/optparse.rb,nobu2006-10-091-17/+14
| | | | | | | lib/shellwords.rb: get rid of shadowing outer local variable. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser#make_switch): pass arguments directly.nobu2006-10-011-8/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::Switch#conv_arg): unsplat bynobu2006-09-291-3/+3
| | | | | | | Proc#call if no conversion is given. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (parse_in_order): splat arguments to callback block.nobu2006-09-291-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser#parse_in_order): wrong splat fornobu2006-09-261-1/+1
| | | | | | | callbacks. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser#getopts): use strings as key.nobu2006-09-261-11/+21
| | | | | | | fixed: [ruby-dev:29614] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser#getopts): works with pre-registerednobu2006-09-121-18/+28
| | | | | | | options. [ruby-core:08826] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb: splat parsed arguments.nobu2006-09-101-5/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb: suppress `assigning void value' warning.nobu2006-09-071-6/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Documentation cleanup.drbrain2006-08-041-18/+16
| | | | | | | | | | Includes patches by Hugh Sasse: * ping.rb * weakref.rb * mailread.rb git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* RDoc patch by Robin Stocker <robin@nibor.org>drbrain2006-06-281-638/+487
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (block_param): do not use multiple assignment for a solematz2006-06-211-9/+9
| | | | | | | | | | | | | | | block parameter. [ruby-dev:28710] * eval.c (rb_yield_0): pass a raw yielded value to a sole block parameter if a value is passed by yield. * eval.c (proc_invoke): args may not be an array. * eval.c (rb_proc_yield): pass original value without wrapping it in an array. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (parse_args): provisional catch-up for the recent changes.nobu2006-06-201-2/+2
| | | | | | | * lib/optparse.rb (OptionParser::List#summarize, OptionParser#order!): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::Arguable#getopts): pass self to thenobu2006-06-111-1/+1
| | | | | | | parser. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser#getopts): new methods.nobu2006-06-101-1/+51
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * math.c (log2): may be a macro.nobu2006-06-091-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | * parse.y (args, block_param, f_args): pass f_post_arg to #params. * util.c (powersOf10): constified. * ext/readline/readline.c: include extconf.h first. * ext/ripper/eventids2.c: removed tLAMBDA_ARG. * ext/tk/tcltklib.c (lib_fromUTF8_core): removed conflict. * ext/tk/tkutil/tkutil.c (cbsubst_get_subst_arg): rb_id2name() is defined as const now. * ext/win32ole/win32ole.c (fole_missing): ditto. * lib/mkmf.rb (create_makefile): force to create extconf header. * lib/optparse.rb (order!): use Proc#yield. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c (rb_str_format): allow %c to print one charactermatz2006-06-091-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | string (e.g. ?x). * lib/tempfile.rb (Tempfile::make_tmpname): put dot between basename and pid. [ruby-talk:196272] * parse.y (do_block): remove -> style block. * parse.y (parser_yylex): remove tLAMBDA_ARG. * eval.c (rb_call0): binding for the return event hook should have consistent scope. [ruby-core:07928] * eval.c (proc_invoke): return behavior should depend whether it is surrounded by a lambda or a mere block. * eval.c (formal_assign): handles post splat arguments. * eval.c (rb_call0): ditto. * st.c (strhash): use FNV-1a hash. * parse.y (parser_yylex): removed experimental ';;' terminator. * eval.c (rb_node_arity): should be aware of post splat arguments. * eval.c (rb_proc_arity): ditto. * parse.y (f_args): syntax rule enhanced to support arguments after the splat. * parse.y (block_param): ditto for block parameters. * parse.y (f_post_arg): mandatory formal arguments after the splat argument. * parse.y (new_args_gen): generate nodes for mandatory formal arguments after the splat argument. * eval.c (rb_eval): dispatch mandatory formal arguments after the splat argument. * parse.y (args): allow more than one splat in the argument list. * parse.y (method_call): allow aref [] to accept all kind of method argument, including assocs, splat, and block argument. * eval.c (SETUP_ARGS0): prepare block argument as well. * lib/mathn.rb (Integer): remove Integer#gcd2. [ruby-core:07931] * eval.c (error_line): print receivers true/false/nil specially. * eval.c (rb_proc_yield): handles parameters in yield semantics. * eval.c (nil_yield): gives LocalJumpError to denote no block error. * io.c (rb_io_getc): now takes one-character string. * string.c (rb_str_hash): use FNV-1a hash from Fowler/Noll/Vo hashing algorithm. * string.c (rb_str_aref): str[0] now returns 1 character string, instead of a fixnum. [Ruby2] * parse.y (parser_yylex): ?c now returns 1 character string, instead of a fixnum. [Ruby2] * string.c (rb_str_aset): no longer support fixnum insertion. * eval.c (umethod_bind): should not update original class. [ruby-dev:28636] * eval.c (ev_const_get): should support constant access from within instance_eval(). [ruby-dev:28327] * time.c (time_timeval): should round for usec floating number. [ruby-core:07896] * time.c (time_add): ditto. * dir.c (sys_warning): should not call a vararg function rb_sys_warning() indirectly. [ruby-core:07886] * numeric.c (flo_divmod): the first element of Float#divmod should be an integer. [ruby-dev:28589] * test/ruby/test_float.rb: add tests for divmod, div, modulo and remainder. * re.c (rb_reg_initialize): should not allow modifying literal regexps. frozen check moved from rb_reg_initialize_m as well. * re.c (rb_reg_initialize): should not modify untainted objects in safe levels higher than 3. * re.c (rb_memcmp): type change from char* to const void*. * dir.c (dir_close): should not close untainted dir stream. * dir.c (GetDIR): add tainted/frozen check for each dir operation. * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_symbol_arg): typo fixed. a patch from Florian Gross <florg at florg.net>. * eval.c (EXEC_EVENT_HOOK): trace_func may remove itself from event_hooks. no guarantee for arbitrary hook deletion. [ruby-dev:28632] * util.c (ruby_strtod): differ addition to minimize error. [ruby-dev:28619] * util.c (ruby_strtod): should not raise ERANGE when the input string does not have any digits. [ruby-dev:28629] * eval.c (proc_invoke): should restore old ruby_frame->block. thanks to ts <decoux at moulon.inra.fr>. [ruby-core:07833] also fix [ruby-dev:28614] as well. * signal.c (trap): sig should be less then NSIG. Coverity found this bug. a patch from Kevin Tew <tewk at tewk.com>. [ruby-core:07823] * math.c (math_log2): add new method inspired by [ruby-talk:191237]. * math.c (math_log): add optional base argument to Math::log(). [ruby-talk:191308] * ext/syck/emitter.c (syck_scan_scalar): avoid accessing uninitialized array element. a patch from Pat Eyler <rubypate at gmail.com>. [ruby-core:07809] * array.c (rb_ary_fill): initialize local variables first. a patch from Pat Eyler <rubypate at gmail.com>. [ruby-core:07810] * ext/syck/yaml2byte.c (syck_yaml2byte_handler): need to free type_tag. a patch from Pat Eyler <rubypate at gmail.com>. [ruby-core:07808] * ext/socket/socket.c (make_hostent_internal): accept ai_family check from Sam Roberts <sroberts at uniserve.com>. [ruby-core:07691] * util.c (ruby_strtod): should not cut off 18 digits for no reason. [ruby-core:07796] * array.c (rb_ary_fill): internalize local variable "beg" to pacify Coverity. [ruby-core:07770] * pack.c (pack_unpack): now supports CRLF newlines. a patch from <tommy at tmtm.org>. [ruby-dev:28601] * applied code clean-up patch from Stefan Huehner <stefan at huehner.org>. [ruby-core:07764] * lib/jcode.rb (String::tr_s): should have translated non squeezing character sequence (i.e. a character) as well. thanks to Hiroshi Ichikawa <gimite at gimite.ddo.jp> [ruby-list:42090] * ext/socket/socket.c: document update patch from Sam Roberts <sroberts at uniserve.com>. [ruby-core:07701] * lib/mathn.rb (Integer): need not to remove gcd2. a patch from NARUSE, Yui <naruse at airemix.com>. [ruby-dev:28570] * parse.y (arg): too much NEW_LIST() * eval.c (SETUP_ARGS0): remove unnecessary access to nd_alen. * eval.c (rb_eval): use ARGSCAT for NODE_OP_ASGN1. [ruby-dev:28585] * parse.y (arg): use NODE_ARGSCAT for placeholder. * lib/getoptlong.rb (GetoptLong::get): RDoc update patch from mathew <meta at pobox.com>. [ruby-core:07738] * variable.c (rb_const_set): raise error when no target klass is supplied. [ruby-dev:28582] * prec.c (prec_prec_f): documentation patch from <gerardo.santana at gmail.com>. [ruby-core:07689] * bignum.c (rb_big_pow): second operand may be too big even if it's a Fixnum. [ruby-talk:187984] * README.EXT: update symbol description. [ruby-talk:188104] * COPYING: explicitly note GPLv2. [ruby-talk:187922] * parse.y: remove some obsolete syntax rules (unparenthesized method calls in argument list). * eval.c (rb_call0): insecure calling should be checked for non NODE_SCOPE method invocations too. * eval.c (rb_alias): should preserve the current safe level as well as method definition. * process.c (rb_f_sleep): remove RDoc description about SIGALRM which is not valid on the current implementation. [ruby-dev:28464] Thu Mar 23 21:40:47 2006 K.Kosako <sndgk393 AT ybb.ne.jp> * eval.c (method_missing): should support argument splat in super. a bug in combination of super, splat and method_missing. [ruby-talk:185438] * configure.in: Solaris SunPro compiler -rapth patch from <kuwa at labs.fujitsu.com>. [ruby-dev:28443] * configure.in: remove enable_rpath=no for Solaris. [ruby-dev:28440] * ext/win32ole/win32ole.c (ole_val2olevariantdata): change behavior of converting OLE Variant object with VT_ARRAY|VT_UI1 and Ruby String object. * ruby.1: a clarification patch from David Lutterkort <dlutter at redhat.com>. [ruby-core:7508] * lib/rdoc/ri/ri_paths.rb (RI::Paths): adding paths from rubygems directories. a patch from Eric Hodel <drbrain at segment7.net>. [ruby-core:07423] * eval.c (rb_clear_cache_by_class): clearing wrong cache. * ext/extmk.rb: use :remove_destination to install extension libraries to avoid SEGV. [ruby-dev:28417] * eval.c (rb_thread_fd_writable): should not re-schedule output from KILLED thread (must be error printing). * array.c (rb_ary_flatten_bang): allow specifying recursion level. [ruby-talk:182170] * array.c (rb_ary_flatten): ditto. * gc.c (add_heap): a heap_slots may overflow. a patch from Stefan Weil <weil at mail.berlios.de>. * eval.c (rb_call): use separate cache for fcall/vcall invocation. * eval.c (rb_eval): NODE_FCALL, NODE_VCALL can call local functions. * eval.c (rb_mod_local): a new method to specify newly added visibility "local". * eval.c (search_method): search for local methods which are visible only from the current class. * class.c (rb_class_local_methods): a method to list local methods. * object.c (Init_Object): add BasicObject class as a top level BlankSlate class. * ruby.h (SYM2ID): should not cast to signed long. [ruby-core:07414] * class.c (rb_include_module): allow module duplication. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c: unify ruby_class (for method definition) and ruby_cbasematz2006-02-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (for constant reference). * eval.c (rb_call0): use TMP_ALLOC() instead of allocating a temporary array object. * eval.c (eval): need not to protect $SAFE value. [ruby-core:07177] * error.c (Init_Exception): change NameError to direct subclass of Exception so that default rescue do not handle it silently. * struct.c (rb_struct_select): update RDoc description. [ruby-core:7254] * numeric.c (int_upto): return an enumerator if no block is attached to the method. * numeric.c (int_downto): ditto. * numeric.c (int_dotimes): ditto. * enum.c (enum_first): new method Enumerable#first to take first n element from an enumerable. * enum.c (enum_group_by): new method Enumerable#group_by that groups enumerable values according to their block values. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (CompletingHash#match): fix for 1.9.nobu2005-12-271-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb: match incomplete (in current enconding) multibytenobu2005-11-221-4/+4
| | | | | | | string. http://inamode6.tokuhirom.dnsalias.org/show/1551 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (rb_range_beg_len): should return Qfalse for non-rangematz2005-10-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | object. * pack.c (EXTEND16): [ruby-dev:27383] * eval.c (set_trace_func): add rb_secure(4) to prevent adding tracing function. * lib/delegate.rb: document update from James Edward Gray II <james@grayproductions.net>. [ruby-core:05942] * process.c (proc_daemon): should restrict execution on levels higher than $SAFE=2. suggested by URABE Shyouhei <shyouhei@ice.uec.ac.jp>. * lib/forwardable.rb: replaced by new implementation from <Daniel.Berger@qwest.com>. [ruby-core:05899] * file.c (path_check_0): disallow sticky world writable directory in PATH (and $LOAD_PATH). [ruby-dev:27226] * numeric.c (fix_idiv): 1.div(1.0) should return integer value. [ruby-dev:27235] * lib/yaml.rb: require 'yaml/constants'. [ruby-core:5776] * lib/xmlrpc/client.rb (XMLRPC::Client::do_rpc): add charset information to content-type header.[ruby-core:5127] * lib/xmlrpc/server.rb (CGIServer::serve): ditto. * lib/xmlrpc/server.rb (ModRubyServer::serve): ditto. * lib/xmlrpc/server.rb (WEBrickServlet::service): ditto. * test/dbm/test_dbm.rb (TestDBM::test_s_open_error): remove test_s_open_error test to detect duplicate open. [ruby-dev:27202] * eval.c (splat_value): use to_a to splat non Array object. * object.c (nil_to_a): remove nil.to_a. [experimental] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* *** empty log message ***nobu2005-09-261-10/+14
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (RequiredArgument#parse): not consume unmatchednobu2005-09-251-15/+11
| | | | | | | argument. fixed [ruby-dev:27316] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (default_argv, Arguable#options): defaults stringsnobu2005-09-201-3/+9
| | | | | | | to be parsed to Arguable instance. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser#order!): delete debug output.nobu2005-04-131-2/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser#order!): call handlers iff matchesnobu2005-04-131-4/+10
| | | | | | | non-switch. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser#make_switch, OptionParser#order!):nobu2005-04-121-8/+49
| | | | | | | | added non-option and end-of-args handler. [ruby-talk:136878] (EXPERIMENTAL git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::Completion#complete): new parameternobu2004-12-051-17/+12
| | | | | | | | | | to direct case insensitiveness. * lib/optparse.rb (OptionParser#order!): ignore case only for long option. [ruby-dev:25048] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::Officious): moved from DefaultList.nobu2004-11-091-20/+52
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser#warn, OptionParser#abort): Exceptionnobu2004-07-151-2/+2
| | | | | | | no longer has to_str method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (Init_Exception): remove Exception#to_str. [Ruby2]matz2004-04-051-2/+0
| | | | | | | | | | | * eval.c (error_print): should no call "to_str" anymore use "message" method instead. * io.c (rb_f_open): Kernel#open() calls "to_open" if the first argument responds to it. [Ruby2] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_require_safe): preserve old ruby_errinfo.matz2004-03-201-1/+1
| | | | | | | | | | | | | [ruby-talk:95409] * eval.c (rb_f_raise): should not clear backtrace information if exception object already have one. * parse.y (assoc_list): allow {sym: val} style Hash. [Ruby2] this change is done by Nobuyoshi Nakada <nobu@ruby-lang.org>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb: Improved documentation.gsinclair2003-12-281-262/+256
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb: incomplete RDoc documentation added in place ofgsinclair2003-12-231-307/+406
| | | | | | | existing RD comments. Tabs converted to spaces. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::Completion::complete): wrongnobu2003-12-201-2/+2
| | | | | | | | | | Regexp for word boundary. pointed out by Gavin Sinclair. * lib/optparse.rb (OptionParser::make_switch): [no-] prefix was missing. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::Completion::complete): allow leastnobu2003-11-171-4/+11
| | | | | | | common completion for three or more candidates. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::Completion#complete): prior shorternobu2003-11-131-13/+19
| | | | | | | name to containing longer name. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::Completion#complete): default not tonobu2003-11-061-2/+12
| | | | | | | ignore case on completion. [ruby-talk:84726] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::Switch::PlacedArgument::parse):nobu2003-11-051-1/+1
| | | | | | | | | do not remove next argument if empty value is placed. * test/optparse: added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (proc_invoke): single array value to normal Proc#callmatz2003-10-291-0/+1
| | | | | | | | (i.e. not via lambda call), should be treated just like yield. [ruby-dev:21726] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e