summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* * lib/mkmf.rb: Make sure to dig the destination directory beforeknu2002-11-271-2/+2
| | | | | | | | | installing a file there. Formerly "make install" could fail depending on make(1)'s mood of the moment, especially when -jN is given. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_find_file_ext): should not terminate searching withmatz2002-11-221-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | empty path, just ignore. * dir.c: remove <sys/parm.h> inclusion. * compar.c (cmp_eq,cmp_gt,cmp_ge,cmp_lt,cmp_le): check using rb_cmpint(). * error.c (init_syserr): remove sys_nerr dependency. * numeric.c (num_cmp): added to satisfy Comparable assumption. * eval.c (rb_add_method): "initialize" should be public if it is a singleton method. * regex.c (re_match): avoid dereferencing if size == 0. (ruby-bugs-ja:PR#360) * time.c (time_cmp): should return nil if an operand is not a number nor time. (ruby-bugs-ja:PR#359) * file.c (rb_stat_cmp): should return nil if an operand is not File::Stat. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* change default prompt.keiju2002-11-221-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * erb.rb: fix def_class bug.seki2002-11-211-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: changes coding style.aamine2002-11-213-117/+122
| | | | | | | | * lib/net/pop.rb: ditto. * lib/net/protocol.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: unify coding style.aamine2002-11-211-221/+222
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: should not overwrite Host: header. (Original patch is ↵aamine2002-11-211-1/+1
| | | | | | contributed by sean@ruby-lang.org) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: support Proxy-Authorization. (Original patch is ↵aamine2002-11-211-7/+63
| | | | | | | | | contributed by Alexander Bokovoy) * lib/net/http.rb: should not overwrite Host: header. (Original patch is contributed by sean@ruby-lang.org) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_zip): iterates over items in the receiver.matz2002-11-191-1/+1
| | | | | | | | | | | | zipped with nil if argument arrays are shorter. if arrays are longer, left items are ignored. now works with blocks. * enum.c (zip_i): changed for new behavior. * array.c (rb_ary_transpose): added. [new] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* URI::extract extracts only URIs of specified schemes when schemes are specified.akira2002-11-191-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* initialize hackmatz2002-11-191-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb: not rewrite installed scripts when dry-run mode.nobu2002-11-181-8/+4
| | | | | | | | * lib/ostruct.rb (OpenStruct::initialize): should symbolize keys instead of values. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Improve the comment section.knu2002-11-181-11/+14
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tempfile.rb: Make this libary thread safe.knu2002-11-171-29/+52
| | | | | | | | | | | | | | | | * lib/tempfile.rb: Do not pick a name which was once used and is still scheduled for removal. * lib/tempfile.rb: A lock file need not and must not be scheduled for removal. * lib/tempfile.rb: Compare Max_try with the number of mkdir failures instead of the suffix counter. * lib/tempfile.rb: Overall cleanup and add some important notices. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * add ERBseki2002-11-171-0/+258
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ostruct.rb: keep NoMethodError message with Ruby itself.nahi2002-11-151-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * profile.rb: illegal use of Array#sort!. replaced it with non-bangnahi2002-11-141-1/+2
| | | | | | | method. [ruby-dev:18792] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * observer.rb: raise NoMethodError instead of NameError. [ruby-dev:18788]nahi2002-11-142-3/+3
| | | | | | | | * ostruct.rb: ditto. fix a bug in inspect which called String#+ with Symbol. [ruby-dev:18788] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (LIBRUBY_A): append -static. [ruby-dev:18689]nobu2002-11-141-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in (LIBRUBYARG_STATIC, LIBRUBYARG_SHARED): linker argument to link static/shared library respectively. * Makefile.in (LIBRUBYARG_STATIC, LIBRUBYARG_SHARED): added. * bcc32/Makefile.sub, win32/Makefile.sub: ditto. * instruby.rb (LIBRUBY_A): install to libdir. * lib/mkmf.rb (link_command): link static library of ruby, or try_run fails unless LIBRUBY_SO is installed. [ruby-dev:18646] * eval.c (call_trace_func): toplevel caller was missing. [ruby-dev:18754] * eval.c (proc_to_s): adjust created line number. * parse.y (primary, do_block, brace_block): adjust line number of block to beginning line, instead of the first statement inside the block. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * math.c (math_acos): check errno after operation. ditto formatz2002-11-142-6/+9
| | | | | | | | | | | | | | | | | asin, acosh, atanh, log, log10 and sqrt. * eval.c (rb_add_method): initialize should always be private. * parse.y (expr): add rescue modifier rule. * parse.y (command_call): return, break and next with argument is now part of this rule. * parse.y (yylex): "a" in "a /5" should be considered as a local variable. [experimental] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/set.rb: retire contain?() and add superset?(),knu2002-11-091-17/+128
| | | | | | | | | | | | | | proper_superset?() subset?(), and proper_subset?(). [obtained from: Jason Voegele's set.rb] * lib/set.rb: define several aliases: union() for |(), difference() for -(), ande intersection() for &(). [obtained from: Jason Voegele's set.rb] * lib/set.rb: deal with a s/id/object_id/ leftover. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* DEBUGGER__::Context::debug_print_help: Typo fix of help message.nahi2002-11-091-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (rb_define_method): do not set NOEX_CFUNC if klass ismatz2002-11-074-12/+12
| | | | | | | | | | | | | really a module, whose methods must be safe for reciever's type. * eval.c (rb_eval): nosuper should not be inherited unless the overwritten method is an undef placeholder. * parse.y (primary): allow 'when'-less case statement; persuaded by Sean Chittenden. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb, lib/mkmf.rb: use CONFIG["ENABLE_SHARED"] instead ofusa2002-11-041-1/+1
| | | | | | | checking whether CONFIG["configure-args"] includes "--enable-shared". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/getopts.rb: Do not choke on characters that cannot be usedknu2002-11-031-2/+10
| | | | | | | | in a variable name. Replace them with `_'. Define a hash named $OPT for convenience. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (Init_Object): added Object#object_id, new name formatz2002-11-031-8/+5
| | | | | | | | | | | | | | | | | | | Object#id. [new] * object.c (rb_obj_id_obsolete): give warning for Object#id. * numeric.c (fix_intern): added Fixnum#to_sym. [new] * object.c (sym_to_sym): rename from Symbol#intern * enum.c (enum_zip): added Enumerable#zip. [new] * array.c (rb_ary_zip): added Array#zip. * error.c (init_syserr): remove sys_nerr dependency. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): use dummy_makefile to create dummynobu2002-10-281-63/+52
| | | | | | | | | | | | | | | | | Makefile. * lib/mkmf.rb (find_executable0): EXEEXT is optional. * lib/mkmf.rb (dummy_makefile): make dummy Makefile content. * lib/mkmf.rb (create_makefile): define EXTLIB replacing -l. * lib/mkmf.rb ($bccwin): detect Borland make by help message. * lib/mkmf.rb (CLEANINGS): common rules to clean. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/extmk.rb(78) : The unnecessary error when installing by bccwin32 is ↵H_Konishi2002-10-271-1/+1
| | | | | | | | | controlled. lib/mkmf.rb(773) : Also in the case of bccwin32, the path was added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * djgpp/*: sync with the latest.eban2002-10-271-1/+5
| | | | | | | | | * ext/extmk.rb, lib/mkmf.rb: flush $stdout. * io.c (READ_DATA_PENDING_COUNT, READ_DATA_PENDING_PTR): undef these macros on DJGPP. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (LIBPATHFLAG): avoid $ substitution.nobu2002-10-241-2/+2
| | | | | | | | | | | | | | [ruby-dev:18577] * ext/extmk.rb (extmake): expand $srcdir. * ext/win32ole/extconf.rb: should not override $CFLAGS, but append. * lib/mkmf.rb (config_string): use given config hash. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): site-install target for backward compatibility.nobu2002-10-231-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (init_mkmf): libdir prior to topdir.nobu2002-10-231-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_eval): added NODE_DSYM, symbol literal withnobu2002-10-231-4/+4
| | | | | | | | | | | | | | | | | | | | | | | interpolation. * node.h: ditto. * intern.h: prototypes; rb_is_junk_id, rb_str_dump, rb_str_intern * object.c (sym_inspect): escape and quote for non-alphanumeric symbols. * parse.y (dsym, tokadd_string, yylex): extended symbol literals. * parse.y (rb_is_junk_id): added. * string.c (rb_str_dump, rb_str_intern) : make extern. * lib/mkmf.rb (create_makefile): deffile should be removed by distclean, not clean. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (init_mkmf): add dir_config("opt").eban2002-10-221-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb: add dryrun mode.nobu2002-10-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | * ext/extmk.rb (extmake): avoid Borland make's quirk behavior. * lib/mkmf.rb (link_command): opt is not a makefile macro. * bcc32/Makefile.sub ($(LIBRUBY_SO) $(LIBRUBY)): EXTOBJS were not linked. * bcc32/Makefile.sub (ext/extinit.obj): missing. * bcc32/Makefile.sub (TRY_LINK): options have to place before any non-option arguments. * win32/Makefile.sub (TRY_LINK): need -link and -libpath options. * bcc32/Makefile.sub, win32/Makefile.sub (RANLIB): logical operator never work with command.com. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (RUBY_CPPOUTFILE): fix cache file bug.eban2002-10-211-2/+2
| | | | | | | | * lib/mkmf.rb (link_command): put 'opt' after conftest.c for static linking. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (XCFLAGS): CFLAGS to comile ruby itself.nobu2002-10-211-473/+431
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in (LIBEXT): suffix for static libraries. * configure.in (LIBPATHFLAG): switch template to specify library path. * configure.in (LINK_SO): command to link shared objects. * configure.in (DEFFILE, ARCHFILE): miscellaneous system dependent files. * configure.in (EXPORT_PREFIX): prefix to exported symbols on Windows. * configure.in (COMMON_LIBS, COMMON_MACROS, COMMON_HEADERS): libraries, macros and headers used in common. * configure.in (RUBYW_INSTALL_NAME, rubyw_install_name): GUI mode excutable name. * Makefile.in (CFLAGS): append XCFLAGS. * Makefile.in (PREP): miscellaneous system dependent files. * Makefile.in (ruby.imp, ext/extinit.o): moved from ext/extmk.rb. * Makefile.in (fake.rb): CROSS_COMPILING keeps building platform. * Makefile.in (MAKEFILES): depend on *.in and config.status. * Makefile.in (parse.c): replace "y.tab.c" with actual name for byacc. * ext/extmk.rb, lib/mkmf.rb: integrated. * ext/extmk.rb: propagate MFLAGS. * ext/extmk.rb (extmake): make dummy Makefile to clean even if no Makefile is made. * lib/mkmf.rb (older): accept multiple file names and Time objects. * lib/mkmf.rb (xsystem): split and qoute. * lib/mkmf.rb (cpp_include): make include directives. * lib/mkmf.rb (try_func): try wheather specified function is available. * lib/mkmf.rb (install_files): default to site-install. * lib/mkmf.rb (checking_for): added. * lib/mkmf.rb (find_executable0): just find executable file with no message. * lib/mkmf.rb (create_header): output header file is variable. * lib/mkmf.rb (create_makefile): separate sections. * lib/mkmf.rb (init_mkmf): initialize global variables. * win32/Makefile.sub, bcc32/Makefile.sub (CPP, AR): added. * bcc32/Makefile.sub (ARCH): fixed to i386. * win32/Makefile.sub, bcc32/Makefile.sub (miniruby): should not link EXTOBJS. * ext/dl/extconf.rb: use try_cpp to cross compile. * ext/dl/extconf.rb: not modify files in source directory. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* should raise InvalidComponentError if MAILTO_REGEXP could not match with ↵akira2002-10-201-2/+3
| | | | | | @opaque. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_str_to_dbl): RString ptr might be NULL.matz2002-10-171-0/+9
| | | | | | | | | | | * object.c (rb_cstr_to_dbl): p pointer might be NULL. * bignum.c (rb_str_to_inum): RString ptr might be NULL. * bignum.c (rb_cstr_to_inum): str pointer might be NULL. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb: stat.blksize might become 0/nil.aamine2002-10-171-44/+54
| | | | | | | * lib/fileutils.rb: change coding style. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/weakref.rb (WeakRef::@@final): use Hash#delete.nobu2002-10-101-11/+7
| | | | | | | | | | * lib/weakref.rb (WeakRef::__getobj__): examin if alive or not by ID_REV_MAP to deal with recycled object. [ruby-dev:18472] * lib/weakref.rb (WeakRef::weakref_alive?): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/prettyprint.rb (PrettyPrint.singleline_format): new method.akr2002-10-082-4/+53
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated uri.rb and uri/*.rb to uri-0.9.7akira2002-10-045-37/+76
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use Object#class instead of deprecated Object#type.nobu2002-10-0222-93/+91
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/delegate.rb (Delegator::initialize): use Object#classnobu2002-10-021-2/+2
| | | | | | | instead of deprecated Object#type. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (libpathflag): restore ENV['LIB'] when some error occured.usa2002-09-251-2/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (appendline): forget to terminate with nul.matz2002-09-251-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * eval.c (ruby_run): should set toplevel visibility again here. * eval.c (rb_eval): should not rely on ruby_class == rb_cObject check. Besides allow implicit publicity for attribute set methods. * parse.y (primary): need not to check class_nest, just set whether method is an attrset or not. * string.c (rb_str_each_line): p might be at the top of the string. * class.c (rb_make_metaclass): class of metaclass should be metaclass of superclass, unless class itself is a metaclass; class of metaclass of metaclass should point back to self. eh, confusing, isn't it. * class.c (rb_singleton_class): check if its class is singleton AND attached to self. * eval.c (rb_eval): should define class/module under ruby_cbase. * eval.c (rb_eval): should set class/module path based on ruby_cbase, not ruby_class. * eval.c (module_setup): use ruby_cbase instead of ruby_class. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (RUBY_MINGW32): new macro. check for the MinGWeban2002-09-231-106/+104
| | | | | | | | compiler envionment. * lib/mkmf.rb: refactoring. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/set.rb: Merge rough/lib/set.rb rev.1.5-1.15.knu2002-09-201-36/+394
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* No exception report when the exception is not specified to catch.nahi2002-09-181-1/+1
| | | | | | | [ruby-talk:50330] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e