Граф коммитов

4008 Коммитов

Автор SHA1 Сообщение Дата
nobu a0f7b7ec92 * lib/cgi/session.rb (CGI::Session#initialize): empty session id was
used if request had no session key.  fixed: [ruby-core:03981]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-19 18:31:04 +00:00
kou ee6e23caf6 * lib/rexml/encodings/SHIFT_JIS.rb: fixed LoadError bug. [ruby-core:3958]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-19 15:19:43 +00:00
nobu a965236490 * configure.in (enable_rpath): use rpath flag to embed the library
path into extensions on ELF environment.  [ruby-dev:25035]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-19 08:25:36 +00:00
nobu 8c299e6e26 * lib/test/unit.rb: use standalone runner for -e.
* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner#options): accept
  multiple -p and -x options.

* lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#recursive_collect):
  ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-19 02:01:59 +00:00
nobu 9c016c18fc * ext/zlib/zlib.c (rb_deflate_s_deflate, rb_inflate_s_inflate):
disallow interrupt by type conversion.  fixed: [ruby-dev:25226]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-18 07:37:01 +00:00
nahi 93ed2c7b1e * lib/webrick/httpauth.rb,
lib/webrick/httpauth/{basicauth.rb,digestauth.rb}: use
          pack/unpack-template char "m" instead of lib/base64.rb to do base64
          encoding/decoding.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-18 06:17:33 +00:00
akr 7614d64725 * configure.in (ac_cv_sizeof_rlim_t): set 8 for BSD/OS.
Reported by OHARA Shigeki.  [ruby-dev:25236]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-17 08:47:11 +00:00
nagai cb2349d653 * ext/tk/lib/tk.rb: fix bug on setting up system encoding
* ext/tk/lib/tk/event.rb: fix error on require process
* ext/tk/lib/font.rb: fix abnormal termination error on Windows
* ext/tk/lib/tk/virtevent.rb: TkVirtualEvent::PreDefVirtEvent.new()
  accepts event-sequence arguments
* ext/tk/lib/text.rb: fail to dump embedded images
* ext/tk/lib/text.rb: tag_nextrange and tag_prevrange returns wrong
  types of values
* ext/tk/lib/texttag.rb: nextrange and prevrange returns wrong types of values
* ext/tk/lib/text.rb: add TkText::IndexModMethods module and
  TkText::IndexString class to treat text index modifiers
* ext/tk/lib/texttag.rb: use TkText::IndexModMethods module
* ext/tk/lib/textmark.rb: ditto
* ext/tk/lib/textimage.rb: ditto
* ext/tk/lib/textwindow.rb: ditto
* ext/tk/lib/textimage.rb: wrong gravity of text mark for embedded image
* ext/tk/lib/textwindow.rb: wrong gravity of text mark for embedded window


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-17 07:31:51 +00:00
nobu 3da93dd842 * lib/cgi/session.rb (CGI::Session#initialize): control adding
session_id hidden fields.  fixed: [ruby-talk:123850]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-17 04:34:39 +00:00
nobu 9534e73ff4 * eval.c (rb_proc_arity, rb_node_arity, rb_mod_method_arity,
rb_obj_method_arity): new functions to obtain method arity.
  [ruby-dev:25143]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-16 15:06:58 +00:00
nobu 326ebac3db * lib/mkmf.rb (create_makefile): create RUBYARCHDIR also when no extension
is installed.  fixed: [ruby-dev:25215]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-16 14:31:21 +00:00
seki c09dc0f725 adjust and reduce sleep
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-16 13:38:15 +00:00
gotoyuzo 67f4a393ba * ext/openssl/ossl.c (ossl_raise): refine message format.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-16 09:39:54 +00:00
nagai a247c7715d * ext/tk/sample/demos-en/widget: modify version check for supporting features
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-16 07:32:01 +00:00
nagai cd4ce67e50 * ChangeLog: forgot to commit
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-16 07:14:49 +00:00
aamine 0ce6372dc1 * ext/ripper/extconf.rb: bison is not needed if ripper.c exists. [ruby-dev:25191]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-15 19:02:42 +00:00
aamine 64b5b2b1a2 * lib/net/http.rb: remove junk.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-15 18:27:44 +00:00
matz e0ddacfc36 * ext/syck/rubyext.c (rb_syck_io_str_read): [ruby-core:03973]
* object.c (rb_obj_id_obsolete): warn always.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-15 16:01:11 +00:00
seki 8a92fc9709 changed default binded address family to use an available address family of host name. [druby-ja:101]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-15 15:46:53 +00:00
gotoyuzo 52d91fa402 * lib/webrick/server.rb (WEBrick::GenericServer#start_thread):
should log about all accepted socket. [ruby-core:03962]

* lib/webrick/accesslog.rb (WEBrick::AccessLog#setup_params):
  "%%" and "%u" are supported. [webricken:135]

* lib/webrick/httpservlet/filehandler.rb
  (WEBrick::HTTPServlet::FileHandler#check_filename):
  :NondisclosureName is acceptable if it is Enumerable.

* lib/webrick/config.rb (WEBrick::Config::FileHandler):
  default value of :NondisclosureName is [".ht*", "*~"].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-15 08:47:49 +00:00
matz 2edbb9d0f8 * lib/set.rb (Set#==): [ruby-dev:25206]
* ext/openssl/ossl_digest.c (ossl_digest_initialize): [ruby-dev:25198]

* utf8.c (utf8_is_mbc_ambiguous): [ruby-talk:123561]

* utf8.c (utf8_mbc_to_normalize): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-15 06:35:55 +00:00
usa f598caf621 * win32/win32.c (rb_w32_fdisset): check whether the handle is valid.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-15 05:32:53 +00:00
matz 6982d10a7e * utf8.c (utf8_is_mbc_ambiguous): [ruby-talk:123561]
* utf8.c (utf8_mbc_to_normalize): ditto.

* lib/cgi/session.rb (CGI::Session::initialize): generate new
  session if given session_id does not exist.  [ruby-list:40368]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-14 13:04:28 +00:00
usa 2f35e1e146 * win32/win32.c (rb_w32_close): need to reset osfhnd().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-14 08:10:32 +00:00
gotoyuzo 2235b8c36d * ext/openssl/ossl.c (ossl_raise): avoid buffer overrun. [ruby-dev:25187]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-14 05:05:17 +00:00
matz 21ae9c745a * eval.c (Init_eval): should mark ruby_eval_tree. [ruby-dev:25189]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-13 23:55:04 +00:00
akr 4497af1591 * gc.c (set_stack_end): new function to obtain stack end address.
set_stack_end obtains a stack end address by an address of local
  variable in the function.
  (SET_STACK_END, STACK_END): use set_stack_end.  don't use alloca.
  This makes the conservative garbage collector to scan a stack frame
  of the garbage_collect function itself.  This is required because
  callee-save registers may be stored in the frame.
  [ruby-dev:25158]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-13 09:57:41 +00:00
shugo 562ddea6ba * ext/curses/curses.c (window_subwin): call NUM2INT() before
GetWINDOW(). fixed: [ruby-dev:25161]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-12 17:47:53 +00:00
akr 4627c5a19b * lib/pathname.rb (cleanpath_aggressive): make it private.
(cleanpath_conservative): ditto.
  Suggested by Daniel Berger.  [ruby-core:3914]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-12 16:04:31 +00:00
nobu b6aba9ad54 * test/ruby/test_super.rb (TestSuper#test_define_method): now methods
from procs can call super.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-12 12:32:21 +00:00
dave 5f87cfb94c Don't show r/w accessot flags if none were specified for custom attributes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-12 01:36:57 +00:00
dave 05b5e64ac3 Never exclude files given on command line
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-12 01:16:19 +00:00
seki a402acbbb6 add DRbRemoteError. [ruby-list:40348], [ruby-list:40390]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-11 12:12:17 +00:00
nobu 0e01d2883b * sample/optparse/subcommand.rb: a sample for sub commands like
cvs.  contributed by Minero Aoki.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-11 04:09:07 +00:00
nobu bb59e412e1 * ext/socket/socket.c (sock_listen): get OpenFile just before calling
listen(2).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-09 23:39:57 +00:00
usa d9a56b4fee * ext/sdbm/init.c (GetDBM): typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-09 07:31:22 +00:00
gotoyuzo 3f06be1b9d * lib/webrick/cgi.rb (WEBrick::CGI#setup_header): avoid
SecurityError. [ruby-dev:24970]

* lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): should wait
  for reading request till data arrive. [ruby-talk:121068]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-09 07:22:45 +00:00
nobu e326946b35 * string.c (rb_str_inspect): escape # which starts an expression
substitution.  fixed: [ruby-core:03922]

* string.c (rb_str_dump): not escape # which isn't a substitution.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-09 05:38:59 +00:00
eban b9c6120e07 * io.c (pipe_open): should set prog if argc != 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-09 03:34:47 +00:00
matz 3d66cc4c6b * ext/dbm/dbm.c (fdbm_select): [ruby-dev:25132]
* ext/sdbm/init.c: ditto.

* ext/gdbm/gdbm.c: ditto.

* eval.c (proc_invoke): merge Guy Decoux's argument preserve
  patch in [ruby-core:03874].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-09 02:19:50 +00:00
nobu 32481c4126 * test/socket/test_socket.rb (test_setsockopt): use SO_LINGER instead
of SO_BINDTODEVICE.  fixed: [ruby-dev:25133]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-09 01:19:30 +00:00
nagai b9bdee95f1 * ext/tcltklib/tcltklib.c (ip_init): set root-win title to "ruby" when
the running script is '-e one-liner' or '-' (stdin).
* ext/tcltklib/extconf.rb: add find_library("#{lib}#{ver}",..) for stub libs
* ext/tk/lib/tk/textmark.rb: TkTextMarkCurrent and TkTextMarkAnchor
  have a wrong parent class.
* ext/tk/lib/tk/dialog.rb: rename TkDialog2 --> TkDialogObj and
  TkWarning2 --> TkWarningObj (old names are changed to alias names)
* ext/tk/lib/tk/dialog.rb: bug fix of treatment of 'prev_command'
  option and hashes for configuration
* ext/tk/lib/tk/dialog.rb: add TkDialogObj#name to return the button name
* ext/tk/lib/tk/radiobutton.rb: rename enbugged method value() ==> get_value()
  and value=(val) ==> set_value(val).
* ext/tk/lib/tk/menu.rb: add TkMenu.new_menuspec
* ext/tk/lib/tk/menu.rb: add alias (TkMenuButton = TkMenubutton,
  TkOptionMenuButton = TkOptionMenubutton)
* ext/tk/lib/tk/event.rb: new method aliases (same as option keys of
  event_generate) for Event object
* ext/tk/lib/tk/font.rb: configinfo returns proper types of values
* ext/tk/lib/tk.rb: bind methods accept subst_args + block
* ext/tk/lib/tk/canvas.rb: ditto
* ext/tk/lib/tk/canvastag.rb: ditto
* ext/tk/lib/tk/frame.rb: ditto
* ext/tk/lib/tk/text.rb: ditto
* ext/tk/lib/tk/texttag.rb: ditto
* ext/tk/lib/tk/toplevel.rb: ditto
* ext/tk/lib/tkextlib/*: ditto and bug fix


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-08 18:14:15 +00:00
dave 642e10156c Fix CSS typo that meant h2 headings were invisible
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-08 14:56:55 +00:00
akr 78f7b7036b * rubyio.h, io.c, ext/dl/dl.c, ext/pty/pty.c, ext/socket/socket.c:
create FILE object only when required: popen(3) and DL's IO#to_ptr.
  [ruby-dev:25122]

* io.c (rb_io_binmode): use setmode for Human68k.  [ruby-dev:25121]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-08 13:26:27 +00:00
eban 19f57ce144 * process.c (rb_spawn): support for DJGPP.
* lib/mkmf.rb (VPATH): specify the implicit path separator for DJGPP.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-08 11:14:53 +00:00
usa 3f56463129 * win32/win32.c (rb_w32_pipe_exec): need to close original socket
handle.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-08 08:38:59 +00:00
matz a0b3060708 * sprintf.c (rb_f_sprintf): [ruby-dev:25104]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-08 05:32:26 +00:00
usa 87a77c7174 * win32/win32.c (rb_w32_pipe_exec): must close original handle
before exec. fixed: [ruby-dev:25112]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-08 04:56:07 +00:00
usa bc4088d768 * win32/win32.c (rb_w32_fclose, rb_w32_close): shutdown socket
before closesocket(). fixed: [ruby-dev:25112]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-08 02:54:24 +00:00
nobu e41a1c0f10 * parse.y (string_content): get rid of segfault at empty evstr.
fixed: [ruby-dev:25113]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-08 02:46:39 +00:00
gotoyuzo 25a637eff5 * ext/openssl/ossl_bio.c (ossl_obj2bio): should not use fptr->f.
[ruby-dev:25101]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-07 18:34:29 +00:00
nobu bebc2eb8c7 * runruby.rb: prepend LIBRUBY_SO to LD_PRELOAD as well as rubytest.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-07 18:26:46 +00:00
usa d5b434088a * win32/win32.c (is_socket): reorder of function definitions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-07 16:36:29 +00:00
usa c3ce319d7d * io.c (pipe_open): win32 bidirectional pipe support.
* win32/win32.[ch] (rb_w32_pipe_exec): ditto.

* win32/win32.[ch] (socketpair): new function. POSIX socketpair
  emulation.

* win32/win32.c (socketpair_internal): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-07 15:47:59 +00:00
kou 6100eced2e * test/rss/test_version.rb: added version check test. [ruby-dev:25053]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-07 15:27:01 +00:00
akr a435e52259 * io.c (io_fwrite): avoid context switch before writing to stderr.
[ruby-dev:25080]

* rubyio.h: refine deprecated declaration.

* configure.in, file.c, io.c: remove useless check: fseeko, etc.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-07 06:44:42 +00:00
usa 638bbb1946 * ChangeLog: fix typo. sorry...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-07 04:47:59 +00:00
usa 571e1361b6 * io.c (dir_s_mkdir): win32 special processing doesn't need any longer.
* win32/win32.[ch] (rb_w32_mkdir): new function. POSIX.1 compatible
  interface.

* win32/win32.[ch] (rb_w32_rmdir): new function.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-07 04:45:46 +00:00
matz aa92750f27 * process.c (proc_setgroups): [ruby-dev:25081]
* re.c (rb_reg_eqq): document fix.  [ruby-talk:122541]

* io.c (io_fread): take VALUE argument.

* ext/socket/socket.c (sock_connect): use rb_str_new4().
  [ruby-dev:25052]

* eval.c (rb_yield_0): [ruby-dev:25051]

* io.c (io_write): remove rb_str_locktmp().  [ruby-dev:25050]

* io.c (io_fwrite): takes VALUE string as an argument.
  [ruby-dev:25050]

* ext/socket/socket.c (sock_connect): remove rb_str_locktmp().
  [ruby-dev:25050]

* ext/socket/socket.c (udp_connect): [ruby-dev:25045]

* ext/socket/socket.c (udp_bind): ditto.

* ext/socket/socket.c (udp_send): ditto.

* ext/socket/socket.c (bsock_send): ditto.

* ext/socket/socket.c (s_recvfrom): ditto.

* hash.c (rb_hash_hash): should provide "hash" method where "eql?"
  is redefined.  [ruby-talk:122482]

* ext/socket/socket.c (bsock_setsockopt): [ruby-dev:25039]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-06 15:31:26 +00:00
akr 2cefbe9fb2 * configure.in: check -lsocket for socketpair and shutdown.
reported by Ville Mattila.  [ruby-core:03903]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-06 14:09:33 +00:00
eban ee40e23864 * configure.in (ac_cv_sizeof_rlim_t): setup for DJGPP.
* io.c (is_socket, shutdown): define dummy macros for DJGPP.

* process.c: use SIZEOF_RLIM_T instead of HAVE_RLIM_T for DJGPP.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-06 14:04:05 +00:00
usa 9e31b97465 * io.c (is_socket): fix typos. [ruby-core:03900]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-06 12:20:29 +00:00
usa 699a1cab5d * ChangeLog: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-06 12:07:24 +00:00
usa 1acf7e6b01 * io.c (is_socket): new function.
* io.c (rb_io_close_read, rb_io_close_write): use is_socket().

* io.c (rb_io_fptr_finalize): need to check fptr->f before calling
  rb_io_fptr_cleanup().

* io.c (pipe_open): win32 pipe support (experimental).

* win32/win32.[ch] (rb_w32_pipe_exec): return file descripters
  instead of FILE structure.

* win32/win32.[ch] (rb_w32_is_socket): new function.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-06 11:19:27 +00:00
eban 3bd61a71a0 * Makefile.in (.y.c): simplify the rule.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-06 10:42:49 +00:00
akr 710bab8480 add ML ref.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-06 09:17:42 +00:00
usa f6a2a9b743 * eval.c (run_trap_eval): add prototype for Microsoft compiler.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-06 08:50:11 +00:00
akr 04f36c2bba * rubyio.h, intern.h, io.c, file.c, process.c, ext/socket/socket.c,
ext/pty/pty.c, ext/io/wait/wait.c, ext/openssl/ossl_ssl.c:
  Use own buffering mechanism instead of stdio.

* io.c, ext/stringio/stringio.c, test/ruby/ut_eof.rb:
  EOF flag removed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-06 08:40:30 +00:00
nobu 35091fdda5 * test/socket/test_socket.rb (TestBasicSocket#test_setsockopt):
BasicSocket#setsockopt dumps core.  [ruby-dev:25039]

* test/socket/test_tcp.rb (TestTCPSocket#test_recvfrom):
  TCPSocket#recvfrom dumps core.  [ruby-dev:24705]

* test/socket/test_udp.rb (TestUDPSocket#test_connect):
  UDPSocket#connect dumps core.  [ruby-dev:25045]

* test/socket/test_udp.rb (TestUDPSocket#test_bind):
  UDPSocket#bind dumps core.  [ruby-dev:25057]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-06 08:15:56 +00:00
gotoyuzo dd92742ce1 * ext/openssl/ossl_pkey_rsa.c (ossl_rsa_public_encrypt,
ossl_rsa_public_decrypt, ossl_rsa_private_encrypt,
  ossl_rsa_private_decrypt): should take an optional argument
  to specify padding mode. [ruby-talk:122539]

* ext/openssl/ossl_pkey_rsa.c (Init_ossl_rsa): add new constants
  PKCS1_PADDING, SSLV23_PADDING, NO_PADDING and PKCS1_OAEP_PADDING
  under OpenSSL::PKey::RSA.

* test/openssl/test_pkey_rsa.rb: new file.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-05 16:36:26 +00:00
nobu af3da7d124 * lib/optparse.rb (OptionParser::Completion#complete): new parameter
to direct case insensitiveness.

* lib/optparse.rb (OptionParser#order!): ignore case only for long
  option.  [ruby-dev:25048]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-05 10:39:58 +00:00
eban a54f1be716 * mkconfig.rb: setup library paths before requiring library.
[ruby-core:03892]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-04 15:56:34 +00:00
aamine 95a5b4e9a4 * lib/fileutils.rb: (In previous commit) new method chown.
* lib/fileutils.rb: (In previous commit) new method chown_R.
* lib/fileutils.rb: (In previous commit) new method chmod_R wrongly added.  Removed now.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-04 12:29:55 +00:00
aamine 7c0370dcaf * lib/fileutils.rb (mkdir, mkdir_p): should chmod explicitly. [ruby-core:03881]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-04 11:46:24 +00:00
kou 500bd1f033 * lib/rss/rss.rb: removed empty lines from output.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-04 09:55:29 +00:00
kou 636e37fcb9 * lib/rss/rss.rb (RSS::VERSION): 0.1.1 -> 0.1.2
* lib/rss/rss.rb: #item=/#set_item and so on are obsolete.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-04 09:53:01 +00:00
dave 5d8d975434 Ignore leading and trailing lines in :section: blocks
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-04 05:38:17 +00:00
matz 405a50a594 * eval.c (proc_invoke): prepare to pass a block from "call" method
to a Proc generated by Method#to_proc.  [ruby-dev:25031]

* eval.c (rb_yield_0): actually passes a block given to "call".

* object.c (convert_type): use rb_respond_to() again.  this fix is
  based on [ruby-dev:25021]

* eval.c (rb_respond_to): funcall respond_to? if it's redefined.
  [ruby-dev:25021]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-03 04:56:25 +00:00
nobu da4884e2d4 * st.h: fix prototype for C++.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-03 03:25:29 +00:00
nagai 697908d0d4 * ext/tk/lib/tk.rb: widget configuration by TkWindow#method_missing
returns proper object. "widget.option = val" returns val, and
  "widget.option(val)" returns self.
* ext/tk/lib/tk/font.rb: TkFont#replace accepts only one font argument.
* ext/tk/lib/tk/radiobutton.rb: add TkRadiobutton#value and value=(val).
* ext/tk/lib/tk/spinbox.rb: callback substitution support on command option.
* ext/tk/sample/demos-en/widget: bug fix (wrong image height)
* ext/tk/sample/demos-jp/widget: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-02 16:59:02 +00:00
mneumann 4c10b035ef * test/xmlrpc/test_parser.rb, test/xmlrpc/data/*.expected: Expected
values are now stored in YAML instead of using #inspect. This fixes
  false hash order.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-02 15:22:23 +00:00
matz 5847fadf7b * io.c (rb_file_initialize): [ruby-dev:25032]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-02 15:17:35 +00:00
nobu dd1510eddc * eval.c (rb_protect): prevent continuations created inside from being
called from the outside.  [ruby-dev:25003]

* eval.c (rb_callcc, rb_cont_call): prohibit calling from different
  signal contexts.  [ruby-dev:25022]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-02 07:41:50 +00:00
shugo c741090753 * test/readline/test_readline.rb: fix for NetBSD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-02 01:54:13 +00:00
nobu fc0fcec74e * eval.c (thread_mark): mark thread group. [ruby-dev:25020]
* eval.c (thgroup_add): check whether the argument is really a Thread.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-02 00:31:17 +00:00
matz aa997fca3e * io.c (rb_io_ctl): [ruby-dev:25019]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-02 00:27:27 +00:00
naruse c1b036033b * ext/nkf/nkf.c: add constant NKF::VERSION
* ext/nkf/nkf.c(guess): this becomes an alias of guess2

* ext/nkf/test.rb: add --no-cp932

* ext/nkf/nkf-utf8/nkf.c: original nkf2 revision 1.47


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-01 22:44:46 +00:00
matz 1b4f379ba3 * signal.c (sighandler): call handler immediately only for default
handlers.  [ruby-dev:25003]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-30 17:28:17 +00:00
nobu 6f1b13de99 * io.c (pipe_open): errno should be preserved for rb_sys_fail() when
fork failed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-30 14:49:18 +00:00
matz e6e84eab64 * io.c (io_fread): need not to null terminate. [ruby-dev:24998]
* io.c (read_all): remove unnecessary rb_str_resize().
  [ruby-dev:24996]

* io.c (io_readpartial): ditto.

* io.c (io_read): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-30 09:36:39 +00:00
matz ee6869c8d6 * eval.c (rb_eval): should check previous frame for ZSUPER.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-30 09:33:50 +00:00
matz c079ee2bce * eval.c (PUSH_FRAME): flags should have been initialized.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-30 06:10:53 +00:00
eban 9556d9333a * instruby.rb (install): add arguments explicitly to "super".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-30 06:01:58 +00:00
matz 38ada9fe87 * eval.c (rb_eval): [ruby-core:03856]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-30 04:01:17 +00:00
matz c0acb3ce17 * io.c (rb_io_sysread): use temporary lock. [ruby-dev:24992]
* lib/ostruct.rb (OpenStruct::method_missing): check method
  duplication for -d.

* lib/ostruct.rb (OpenStruct::initialize): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-29 15:58:18 +00:00
ksaito cb32ebe81c * regparse.c: now handles many alternatives (over 500000) in regexp. [ruby-dev:24773]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-29 15:16:20 +00:00
nobu af7418e5c4 * ext/stringio/stringio.c (strio_write): insufficiently filled string
being extended when overwriting.  [ruby-core:03836]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-29 07:06:21 +00:00
nobu 37eb7502db * test/io/nonblock/test_flush.rb: abandon tests when io/nonblock is
not supported.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-29 06:22:42 +00:00
matz 83cb605d69 * object.c (convert_type): [ruby-core:03845]
* eval.c (rb_funcall_rescue): new function.

* object.c (rb_Array): avoid using rb_respond_to().

* object.c (rb_Integer): ditto.

* eval.c (get_backtrace): no conversion for nil.

* parse.y (reduce_nodes): empty body should return nil.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-29 06:09:40 +00:00
nobu fa69f28eb5 * io.c (fptr_finalize): must not use FILE after fclose().
[ruby-dev:24985]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-29 04:38:08 +00:00
usa 0412ddfd24 * win32/win32.c (CreateChild): push back the last space before next
loop because CharNext() eats it.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-29 04:17:05 +00:00
akr a8f25ded9c don't use READ_DATA_PENDING in previous change
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-28 17:02:14 +00:00
akr da9166cc19 add ML ref.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-28 16:46:04 +00:00
akr 06646d1b4e * io.c (rb_io_check_writable): restrict io_seek by
READ_DATA_PENDING because io_seek(fptr, 0, SEEK_CUR) is
  meaningful only if read buffer is not empty.
  call io_seek regardless of NEED_IO_SEEK_BETWEEN_RW.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-28 16:31:12 +00:00
kou 44b9ca6696 * added reference.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-28 07:02:36 +00:00
kou 0c616db7ff * lib/rss/rss.rb (RSS::Element#tag): not use block_given? for
working with ruby 1.6 again.
* lib/rss/{0.9,2.0,trackback}.rb, lib/rss/maker/base.rb:
  undef -> remove_method for working with ruby 1.6 again.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-28 06:59:34 +00:00
kou b684f87574 * lib/rss/rss.rb (RSS::NotSetError): added.
* lib/rss/maker/{1.0,0.9,2.0}.rb: changed RSS Maker to raise
  RSS::NotSetError if required values of maker.channel are not
  set.
* test/rss/test_maker_{1.0,0.9,2.0}.rb: changed tests to check RSS
  Maker raises or not.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-28 06:53:41 +00:00
ksaito aa01c73689 * regparse.c (fetch_token): fixed test failure on HP-UX ia64 ([ruby-dev:24859]).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-28 03:16:16 +00:00
ksaito 09542e3269 * regparse.c, test/ruby/test_regexp.rb: fixed problem with UTF-8 characters that have U+00FE or invalid characters.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-28 03:09:13 +00:00
ksaito 5fb312bd18 * regexec.c, test/ruby/test_regexp.rb: fixed segmentation falut ([ruby-dev:24887]).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-28 03:07:48 +00:00
ksaito 7eac88ecd5 * regcomp.c, regint.h: fixed PLATFORM_UNALIGNED_WORD_ACCESS problem ([ruby-dev:24802] and [ruby-core:3733])
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-28 03:06:39 +00:00
akr 0abc28742a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-27 13:08:11 +00:00
akr b70e88a123 * io.c: avoid avoid data loss with nonblocking fd and
stdio buffering in sync mode.  [ruby-dev:24966]
  based on matz's patch [ruby-dev:24967]
  (io_fwrite): new primitive writing function which writes
  directly if sync mode.
  (rb_io_fwrite): wrapper for io_fwrite now.
  (io_write): call io_fwrite instead of rb_io_fwrite.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-27 13:05:46 +00:00
kou 2572d5e20e * lib/rss/{0.9,1.0,2.0,trackback,xml-stylesheet}.rb: added
#setup_maker.
* test/rss/test_setup_maker_*.rb: added tests for #setup_maker.
* lib/rss/maker/base.rb(RSS::Maker::Items#max_size=): supported
  output item size limitation.
* sample/rss/blend.rb: added sample for RSS Maker.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-27 08:47:28 +00:00
kou 0a93165e16 * lib/rss/maker/0.9.rb: supported RSS::Maker.make("0.91"). Now,
"0.9" is just alias of "0.91."
* test/rss/test_maker_0.9.rb: make("0.9") -> maker("0.91").
* test/rss/test_to_s.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-27 08:43:18 +00:00
kou b325d73c13 * sample/rss/list_description.rb: untabified.
* sample/rss/rss_recent.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-27 08:41:32 +00:00
matz 65445b53ca * io.c (io_fread): [ruby-dev:24964]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-27 02:21:53 +00:00
nagai 27c24b0f3b * ext/tk/lib/tk.rb: Tk.destroy uses TkWindow#epath
* ext/tk/lib/tk/image.rb: bug fix
* ext/tk/lib/tk/wm.rb: add 'iconphoto' method(Windows only)
* ext/tk/lib/tkextlib/*: some methods uses TkWindow#epath


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-26 09:07:25 +00:00
matz 6d0f22ebc6 * io.c (rb_io_initialize): [ruby-dev:24963]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-26 06:27:45 +00:00
matz c97c359053 * io.c (rb_io_initialize): [ruby-dev:24962]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-26 05:30:45 +00:00
matz 9e5c4cde2f * io.c (rb_io_initialize): should retrieve flags from copying file
descriptor. [ruby-dev:24961]

* eval.c (method_missing): raise TypeError for classes do not
  have allocators.  [ruby-core:03752]

* lib/erb.rb: [ruby-core:03786]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-26 04:50:36 +00:00
dave a052ef75ab Fix problem with :section: and new 1.9
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-26 04:32:11 +00:00
matz 84bd21465e * io.c (io_read): move StringValue() check before GetOpenFile().
[ruby-dev:24959]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-25 15:23:19 +00:00
nobu 0247fbae3d * lib/thwait.rb (ThreadsWait#join_nowait): abnormally terminated
threads should be also processed.  [ruby-talk:121320]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-25 11:15:33 +00:00
akr 3e37ee5af1 add ML ref.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-25 09:11:48 +00:00
akr db306518e4 * configure.in: AC_CHECK_SIZEOF(rlim_t) to include stdio.h to fix
problem with autoconf 2.52 or earlier.
  revert AC_PREREQ to 2.50.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-25 09:09:26 +00:00
nobu 058c1d1620 descriptions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-25 02:24:02 +00:00
matz 51c48c29d8 * configure.in: AC_PREREQ(2.53) [ruby-core:03800]
* io.c (read_all): [ruby-dev:24955]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-25 01:58:31 +00:00
usa 624f62c515 * ChangeLog: add ML reference.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-25 01:46:00 +00:00
matz 0f2fdc6978 * io.c (io_read): [ruby-dev:24952]
* configure.in, io.c: cancel [ ruby-Patches-1074 ].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-23 17:37:51 +00:00
matz e66752a0ed * io.c (io_read): [ruby-dev:24952]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-23 16:04:16 +00:00
nagai d852a4e317 * ext/tk/lib/tk/menu.rb: improve usability of TkOptionMenubutton
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-22 23:12:37 +00:00
matz 941d135904 * file.c (rb_file_chown): [ruby-dev:24949]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-22 17:02:45 +00:00
matz f50136a311 * file.c (rb_file_chown): integer conversion should be prior to
GetOpenFile().  [ruby-dev:24947]

* file.c (rb_file_truncate): ditto.

* file.c (rb_file_s_truncate): ditto.

* dir.c (dir_seek): use NUM2OFFT().

* misc/ruby-mode.el (ruby-non-block-do-re): [ruby-core:03719]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-22 15:26:02 +00:00
dave d9d5c88cf3 Don't include 'require's with variable arguments
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-22 13:37:39 +00:00
matz fec64f7fe2 * dir.c (dir_seek): should retrieve dir_data after NUM2INT().
[ruby-dev:24941]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-21 15:33:56 +00:00
aamine 5809c72125 add ChangeLog for last commit
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-20 17:33:18 +00:00
matz 688c69b1f7 * string.c (rb_str_splice): should place index wrapping after
possible modification.  [ruby-dev:24940]

* eval.c (error_print): nicer traceback at interrupt.
  [ruby-core:03774]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-20 15:18:35 +00:00
dave a80ba17d67 1. Force --inline-source if --one-file given
2. Add new :section: directive which starts a new section in the output.
   The title following :section: is used as the section heading, and the
   remainder of the comment containing the section is used as
   introductory text. Subsequent methods, aliases, attributes,
   and classes will be documented in this section.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-20 15:02:57 +00:00
aamine aafc487d6a * io.c (rb_io_getline): f.gets("") did not work. [ruby-core:03771]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-20 14:26:23 +00:00
eban a0b500ac08 * test/runner.rb (CROSS_COMPILING): need to require rbconfig.rb before
using CROSS_COMPILNG.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-20 13:58:20 +00:00
aamine 9ad74dd377 * ext/ripper/depend: fix ripper.o dependency.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-20 11:44:02 +00:00
eban 9b25eee46e * io.c (io_reopen): work around problem with Cygwin fseeko
returning ESPIPE.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-20 08:49:16 +00:00
naruse 643ac551dc * ext/nkf/nkf-utf8/nkf.c: original nkf.c rev:1.40
* ext/nkf/test.rb: add test for mime encode/decode


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-19 20:46:13 +00:00
matz 77a23fba35 * string.c (str_gsub): internal buffer should not be listed by
ObjectSpace.each_object() by String#gsub.  [ruby-dev:24931]

* lib/cgi/session.rb (CGI::Session::FileStore::initialize): raise
  exception if data corresponding to session specified from the
  client does not exist.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-19 16:59:11 +00:00
eban 86761931c8 * test/xmlrpc/test_webrick_server.rb : move `requrie "webrick/https"'
into #setup_http_server mohtod to avoid soap test errors.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-19 16:48:05 +00:00
eban 0fe17f5d81 * lib/test/unit/collector/dir.rb: better support for -p/-x option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-19 13:45:46 +00:00
kou b37319295d * lib/rss/maker/0.9.rb (RSS::Maker::RSS09::Image#have_required_values):
changed /rss/channel/image to be optional. [ruby-Bugs:1047]

* test/rss/test_maker_0.9.rb: added tests for the above.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-19 08:49:05 +00:00
kou 9be1ed43c8 * lib/rss/rss.rb (RSS::VERSION): 0.1.0 -> 0.1.1.
* lib/rss: #to_s used #tag.
* test/rss/test_to_s.rb: added.

* lib/rss/maker.rb (RSS::Maker.make): changed API. It's not
  received modules which is used as the second argument.

* lib/rss/xml-stylesheet.rb (RSS::XMLStyleSheet#alternate):
  changed return value type which is not String but Boolean.

* lib/rss/2.0.rb (RSS::Rss::Channel#ttl): changed return value
  type which is not String but Integer.

* lib/rss/0.9.rb (RSS::Rss::Channel): <skipDays> has <day>s and
  <skipHours> has <hour>s.
* lib/rss/maker/0.9.rb (RSS::Maker::RSS09::Channel): ditto.

* lib/rss/0.9.rb (RSS::Rss::Channel::Item): <item> has <category>s.
* lib/rss/maker/2.0.rb (RSS::Maker::Rss20::Channel::Item): ditto.

* lib/rss/2.0.rb (RSS::Rss::Channel): <channel> has <category>s.
* lib/rss/maker/2.0.rb (RSS::Maker::RSS20::Channel): ditto.

* lib/rss/trackback.rb: parent element has <trackback:about>s.
* lib/rss/maker/trackback.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-19 08:25:25 +00:00
eban 1c453c0608 * lib/xmlrpc/datetime.rb (XMLRPC::DateTime#==): should use Array()
instead of to_a.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-19 02:26:23 +00:00
eban e6a0f42c94 * lib/test/unit/collector/dir.rb: add support for directory name
with -p/-x options.

* test/testunit/collector/test_dir.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-19 02:22:57 +00:00
shugo 964171ebfa * ext/readline/readline.c (readline_s_set_completion_append_character):
accept nil.  [ruby-core:03765]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-19 01:38:38 +00:00
matz 5e2c8a40c3 * string.c (str_gsub): internal buffer should not be listed by
ObjectSpace.each_object().  [ruby-dev:24919]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-18 16:02:08 +00:00
aamine 5e2fdf0163 * ext/ripper/depend: Never regenerate lib/ripper/core.rb automatically. [ruby-dev:24911]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-18 14:42:54 +00:00
usa fce2bb5ea8 * win32/win32.[ch] (rb_w32_isatty): new function to replace MSVCRT's
isatty because it never sets errno.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-18 11:52:46 +00:00
matz 5141d3ea79 * hash.c (rb_f_getenv): prohibit for $SAFE=4. [ruby-dev:24908]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-18 08:11:12 +00:00
nobu fc20fdcbc8 * parse.y (f_rest_arg): store rest args into invisible local variabe
in order to get rid of SEGV at ZSUPER.  [ruby-dev:24913]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-18 08:06:09 +00:00
shugo 1e6cdc00e7 * ext/readline/readline.c: check $SAFE.
* test/readline/test_readline.rb: added tests for readline.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-18 06:12:12 +00:00
matz b28b7933a8 * process.c (proc_getpgrp): prohibit for $SAFE=2.
[ruby-dev:24899]

* process.c (get_pid): ditto.  [ruby-dev:24904]

* process.c (get_ppid): ditto.

* array.c (rb_ary_delete): defer rb_ary_modify() until actual
  modification.  [ruby-dev:24901]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-18 03:45:23 +00:00
nobu 27e4aa4a93 * io.c, rubyio.h (rb_io_modenum_flags): exported.
* ext/stringio/stringio.c (strio_initialize): allow Fixnum as mode as
  well as IO.new does.  [ruby-dev:24896]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-18 01:11:01 +00:00
nahi e766a04a57 Wed Nov 17 23:47:30 2004 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>
* test/ruby/test_settracefunc.rb: added.  [ruby-dev:24884]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-17 14:48:35 +00:00
mneumann eabc1fc658 * lib/xmlrpc/parser.rb, test/xmlrpc/test_features.rb: fixed "assinging to constants" warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-17 11:51:08 +00:00
akr 6c8ffdbf32 * process.c (proc_getrlimit, proc_setrlimit): add rb_secure(2) to
methods of Process.{getrlimit,setrlimit}
  patched by Kazuhiro NISHIYAMA  <zn@mbf.nifty.com>


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-17 10:12:19 +00:00
nobu 9c1e33fc45 * dir.c (rb_push_glob): fix overrun. [ruby-dev:24886]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-17 04:05:18 +00:00
matz 288ceaeec2 * re.c (rb_reg_initialize_m): should raise exception instead of
compile error.  [ruby-core:03755]

* string.c (rb_str_splice): move rb_str_modify() after
  StringValue(), which may alter the receiver.  [ruby-dev:24878]

* error.c (rb_error_frozen): now raise RuntimeError instead of
  TypeError.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-17 02:27:38 +00:00
mneumann 3ad741f132 * lib/xmlrpc/server.rb (CGIServer): fixed bug when client sends "Content-typ: text/xml; ..."
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-16 21:25:50 +00:00
matz 02f848f9a4 * numeric.c (flo_divmod): protect float values from GC by
assignment to local variables.  [ruby-dev:24873]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-16 14:51:38 +00:00
mneumann a74375b05f ChangeLog entry for XML-RPC changes I made during the last day
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-16 14:36:35 +00:00
usa 15de1b79f0 * {bcc32,win32,wince}/setup.mak (-epilogue-): remove config.h and
config.status to force updating them.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-16 07:30:42 +00:00
nobu 2d28e9d55b * ext/stringio/stringio.c (strio_read): position was ignored when a
buffer was passed.  http://www.yo.rim.or.jp/~nov/d/?date=20041116#p03


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-16 07:21:21 +00:00
matz b93479b8d9 * string.c (str_mod_check): frozen check should be separated.
[ruby-core:3742]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-16 04:55:14 +00:00
usa c2b7884076 * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::options): add
new option --exclude (-x) to skip some tests.

* lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir.exclude):
  ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-16 04:39:22 +00:00
nobu 6116dd832c * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::options): use
Regexp conversion.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-16 02:19:44 +00:00
matz 67d54f209d * array.c (rb_ary_update): pedantic check to detect
rb_ary_to_ary() to modify the receiver.  [ruby-dev:24861]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-15 16:45:03 +00:00
akr 30b3ce3445 * configure.in: check rlim_t more portably. [ruby-core:3735]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-15 10:05:17 +00:00
nobu e77fc75802 * misc/ruby-mode.el (ruby-special-char-p, ruby-parse-partial): handle
operator symbols.  [ruby-talk:120177]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-15 02:51:10 +00:00
matz 7320e53be1 * eval.c (Init_Proc): make proc as an alias to Proc.new.
[ruby-dev:24848]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-15 01:52:45 +00:00
matz 9d4144af09 * eval.c (rb_yield_0): lambda{}.call(1) should raise exception.
[ruby-talk:120253]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-14 16:00:36 +00:00
matz 0f36ecebe0 * string.c (rb_str_clear): avoid revealing NULL pointer.
[ruby-dev:24766]

* string.c (str_gsub): add paranoid check. [ruby-dev:24827]

* string.c (str_mod_check): check frozen status as well.
  [ruby-dev:24801]

* lib/mathn.rb (Integer::gcd2): faster implementation by
  <erlercw@siu.edu>. [ruby-talk:120232]

* ext/gdbm/gdbm.c (fgdbm_store): StringValue() may alter string
  pointer.  [ruby-dev:24783]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-14 15:41:40 +00:00
akr 8f1c92af4f * process.c (proc_getrlimit): new function for Process.getrlimit.
(proc_setrlimit): new function for Process.setrlimit.
  [ruby-dev:24834]

* configure.in: check rlim_t and its size.  check setrlimit.

* ruby.h (NUM2ULL): new macro.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-14 10:06:16 +00:00
nobu 5d581bc314 * lib/pp.rb (PP#object_address_group): remove odd number of 'f'
prefixed to negative address.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-14 04:27:39 +00:00
nahi 12c788d061 Sun Nov 14 08:46:33 2004 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>
* test/logger/test_logger.rb: Logger just expects
          Logger#datetime_format to be used for Time#strftime independently of
          locale. [ruby-dev:24828]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-13 23:50:46 +00:00
usa d51f21cee0 * bcc32/README.bcc32, win32/README.win32: need bison instead of
byacc.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-12 08:33:17 +00:00
usa c4ce79084f * eval.c (ruby_options): now we cannot call rb_glob() before
ruby_init(), so call rb_w32_cmdvector() at ruby_options().

* win32.{c,h} (rb_w32_cmdvector): rename make_cmdvector() and
  export it.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-12 06:15:40 +00:00
nagai 47fa2caf2e * ext/tk/lib/tk/event.rb: remove $LOADED_FEATURES trick
* ext/tk/lib/tk.rb: ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-12 05:09:37 +00:00
matz 9f3d5e7172 * dir.c (rb_glob): should have called rb_glob_caller().
[ruby-dev:24773]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-11 08:59:20 +00:00
usa 0935d95369 * test/ruby/test_file.rb (test_truncate_wbuf): we want to test
only File#truncate, not behavior of seek(2).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-11 07:56:38 +00:00
nobu 20beabcb68 * error.c (syserr_initialize): use stringified object.
[ruby-dev:24768]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-10 16:53:26 +00:00
matz 7eaf299bf2 * lib/delegate.rb (SimpleDelegator::dup): wrong number of
arguments.

* lib/delegate.rb (DelegateClass::dup): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-10 13:52:08 +00:00
nobu 765c6a80e6 * dir.c (glob_helper): path is a string object now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-10 10:48:01 +00:00
matz 683400f427 * dir.c (rb_glob2): do not allocate buffer from heap to avoid
memory leaks.  use string object for buffering instead.
  [ruby-dev:24738]

* dir.c (join_path): ditto.

* io.c (io_read): external input buffer may be modified even after
  rb_str_locktmp().  [ruby-dev:24735]

* dir.c (fnmatch): p or s may be NULL.  [ruby-dev:24749]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-10 07:17:53 +00:00
nobu 63b9174a64 * README.EXT (Example): extconf.rb is indispensable now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-10 03:31:55 +00:00
nagai cd84994255 * ext/tcltklib/tcltklib.c: fix SEGV when compiled with Tcl/Tk8.3.x or older
* ext/tk/lib/tkextlib/tile/style.rb: bug fix


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-09 18:35:52 +00:00
naruse 877d48c8ae * ext/nkf: original nkf.c rev:1.38
* ext/nkf/nkf.c: fix bug: can't parse long-name options
* ext/nkf/test.rb: fix bug: mime tests fail


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-09 16:40:34 +00:00
nobu 4c718c753e * lib/optparse.rb (OptionParser::Officious): moved from DefaultList.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-09 05:27:58 +00:00
dave 79c4db675a Change version numbering of RDoc and ri
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-08 15:55:23 +00:00
seki 8b9422f502 add DRb::ExtServManager#uri=.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-08 15:45:31 +00:00
dave 37abc5eaa3 Fix bug where parent class wasn't being detected if the
child class was defined using the A::B notation.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-08 13:25:26 +00:00
eban 495358834c * configure.in: add setup for mignw32 cross compiling.
[ruby-talk:119413]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-07 15:16:27 +00:00
nagai c2ac862f1a * ext/tk/lib/tk.rb: bind-event methods accept multi substitution arguments.
* ext/tk/lib/tk/canvas.rb: ditto.
* ext/tk/lib/tk/canvastag.rb: ditto.
* ext/tk/lib/tk/text.rb: ditto.
* ext/tk/lib/tk/texttag.rb: ditto.
* ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb: ditto.
* ext/tk/lib/tkextlib/tktable/tktable.rb: ditto.
* ext/tk/lib/tkextlib/treectrl/tktreectrl.rb: ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-07 14:53:02 +00:00