aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add Process.setproctitle().knu2013-08-074-9/+67
| | | | | | | * ruby.c (Process.setproctitle): New method to change the title of the running process that is shown in ps(1). [Feature #8696] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big_odd_p): Check the bignum length.akr2013-08-072-2/+7
| | | | | | | | (rb_big_even_p): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (dbl2big): A condition simplified.akr2013-08-072-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: missed ticket number.usa2013-08-071-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/webrick/test_cgi.rb (TestWEBrickCGI#{start_cgi_server,test_cgi}):usa2013-08-072-2/+7
| | | | | | | mswin is not only mswin32 but also mswin64. [Bug #8746] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c (rb_fiber_start): use RARRAY_RAWPTR() instead ofko12013-08-073-7/+13
| | | | | | | | | | RARRAY_PTR() because there is no new reference. * proc.c (curry): ditto. * proc.c (rb_proc_call): remove line break. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (random_load): use RARRAY_RAWPTR() instead ofko12013-08-072-2/+7
| | | | | | | | RARRAY_PTR() because there is no new reference. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (thread_start_func_2): use RARRAY_RAWPTR() instead ofko12013-08-072-1/+6
| | | | | | | | RARRAY_PTR() because there is no new reference. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c: [DOC] Description of rb_str_equal [Fixes GH-375]zzak2013-08-072-3/+14
| | | | | | | | Based on a patch by @markijbema https://github.com/ruby/ruby/pull/375 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_hmac.c: [DOC] Documentation for OpenSSL::HMACzzak2013-08-062-2/+102
| | | | | | | | based on a patch by @repah documenting-ruby/ruby#14 https://github.com/documenting-ruby/ruby/pull/14 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/utils.rb: [DOC] RSS::Utils by Steve Klabnik [Bug #8745]zzak2013-08-062-2/+94
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-08-07svn2013-08-061-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (nlz16): Removed.akr2013-08-062-50/+88
| | | | | | | | | | | | | | | | (nlz32): Ditto. (nlz64): Ditto. (nlz128): Ditto. (nlz_int): New function. (nlz_long): New function. (nlz_long_long): New function. (nlz_int128): New function. (nlz): Follow above changes. (bitsize): Follow above changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Typo from r42411zzak2013-08-061-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c: [DOC] Typo in Time overview by @sparr [Fixes GH-374]zzak2013-08-062-1/+6
| | | | | | | https://github.com/ruby/ruby/pull/374 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/1.0.rb: [DOC] Document RSS110 by Steve Klabnik [Bug #8740]zzak2013-08-062-0/+36
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c (readline_s_delete_text): removekouji2013-08-062-71/+20
| | | | | | | | | checking "$SAFE == 4". * ext/readline/readline.c: fix rdoc, remove "Raises SecurityError" and add "Raises NotImplementedError". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c, test/readline/test_readline.rb: fixkouji2013-08-063-283/+288
| | | | | | indent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* range.c: return nil for empty rangenobu2013-08-063-2/+16
| | | | | | | * range.c (range_last): return nil for empty range, or in the case the predecessor is smaller than the begin. [Bug #8739] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.nobu2013-08-061-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c (readline_s_set_point, Init_readline):kouji2013-08-063-1/+44
| | | | | | | add Readline.point=(pos). Patched by naruse. [ruby-dev:47535] [Feature #8675] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* json/add/range.rb: use Range#endnobu2013-08-061-1/+1
| | | | | | | | * ext/json/lib/json/add/range.rb (Range#as_json): use Range#end instead of Range#last which can be affected by Range#exclusive?. ref [Bug #8739] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* net/http/header.rb: remove a hacknobu2013-08-061-1/+0
| | | | | | | * lib/net/http/header.rb (Net::HTTPHeader#set_range): remove a hack for the bug fixed at [Bug #8739]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c (Init_readline, readline_s_set_output)kouji2013-08-062-20/+119
| | | | | | | | | (clear_rl_outstream, readline_s_set_input, clear_rl_instream) (readline_readline): fix causing SEGV if closed IO object that is set Readline.input or Readline.output. Patched by akr [ruby-dev:47509] [Bug #8644] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_push_frame): change type of stack_max to size_t.ko12013-08-062-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* range.c: consider exclusivenobu2013-08-063-1/+26
| | | | | | | * range.c (range_last): exclude the last number of the exclusive range if the end is Numeric. [ruby-dev:47587] [Bug #8739] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: fix conversionnobu2013-08-062-1/+7
| | | | | | | | * win32/win32.c (rb_w32_conv_from_wchar): converted string to CP_UTF8 should have UTF-8 encoding. otherwise no conversion takes place later. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_push_frame): fix stack overflow check codes.ko12013-08-067-30/+52
| | | | | | | | | | | | | | | | | | Stack overflow check should be done *after* pushing a stack frame. However, some stack overflow checking codes checked *before* pushing a stack frame with iseq->stack_max. To solve this problem, add a new parameter `stack_max' to specify a possible consuming stack size. * vm_core.h (CHECK_VM_STACK_OVERFLOW0): add to share the stack overflow checking code. * insns.def: catch up this change. * vm.c, vm_eval.c: ditto. * test/ruby/test_exception.rb: add a stack overflow test. This code is reported by nobu. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: conversion from WCHARnobu2013-08-062-11/+28
| | | | | | | | * win32/win32.c (rb_w32_conv_from_wchar): use WideCharToMultiByte(), as like as mbstr_to_wstr(), in the first step of the convertion from WCHAR. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c (eval_string_with_cref): copy cref to limit the scope ofshugo2013-08-063-0/+48
| | | | | | | | refienements in the eval string. [ruby-core:56329] [Bug #8722] * test/ruby/test_refinement.rb: related test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: fix typonobu2013-08-061-1/+1
| | | | | | | * string.c (rb_str_ellipsize): [DOC] fix typo, "encoding" instead of "encoded" which is probably a slip of the auto-completion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: supprss warningnobu2013-08-061-2/+2
| | | | | | | * win32/win32.c (rb_w32_system_tmpdir): supprss a sign-compare warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* [DOC] refine a call seq.akr2013-08-061-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big_realloc): Use VALGRIND_MAKE_MEM_UNDEFINED toakr2013-08-064-13/+24
| | | | | | | | | | | | declare undefined memory area. (bignew_1): Ditto. * internal.h (VALGRIND_MAKE_MEM_DEFINED): Moved from gc.c (VALGRIND_MAKE_MEM_UNDEFINED): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c: [DOC] Document caveats of command form of Process.spawnzzak2013-08-052-1/+14
| | | | | | | with regard to the shell and OS. Patched by Steve Klabnik [Bug #8550] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/0.9.rb: [DOC] Typo in example [Bug #8732]zzak2013-08-052-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-08-06svn2013-08-051-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/2.0.rb: [DOC] Document RSS::Rss by Steve Klabnik #8740zzak2013-08-053-1/+37
| | | | | | | * lib/rss/atom.rb: [DOC] Typo in rdoc by Steve Klabnik git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c: Rename local variables.akr2013-08-052-286/+290
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_trace.c: [DOC] Fix TracePoint return values in exampleszzak2013-08-052-5/+11
| | | | | | | | Based on a patch by @sho-h [Fixes GH-373] https://github.com/ruby/ruby/pull/373 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: conversion to WCHARnobu2013-08-053-12/+32
| | | | | | | | * win32/win32.c (rb_w32_write_console): use MultiByteToWideChar() for the last step of conversion to WCHAR, to get rid of warnings from rb_enc_find() in miniruby. [ruby-dev:47584] [Bug #8733] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: fix wrong trimmingnobu2013-08-052-8/+23
| | | | | | | | | * win32/win32.c (wstr_to_mbstr, mbstr_to_wstr): fix wrong trimming. WideCharToMultiByte() and MultiByteToWideChar() do not count NUL-terminator in the size for conversion result, unless the input length is -1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_econv.rb: assert_separatelynobu2013-08-051-11/+4
| | | | | | | * test/ruby/test_econv.rb (test_default_external): use assert_separately for clearer messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typoskazu2013-08-051-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/encoding.h: document which user flags are used bycharliesome2013-08-052-1/+6
| | | | | | ENCODING_MASK for better greppability git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_class_inherited_p): allow iclasses to be tested forcharliesome2013-08-053-1/+24
| | | | | | | | inheritance. [Bug #8686] [ruby-core:56174] * test/ruby/test_method.rb: add test git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c: [DOC] Remove reference to Enumerator::Lazy#cyclezzak2013-08-042-2/+8
| | | | | | | | Patch by @kachick [Fixes GH-372] https://github.com/ruby/ruby/pull/372 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/0.9.rb: [DOC] Document RSS09 by Steve Klabnik [Bug #8732]zzak2013-08-042-0/+37
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-08-05svn2013-08-041-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/attribute.rb: [DOC] Update example for #namespacezzak2013-08-042-2/+10
| | | | | | | Patch by Ippei Obayashi [Bug #8685] [ruby-core:56173] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e