aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * 2012-01-03svn2012-01-031-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/merger.rb (#version_up): version.h date should be Japanesekosaki2012-01-032-1/+7
| | | | | | | | locale date. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/file2lastrev.rb (VCS::detect): Add support for Subversionknu2012-01-022-3/+20
| | | | | | | | | | | 1.7 which adopted a whole new working directory structure. * tool/file2lastrev.rb (VCS::detect): Simply use .each instead of .sort.reverse_each which looks too arbitrary. If you want SVN to be tried first, then you just have to register it first as it is right now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/securerandom.rb (random_bytes): use IO#read instead ofakr2012-01-022-1/+6
| | | | | | | | IO#readpartial to make the intent more clear. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c: fix comment.ktsj2012-01-021-6/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_object.rb (test_send_with_block): add a normal case.ktsj2012-01-022-0/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_object.rb (test_send_with_block): moved fromktsj2012-01-023-13/+19
| | | | | | bootstraptest/test_flow.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/parallel.rb: use pack("m0") instead ofkazu2012-01-023-5/+11
| | | | | | | pack("m").gsub("\n",""). * lib/test/unit.rb (Test::Unit::Runner::Worker#run): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit::Runner::Worker#run): usekazu2012-01-022-1/+6
| | | | | | File.basename with suffix instead of gsub. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-01-02svn2012-01-021-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit::Runner#_run_parallel): find maykazu2012-01-022-1/+7
| | | | | | return nil and nil can not dup. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-01-01svn2012-01-011-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/shellwords.rb (Shellwords#shellescape): Drop the //n flagknu2012-01-013-3/+22
| | | | | | | that only causes warnings with no real effect. [Bug #5637] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix typoayumin2011-12-311-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-12-31svn2011-12-301-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_barrier_waiting): save the number of waiting threadsnaruse2011-12-303-21/+32
| | | | | | | | | | | | | in RBASIC()->flags. [ruby-dev:45002] [Bug #5768] * thread.c (rb_barrier_wait): increment and decrement around rb_mutex_lock, and use rb_barrier_waiting(). * thread.c (rb_barrier_release): use rb_barrier_waiting(). * thread.c (rb_barrier_destroy): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (vm_exec): add guard to prevent optimization for LLVM clang.naruse2011-12-302-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c (rb_f_send): fix [Bug #5125] [ruby-core:38633]ayumin2011-12-302-2/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb (symmetric?): Trivial optimizationmarcandre2011-12-301-2/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-12-30svn2011-12-301-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h: Fix comment about arg_opts of iseq and some typosmarcandre2011-12-303-7/+7
| | | | | | | | * doc/re.rdoc: Rdoc small fixes * iseq.c: Fix comment git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit::Runner::Worker#_run_parallels): fixnagachika2011-12-292-1/+9
| | | | | | | premature exit when all workers' status are :ready or :prepare. [ruby-dev:45061] [Bug #5822] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-12-29svn2011-12-281-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h: fix #error pragma. LLP64 platform is supported.nagachika2011-12-283-2/+8
| | | | | | * include/ruby/st.h: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix indentkazu2011-12-281-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * doc/ChangeLog-1.9.3, test/gdbm/test_gdbm.rb: fixed mingw typo.nobu2011-12-282-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (FileUtils::Entry_#entries): use utility methodnobu2011-12-282-1/+6
| | | | | | | instead of typoed regexp. [ruby-core:41829] [Bug #5817] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: fix some typos.nagachika2011-12-271-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-12-28svn2011-12-271-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (unknown_keyword_error): add GC guard to preventnagachika2011-12-272-0/+6
| | | | | | intermediate object from GC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Worker#close): "closing IO if IO is closed"sorah2011-12-272-1/+6
| | | | | | should be "closing IO if IO isn't closed" git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * st.c (st_update): new function to lookup the given key andnobu2011-12-276-0/+136
| | | | | | | update the value. [ruby-dev:44998] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-12-27svn2011-12-271-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * node.h (rb_args_info): change pre_args_num and post_args_num asnobu2011-12-274-7/+15
| | | | | | | | int, to match with rb_iseq_t. * parse.y (new_args_gen): check overflow. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (unknown_keyword_error): make it kind a error message when ↵mame2011-12-262-4/+18
| | | | | | unknown keyword is given. It require more work. See [ruby-core:40518] and [ruby-core:40541] in detail. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h (struct rb_iseq_struct), compile.c (iseq_set_arguments), iseq.c ↵mame2011-12-266-12/+43
| | | | | | | | (rb_iseq_parameters), vm_insnhelper.c (vm_callee_setup_arg_complex): support Method#parameters for keyword arguments. The provisional spec is what Benoit Daloze proposed. [ruby-core:40518] * test/ruby/test_keyword.rb: add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h (struct rb_iseq_struct), compile.c (iseq_set_arguments, ↵mame2011-12-267-3/+238
| | | | | | | | | | | | | iseq_compile_each), vm_insnhelper.c (vm_callee_setup_arg_complex): implement keyword arguments. See [ruby-core:40290] The feature is promised to be included in 2.0, but the detail spec is still under discussion; this commit is a springboard for further discussion. Please try it and give us feedback. This commit includes fixes for some problems reported by Benoit Daloze <eregontp AT gmail.com> [ruby-core:40518] and Marc-Andre Lafortune <ruby-core-mailing-list AT marc-andre.ca> [ruby-core:41772]. * iseq.c (iseq_free, prepare_iseq_build): bookkeeping. * test/ruby/test_keyword.rb: add tests for keyword arguments. * test/ripper/dummyparser.rb (class DummyParser): temporal fix for ripper test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * node.h, node.c, parse.y: implement a parser part for keyword arguments. ↵mame2011-12-265-75/+650
| | | | | | | | This is a preparation for keyword argument (see [ruby-core:40290]). * gc.c (gc_mark_children): bookkeeping. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * node.h, parse.y (new_args_gen), compile.c (iseq_set_arguments): use struct ↵mame2011-12-266-102/+83
| | | | | | | | rb_args_info instead of NODEs. This is a preparation for keyword argument (see [ruby-core:40290]). * node.c (dump_node), gc.c (gc_mark_children, obj_free): bookkeeping. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * node.h, parse.y (lambda, f_larglist): remove NEW_LAMBDA hack. This is a ↵mame2011-12-263-5/+9
| | | | | | preparation for keyword argument (see [ruby-core:40290]). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_sys_fail_path): move the definition.shirosaki2011-12-263-26/+61
| | | | | | | | | | | | | | | | | | | | | Move above for using it in set_binary_mode_with_seek_cur(). * io.c (set_binary_mode_with_seek_cur): fix improper seek cursor. Seeking file cursor with setting binary mode has possibility to cause infinite loop. Fixed the bug and refined error handling. Introduced at r34043. And cleanups as below. Remove unnecessary parentheses of `fptr`. Use return value of setmode(). * test/ruby/test_io_m17n.rb (TestIO_M17N#test_seek_with_setting_binmode): add a test for abobe. [ruby-core:41671] [Bug #5714] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (LIBRUBY_A): depends on main.o since r33774.nobu2011-12-262-1/+6
| | | | | | [ruby-core:41786] [Bug #5796] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: fix miss; testcase is test file.sorah2011-12-261-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_io.rb (TestIO#test_autoclose): Tempfile.new doesn'tusa2011-12-262-23/+25
| | | | | | | accept the block argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb: Avoid zombie processes on "--separate" optionsorah2011-12-262-1/+9
| | | | | | added at r34121. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_cipher.c: Fix more typos.emboss2011-12-251-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_cipher.c: Fixed typo.emboss2011-12-251-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_cipher.c: Update and complete documentation.emboss2011-12-251-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-12-26svn2011-12-251-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34123 ↵emboss2011-12-252-23/+208
| | | | b2dd03c8-39d4-4d8f-98ff-823fe69b080e