summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-08-06json/add/range.rb: use Range#endnobu
* 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
2013-08-06net/http/header.rb: remove a hacknobu
* 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
2013-08-06* ext/readline/readline.c (Init_readline, readline_s_set_output)kouji
(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
2013-08-06* vm_insnhelper.c (vm_push_frame): change type of stack_max to size_t.ko1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-06range.c: consider exclusivenobu
* 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
2013-08-06win32.c: fix conversionnobu
* 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
2013-08-06* vm_insnhelper.c (vm_push_frame): fix stack overflow check codes.ko1
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
2013-08-06win32.c: conversion from WCHARnobu
* 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
2013-08-06* vm_eval.c (eval_string_with_cref): copy cref to limit the scope ofshugo
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
2013-08-06string.c: fix typonobu
* 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
2013-08-06win32.c: supprss warningnobu
* 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
2013-08-06[DOC] refine a call seq.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-06* bignum.c (rb_big_realloc): Use VALGRIND_MAKE_MEM_UNDEFINED toakr
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
2013-08-05* process.c: [DOC] Document caveats of command form of Process.spawnzzak
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
2013-08-05* lib/rss/0.9.rb: [DOC] Typo in example [Bug #8732]zzak
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-05* 2013-08-06svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-05* lib/rss/2.0.rb: [DOC] Document RSS::Rss by Steve Klabnik #8740zzak
* 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
2013-08-05* bignum.c: Rename local variables.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-05* vm_trace.c: [DOC] Fix TracePoint return values in exampleszzak
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
2013-08-05win32.c: conversion to WCHARnobu
* 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
2013-08-05win32.c: fix wrong trimmingnobu
* 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
2013-08-05test_econv.rb: assert_separatelynobu
* 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
2013-08-05fix typoskazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-05* include/ruby/encoding.h: document which user flags are used bycharliesome
ENCODING_MASK for better greppability git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-05* object.c (rb_class_inherited_p): allow iclasses to be tested forcharliesome
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
2013-08-04* enumerator.c: [DOC] Remove reference to Enumerator::Lazy#cyclezzak
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
2013-08-04* lib/rss/0.9.rb: [DOC] Document RSS09 by Steve Klabnik [Bug #8732]zzak
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-04* 2013-08-05svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-04* lib/rexml/attribute.rb: [DOC] Update example for #namespacezzak
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
2013-08-04* array.c (rb_ary_zip): performance implement by usingglass
ALLOCA_N() to allocate tmp buffer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-04* ext/tk/extconf.rb: Don't add "-ltk -ltcl" for MacOSX frameworks, because ↵nagai
they may link improper libraries. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-03* README.EXT, README.EXT.ja: Mention rb_integer_pack andakr
rb_integer_unpack. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-03* ext/stringio/stringio.c (strio_substr): Trivial fix for invalidheadius
pointer when len = 0 and pos outside of string. Bug #8728. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-03* bignum.c (BARY_TRUNC): New macro.akr
(bary_cmp): Use BARY_TRUNC. (bary_mul_toom3): Ditto. (bary_divmod): Ditto. (abs2twocomp): Ditto. (bigfixize): Ditto. (rb_cstr_to_inum): Ditto. (big2str_karatsuba): Ditto. (bigdivrem): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-03* bignum.c (big2str_karatsuba): Don't allocate new temporary bufferakr
if the buffer is enough for current invocation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-03bignum.c: suppress warningsnobu
* bignum.c (power_cache_get_power): declare as inline before call to suppress warnings from gcc 4.2. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-03* 2013-08-04svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-03* bignum.c (bary2bdigitdbl): New function.akr
(bdigitdbl2bary): Ditto. (bary_mul_single): Use bdigitdbl2bary. (power_cache_get_power): Ditto. (bary_divmod): Use bary2bdigitdbl. (big2str_orig): Ditto. (bigdivrem): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-03* bignum.c: The branch condition of selecting multiplicationakr
algorighms should check smaller argument because Karatsuba and Toom3 is effective only if both arguments are big. (bary_mul_toom3_branch): Compare the smaller argument to TOOM3_MUL_DIGITS. (bary_mul): Compare the smaller argument to KARATSUBA_MUL_DIGITS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-03* bignum.c (big2str_orig): Receive the number to stringize asakr
BDIGIT array and size. (big2str_karatsuba): Receive the number to stringize as BDIGIT array and size. Use an temporary array of BDIGIT. (rb_big2str1): Follow the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-03Add missing requirenaruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-03Fix test failure to follow r42347 ref #3753naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-03* bignum.c (MAX_BASE36_POWER_TABLE_ENTRIES): Renamed fromakr
MAX_BIG2STR_TABLE_ENTRIES. (base36_power_cache): Renamed from big2str_power_cache. (base36_numdigits_cache): Renamed from big2str_numdigits_cache. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-03parse.y: no reduction with 1nobu
* parse.y (parser_set_integer_literal): use rb_rational_raw1() for integral rational because no reduction is needed with 1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-03etc.c: encodingsnobu
* ext/etc/etc.c (setup_passwd, setup_group): set proper encodings to string members. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-03struct.c: rb_struct_define_undernobu
* struct.c (rb_struct_define_under): new function to define Struct under the given namespace, not under Struct. [Feature #8264] * ext/etc/etc.c: use rb_struct_define_under. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-02* parse.y (value_expr_gen): now NODE_DEFN and NODE_DEFS are not voidusa
value expressions. get rid of wrong warning with -w, and make to pass tests with chkbuild. ref. [Feature #3753] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-02ChangeLog: fix typonobu
* ChangeLog: fix typo in r42335, "Appry" -> "Apply". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-02* doc/syntax/refinements.rdoc: Remove mention of instance_eval anddrbrain
module_eval from scope section per: http://twitter.com/shugomaeda/status/363219951336693761 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-02* bignum.c (big2str_orig): Refactored.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e