summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * dir.rb: fix resource leak.mame2008-06-292-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tmpdir.rb (@@systmpdir): prior LOCAL_APPDATA if possible, andnobu2008-06-292-6/+19
| | | | | | | | should be clean. based on a patch from arton <artonx AT yahoo.co.jp> at [ruby-dev:35269] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (date2time_str): fix the overflow insuke2008-06-282-4/+7
| | | | | | | some situation. [ruby-bugs-20793] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typos.akr2008-06-281-20/+20
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2008-06-29svn2008-06-281-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix test_status_kill for coredump message in Process::Status#inspect.akr2008-06-281-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (struct RRegexp): new field usecnt. replaceakr2008-06-286-49/+69
| | | | | | | | | | | | | | | | | | | | | str and len by src. * gc.c (gc_mark_children): mark src field of regexp. (obj_free): don't free str field. * re.c (REG_BUSY): removed. (rb_reg_initialize): prohibit re-initialize regexp. (rb_reg_search): use usecnt to prevent freeing regexp currently using. this prevents SEGV by: r = /\A((a.)*(a.)*)*b/ r =~ "ab" + "\xc2\xa1".force_encoding("euc-jp") t = Thread.new { r =~ "ab"*8 + "\xc2\xa1".force_encoding("utf-8")} sleep 0.2 r =~ "ab"*8 + "\xc2\xa1".force_encoding("euc-jp") git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (rb_str_new2, rb_tainted_str_new2,nobu2008-06-282-6/+22
| | | | | | | | rb_usascii_str_new2): use inline versions only for constant literals. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (rb_str_new2, rb_tainted_str_new2,nobu2008-06-282-1/+6
| | | | | | | rb_usascii_str_new2): use inline versions for gcc 4 or lator. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for [ruby-dev:34958].akr2008-06-281-0/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rubygems/test_gem.rb (test_self_path_APPLE_GEM_HOME): don't useakr2008-06-282-3/+10
| | | | | | | fixed /tmp/apple_gem_home directory. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c : check String encoding whensuke2008-06-273-21/+79
| | | | | | | | | | converting String to VT_BSTR in OLE. * test/win32ole/test_win32ole.rb : ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2008-06-28svn2008-06-271-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c: fix rounding negative float.akr2008-06-273-0/+20
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix the last entry.akr2008-06-271-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: __size__ removed. use the length of __members__ instead.akr2008-06-272-11/+20
| | | | | | | (num_members): new function. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/inlinetest.rb (InlineTest.in_progname): workaround for frozennobu2008-06-273-5/+15
| | | | | | | | | $0. [ruby-dev:35261] * lib/test/unit/ui/console/testrunner.rb (TestRunner#finished): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (primary): empty not should call '!' on nil.matz2008-06-272-1/+6
| | | | | | cf [ruby-dev:35227] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/erb.rb: adjust line number for magic comment.kazu2008-06-273-4/+35
| | | | | | | * test/erb/test_erb.rb: add tests for def_method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (vm_eval_body): if thrown exception is frozen, reraise it tonobu2008-06-272-0/+6
| | | | | | | create a new instance. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (rb_str_new2, rb_tainted_str_new2,nobu2008-06-272-3/+3
| | | | | | | | rb_usascii_str_new2): use with-length versions with strlen to optimize strlen, if optimized. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (rb_str_new2, rb_tainted_str_new2,nobu2008-06-273-0/+15
| | | | | | | | rb_usascii_str_new2): use with-length versions with strlen to optimize strlen. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/un.rb (mkmf): new command to create makefile.nobu2008-06-272-16/+55
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/un.rb (wait_writable): added help message.nobu2008-06-272-0/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: need a ",".ko12008-06-263-2/+8
| | | | | | | | * process.c (rb_fork): check CANNOT_FORK_WITH_PTHREAD macro. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c (vm_call_super): fix to call method_missing.ko12008-06-262-4/+11
| | | | | | | | [ruby-core:15719], [ruby-core:17340] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2008-06-27svn2008-06-261-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (set_arg0, ruby_prog_init): freeze $0. a patch from Keitanobu2008-06-262-2/+7
| | | | | | | Yamaguchi <keita.yamaguchi at gmail.com>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_index_m, rb_str_rindex_m, rb_str_include): fixmame2008-06-262-14/+14
| | | | | | | rdoc. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ChangeLog: need address tweakmatz2008-06-261-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_f_trace_var): should not be allowed at safe level 4. matz2008-06-262-0/+6
| | | | | | a patch from Keita Yamaguchi <keita.yamaguchi@gmail.com>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Upgrade to RubyGems 1.2.0 r1824. Incorporates [ruby-core:17353].drbrain2008-06-2629-238/+513
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2008-06-26svn2008-06-251-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (primary): not operand might be empty. [ruby-dev:35227]matz2008-06-252-0/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (primary): make functional-style not operator to actmatz2008-06-255-5/+21
| | | | | | like function. see <http://d.hatena.ne.jp/ku-ma-me/20080624/p1>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_fill): not depend on unspecified behavior at integernobu2008-06-252-2/+7
| | | | | | | overflow. reported by Vincenzo Iozzo <snagg AT openssl.it>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/erb.rb (ERB::Compiler:Buffer#new): push magic comment first.naruse2008-06-252-5/+10
| | | | | | * lib/erb.rb (ERB::Compiler#compile): fix for broken input. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/erb.rb (ERB::Compiler#compile): magic comment needs LF.naruse2008-06-252-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/erb.rb (ERB::Compiler#compile): output magic comment.naruse2008-06-253-3/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c (eval_string_with_cref): preserve parse_in_eval even ifmame2008-06-242-0/+8
| | | | | | | exception raised. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c(ole_invoke): fix memory leak.suke2008-06-242-4/+25
| | | | | | | [ruby-bugs-20792] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (rb_cv_fork_with_pthread): check after check fornobu2008-06-242-58/+68
| | | | | | | pthread library, and define the macro when checked only. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/io/wait/extconf.rb: check sys/socket.h for cygwin.usa2008-06-242-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_reopen): remove cygwin handling because it seems to be forusa2008-06-242-6/+6
| | | | | | | | | C's stdio. fixed [ruby-dev:35183] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_process.rb (test_exec_wordsplit): on win32, exec'ed process ↵usa2008-06-241-2/+13
| | | | | | is not child but grandchild. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/win32.h, win32/win32.c (rb_w32_getppid): now supportusa2008-06-244-4/+43
| | | | | | | | | | getppid() on win32 (but only Win2k or later). * process.c (get_ppid): remove win32 special logic. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test_process.rb (test_popen_fork): skip test if fork is not implemented.usa2008-06-241-5/+7
| | | | | | | | | | | * test_process.rb (test_getpriority): skip test if Process::PRIO_USER is not defined. * test_process.rb (test_setpriority): cannot rescue exceptions which raise in assert_nothing_raised. check Process:PRIO_USER before test to skip instead. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (init_sock): socket is binmode on platformsusa2008-06-242-0/+8
| | | | | | | | which support binmode. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_build_from_ary): initialize arg_opts, a patch frommame2008-06-232-2/+8
| | | | | | | Adam Strzelecki <ono@java.pl> in [ruby-core:17220]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2008-06-24svn2008-06-231-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e