summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* * lib/optparse.rb (OptionParser::List::accept): defaultnobu2003-01-301-1/+1
| | | | | | | pattern must not be nil. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::Switch::PlacedArgument): added.nobu2003-01-301-24/+41
| | | | | | | | | | | | | if the next argument doesn't start with '-', use it as the value. * lib/optparse.rb (OptionParser::make_switch): fixed a bug of pattern. * lib/optparse.rb (Array): no need to guard. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/shellwords.rb: Embed rdoc style comments.knu2003-01-261-24/+36
| | | | | | | | | | * lib/shellwords.rb (shellwords): Use String#lstrip!. * lib/shellwords.rb (shellwords): Recognize an object that responds to to_str() by using String.new(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* *** empty log message ***nobu2003-01-251-18/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Converted RD to RDoc and improved documentation. See comments at EOF.gsinclair2003-01-241-261/+321
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_eval): do not warn discarding already undefinedmatz2003-01-231-1/+3
| | | | | | | | | method. * lib/rational.rb: undef quo before replacing. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rational.rb: modified to support "quo".matz2003-01-232-46/+8
| | | | | | | | | | * numeric.c (num_quo): should return most exact quotient value, i.e. float by default, rational if available. * numeric.c (num_div): "div" should return x.divmod(x)[0]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* makes possible to add files to clean and distclean targetsmichal2003-01-211-6/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Small changes to documentation.gsinclair2003-01-211-9/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Converted RD to RDoc, with some changes/additions.gsinclair2003-01-211-175/+164
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Correct descriptions of {proper_,}{superset,subset}?.knu2003-01-211-5/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Very slight improvement to documentation.gsinclair2003-01-211-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb: Use Test::Unit.akr2003-01-214-89/+103
| | | | | | | | | | | * lib/prettyprint.rb: Ditto * lib/time.rb: Ditto * lib/tsort.rb: Ditto git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix sharing_detection.akr2003-01-201-0/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* refine previous change.akr2003-01-201-21/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb: Don't redefine `inspect'.akr2003-01-201-65/+34
| | | | | | | (pretty_print_inspect): new method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Modified some RDoc formatting.gsinclair2003-01-201-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added RDoc comments.gsinclair2003-01-201-10/+43
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tempfile.rb (self.open): If a block is given, call it withknu2003-01-201-2/+18
| | | | | | | | tempfile as an argument and automatically close the tempfile when the block terminates. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* make public ERB::Compilerseki2003-01-201-3/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix: % in <%..%>seki2003-01-201-44/+74
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regex.c (is_in_list): should work weill with UTF-8.matz2003-01-201-11/+14
| | | | | | | * regex.c (re_match_exec): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added RDoc comments.gsinclair2003-01-201-27/+375
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (egrep_cpp): use inspect to show options.nobu2003-01-191-5/+8
| | | | | | | | | | | * lib/mkmf.rb (dir_config): prior configured directories to defaults. * lib/mkmf.rb (dir_config): extract first word to determin make command type. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/shellwords.rb (shellwords): A backslash ('\') in singleknu2003-01-191-2/+1
| | | | | | | | quotes should not be regarded as meta character. This bug or maybe feature was inherited from Perl's shellwords.pl. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added RDoc comments. See comments at EOF for TODOs.gsinclair2003-01-171-24/+57
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added RDoc comments. Several issues exist: see comments at EOF.gsinclair2003-01-171-0/+76
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added RDoc comments. Several TODOs remain; see comments at EOF.gsinclair2003-01-171-0/+136
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (env_clear): new Hash compatible method.matz2003-01-071-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * hash.c (env_shift): ditto. * hash.c (env_invert): ditto. * hash.c (env_replace): ditto. * hash.c (env_update): ditto. * array.c (rb_ary_join): dispatch based on "to_str". * array.c (rb_ary_times): ditto. * array.c (rb_ary_equal): ditto. * process.c (rb_f_exec): dispatch based on "to_ary". * eval.c (umethod_bind): exact class match is not required. relax the restriction to subclasses. * eval.c (rb_eval): call "inherited" before executing class body. * class.c (rb_define_class): call "inherited" after defining the constant. * class.c (rb_define_class_under): ditto. * eval.c (massign): expand first element if RHS is an array and its size is 1, and LHS has concrete assignment target (i.e. LHS has target(s) other than *var). * eval.c (massign): avoid unnecessary avalue/svalue conversion. * eval.c (rb_yield_0): ditto * array.c (rb_ary_update): do not allocate unused array if rpl is nil (i.e. merely removing elements). * io.c (io_read): should resize supplied string if it's shorter than expected. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (ln): add ' -f' in the verbose message.eban2003-01-061-2/+2
| | | | | | | * lib/fileutils.rb (cp_r): add 'p' in the verbose message. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (ln): `argv' is not a argument.eban2003-01-051-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb: need paren in regexp(make -n install).eban2003-01-051-1/+1
| | | | | | | | | | | | | * ext/extmk.rb (sysquote): do not need to quote on mswin/bccwin/mingw. * ext/extm.rb ($mflags): uniq items and remove '-' and '--'. move options to the lead. * lib/fileutils.rb (install): model on the real install command(message). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, {win32,bcc32}/Makefile.sub: add new target:eban2002-12-311-1/+11
| | | | | | | | | | | | | | | what-where, no-install. * mkconfig.rb: add const: CROSS_COMPILING. * ext/extmk.rb: no-install support. add MAKEDIRS macro. * lib/mkmf.rb: add !ifdef .. !endif for Borland make. * process.c: improve DJGPP support. system "ls", "-l". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb: should not inherit ftools.rb's misfeature.aamine2002-12-291-3/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (cmp): return false if file size differs.usa2002-12-281-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb: remove junk args.eban2002-12-281-0/+1
| | | | | | | | | * lib/mkmf.rb (create_makefile): remove a trouble library before making a shared library. * win32/Makefile.sub: invoke instruby.rb with the --make-flags option. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi.rb (CGI#[]): improvement. thanks to Kazuhiro NISHIYAMAwakou2002-12-271-0/+3
| | | | | | | <zn@mbf.nifty.com> git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (fu_parseargs): reject illegal options correctly.aamine2002-12-271-45/+44
| | | | | | | | * lib/fileutils.rb (uptodate?): parameter declaration was wrong. * lib/fileutils.rb: change coding styles. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/telnet.rb: Telnet#print not add "\n".wakou2002-12-262-22/+29
| | | | | | | * lib/cgi.rb: cgi['key'] is equal cgi['key'][0] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* exiled historical RD inclusion, wrong [ruby-dev:19191]gotoken2002-12-251-13/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/completion.rb: Use Object#class rather than Object#type.knu2002-12-241-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi.rb (Cookie::parse), lib/cgi-lib.rb (initialize): Do notknu2002-12-242-2/+2
| | | | | | | | pass to split() a bare string longer than 2 characters as separator. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (ins_methods_i): should not show ID_ALLOCATOR.matz2002-12-241-1/+1
| | | | | | | | | | | | | | | * class.c (ins_methods_prot_i): ditto. * class.c (ins_methods_priv_i): ditto. * class.c (ins_methods_pub_i): ditto. * eval.c (call_trace_func): ditto. * eval.c (rb_undefined): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Convert RD to Rdoc.knu2002-12-241-216/+119
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/README: Synchronize with reality.knu2002-12-231-4/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * MANIFEST, lib/README, lib/ipaddr.rb: Add ipaddr.rb from rough.knu2002-12-232-0/+691
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Rename an argument name to avoid a potential clash.knu2002-12-231-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): accept pure ruby libraries.eban2002-12-211-18/+24
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (Init_Object): should not remove Class#allocate.matz2002-12-202-63/+65
| | | | | | | | * lib/profiler.rb: separate profiling functions, without trace_func and at_exit setting. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (do_block): split "do" block and tLBRACE_ARG block.matz2002-12-201-20/+26
| | | | | | | | | | | | | | | | | * parse.y (cmd_brace_block): new tLBRACE_ARG block rule * parse.y (command): can take optional cmd_brace_block; use %prec to resolve shift/reduce conflict. (ruby-bugs-ja PR#372) * eval.c (ruby_finalize): trace_func should be cleared here (after executing exit procs and finalizers). * eval.c (rb_define_alloc_func): new allocation framework, based on Nobu's work [ruby-dev:19116]. "allocate" method is no longer used for object allocation. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e