aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* openssl/buffering.rb: call supernobu2013-11-222-1/+7
| | | | | | | * ext/openssl/lib/openssl/buffering.rb (OpenSSL::Buffering#initialize): initialize of a module should pass arguments to super. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_settracefunc.rb: Ignore events from other threads.akr2013-11-222-3/+32
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* don't call gem method if Test::Unit is definednaruse2013-11-221-1/+1
| | | | | | | ruby's test-all may define 'gem' method somewhere, and it cause test failure. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (ruby_vm_destruct): do not use ruby_xfree() after freeingko12013-11-224-3/+24
| | | | | | | | | | objspace. * gc.c (ruby_mimfree): added. It is similar to ruby_mimmalloc(). * internal.h: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/digest/test_digest.rb: Reverse order of assert_equalzzak2013-11-222-3/+8
| | | | | | | Reported by @splattael git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: fix build failure on FreeBSD introduced by r43763.naruse2013-11-223-1/+14
| | | | | | | | malloc_usable_size() is defined by malloc_np.h on FreeBSD. * configure.in: check malloc.h and malloc_np.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-11-22svn2013-11-211-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems: Update to RubyGems master 50a8210. Important changesdrbrain2013-11-2130-194/+712
| | | | | | | | | | | | | | in this commit: RubyGems now automatically checks for gem.deps.rb or Gemfile when running ruby executables. This behavior is similar to `bundle exec rake`. This change may be reverted before Ruby 2.1.0 if too many bugs are found. * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: RGENGC_CHECK_MODE should be 0.ko12013-11-212-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (VpAlloc): Fix the expr to adjust the sizemrkn2013-11-212-1/+8
| | | | | | of the digit array. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (BigDecimal_sqrt): Fix the precision ofmrkn2013-11-213-5/+27
| | | | | | | | | the result BigDecimal of sqrt. [Bug #5266] [ruby-dev:44450] * test/bigdecimal/test_bigdecimal.rb: add tests for the above changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: needs malloc.h if malloc_usable_size() is available.nobu2013-11-211-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* gc.c: malloc_usable_sizenobu2013-11-212-0/+7
| | | | | | * gc.c (malloc_usable_size): use _msize() on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_tempfile.rb: suppress warningsnobu2013-11-211-2/+1
| | | | | | | | | | * test/test_tempfile.rb (test_tempfile_is_unlinked_when_ruby_exits): no error should emit. * test/test_tempfile.rb (test_tempfile_encoding_ascii8bit): remove unused variable. * test/test_tempfile.rb (test_tempfile_encoding_ascii8bit2): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* gc.c: malloc_usable_sizenobu2013-11-213-0/+16
| | | | | | | * gc.c (vm_xrealloc, vm_xfree): use malloc_usable_size() to obtain old size if available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* delegate.rb: check if target is setnobu2013-11-213-5/+30
| | | | | | | | * lib/delegate.rb (SimpleDelegator#__getobj__): target object must be set. * lib/delegate.rb (DelegateClass#__getobj__): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tempfile.rb: get rid of warningsnobu2013-11-212-1/+6
| | | | | | | | * lib/tempfile.rb (Tempfile#initialize): use class method to get rid of warnings when $VERBOSE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: rename initial_xxx variables to gc_params.xxx.ko12013-11-212-56/+52
| | | | | | | | | They are not only used initial values. Chikanaga-san: Congratulations on RubyPrize! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.nobu2013-11-211-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: enable "RGENGC_ESTIMATE_OLDSPACE" option as default.ko12013-11-212-46/+77
| | | | | | | | | | | | | | Without this option, some application consumes huge memory. (and there are only a few performance down) Introduced new environment variables: * RUBY_GC_HEAP_OLDSPACE (default 16MB) * RUBY_GC_HEAP_OLDSPACE_MAX (default 128 MB) * RUBY_GC_HEAP_OLDSPACE_GROWTH_FACTOR (default 1.2) * gc.c (initial_malloc_limit): rename to initial_malloc_limit_min. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/bubblebabble/bubblebabble.c: Teach RDoc digest/bubblebabblezzak2013-11-212-14/+22
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/digest/test_digest.rb: Add more tests for digest/bubblebabblezzak2013-11-212-0/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* delegate.rb: try private methods after the targetnobu2013-11-212-24/+17
| | | | | | | * lib/delegate.rb (Delegator#method_missing): try private methods defined in Kernel after the target. [Fixes GH-449] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/uri/test_generic.rb (URI#test_merge): Test uri + URI(path)knu2013-11-212-9/+30
| | | | | | in addition to uri + path. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/lib/openssl/buffering.rb: [DOC] Fix HEREDOC comment forzzak2013-11-212-2/+7
| | | | | | | OpenSSL::Buffering which breaks overview because of RDoc bug git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add link to pull request from r43742zzak2013-11-211-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval_intern.h (SAVE_ROOT_JMPBUF): workaround for the failure ofusa2013-11-214-1/+47
| | | | | | | | | | | | | | | | | | | test/ruby/test_exception.rb on Windows. wrap by __try and __exception statements on mswin to raise SIGSEGV when EXCEPTION_STACK_OVERFLOW is occurred, because MSVCRT doesn't handle the exception. however, (1) mingw-gcc doesn't support __try and __exception statements, and (2) we cannot retry SystemStackError after this change yet (maybe crashed) because SEH and longjmp() are too uncongenial. * signal.c (check_stack_overflow, CHECK_STACK_OVERFLOW): now defined on Windows, too. * thread_win32.c (ruby_stack_overflowed_p): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c: [DOC] Clarify Object#dup vs #clone [Bug #9128]zzak2013-11-212-7/+39
| | | | | | | | | Moving existing doc for this comparison to separate section of #dup Adding examples to document behavior of #dup with Module#extend. Based on a patch by stevegoobermanhill git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (gc_marks_check): do not dump all refs.ko12013-11-212-2/+7
| | | | | | | | * gc.c (allrefs_dump_i): fix output format. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.nobu2013-11-211-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: change RGENGC_CHECK_MODE (>= 2) logic.ko12013-11-212-221/+249
| | | | | | | | | | | | | | | | | | | | | | | | Basically, make an object graph of all of living objects before and after marking and check status. [Before marking: check WB sanity] If there is a non-old object `obj' pointed from old object (`parent') then `parent' or `obj' should be remembered. [After marking: check marking miss] Traversible objects with the object graph should be marked. (However, this alert about objects pointed by machine context can be false positive. We only display alert.) [Implementation memo] objspace_allrefs() creates an object graph. The object graph is represented by st_table, key is object (VALUE) and value is referring objects. Referring objects are stored by "struct reflist". * gc.c (init_mark_stack): do not use push_mark_stack_chunk() at init. This pre-allocation causes failure on is_mark_stask_empty() without any pushing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/observer.rb: [DOC] Clarify default observer method.zzak2013-11-212-3/+9
| | | | | | | By @edward [Fixes GH-450] https://github.com/ruby/ruby/pull/450 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_engine.c: [DOC] Documentation for OpenSSL::Enginezzak2013-11-212-0/+164
| | | | | | | | This patch is based off work by @vbatts in GH-436 completing the documentation for this class and its methods. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/lib/openssl/buffering.rb: Remove unused arguments fromzzak2013-11-212-1/+6
| | | | | | | OpenSSL::Buffering.new [Fixes GH-445] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-11-21svn2013-11-211-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/digest/test_digest.rb: Add test for Digest::SHA256.bubblebabblezzak2013-11-212-1/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/instruction.rb : fix typo.tarui2013-11-202-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (rand_init): Make it possible to specify arbitrary arrayakr2013-11-203-7/+6
| | | | | | | | for init_genrand(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_exception.rb: enclose hash defininitionnobu2013-11-201-2/+4
| | | | | | | | * test/ruby/test_exception.rb: (test_machine_stackoverflow): enclose hash defininition because SystemStackError raises at line 3 on FreeBSD, for unknown reason. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_gc_mark_symbols): set global_symbols.minor_marked onlyko12013-11-202-1/+9
| | | | | | | | | | when full_mark is 0. rb_gc_mark_symbols() (with full_mark == 1) can be called by other than GC (such as rb_objspace_reachable_objects_from_root()). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json: merge JSON 1.8.1.naruse2013-11-2011-41/+112
| | | | | | | | | | | | | | | | https://github.com/nurse/json/compare/002ac2771ce32776b32ccd2d06e5604de6c36dcd...e09ffc0d7da25d0393873936c118c188c78dbac3 * Remove Rubinius exception since transcoding should be working now. * Fix https://github.com/flori/json/issues/162 reported by Marc-Andre Lafortune <github_rocks@marc-andre.ca>. Thanks! * Applied patches by Yui NARUSE <naruse@airemix.jp> to suppress warning with -Wchar-subscripts and better validate UTF-8 strings. * Applied patch by ginriki@github to remove unnecessary if. * Add load/dump interface to JSON::GenericObject to make serialize :some_attribute, JSON::GenericObject work in Rails active models for convenient SomeModel#some_attribute.foo.bar access to serialised JSON data. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* eval_jump.c: reuse same tagnobu2013-11-192-38/+34
| | | | | | | * eval_jump.c (rb_exec_end_proc): reduce number of pushing/popping and reuse same tag. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc/constant.rb: reapply r43006 for workaround of NoMethodErrornobu2013-11-192-1/+14
| | | | | | | * lib/rdoc/constant.rb (RDoc::Constant#documented?): workaround for NoMethodError when the original of alias is not found. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-11-20svn2013-11-191-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* delegate.rb: refix r43682nobu2013-11-193-1/+26
| | | | | | | * lib/delegate.rb (Delegator#send): separate from method_missing so that super calls proper method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: --with-os-version-stylenobu2013-11-192-0/+28
| | | | | | | * configure.in (--with-os-version-style): option to transform target OS version string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_rdoc_generator_darkfish.rb: ignore nlink is not providednobu2013-11-191-0/+2
| | | | | | | * test/rdoc/test_rdoc_generator_darkfish.rb (assert_hard_link): makes no sense on platforms where link count is not provided. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rubygems/util.rb: fix Gem::Util.popennobu2013-11-191-5/+6
| | | | | | | | * lib/rubygems/util.rb (Gem::Util.popen): should close open pipe to reap the child process, in 1.9 or later. fix deadlock on waiting the child process whose output is bigger than pipe buffer, in 1.8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rubygems/source/git.rb: discard outputnobu2013-11-192-2/+2
| | | | | | | * lib/rubygems/source/git.rb (Gem::Source::Git#checkout): discard git output. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bignum.c: suppress warningnobu2013-11-191-1/+5
| | | | | | | * bignum.c (absint_numwords_generic): suppress false warning in rb_absint_numwords() by gcc 4.4. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e