eval.c: fix message

* eval.c (top_include): fix a warning message, main is not a class or
  module.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
proc.c: main.define_method

* proc.c (top_define_method): new method, main.define_method.
  [ruby-core:45715] [Feature #6609]


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c (sym_to_proc, sym_call): A Proc created by Symbol#to_proc
  should close over the current refinements.
  [ruby-dev:46345] [Bug #7261]

* vm_eval.c (rb_call0, rb_search_method_entry,
  rb_funcall_passing_block_with_refinements): add a new argument
  `refinements' for the above changes.

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

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

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* array.c (recursive_equal): performance improvement.
[ruby-dev:45412] [Feature #6177]

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ChangeLog: added a missed space

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_dump.c (rb_vm_bugreport): add ~/Library/Logs/DiagnosticReports
  in the locations list of crash reports.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_dump.c (rb_vm_bugreport): Because of many log directories,
  making directory lists readable.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* object.c (rb_mod_to_s): Module#{to_s,inspect}, when invoked on
  a refinement, returns a string in the format #<refinement:C@M>,
  where C is a refined class and M is a module at which the refinemet
  is defined.

* eval.c (rb_mod_refine): store information on a refinement for the
  above change.

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

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/test/unit.rb (_run_parallel): Delete status line before showing
  results. Patch by Hiroshi Shirosaki. [Bug #6897] [ruby-core:47250]

* lib/test/unit.rb (_run_parallel): Fix strange result when disabled retrying.
  Patch by Hiroshi Shirosaki. [Bug #6897] [ruby-core:47250]

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

* lib/mkmf.rb (MakeMakefile#timestamp_file): use .-. instead of !, a
  special character of NMAKE and BSD make.  [Bug #7265]


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

* lib/mkmf.rb (MakeMakefile#timestamp_file): remove @ which looks like
  configure variables.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ChangeLog: add explanation about how performace is improved in r37420.

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

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
vm.c: rewrite all catch points

* vm.c (rb_vm_rewrite_ep_in_errinfo): rewrite all catch points in
  errinfo, not only the topmost frame.  based on the patch by
  ktsj (Kazuki Tsujimoto) in [ruby-dev:45656]. [Bug #6460]


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/ruby/test_refinement.rb (test_new_method_by_send,
  test_new_method_by_method_object): add tests for Kernel#send and
  Kernel#method with refinements.

* test/ruby/test_refinement.rb (test_symbol_to_proc): add a test
  calling a proc created by Symbol#to_proc outside the scope where
  a refinement is closed over.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* eval.c (f_current_dirname): add the new method for Kernel.
  This method almotst same as File.dirname(__FILE__). One
  different behavior is it returns nil when __FILE__ returns nil.
  [Feature #3346]

* NEWS:  ditto

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

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* NEWS: add a news about rb_newobj_of() and NEWOBJ_OF().

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* NEWS: add a news about GC::Profiler.raw_data.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* hash.c (rb_hash_delete): Correct grammar
  Patch by Glenn Oppegard
  [Fixes #208 Github]


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