aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * lib/open-uri.rb (OpenURI.redirectable?): permit https redirection.akr2008-12-272-1/+6
| | | | | | | patch from Roman Shterenzon. [ruby-core:20485] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (get_errinfo): return th->errinfo valueko12008-12-273-1/+18
| | | | | | | | | | if normal errinfo place (dynamic local viriable) is not found. fixes Bug #732 [ruby-dev:37046]. * bootstraptest/test_proc.rb: add a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* man/irb.1: adds -v, -h, -E and -U.yugui2008-12-272-11/+43
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_call_method, vm_call_cfunc): use original id instead ofko12008-12-275-11/+43
| | | | | | | | | | | | | calling id when NODE_CFUNC or NODE_BMETHOD. fixes Bug #632 [ruby-core:19282]. * vm_eval.c (vm_call0, vm_call_super): ditto. * vm_method.c (rb_add_method, rb_alias): store original id in nd_file field of NODE_METHOD. * test/stringio/test_stringio.rb: add a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (Init_VM): create and define TOPLEVEL_BINDING at first.ko12008-12-279-15/+119
| | | | | | | | | | | | | | | | | | * vm.c (vm_set_main_stack, rb_iseq_eval_main): added. * parse.y (rb_parser_compile_file): fix to check parse_in_eval flag. * eval.c (ruby_exec_node): use rb_iseq_eval_main() instead of rb_iseq_eval(). * iseq.c (rb_iseq_new_main), vm_core.h: added. main script (specified by -e or script name) should be run under TOPLEVEL_BINDING using Kernel#eval. Above changes simulate Kernel#eval behaviour. [ruby-dev:37240] * compile.c (make_name_for_block): skip iseq except block type. this fix is needed for [ruby-dev:37240], and also fixes [ruby-dev:35392]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c: rdoc for Fiber. patch by Muhammad Ali.yugui2008-12-272-0/+124
| | | | | | | [ruby-core:20894] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (after_fork): ignores a termination request in thenobu2008-12-262-2/+7
| | | | | | | parent process. [ruby-dev:37447] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-12-27svn2008-12-261-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb: Using a more robust transcoding scheme to producejeg22008-12-262-5/+24
| | | | | | | | ASCII compatible inspect() messages. [ruby-dev:37591] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (fptr_finalize): don't allocate objects if noraise.akr2008-12-262-16/+37
| | | | | | | | | | (finish_writeconv): add noalloc argument to be able to avoid object allocation. (finish_writeconv_arg): introduced again. (finish_writeconv_sync): follow the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/input-method.rb (IRB::StdioInputMethod#initialize):yugui2008-12-262-1/+5
| | | | | | | removed a 'p' for debugging. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::List#summarize): gives prioritynobu2008-12-263-6/+42
| | | | | | | | | | to latter switches. [ruby-dev:36692] * lib/optparse.rb (OptionParser#summarize): do not append unnecessary line terminator. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-12-26svn2008-12-261-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (fptr_finalize): close the IO object even if finish_writeconv orakr2008-12-264-52/+60
| | | | | | | | | | | | | | | flush is failed. (finish_writeconv): don't raise. return errno or exception. (finish_writeconv_arg): removed. (finish_writeconv_sync): follow finish_writeconv change. * transcode.c (rb_econv_make_exception): new function. * include/ruby/encoding.h (rb_econv_make_exception): declared. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (str_transcode0): set encoding when String#encode wasnaruse2008-12-253-2/+8
| | | | | | given explicit but the same destination and source encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_s_pipe): unused variable removed.akr2008-12-252-3/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (sym_ignore): remove useless symbol.naruse2008-12-252-2/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (pipe_close): removed.akr2008-12-253-12/+22
| | | | | | | | (pipe_yield): defined. (rb_io_s_pipe): use pipe_yield. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (decorate_convpath): show type of escaping fornaruse2008-12-252-11/+21
| | | | | | xml_attr_quote or some conversions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_initialize): check fd validity. [ruby-dev:36646]akr2008-12-252-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (flush_before_seek): check io_fflush result.akr2008-12-253-16/+44
| | | | | | | | | | | | | | | | (rb_io_check_readable): ditto. (rb_io_flush): ditto. (rb_io_fsync): ditto. (remain_size): ditto. (rb_io_write_nonblock): ditto. (finish_writeconv): ditto. (fptr_finalize): ditto. (io_reopen): ditto. (rb_io_reopen): ditto. (copy_stream_body): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_fflush): flush write buffer without write lock inmatz2008-12-252-1/+15
| | | | | | | | finalizers. [ruby-dev:37572] * io.c (rb_io_fptr_finalize): clear write lock before finalizing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (fptr_finalize): close the IO object even if close(2) is failed.akr2008-12-252-18/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/parser.rb (RDoc::Parser.binary?): should read in binary mode.usa2008-12-252-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_method_search): fix control flow bug.ko12008-12-252-8/+11
| | | | | | | | (commited at r20981) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_eval.rb: add new test.usa2008-12-251-0/+17
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c: sorry, wrong commit. orzusa2008-12-251-10/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_flush): fsync() after buffer is flushed on win32.usa2008-12-252-2/+18
| | | | | | | | [ruby-core:20043] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_method_search): return rb_cObject if there is noko12008-12-253-3/+51
| | | | | | | | | super class. [ruby-dev:37587] * bootstraptest/test_method.rb: add tests for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c (proc_new): should use proc_dup() if block has Proc.ko12008-12-254-23/+57
| | | | | | | | | | * vm.c (vm_make_proc_from_block): should use rb_cProc for block. * vm.c (vm_make_proc): add an assertion. * bootstraptest/test_proc.rb: add a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_yield_with_cfunc): check block has Proc.ko12008-12-252-1/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * template/id.h.tmpl, id.h (ruby_method_ids_check): enclosed in anobu2008-12-243-3/+10
| | | | | | | struct. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * template/id.h.tmpl, id.h (ruby_method_ids): not depend on ifnobu2008-12-243-72/+62
| | | | | | | token are defined as macros. [ruby-dev:37553] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (thread_start_func_2): sets native thread key.nobu2008-12-242-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/readline/test_readline_history.rb: check the encoding thatkouji2008-12-242-21/+29
| | | | | | | is in the Readline::HISTORY. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-12-25svn2008-12-241-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/readline/test_readline_history.rb: did not check thekouji2008-12-242-1/+6
| | | | | | | encoding that is in the Readline::HISTORY. I will fix it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c, vm_dump.c: change message by rb_bug().ko12008-12-243-6/+31
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_peephole_optimize): fix typo.ko12008-12-242-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (invoke_block_from_c): fix to point right cfp.ko12008-12-245-20/+25
| | | | | | | | | | * vm.c (vm_make_proc, vm_make_proc_from_block), vm_core.h: remove unused parameter cfp. * vm_insnhelper.c, proc.c (proc_new): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (exc_equal): == method should not raise Exception.ko12008-12-243-4/+24
| | | | | | | | | [ruby-dev:37519] * sample/test.rb: fix test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_call_method): use class of method definedko12008-12-246-10/+43
| | | | | | | | | | | | instead of receiver's class on bmethod. fixes [ruby-core:20786] * bootstraptest/test_method.rb: add a test for above. * vm_insnhelper.c (vm_setup_method): remove unused parameter klass. * vm_insnhelper.h (CALL_METHOD): ditto. * insns.def, vm_eval.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/file2lastrev.rb (get_revisions): fix to ignore end of line.ko12008-12-242-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (Makefile): removes GNU make specific files onnobu2008-12-243-2/+9
| | | | | | | | | | | distclean. * Makefile.in (distclean-ext): removes extension directories. * lib/mkmf.rb (try_do): removes conftest.dSYM git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (HAVE_LONG_LONG, HAVE_OFF_T): revised for autoconfnobu2008-12-242-3/+7
| | | | | | | 2.62 or later. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (OBJDUMP, OBJCOPY): autoconf list is not commanobu2008-12-232-8/+17
| | | | | | | | | | separated. * configure.in (AC_HEADER_STDC, AC_CHECK_HEADERS AC_CHECK_FUNCS): removed duplicated checks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el: added comment to mention newer versionmatz2008-12-232-6/+53
| | | | | | | bundled with Emacs 23 or later. a patch from Phil Hagelberg <phil at hagelb.org> in [ruby-core:20838]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * pack.c (pack_pack): encoding of packed string only from 'm',matz2008-12-232-17/+33
| | | | | | | | | 'M', and 'u' should be US-ASCII. [ruby-dev:37284] * pack.c (pack_pack): encoding of packed string only from 'U' should be UTF-8. also upgrade US-ASCII strings to UTF-8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/protocol.rb (Net::BufferedIO#rbuf_fill): avoid callingmatz2008-12-232-1/+6
| | | | | | read_nonblock in rescue. use retry instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_init_copy): call io_seek only if io_tell succeeds.akr2008-12-232-3/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e