summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * man/ri.1: new manpage.yugui2008-12-292-0/+184
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* arrangementtadf2008-12-291-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * rational.c: floor, ceil, truncate and round accept an extratadf2008-12-292-16/+76
| | | | | | | | argument like Float#round. [experimental] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in (distclean-local): removes Doxyfile andyugui2008-12-292-0/+7
| | | | | | run.gdb at distclean'ing. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bin/erb: accepts options in more flexible styles.yugui2008-12-292-7/+21
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/erb.rb (ERB): m17n of ERB. adds rdoc.yugui2008-12-295-10/+370
| | | | | | | | | | | | | | | | | | | | | | fixes #712. c.f. [ruby-dev:37516]. * lib/erb.rb (ERB::Compiler#compile): recognizes magic comments. returns a pair of compiled script and its script encoding. * lib/erb.rb (ERB#set_eoutvar): make generated scripts return a string in correct encoding. * lib/erb.rb (ERB#def_method): use Kernel#eval for encoding-awareness of the evaluated string. * bin/erb.rb (ERB::Main.run): adds -E and -U options. String is no longer Enumerable. * man/erb.1: new manapage. * test/erb/test_erb_m17n.rb: new test case for m17n features. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/io/wait/wait.c (io_nread): returns number of bytes availablematz2008-12-292-0/+31
| | | | | | for read. response to feature request #936 in [ruby-core:20917]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/io/wait/wait.c (io_ready_p): updated to follow RDoc.matz2008-12-292-5/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (s_recvfrom_nonblock): revert r21162.matz2008-12-292-15/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (s_recvfrom_nonblock): fixed awesome typo.matz2008-12-292-1/+4
| | | | | | sorry. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (vm_set_eval_stack, vm_set_main_stack, vm_set_top_stack):ko12008-12-292-0/+11
| | | | | | | | check stack overflow. [ruby-dev:37646] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (s_recvfrom_nonblock): default maxlen to bematz2008-12-292-2/+13
| | | | | | | 65536. suggested by akr in [ruby-core:20918]. response to feature request #936 in [ruby-core:20917]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r21134 from ruby_1_9_1 into trunk.yugui2008-12-292-3/+9
| | | | | | | | * test/rubygems/test_gem_command.rb (test_add_option_overlapping_common_and_local_options): follows r21066. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in (ext-clean): ext-clean always fails.yugui2008-12-293-2/+12
| | | | | | * ext/dl/ripper/extconf.rb: adds y.output into the clean list. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_mutex_trylock): return false if Mutex ownedko12008-12-293-4/+26
| | | | | | | | | | by current thread. [ruby-core:20943] * thread.c (rb_mutex_lock): check dead lock (recursive lock) here. * test/ruby/test_thread.rb: add a test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert previous changes.naruse2008-12-292-22/+21
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_get_path): move encoding conversion of file pathnaruse2008-12-293-21/+29
| | | | | | | | from rb_scan_open_args. * io.c (rb_scan_open_args): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c: small RDoc fix mentioned from <radek.bulat at gmail.com>matz2008-12-282-1/+6
| | | | | | in [ruby-core:20921]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add ML index ([ruby-dev:37634]).ko12008-12-281-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (process_options): set th->base_block only whileko12008-12-282-11/+35
| | | | | | | | | | it is needed. * ruby.c (require_libraries): clear th->base_block before require libraries. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-12-29svn2008-12-281-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for OpenSSL::SSL::SSLSocket#read_nonblock.akr2008-12-281-0/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: adds the author name of a patch.yugui2008-12-281-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ext/dl/test_base.rb : add BSD's case.naruse2008-12-282-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/import.rb (DL::Importer#sizeof): followsyugui2008-12-282-1/+6
| | | | | | a feature change in 1.9. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/import.rb (DL::Importer#extern): adds filename andyugui2008-12-283-3/+23
| | | | | | | | | line number to module_eval'ing for readability of backtrace. (DL::Importer#bind): ditto. * ext/dl/lib/dl/struct.rb (DL::CStructBuilder#create): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (config.h): do not use snprintf/vsnprintf innobu2008-12-282-5/+4
| | | | | | | msvcrt. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_sprintf.rb (test_invalid): suppress warning.nobu2008-12-281-0/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c: not force to override snprintf/vsnprintf.nobu2008-12-282-3/+5
| | | | | | | [ruby-core:20824] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rubygems/test_ext_configure_builder.rb (test_self_build_fail):naruse2008-12-282-1/+6
| | | | | | Extends pattern for FreeBSD's error message. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * commit ChangeLogtakano322008-12-281-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Sun Dec 28 17:10:13 2008 TAKANO Mitsuhiro (takano32) <tak@no32.tk>takano322008-12-282-6/+3
| | | | | | | | | | * ext/dl/test/test_dl2.rb: modify strncpy, strcpy, qsort, types. Bug #633 [ruby-core:19289] * ext/dl/test/test_base.rb: /lib/libc.so is x86_64 binary in x86_64 architecture. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/test/test_base.rb: use libc.dylib when the platform is darwin.takano322008-12-282-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (mutex_free, mutex_unlock): add qualifiers.mame2008-12-282-3/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (mutex_free): GC thread (main thread) has failed to unlockmame2008-12-282-7/+17
| | | | | | | | | | | | a mutex that is locked by another thread, which makes the mutex dangling in keeping_mutexes and causes [BUG] or stuck finally. Now unlocking is performed as locking thread. * thread.c (mutex_unlock, rb_mutex_unlock, rb_mutex_unlock_all): mutex_unlock receives a thread. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Imported minitest 1.3.1 r4505.ryan2008-12-275-15/+95
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-12-28svn2008-12-271-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * runruby.rb: refactored to modify ENV as once.akr2008-12-272-5/+17
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rdoc/test_rdoc_info_formatting.rb (setup, teadown): usesnobu2008-12-273-4/+11
| | | | | | | | | mktmpdir and removes it alfter the test. * test/cgi/test_cgi_session.rb (setup, teadown): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/test/test_base.rb: use lib64 when the architecture is x86_64.takano322008-12-272-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_argv_size): if an argument is empty, it's sizeusa2008-12-272-1/+6
| | | | | | | | is 2, not 0, because it will be converted to "". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * add Doxyfile to svn:ignore.mame2008-12-270-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (after_exec): needs to reset before restart timernobu2008-12-273-2/+11
| | | | | | | | | | thread. * thread.c (thread_start_func_2): stops timer thread if forked in the new thread. [ruby-core:19385] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_thread_atfork, rb_thread_atfork_before_exec): DRY.nobu2008-12-272-24/+25
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c (rb_f_loop): return enumerator if no block given.matz2008-12-272-1/+7
| | | | | | [ruby-list:45747] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * .gdbinit (dummy_gdb_enums.special_consts): forces to load debugnobu2008-12-272-0/+14
| | | | | | | | | info on Mac OS X. * .gdbinit (rp): added T_ZOMBIE. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_frame_callee, rb_frame_caller): rb_frame_callee()ko12008-12-272-1/+17
| | | | | | | | | | | | should return method id on current frame. add rb_frame_caller() to get method id on parent frame. Bug #884 [ruby-dev:37446] * eval.c (rb_f_method_name): use rb_frame_caller() instead of rb_frame_callee(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (make_econv_exception): show source and destinationakr2008-12-272-0/+13
| | | | | | | encoding. [ruby-dev:37285] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_yield_with_cfunc): rename parameter nameko12008-12-272-5/+10
| | | | | | | | "blockptr" to "blockargptr". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (revision.h): ignores failure of file2lastrev.yugui2008-12-272-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e