summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-01-28Import rubygems 1.5.0 (release candidate @ 09893d9)ryan
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28* variable.c (rb_mod_const_of, sv_i): Module#constant should excludemame
private constants. see [ruby-core:32912]. * test/ruby/test_module.rb (test_constants_with_private_constant): add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28* variable.c (rb_const_set): const_set shoud preserve constantmame
visibility. see [ruby-core:32912]. * test/ruby/test_module.rb: add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28* compile.c (NODE_CLASS, NODE_MODULE), insns.def (defineclass): raisemame
an exception when "class Foo::Bar" is evaluated and Foo::Bar is private. To implement this, define_type of "defineclass" is added so that the instruction can distinguish whether the class definition is scoped (class Foo::Bar) or not (class Bar). * test/ruby/test_class.rb (test_redefine_private_class), test/ruby/test_module.rb (test_define_module_under_private_constant): add tests for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28* constant.h, variable.c: to ensure compatibility, rb_const_get_* mustmame
not raise an exception even when the constant is private. Instead, rb_public_const_get_* and rb_public_const_defined_* are introduced, which raise an exception when the referring constant is private. see [ruby-core:32912]. * vm_insnhelper.c (vm_get_ev_const): use rb_public_const_get_* instead of rb_const_get_* to follow the constant visibility when user code refers a constant. * test/ruby/test_marshal.rb (test_marshal_private_class): add a test. This test had failed because of incompatibility of rb_const_get. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28* 2011-01-29svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28* variable.c (set_const_visibility): fix typo. a patch from Tomoyukimame
Chikanaga in [ruby-core:32919]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 * test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_no_create,kosaki
TestGDBM2#test_writer_open_notexist): We only need to skip libgdbm 1.8.0, not all 1.8.x. 1.8.1 or later don't have GDBM_WRITER sickness. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 * ext/dbm/extconf.rb: Added new header places for Fedora13.kosaki
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28* ext/zlib/zlib.c: parenthesize macro arguments.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 * test/gdbm/test_gdbm.rb (TestGDBM2#test_writer_open_notexist):kosaki
gdbm 1.8.x changed GDBM::WRITER behavior. Thus our testcase need to be changed too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 * test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_no_create): skipkosaki
the test if gdbm version is 1.8.x. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 * test/ruby/test_require.rb (TestRequire#test_require_too_long_filename):kosaki
Added -w option because too long path error don't output a message by default since r30660. [Bug #4336] [ruby-dev:43134] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 * test/ruby/test_require.rb (TestRequire#test_require_path_home_{1,2}):kosaki
Added -w option because too long path error don't output a message by default since r30660. [Bug #4336] [ruby-dev:43134] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28remove unnecessary local variable.kosaki
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 * test/ruby/test_require.rb (TestRequire#test_require_path_home_{1,2,3}):kosaki
split from test_require_path_home. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 * configure.in (--with-valgrind): Fixed r29683. Now this optionkosaki
is really default on. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28We don't only need to change "struct stat.st_size" test, but alsokosaki
need to change "struct stat.st_blocks" test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 * configure.in: Add #include<sys/stat.h> when struct stat iskosaki
tested. Otherwise, incomplete type dereference error will occur. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 * configure.in: redundant variable names made strange conftestkosaki
error. Fixed it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28* test/ruby/test_process.rb (TestProcess#test_too_long_path{,2}):usa
should handle Errno::E2BIG, because this test checks crash of ruby, not the error type system. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 * io.c (rb_io_open): Use NUM2MODET() instead NUM2UINT().kosaki
* io.c (rb_scan_open_args): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 * configure.in: Added mode_t type checking.kosaki
* process.c (rb_exec_arg_addopt): Use NUM2MODET() instead NUM2LONG because clang makes compile error by this narrowing conversion. * process.c (rb_run_exec_options_err): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 * re.c (rb_reg_raise): add GC guard to prevent intermediatekosaki
variable from GC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 * hash.c (rb_hash_fetch_m): add GC guard to prevent intermediatekosaki
variable from GC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 * test/ruby/test_process.rb (TestProcess#test_too_long_path)kosaki
TestProcess#test_too_long_path): Reduced string size from 100MB to 10MB. 100MB may cause no memory error. It isn't intended. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27* 2011-01-28svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 * test/ruby/test_process.rb (TestProcess#test_too_long_path2):kosaki
Factored out from test_too_long_path. A test should only do one test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27* st.c (st_foreach): check if unpacked.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27* misc/ruby-mode.el (ruby-mode-map): remove deprecated binding.nobu
use M-; instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 * bignum.c (rb_str_to_inum): get rid of too huge alloca().kosaki
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 * object.c (rb_str_to_dbl): rewrite again. use ALLOCV insteadkosaki
rb_str_tmp_new(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 * win32/win32.c: get rid of STRNDUPA(). It's dangerous API.kosaki
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 * win32/win32.c (rb_w32_aspawn): get rid of too huge alloca().kosaki
[Bug #4330] [ruby-core:34898] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 * win32/win32.c (rb_w32_spawn): get rid of too huge alloca().kosaki
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 * win32/win32.c (open_dir_handle): get rid of too huge alloca().kosaki
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 * file.c (w32_io_info): get rid of too huge alloca().kosaki
[Bug #4313] [ruby-core:34830] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 * win32/win32.c (wstati64): get rid of too huge alloca().kosaki
[Bug #4316] [ruby-core:34834] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27* win32/win32.c (rb_w32_spawn, rb_w32_aspawn): fixed previous commit. sorry.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27* win32/win32.c (rb_w32_spawn, rb_w32_aspawn): get rid of too hugeusa
alloca(). this is the real fix of [ruby-core:34833]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27* process.c (ALLOC_ARGV_WITH_STR): fix void pointer arithmetic.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-26* process.c (proc_exec_v, rb_proc_exec_n, rb_proc_exec)nobu
(proc_spawn_n, proc_spawn): get rid of too huge alloca(). [ruby-core:34827], [ruby-core:34833] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-26* include/ruby/ruby.h (ALLOCV): new API for exception-safenobu
temporary buffer. [ruby-core:34844] * string.c (rb_alloc_tmp_buffer, rb_free_tmp_buffer): implementation of the API. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-26* dln_find.c (dln_find_1): use rb_warning and return immediatelynobu
if fname is longer than buffer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-26 * class.c (clone_method): add GC guard to prevent intermediatenagachika
variable from GC. [Bug #4321] [ruby-dev:43107] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-26* template/id.h.tmpl: parenthesize macro arguments.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-26 * vm_eval.c (rb_throw_obj): add GC guard to prevent intermediatenagachika
variable from GC. [Bug #4322] [ruby-dev:43108] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-26 * ext/openssl/ossl_asn1.c (ossl_asn1_decode0): OpenSSL::ASN1.decodenahi
should reject indefinite length primitive encodings as that is illegal. Patch by Martin Bosslet. See #4324. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-26* 2011-01-26svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-26* string.c (=~): documentation fix; the return value is nil whennaruse
it doesn't match. patched by Andrei Kulakov [ruby-core:34562] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e