summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* * lib/tmpdir.rb: new library to get temporary directory path,matz2003-07-214-8/+35
| | | | | | | | | | | using GetTempPath on Win32 environment. * lib/tempfile.rb: now uses tmpdir.rb. * lib/cgi/session.rb, ib/drb/unix.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_match2): add warning to "~string".matz2003-07-191-1/+13
| | | | | | | | | | [ruby-list:37751] * lib/net/ftp.rb (Net::FTP::open): takes block. suggested by Gavin Sinclair in [ruby-core:01237]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Initial commit of scanf.rb.dblack2003-07-191-0/+697
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc: import.matz2003-07-1911-0/+3352
| | | | | | | | * eval.c (thgroup_add): should return group for terminated thread case. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (init_mkmf): clear $INSTALLFILES. [ruby-dev:20727]nobu2003-07-181-3/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (rm_f): use FileUtils.nobu2003-07-181-19/+16
| | | | | | | | | | | | | | | | | * lib/mkmf.rb (modified?): return mtime of the target if it exists and newer than times. * lib/mkmf.rb (install_files): add a current directory file even if it does not exist yet. * lib/mkmf.rb (configuration): do not add $LDFLAGS to DLDFLAGS. * ext/extmk.rb (extmake): check whether Makefile is newer than depend and MANIFEST. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* removed garbagenobu2003-07-181-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_f_missing): VCALL is called only for LOCAL_ID. nomatz2003-07-181-1/+1
| | | | | | | | | | check required. * parse.y (primary): pritmary:tFID generates NODE_FCALL. [ruby-dev:20641] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_clear_cache_by_class): check both klass and origin.matz2003-07-172-15/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (ruby_init): set ruby_running to true aftermatz2003-07-172-3/+19
| | | | | | | initialization. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ftools.rb (File::makedirs): do not handle "//" as a directory.eban2003-07-171-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: remove elements conversion to_f, to_i, to_r.matz2003-07-152-52/+79
| | | | | | | | | * lib/cgi/session/pstore.rb: add new file. * process.c (proc_getgroups, proc_setmaxgroups): fix typo. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* BaseEmitter left out as well.why2003-07-111-0/+241
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/emitter.c: new emitter code.why2003-07-115-242/+58
| | | | | | | | | | | | | | | | | * ext/syck/rubyext.c: Emitter class. * lib/yaml.rb: Load Syck emitter, if available. * lib/yaml/stream.rb: ditto. * lib/yaml/baseemitter.rb: underlying class for all emitters. * lib/yaml/rubytypes.rb: use BaseEmitter abstraction. * lib/yaml/emitter.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * rename 'Shift-JIS' to 'SHIFT-JIS'matz2003-07-114-33/+18
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/encodings/EUC-JP.rb (Encoding): use join.matz2003-07-102-4/+4
| | | | | | | | * lib/rexml/encodings/Shift-JIS.rb (Encoding): use join, and typo fixed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/encoding.rb (encoding=): oops, shouldn't havematz2003-07-091-3/+1
| | | | | | | checked in without Sean's concent. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_load): put rb_load_file() in a thread criticalmatz2003-07-094-25/+41
| | | | | | | | | | | | | | | | | | | | | | | | section. [ruby-dev:20490] * eval.c (compile): put rb_compile_string() in a thread critical section. * variable.c (rb_const_get_0): should not warn if constant is not defined. (ruby-bugs-ja PR#509) * bignum.c (rb_big2dbl): give a warning on overflow. (ruby-bugs-ja PR#510) * util.c (ruby_strtod): change MDMAXEXPT from 511 to 308. * pack.c (utf8_to_uv): long is sufficient. LONG_LONG is not required. * bignum.c (rb_big2str): support 32 bit (without `long long' type) machines. (ruby-bugs-ja PR#512) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Changelog, lib/debug.rb: fix typo.matz2003-07-031-1/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/timeout.rb: add optional exception argument for compatibilityakr2003-07-031-2/+5
| | | | | | | function. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/mkmf.rb (VPATH): use '&&' instead of 'and'.eban2003-07-031-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_values_at): extract common procedure frommatz2003-07-034-14/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rb_ary_values_at. follow DRY principle. * re.c (match_values_at): values_at should understand ranges. * struct.c (rb_struct_values_at): ditto. * struct.c (inspect_struct): inspect format changed; add "struct " at the top. * sprintf.c (rb_f_sprintf): "%p" specifier for inspect output. (RCR#68) * eval.c (rb_mod_undef_method): allow "undef_method" to accept multiple arguments. (RCR#146) * lib/timeout.rb: put timeout in Timeout module. (RCR#121) [ruby-talk:61028] * re.c (match_groups): new method added. (RCR#139) * variable.c (rb_mod_const_of): should exclude constant defined in Object, unless retrieving constants of Object. * string.c (rb_str_new4): do not allocate new string if original is frozen or already have copy-on-write entry. [ruby-talk:74940] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (VPATH): convert from Windows form to Unix form oneban2003-07-031-1/+1
| | | | | | | MinGW. This fixes the build with GNU make 3.80-1 for Cygwin. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: synchronize document with source code.aamine2003-07-022-171/+319
| | | | | | | * lib/net/pop.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: unify SMTP and SMTPCommand.aamine2003-07-023-327/+358
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/net/smtp.rb: new exception class SMTPError. * lib/net/smtp.rb: new exception class SMTPAuthenticationError. * lib/net/smtp.rb: new exception class SMTPServerBusy. * lib/net/smtp.rb: new exception class SMTPSyntaxError. * lib/net/smtp.rb: new exception class SMTPFatalError. * lib/net/smtp.rb: new exception class SMTPUnknownError. * lib/net/smtp.rb: change critical section protect algorithm. * lib/net/smtp.rb (SMTP#do_start): check authentication args before all. * lib/net/smtp.rb: new method send_message (alias send_mail). * lib/net/smtp.rb: new method open_message_stream (alias ready). * lib/net/pop.rb: POPBadResponse is a POPError. * lib/net/pop.rb (POPMail#pop): ban ReadAdapter. * lib/net/pop.rb (POPMail#top): ditto. * lib/net/pop.rb (POP3Command): change critical section protect algorithm. * lib/net/pop.rb (POP3Command#auth): USER and PASS should be one critical block. * lib/net/pop.rb (POP3Command#retr): ban `dest' argument using iterator. * lib/net/pop.rb (POP3Command#top): ditto. * lib/net/protocol.rb: #read_message_to -> #each_message_chunk * lib/net/protocol.rb: #D -> #LOG * lib/net/protocol.rb: #D_off -> #LOG_off * lib/net/protocol.rb: #D_on -> #LOG_on git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: set old class aliases for backward compatibility. ↵aamine2003-07-022-1/+13
| | | | | | | | | [ruby-talk:74863] * lib/net/protocol.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb (Net::POP3#start): typofix.eban2003-07-011-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* import drb-2.0.4 (use LocalJumpeError#reason)seki2003-06-282-56/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (autoload_delete): should delete Qundef from iv_tbl.matz2003-06-251-0/+2
| | | | | | | (ruby-bugs-ja PR#504) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml/types.rb: replaced Kernel::Hash reference with Object::Hashwhy2003-06-241-1/+1
| | | | | | | from [ruby-talk:74270] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (HTTPHeader#proxy_basic_auth): missing `@'.aamine2003-06-241-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb: Import csv module.nahi2003-06-191-0/+1322
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* import from drb-2.0.4b3seki2003-06-1810-0/+1343
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c (rb_syck_load_handler): merge key implemented.why2003-06-183-6/+13
| | | | | | | | | | | | | | * ext/syck/rubyext.c (transfer_find_i): removed use of String#=~ in favor of Regexp#match. * lib/yaml.rb: YAML::try_implicit returns. * lib/yaml/rubytypes.rb: Regexps added for type matching. * lib/yaml/emitter.rb: fix String + nil error. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/gram.c: added grammar for certain empty sequence entries.why2003-06-171-10/+2
| | | | | | | | | | | | | * ext/syck/handler.c, ext/syck/syck.c, ext/syck/syck.h: track bad anchors. * ext/syck/token.c: added pause token, tag possible circular references. * lib/yaml/rubytypes.rb: parsing YMD time as Date instance. * ext/syck/rubyext.c: ditto. DomainType, PrivateType, BadAlias classes. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (proc_alloc): re-unification of Block and Proc. Blockmatz2003-06-166-22/+22
| | | | | | | class is no longer available. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/quickpath.rb: escape '[' to avoid warning.eban2003-06-161-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* REXML hadn't been tested with Ruby 1.8.0, which was really, really,ser2003-06-155-26/+28
| | | | | | | | | unbelievably stupid of me. There were a lot of warnings and some errors that were caused by Block vs. Proc differences; these have been fixed. REXML passes all of the tests under Ruby 1.8.0. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (storebinary): seek correctly. Thanks, William Webber.shugo2003-06-131-1/+8
| | | | | | | * lib/net/ftp.rb (putbinaryfile): rescue FTPPermError. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/token.c: preserve newlines prepended to a block.why2003-06-104-110/+15
| | | | | | | | | | | | | | | | * ext/syck/implicit.c (syck_match_implicit): added !merge and !default. * lib/yaml/constants.rb: remove '\z' escape. * lib/yaml/emitter.rb: ensure reset of @seq_map shortcut flag. * lib/yaml/encoding.rb: remove Unicode translation methods. * lib/yaml/rubytypes.rb: improved round-tripping of Strings. [ruby-core:1134] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/cdata.rb,lib/rexml/quickpath.rb,lib/rexml/parsers/baseparser.rb:eban2003-06-103-4/+4
| | | | | | | avoid warnings. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/ruby-lex.rb: typo.matz2003-06-101-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/slex.rb: small cleanups. (ruby-bugs-ja PR#492)matz2003-06-102-10/+11
| | | | | | | * lib/irb/ruby-lex.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb.rb (IRB::Irb::eval_input): warn and exit if $SAFE >=3matz2003-06-103-10/+14
| | | | | | | | | | | | | | after input evaluation. * lib/irb.rb (IRB::Irb::eval_input): untaint input string. now irb works for levels 1 and 2. * ext/syck/rubyext.c (syck_loader_transfer): should not use rb_cProc directly, since type_proc may be Proc, Block, or Method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* The versions on the import were messed up; I imported an untranslatedser2003-06-101-3/+3
| | | | | | | source tree. This fixes that. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Initial revisionser2003-06-1053-0/+6674
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: define Net::HTTPResponse#to_ary for backward ↵aamine2003-06-062-7/+17
| | | | | | | | | compatibility. [ruby-talk:72927] * lib/net/protocol.rb: add warning. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c (syck_parser_mark): was a bit heavy on the GC.why2003-06-051-0/+8
| | | | | | | * lib/yaml.rb (YAML::transfer): added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_call_super): inheritance line adjustment moved frommatz2003-06-033-3/+11
| | | | | | | | | rb_call(). [ruby-core:01113] * eval.c (rb_eval): use rb_call_super() to follow DRY principle. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (push_values_at): Array#values_at should work withmatz2003-06-026-25/+31
| | | | | | | | | | | | ranges too. * range.c (rb_range_beg_len): length calculation was wrong. * eval.c (rb_call): should set T_ICLASS in the frame->last_class. [ruby-core:01110] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e