summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* tags branches/ruby_1_9_1@30906 as v1_9_1_431v1_9_1_431yugui2011-02-180-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_9_1_431@30908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r30896 from trunk into ruby_1_9_1.yugui2011-02-183-9/+22
| | | | | | | | | | | -- * lib/fileutils.rb (FileUtils::remove_entry_secure): there is a race condition in the case where the given path is a directory, and some other user can move that directory, and create a symlink while this method is executing. Reported by: Nicholas Jefferson <nicholas at pythonic.com.au> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@30906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httpresponse.rb (WEBrick::HTTPResponse#set_error):yugui2010-08-163-5/+12
| | | | | | | | Fix for possible cross-site scripting (CVE-2010-0541). Found by Apple, reported by Hideki Yamane. Patch by Hirokazu Nishio <nishio.hirokazu AT gmail.com>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@28997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2010-07-14svn2010-07-141-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@28641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge r28639.knu2010-07-141-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@28640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (argf_inplace_mode_set): prohibits an assignmentyugui2010-07-025-91/+169
| | | | | | | | | | of a tainted value. Patch by unak. * util.c, file.c: prevents a buffer over-run on windows. Patch by unak. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@28522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2010-07-01svn2010-07-011-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@28512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r26936 from trunk into ruby_1_9_1 and little refactoring.yugui2010-07-014-9/+53
| | | | | | | | | | | | | | | | -- * random.c (rb_reset_random_seed): set seed in this. [ruby-core:28655] -- * random.c: refactoring. * random.c (rand_srand): a new function that wraps rand_init and (re)initialization of the random seed as a VALUE. * random.c (genrand_int32, genrand_real, rb_f_rand, rb_f_srand): using rand_srand. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@28511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23892 from trunk into ruby_1_9_1.yugui2010-05-233-2/+6
| | | | | | | -- * rational.c (float_to_r): always returns rational. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@27982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24205 from trunk into ruby_1_9_1.yugui2010-05-234-3/+9
| | | | | | | | | -- * complex.c (make_patterns): do not use \d. * rational.c (make_patterns): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@27981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2010-05-23svn2010-05-231-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@27980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r27555 from trunk into ruby_1_9_1.yugui2010-05-233-5/+10
| | | | | | | | -- * numeric.c (fix_mul): the width of fixnum is same as long's on all platforms. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@27979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24662 from trunk into ruby_1_9_1. This fixes #3149.yugui2010-05-033-2/+6
| | | | | | | | -- * lib/tempfile.rb (Tempfile#unlink): reverted r23494, since the usage in RubyInline is considered wrong. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@27598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r26626 and r26627 from trunk into ruby_1_9_1. This fixes #3159.yugui2010-05-033-4/+16
| | | | | | | | | | -- * ext/bigdecimal/bigdecimal.c (BigDecimal_DoDivmod): fix precision. [ruby-core:17472][ruby-dev:35372][ruby-dev:40105][ruby-dev:40358] -- * ext/bigdecimal/bigdecimal.c (BigDecimal_divide): fix precision too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@27597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r26055 from trunk into ruby_1_9_1. This fixies #3164.yugui2010-05-033-4/+26
| | | | | | | -- * parse.y (dyna_pop_gen): pop dvars. [ruby-dev:39861] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@27596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25081 from trunk into ruby_1_9_1.yugui2010-05-032-4/+3
| | | | | | | | fixes [ruby-core:27694], reported by Denis Defreyne. -- * hash.c (Hash#each): Fix documentation to reflect insertion order. A patch by Run Paint Run Run [ruby-core:23644] and [ruby-core:21231] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@27595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2010-05-03svn2010-05-031-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@27594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges 26005 from trunk into ruby_1_9_1.yugui2010-05-033-1/+6
| | | | | | | | fixes [ruby-dev:39906]. -- * configure.in: default ac_cv_prog_CC to CC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@27593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string (rb_string_value): warning for implicit conversionyugui2010-02-042-0/+9
| | | | | | | | | from Symbol to String. This behavior was introduced in r22606, merged in r22738 to ruby_1_9_1. It was an unexpected language feature change. It will be removed from Ruby in the 1.9.2. c.f. [ruby-dev:40274]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r22395 and r22640 from trunk into ruby_1_9_1.yugui2010-02-043-3/+33
| | | | | | | | | | | | | | -- * array.c (rb_ary_resurrect), string.c (rb_str_resurrect): new functions based on [ruby-dev:37983] * insns.def (putstring, duparray): use rb_{ary,str}_resurrect(). * iseq.c (iseq_data_to_ary): needs to result TS_VALUE. -- * iseq.c (cdhash_each): resurrects internal literals. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2010-02-04svn2010-02-041-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r26052 from trunk into ruby_1_9_1.yugui2010-02-044-3/+15
| | | | | | | | -- * string.c (rb_str_justify): fixed the case a fill size is a multiple of the length of the padding. [ruby-dev:39856] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25605 from trunk into ruby_1_9_1.yugui2010-01-303-1/+61
| | | | | | | | -- * test/dl/test_dl2.rb (**) testing malloc and realloc * ext/dl/dl.c (**) adding documentation git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25579 and r25581 from trunk into ruby_1_9_1.yugui2010-01-304-4/+64
| | | | | | | | | | | | | | -- * lib/net/http.rb (Net::HTTPResponse#each_response_header): accept multiline message header of HTTP response. see #1796. cf. RFC 2616 '4.2 Message Header'. * test/net/http/test_httpresponse.rb: added. -- * lib/net/http.rb (Net::HTTPResponse#each_response_header): cosmetic: '?\ ' -> '?\s' git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25526,r25527,r25528,r25529,r25530 and r25555 from trunk into ruby_1_9_1.yugui2010-01-306-14/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -- * encoding.c (get_filesystem_encoding): add Encoding.filesystem_encoding [ruby-dev:39546] also see [ruby-core:25959] -- * gem_prelude.rb (Gem.set_home): force_encoding(Encoding.filesystem_encoding) [ruby-dev:39546] * gem_prelude.rb (Gem.set_paths): ditto. -- Previous commit is for [ruby-core:25959] -- * encoding.c (get_filesystem_encoding): removed. * encoding.c (rb_locale_encindex): added. * encoding.c (rb_filesystem_encindex): added. * encoding.c (rb_filesystem_encindex): add an alias 'filesystem'. [ruby-dev:39574] * encoding.c (enc_find): add rdoc about special aliases. * gem_prelude.rb (Gem.set_home): use Encoding.find('filesystem'). * gem_prelude.rb (Gem.set_paths): ditto. -- * encoding.c (enc_find): fixed rdoc formatting. -- * ruby.c (process_options): call rb_filesystem_encoding(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25510 from trunk into ruby_1_9_1.yugui2010-01-303-3/+8
| | | | | | | | -- * lib/net/ftp.rb (getbinaryfile, list): call to_s to convert a Pathname instance into a string. [ruby-core:26237] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25499 from trunk into ruby_1_9_1.yugui2010-01-303-7/+55
| | | | | | | -- * parse.y (ripper_filename): add Ripper#filename. [ruby-dev:37856] * test/ripper/test_filter.rb: add more tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25498 from trunk into ruby_1_9_1.yugui2010-01-303-1/+7
| | | | | | | | -- * gc.c (garbage_collect_with_gvl): do not garbage_collect when dont_gc flag turned on. [ruby-core:26327] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25494 from trunk into ruby_1_9_1.yugui2010-01-304-3/+30
| | | | | | | | | adds a test case for the change -- * vm.c (invoke_block_from_c): return Qnil when its iseq is SPECIAL CONST. [ruby-core:26335] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25485 from trunk into ruby_1_9_1.yugui2010-01-303-1/+21
| | | | | | | | -- * io.c (io_fwrite): adjust stdio file position after direct write on BSDish platforms. [ruby-core:26300] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges tests from trunk@25460 into ruby_1_9_1.yugui2010-01-302-1/+47
| | | | | | | | -- * ext/dl/handle.c (rb_dlhandle_sym) refactoring rb_secure(2) * test/dl/test_handle.rb (**) testing sym behavior git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25448 from trunk into ruby_1_9_1.yugui2010-01-304-2/+29
| | | | | | | | | -- * ext/ext/dl/handle.c (rb_dlhandle_initialize) added rb_secure(2) [ruby-core:25762] * ext/dl/dl.c (rb_dl_dlopen) removed rb_secure(2) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25446 and r25466 from trunk into ruby_1_9_1.yugui2010-01-303-1/+15
| | | | | | | | | | -- * io.c (io_cntl): update max file descriptor by the result of fcntl(F_DUPFD). -- * io.c (io_cntl): F_DUPFD is platform dependent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25440 from trunk into ruby_1_9_1.yugui2010-01-303-2/+7
| | | | | | | | -- * lib/pathname.rb (Pathname::SAME_PATHS): FNM_SYSCASE is always non-nil. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25435 from trunk into ruby_1_9_1.yugui2010-01-304-2/+19
| | | | | | | | | | | -- * test/ruby/envutil.rb (assert_in_out_err): test_stdout and test_stderr should be an array. * test/ruby/test_rubyoptions.rb (test_notfound): test_stdin of assert_in_out_err should be a string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25426 from trunk into ruby_1_9_1.yugui2010-01-302-4/+5
| | | | | | | | | | | -- * test/scanf/test_scanfio.rb (TestScanfIO): needs to inherit TestCase. * test/scanf/test_scanfio.rb (TestScanfIO#test_io): fixed a typo. close test data file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25418 from trunk into ruby_1_9_1.yugui2010-01-302-1/+28
| | | | | | | -- * added monitor.rb test. see #2240 the bug on ruby_1_8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25408 from trunk into ruby_1_9_1.yugui2010-01-303-10/+19
| | | | | | | | -- * include/ruby/win32.h (finite, scalb): inline'ed non-standard identifier macros. [ruby-core:2234] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25402,r25404,r25405,r25406 and r25407 from trunk into ruby_1_9_1.yugui2010-01-307-39/+41
| | | | | | | | | | | | | | | | | | -- * parse.y (parser_here_document): dispatch delayed heredoc contents. based on a patch from Andy Keep in [ruby-core:24855]. -- * parse.y (mlhs_basic): fixed handling splat in middle of mlhs. a patch from Andy Keep in [ruby-core:26163] -- * parse.y (method_call): dispatch symbols. a patch from Andy Keep in [ruby-core:26169]. [ruby-core:26165] -- * test/ripper/test_*.rb: fixed indent. -- * parse.y (ripper_intern): enable literal optimization. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_method.c (rb_alias): treats an alias as if it is a newly definedyugui2010-01-303-2/+9
| | | | | | | | method so that oklass in a method cache refers the class on which the aliasing occured. [ruby-core:26074] (#2202). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * .gdbinit: follows r24470.yugui2010-01-303-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25394 from trunk into ruby_1_9_1.yugui2010-01-303-2/+7
| | | | | | | | -- * lib/rexml/element.rb (text=): false should be converted to string. A patch by Teruo Oshida [ruby-dev:38351] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25392 from trunk into ruby_1_9_1.yugui2010-01-302-2/+5
| | | | | | | -- Retry until the signal is trapped. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25388 from trunk into ruby_1_9_1.yugui2010-01-304-20/+81
| | | | | | | | | | | | | | | -- * test/test_prime.rb (TestPrime#test_eratosthenes_works_fine_after_timeout): test for [ruby-dev:39465]. * lib/prime.rb (Prime::EratosthenesSieve): fixed [ruby-dev:39465]. suppressed memory reallocation. constantified some magic numbers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25377 from trunk into ruby_1_9_1.yugui2010-01-303-8/+16
| | | | | | | | | -- * st.c (unpack_entries): save table->bins and never change the table during unpacking. Because st_insert() may cause GC and refer the table, i.e. st_foreach(). [Bug #2196] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25371 from trunk into ruby_1_9_1.yugui2010-01-303-1/+40
| | | | | | | | -- * bootstraptest/test_gc.rb: added tests based on [ruby-dev:39484] from wanabe <s.wanabe AT gmail.com>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25360 from trunk into ruby_1_9_1.yugui2010-01-302-1/+21
| | | | | | | -- * test/ruby/test_object.rb (test_remove_method): test for Bug#2202. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25343 from trunk into ruby_1_9_1.yugui2010-01-306-9/+24
| | | | | | | | -- * ext/iconv/iconv.c (iconv_create): cannot retry with given block. [ruby-dev:39487] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25336 and r25339 from trunk into ruby_1_9_1.yugui2010-01-303-1/+25
| | | | | | | | | | | -- * ext/socket/init.c (rsock_init_sock): validate file descriptor. -- * ext/socket/init.c (rsock_init_sock): mswin doesn't have S_IFSOCK flag in st_mode of struct stat. so, use rb_w32_issocket() function instead of S_ISSOCK macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25334 from trunk into ruby_1_9_1.yugui2010-01-302-2/+2
| | | | | | | -- * string.c (rb_check_string_type): rdoc fix [ruby-core:26084] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e