aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * lib/test/unit/assertions.rb: Import documentation patch by Justinsorah2011-07-102-3/+111
| | | | | | Collins. [ruby-core:37225] [Feature #4903] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/date/date_core.c: canonicalizes nth and sf.tadf2011-07-102-6/+21
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h (rb_thread_call_with_gvl, rb_thread_call_without_gvl):ko12011-07-102-2/+14
| | | | | | | | make them visible as experimental C APIs. fixes Feature #4328. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (BigDecimal_power): support non-integralmrkn2011-07-103-35/+548
| | | | | | | | | | | | | | | | | exponent. fixes #3271 * ext/bigdecimal/bigdecimal.c (rmpd_power_by_big_decimal): ditto. * ext/bigdecimal/bigdecimal.c (BigDecimal_power_op): add a function to only use for "**" operator. * test/bigdecimal/test_bigdecimal.rb: add a bunch of tests for the above changes. * ext/bigdecimal/bigdecimal.c (is_integer): add an utility function. * ext/bigdecimal/bigdecimal.c (is_negative): ditto. * ext/bigdecimal/bigdecimal.c (is_positive): ditto. * ext/bigdecimal/bigdecimal.c (is_zero): ditto. * ext/bigdecimal/bigdecimal.c (is_one): ditto. * ext/bigdecimal/bigdecimal.c (is_even): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (when_vals): when a string literal is written on whenmame2011-07-102-1/+14
| | | | | | | clause, skip string creation to make it faster. [ruby-dev:44068] [Feature #5000] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (reduce_nodes_gen): NODE_RETURN in rescue body must not bemame2011-07-102-0/+10
| | | | | | | reduced when there is an else clause. This caused bizarre behavior in [Bug #4473] [ruby-core:35629] [ruby-core:37884]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (range_max): fix behavior with excluded end value.tarui2011-07-103-0/+10
| | | | | | | [Bug #4591] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS: Fix RubyGems version. [Ruby 1.9 - Bug #5004]drbrain2011-07-102-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-07-10svn2011-07-091-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Remove duplicated definition.naruse2011-07-091-9/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h: rb_rational_reciprocal is defined in rational.c.tadf2011-07-092-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h: added declarations.tadf2011-07-093-2/+13
| | | | | | | * complex.c: followed the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS: bigdecimal is not a builtin.tadf2011-07-092-8/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/date/date_core.c: some improvements for performance.tadf2011-07-092-175/+259
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * atomic.h (ATOMIC_OR): _InterlockedOr is unavailable in VC6.nobu2011-07-092-2/+17
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (ULLONG_MAX): fallback definition.nobu2011-07-092-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_{read,write}): should be signed.nobu2011-07-093-4/+9
| | | | | | Bug #5001 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/core.rb: fix multipart form parsing bug. [Bug #3866]xibbar2011-07-093-2/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* comment clarification. Only Leopard or earlier has ENOTSUPP kosaki2011-07-091-3/+3
| | | | | | | | issue if my kernel code reading is correct. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Add Vector#normalize [ruby-dev:43829]marcandre2011-07-093-1/+33
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c: Remove "enumeration sequenced by".drbrain2011-07-092-3/+8
| | | | | | | [Ruby 1.9 - Bug #4757] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c: Note that methods other than IO#gets may increase IO#lineno.drbrain2011-07-092-5/+13
| | | | | | | [Ruby 1.9 - Bug #4902] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (RUN_OPT): disable gems.nobu2011-07-085-2/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-07-09svn2011-07-081-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_close): close(2) on a fd which is being read bynobu2011-07-082-0/+11
| | | | | | another thread causes deadlock on Mac OS X 10.5 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * addr2line.c: use USE_ELF instead of __ELF__ because Solarisnaruse2011-07-084-5/+15
| | | | | | | | | | | doesn't define it. USE_ELF is already provided by configure. patched by Naohisa Goto. [ruby-dev:44066] [Bug #4998] * addr2line.h: ditto. * vm_dump.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json/{generator/generator.c,parser/parser.rl}: fix indent.nobu2011-07-083-24/+24
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json/parser/parser.rl (JSON_parse_object): add missing parens.nobu2011-07-082-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json/parser/parser.rl (convert_encoding): should not modifynobu2011-07-084-6/+24
| | | | | | the argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json/parser/parser.rl (convert_encoding): no needs to usenobu2011-07-083-35/+20
| | | | | | force_encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: add dependencies for EXT_SRCS.nobu2011-07-081-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json/parser/prereq.mk: remove trailing spaces.nobu2011-07-081-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (cmp_tv, subtract_tv): no longer used on Win32.nobu2011-07-081-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (rb_bug): get rid of segfault after all threadsnobu2011-07-082-1/+13
| | | | | | | disposed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl.h: include openssl/e_os2.h before checking theusa2011-07-082-0/+6
| | | | | | | defition of OPENSSL_SYS_WIN32. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (wunlink): reverted a part of r32426. it was mistakenlyusa2011-07-082-6/+6
| | | | | | | mixed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: can't subtract void *.nari2011-07-082-5/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (config.h): define GC_MARK_STACKFRAME_WORD.usa2011-07-082-0/+7
| | | | | | | | fixed build problem of r32438. the value (30) is temporary value. maybe it's enough by 20~24 according to my observation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for [ruby-dev:44049].kosaki2011-07-081-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_mutex_unlock_all): folded intokosaki2011-07-082-29/+25
| | | | | | | | | rb_threadptr_unlock_all_locking_mutexes. * thread.c (rb_threadptr_unlock_all_locking_mutexes) ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (thread_unlock_all_locking_mutexes): rename tokosaki2011-07-084-3/+17
| | | | | | | | | | | | | rb_threadptr_unlock_all_locking_mutexes and remove static. * vm_core.h: add rb_threadptr_unlock_all_locking_mutexes declaration. * thread.c (thread_start_func_2): adjust the above rename. * eval.c (ruby_cleanup): call rb_threadptr_unlock_all_locking_mutexes again after finalizer. [Bug #4988] [ruby-dev:44049] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c (FIBER_MACHINE_STACK_ALLOCATION_SIZE): Fiber stack sizekosaki2011-07-082-2/+7
| | | | | | | | don't need to keep multiple number of sizeof(VALUE). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (sudo-precheck): true command is not standard onnobu2011-07-083-1/+7
| | | | | | Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/-test-/string/enc_associate.c: needs ruby/encoding.h fornobu2011-07-081-0/+1
| | | | | | rb_to_encoding(). fixed #4993. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread_pthread.c (gvl_destroy): fix cond_t leak.kosaki2011-07-082-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: Improve documentationdrbrain2011-07-082-25/+56
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-07-08svn2011-07-071-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typoskazu2011-07-071-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: change water_mark value value that may callnari2011-07-073-8/+76
| | | | | | | | | | | gc_mark(lev <= GC_LEVEL_MAX) in gc_mark(). In ruby_stack_check(), water_mark is a value that may call some C function. Fixes Bug #3781 * configure.in: define GC_MARK_STACKFRAME_WORD that approximate size of gc_mark() and gc_mark_children() stackframes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a comment why FreeBSD can't use MAP_STACK.kosaki2011-07-071-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e