summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* * eval.c (load_dyna): clear ruby_errinfo. (ruby-bugs-ja PR#409)matz2003-03-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * io.c (read_all): make str empty if given. (ruby-bugs-ja PR#408) * io.c (io_read): ditto. * io.c (rb_io_sysread): ditto. * range.c: do not override min and max. * sprintf.c (remove_sign_bits): octal left most digit for negative numbers may be '3'. (ruby-bugs-ja PR#407) * sprintf.c (rb_f_sprintf): should prefix sign bits if bignum is negative, using sign_bits(). * eval.c (avalue_to_mrhs): split argument passing and assignment conversion. * eval.c (svalue_to_mrhs): ditto. * eval.c (avalue_to_svalue): avalue_to_svalue([[1,2]]) should be [[1,2]], not [1,2] to wrap-around. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tracer.rb (trace_func): save and recover Thread.critical state.nahi2003-03-191-1/+2
| | | | | | | Fixed by Fukumoto Atsushi <fukumoto@imasy.or.jp> [ruby-dev:19830] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for previous change.akr2003-03-161-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb (object_address_group): use to_s instead of nameakr2003-03-161-1/+1
| | | | | | | to get name of class. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: Digest string wrongly included '\n' when user name is too ↵aamine2003-03-111-2/+3
| | | | | | long (ruby-bugs-ja:PR#404). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: speeding up by avoiding extra flush. (suggested by Brian ↵aamine2003-03-111-4/+6
| | | | | | Candler <B.Candler@pobox.com>) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb: do not dispatch LIST when a mailbox is empty.aamine2003-03-091-74/+97
| | | | | | | | | | * lib/net/pop.rb: merge the 'STAT' patch from Frank S.Fejes <frank@oopdreams.com>, with modifications (listed below). * lib/net/pop.rb: new method Net::POP#mail_size. * lib/net/pop.rb: new method Net::POP#bytes. * lib/net/pop.rb: new method Net::POPCommand#stat. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (mkdir, mkdir_p): revert.eban2003-03-091-2/+2
| | | | | | | * instruby.rb (umask): umask 0022, not 0. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (mkdir, mkdir_p): set mode to 0755.eban2003-03-091-2/+2
| | | | | | | * Makefile.in (fake.rb): set ALT_SEPARATOR to the default value. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb (Kernel.pp): module function.akr2003-03-071-0/+13
| | | | | | | (MatchData#pretty_print): new method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_popen): do not call rb_io_close() directly, callmatz2003-03-041-1/+1
| | | | | | | | | | | | "close" method instead. [ruby-dev:19717] * io.c (rb_io_s_open): ditto. * hash.c (rb_any_hash): remove DEFER_INTS. all do_hash() calls in st.c are at the top of functions. No reentrant problem. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (arg): parse 'lhs = a rescue b' as 'lhs=(a rescue b)'.matz2003-03-032-8/+14
| | | | | | | | * io.c (rb_io_fread): should not clearerr() if there's no filled buffer (i.e. rb_io_fread() returning zero). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb: replace Kernel.open as well.akr2003-02-261-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/debug.rb (DEBUGGER__::Context#debug_command): bp filename mustnahi2003-02-251-1/+1
| | | | | | | be the basename of it. [ruby-talk:65644] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils (fu_stream_blksize): wrong logial condition.eban2003-02-231-1/+1
| | | | | | | (and -> or). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb: new method FileUtils#copy_stream.aamine2003-02-211-46/+64
| | | | | | | | | * lib/fileutils.rb: new method FileUtils#compare_file. * lib/fileutils.rb: new method FileUtils#compare_stream. * lib/fileutils.rb: new method FileUtils#rmtree (alias of rm_rf). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/generic.rb, lib/uri/ldap.rb, lib/uri/mailto.ldap: all foo=()akira2003-02-145-10/+21
| | | | | | | | | | | | | | returns arguments passed by caller. * lib/uri/generic.rb (Generic#to_str, Generic#to_s): removed to_str. Suggested by Tanaka Akira <akr@m17n.org> at [ruby-dev:19475]. * lib/uri/generic.rb (Generic#==): should not generate an URI object from argument. Suggested by Tanaka Akira <akr@m17n.org> at [ruby-dev:19475]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Initial revisionntalbott2003-02-1223-0/+2337
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (FileUtils#uptodate?): use mtime for comparison.aamine2003-02-101-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (init_mkmf): add libdir to LIBPATH unless crossnobu2003-02-091-2/+2
| | | | | | | compiling. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: 4xx raises Net::ProtoServerError, 5xx raises ↵aamine2003-02-081-2/+2
| | | | | | Net::ProtoFatalError (for backward compatibility). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb: new method FileUtils.pwd (really).aamine2003-02-081-14/+20
| | | | | | | * lib/fileutils.rb: FileUtils.pwd, cmp, identical?, uptodate? does not accept any option. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/workspace.rb, lib/irb/ext/math-mode.rb,knu2003-02-079-35/+35
| | | | | | | | | | lib/irb/ext/multi-irb.rb, lib/irb/lc/error.rb, lib/irb/lc/help-message, lib/irb/lc/ja/error.rb, lib/shell/command-processor.rb, lib/shell/error.rb, lib/shell/filter.rb: Fix typos and grammos. [approved by: keiju] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb: new method FileUtils.pwd.aamine2003-02-061-62/+49
| | | | | | | | | * lib/fileutils.rb: default label is ''. * lib/fileutils.rb: using module_eval again, to avoid ruby's bug. * lib/fileutils.rb: fix wrong examples in rdoc. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/complex.rb (Complex#==): should not raise error by typematz2003-02-062-9/+22
| | | | | | | | | mismatch. * lib/rational.rb (Rational#==): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb: dispatch code restructured to make it openableakr2003-02-051-45/+39
| | | | | | | that has `open' method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb: Location: field may has a relative URI.akr2003-02-051-1/+7
| | | | | | | pointed out by erik eriksson <ee@opera.com>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added RDoc comments. See comments at EOF for remaining issues.gsinclair2003-02-041-37/+148
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added RDoc comments.gsinclair2003-02-031-3/+147
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added RDoc comments. See comments at EOF for remaining issues.gsinclair2003-01-311-22/+230
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::make_switch): NoArgument doesn'tnobu2003-01-311-4/+12
| | | | | | | override other styles. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 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