* eval.c (rb_using_refinement): make the method table of an iclass
  for a refinement that of the refinement, not that of the origin of
  the refinement, which is set by rb_include_class_new().  This
  change is needed to make module prepend into a refinement work
  properly.

* test/ruby/test_refinement.rb: related test.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Experimentally recommit of r38041: specify smaller max length

* vm_dump.c (rb_vm_bugreport): get rid of calling methods in sigsegv
  handler.  based on a patch by charliesome (Charlie Somerville)
  [ruby-core:49573] [Bug #7402]

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
test.rb: show messages in one line

* sample/test.rb (Progress#initialize): add --verbose option and show
  messages in one line unless --verbose is given.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
vm.c: pass exceptions while handling an exception

* vm.c (vm_exec): pass exceptions while handling an exception.
* vm_trace.c (rb_threadptr_exec_event_hooks): propagate exceptions.
  revert r38293 partially.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Experimental: don't use $.*s of fprintf

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* iseq.c (rb_iseq_parameters): fix limit for optional arguments.
* test/ruby/test_keyword.rb: tests for above.
* vm_core.h (struct rb_iseq_struct): update documentation
  with keyword arguments. [Bug #7540] [ruby-core:50735]

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Experimental fix for r38041

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Specify rlimits_core to prevent making core file

Stable fix for r38041.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
vm_insnhelper.c: common code

* vm_insnhelper.c (vm_getivar, vm_setivar): unify common code
  irrelevant to the condition.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
vm_insnhelper.c: no warnings for non-object

* vm_insnhelper.c (vm_getivar): no uninitialized instance variables
  warnings for non-object if attr method.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/rdoc/class_module.rb:  Added RDoc::ClassModule#documented? which
  checks comment_location.  Hide RDoc::ClassModule#comment=.
* test/rdoc/test_rdoc_class_module.rb:  Test for above.

* lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml:
  Fix display of the table of contents in the sidebar.

* lib/rdoc/generator/template/darkfish/table_of_contents.rhtml:
  Use #comment_location when displaying classes or modules.

* test/rdoc/test_rdoc_store.rb:  Use comment_location.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
proc.c: move misplaced case

* proc.c (rb_method_entry_arity): move misplaced case added at r38236.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
method.h: NOEX_SAFE_SHIFT_OFFSET

* method.h (rb_method_flag_t): name a magic number for NOEX_SAFE and
  NOEX_WITH as NOEX_SAFE_SHIFT_OFFSET.
* method.h (rb_method_type_t, method_optimized_type): C89 forbids a
  comma after the last element in enum.
* proc.c (rb_method_entry_arity), vm_eval.c (vm_call0_body),
  vm_insnhelper.c (vm_call_method): add VM_METHOD_TYPE__MAX case.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
test_rdoc_rdoc.rb: use File::NULL

* test/rdoc/test_rdoc_rdoc.rb (TestRDocRDoc#test_normalized_file_list_non_file_directory):
  use File::NULL for portability if possible.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: add -fno-omit-frame-pointer if libexecinfo is used.
  At least on FreeBSD ruby will crash on getting C backtrace
  when it is compiled with other than -O0.

* vm_dump.c: enable backtrace on FreeBSD even if with optimizations.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
time.c: st_update

* time.c (zone_str): lookup or insert by using st_update() at once.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* class.c (rb_prepend_module): move refined methods from the origin
  of a class to the class, because refinements should have priority
  over prepended modules.

* test/ruby/test_refinement.rb: related test.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Suppress warning: too long path

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/json: merge JSON 1.7.5.
  fix tests and other fixes.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* properties.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e