summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add tests for lib/abbrev.rb.knu2012-11-302-0/+53
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/spec_fetcher.rb: Allow prerelease spec fetching to faildrbrain2012-11-303-3/+33
| | | | | | | | for bundler. * test/rubygems/test_gem_spec_fetcher.rb: Test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rake/backtrace.rb: Removed duplication indrbrain2012-11-303-1/+16
| | | | | | | | | Rake::Backtrace::SUPPRESSED_PATHS * test/rake/test_rake_backtrace.rb: Skip tests when tmpdir is in the suppressed pattern. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * revert r37993 to avoid SEGV in tests.shugo2012-11-3012-372/+170
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/ri/driver.rb: Relaxed matching for pages to be moredrbrain2012-11-303-2/+44
| | | | | | | | user-friendly. * test/rdoc/test_rdoc_ri_driver.rb: Test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* value.rb: adjust indentnobu2012-11-301-52/+52
| | | | | | | * ext/fiddle/lib/fiddle/value.rb (Fiddle::ValueUtil#wrap_arg): adjust indent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* value.rb: remove DLnobu2012-11-301-2/+0
| | | | | | | * ext/fiddle/lib/fiddle/value.rb (Fiddle::ValueUtil#wrap_arg): remove deprecated require. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Refix r38002: capture_subprocess_io also doesn't forknaruse2012-11-301-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/markdown.rb: Fixed warnings with -wdrbrain2012-11-302-71/+39
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use capture_subprocess_io instead of capture_io. fix r38002naruse2012-11-301-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_backtrace.c: RB_GC_GUARDnobu2012-11-303-3/+14
| | | | | | | | | | * include/ruby/ruby.h (RB_GC_GUARD_PTR): add note. * vm_backtrace.c (backtrace_to_str_ary): use RB_GC_GUARD() instead of RB_GC_GUARD_PTR() which has no effect. (backtrace_to_location_ary): ditto. (vm_backtrace_to_ary): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/commands/contents_command.rb: Sort output from command.drbrain2012-11-305-4/+20
| | | | | | | | | | | Replaces r38004, r38005 * test/rubygems/test_gem_commands_contents_command.rb: ditto. * lib/rubygems/defaults.rb: Use Gem.path_separator for jruby support. * lib/rubygems/path_support.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/generator/darkfish.rb: Silenced warningdrbrain2012-11-2911-17/+71
| | | | | | | | | | | | | | | | | | | | | | * test/rdoc/test_rdoc_rdoc.rb: ditto * lib/rdoc/markup/parser.rb: Use byteslice when available for performance * test/rdoc/test_rdoc_markup_parser.rb: Test for above * lib/rdoc/test_case.rb: ditto * lib/rdoc/parser/ruby.rb: Fixed bug parsing yield({}) * test/rdoc/test_rdoc_parser_ruby.rb (end): * lib/rdoc/rubygems_hook.rb: Skip default gems. Display generator name properly. * test/rdoc/test_rdoc_rubygems_hook.rb: Test for above * lib/rdoc/servlet.rb: Fixed typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c : remove a unused function.nari2012-11-292-16/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a revisited typo.nari2012-11-291-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (rb_objspace_call_finalizer): finalize_deferred may free upnari2012-11-293-10/+19
| | | | | | | | | | a object which is reachable from a part after this function, e.g. ruby_vm_destruct(). [ruby-dev:46647] [Bug #7452] * test/ruby/test_gc.rb (test_finalizing_main_thread): add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_thread_interrupted): avoid warning ofko12012-11-292-2/+9
| | | | | | | | | implicit conversion. * thread.c (rb_threadptr_execute_interrupts): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_backtrace.c: add GC guards.ko12012-11-292-4/+20
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* [EXPERIMENTAL: NEED DISCUSS]ko12012-11-299-31/+138
| | | | | | | | | | | | | | | | | | | | | * vm_trace.c: add events * :thread_begin - hook at thread beggining. * :thead_end - hook at thread ending. * :b_call - hook at block enter. * :b_return - hook at block leave. This change slow down block invocation. Please try and give us feedback until 2.0 code freeze. * include/ruby/ruby.h: ditto. * compile.c (rb_iseq_compile_node): ditto. * insns.def: ditto. * thread.c: ditto. * vm.c: ditto. * include/ruby/debug.h: add a comment. * test/ruby/test_settracefunc.rb: add a tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Imported minitest 4.3.2 (r8027)ryan2012-11-292-20/+27
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix typo of r38004naruse2012-11-291-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Sort th result to compare multiple linesnaruse2012-11-291-1/+1
| | | | | | The order of the lines is depend on Dir.glob's result. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rake/*: Updated to rake 0.9.5drbrain2012-11-2918-41/+181
| | | | | | | | * test/rake/*: ditto. * NEWS: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Run another process to avoid failure when objspace is already loadednaruse2012-11-291-3/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c: add a return hook when a method raises an exception.tenderlove2012-11-297-12/+64
| | | | | | | | | | | | | | * probes_helper.h: look up klass and method if none are provided. * eval.c: update macro usage. * vm_eval.c: ditto. * vm_insnhelper.c: ditto. * test/dtrace/test_function_entry.rb: test for change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (compile_array_): refix r37991 remove assertion:naruse2012-11-294-1/+157
| | | | | | | | | | | it is true only if type == COMPILE_ARRAY_TYPE_HASH. [ruby-dev:46658] [Bug #7466] * vm.c (m_core_hash_from_ary): add assertion instead of above. * vm.c (m_core_hash_merge_ary): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a typokazu2012-11-291-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-11-30svn2012-11-291-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix indent and typoskazu2012-11-291-6/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_ssl.c (ssl_npn_encode_protocol_i): fix byte orderngoto2012-11-292-1/+8
| | | | | | | issue on big-endian architecture [ruby-core:50292] [Bug #7463] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add issue ref to the previous commit.nahi2012-11-291-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/openssl/test_cipher.rb (test_ctr_if_exists): add CTR mode testnahi2012-11-292-0/+20
| | | | | | | if underlying OpenSSL supports it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_method.c (rb_method_entry_make): add a method entry withshugo2012-11-2912-166/+410
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VM_METHOD_TYPE_REFINED to the class refined by the refinement if the target module is a refinement. When a method entry with VM_METHOD_TYPE_UNDEF is invoked by vm_call_method(), a method with the same name is searched in refinements. If such a method is found, the method is invoked. Otherwise, the original method in the refined class (rb_method_definition_t::body.orig_def) is invoked. This change is made to simplify the normal method lookup and to improve the performance of normal method calls. * vm_method.c (EXPR1, search_method, rb_method_entry), vm_eval.c (rb_call0, rb_search_method_entry): do not use refinements for method lookup. * vm_insnhelper.c (vm_call_method): search methods in refinements if ci->me is VM_METHOD_TYPE_REFINED. If the method is called by super (i.e., ci->call == vm_call_super_method), skip the same method entry as the current method to avoid infinite call of the same method. * class.c (include_modules_at): add a refined method entry for each method defined in a module included in a refinement. * class.c (rb_prepend_module): set an empty table to RCLASS_M_TBL(klass) to add refined method entries, because refinements should have priority over prepended modules. * proc.c (mnew): use rb_method_entry_with_refinements() to get a refined method. * test/ruby/test_refinement.rb (test_inline_method_cache): do not skip the test because it should pass successfully. * test/ruby/test_refinement.rb (test_redefine_refined_method): new test for the case a refined method is redefined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert r37991 "compile.c: hash must be paired"naruse2012-11-293-146/+1
| | | | | | DO BUILD BEFORE COMMIT ! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* compile.c: hash must be pairednobu2012-11-293-1/+146
| | | | | | | | * compile.c (compile_array_): hash elements must be paired even for literal elements. [ruby-dev:46658] [Bug #7466] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* variable.c: show namespacenobu2012-11-293-2/+12
| | | | | | | | * variable.c (rb_const_set): show namespace in warning messages. [Feature #7190] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems.rb (Gem.load_yaml): return if Kernel#gem is not definednaruse2012-11-292-1/+9
| | | | | | | | yet. This causes crash if test-all requires libraries in a certain order. A simple reproducible code is ruby --disable-gem -e'require"yaml";require"minitest/autorun"' git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tracer.rb: Updated to match removal of custom_require fromdrbrain2012-11-293-3/+10
| | | | | | | | | RubyGems. * test/test_tracer.rb: ditto. Improved failure message if the test fails git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: Documentation for GC, GC::Profiler, ObjectSpace, andzzak2012-11-292-76/+121
| | | | | | | ObjectSpace::WeakMap [ruby-core:50245] [Bug #7449] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* helper.rb: try with sudonobu2012-11-291-2/+11
| | | | | | | * test/dtrace/helper.rb (DTrace::TestCase#trap_probe): try with $SUDO if set. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/vpath.rbnobu2012-11-296-91/+108
| | | | | | | | | * tool/generic_erb.rb, tool/id2token.rb: add --path-separator option for mingw where make and built ruby live in different world. * tool/vpath.rb: extract from tool/instruction.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_io_wait.rb: Bug #7420nobu2012-11-292-1/+7
| | | | | | | | | * test/io/wait/test_io_wait.rb (TestIOWait#fill_pipe): Errno::EWOULDBLOCK may not be the same as Errno::EAGAIN. patch by phasis68 (Heesob Park) at [ruby-core:49894]. [Bug #7420] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove trainling spacesnobu2012-11-2910-14/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/test_case.rb: Determine path to certificates to avoiddrbrain2012-11-293-10/+14
| | | | | | | | | build-dir problems. * test/rubygems/test_gem_security_signer.rb: Use predetermined paths to avoid build-dir problems. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/test_case.rb: Disable loading of keys and certificatesdrbrain2012-11-292-3/+18
| | | | | | | | outside rubygems or ruby tests as the files are not available (or necessary). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_backtrace.c (rb_debug_inspector_open): use RARRAY_LENINT() forko12012-11-292-1/+6
| | | | | | | | int variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/debug.h: add rb_debug_inspector_* APIs.ko12012-11-298-16/+180
| | | | | | | | | | | | | * vm_backtrace.c: ditto. * common.mk: add dpendency from vm_backtrace.o to include/ruby/debug.h. * proc.c (rb_binding_new_with_cfp): constify. * vm.c (rb_vm_get_ruby_level_next_cfp): consitify. * vm_core.h, vm_trace.c: move decls. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/test_case.rb (RDoc::TestCase#verbose_capture_io):naruse2012-11-2910-15/+37
| | | | | | | | | defined for asserts of warnings. * test/rdoc: use verbose_capture_io on asserts of warnings. they failed when tests was run with RUBYOPT=-W0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/extconf.rb: added --enable-bundled-libyaml option. thisusa2012-11-292-1/+6
| | | | | | | enforces using bundled libyaml. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems*: Updated to RubyGems 2.0drbrain2012-11-29214-6995/+13959
| | | | | | | | | | | | * test/rubygems*: ditto. * common.mk (prelude): Updated for RubyGems 2.0 source rearrangement. * tool/change_maker.rb: Allow invalid UTF-8 characters in source files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e