* ext/dl/lib/dl/func.rb (DL::Function#bind): When Fiddle is used,
  @ptr should be updated. This fixes SEGV raised in DL::Function#call
  after calling DL::Function#bind. [Bug #7516] [ruby-dev:46708]
* test/dl/test_func.rb (test_bind): test for the above


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
fix typos and remove trailing spaces

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
vm.c: save blockprocval

* vm.c (rb_vm_make_proc): save the proc made from the given block so
  that it will not get collected.  [ruby-core:50545] [Bug #7507]

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* gc.c (getrusage_time): uses clock_gettime() with
  CLOCK_PROCESS_CPUTIME_ID when available, which provides a 1ns
  precision on linux. [ruby-core:50495] [Bug #7500]

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
add a contributor name

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/timeout.rb (Timeout#timeout): set
  async_interrupt_timeing(:on_blocking) by default.
  [Bug #7503] [ruby-core:50524]

* test/test_timeout.rb (#test_timeout_blocking): test for the above.
* test/test_timeout.rb (test_timeout_immediate): ditto
* test/test_timeout.rb (test_timeout_immediate2): ditto.

* NEWS: news for the above.

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

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Use underscore-begging name for dummy variables to suppress warning

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

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
adjust style and fix typo and indent

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
	* lib/timeout.rb (Timeout#timeout): specify a exception
	  more strictly at async_interrupt_timing.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
test_object.rb: test for public_send

* test/ruby/test_object.rb (TestObject#test_public_send): add test for
  public_send.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
vm_eval.c: public_send does not consider how it is called

* vm_eval.c (rb_method_call_status): use Qundef as no self instead of
  the current self.
* vm_eval.c (send_internal): public_send does not consider how it is
  called, as mentioned in r14173.  patched by charliesome (Charlie
  Somerville).  [ruby-core:50489] [Bug #7499]

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* io.c (io_binwrite): check interrupt before io issue.
* test/ruby/test_thread.rb (test_async_interrupt_and_io):
  test for the above.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* thread.c (rb_uninterruptible): helper function for providing
  temporary async_interrupt_timing(Object => :defer)

* io.c (rb_f_p): use rb_uninterruptible.
* io.c (rb_f_p_internal): helper function for rb_f_p().
* io.c (struct rb_f_p_arg): new struct for rb_f_p_internal.

* test/ruby/test_thread.rb (test_async_interrupt_and_p): test for
  the above.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/rdoc*:  Improved display of ChangeLog files as HTML.
* test/rdoc*:  Test for above.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_trace.c: TracePoint#enable should not cause an error
  when it is already enabled. TracePoint#disable is too.
  [ruby-core:50561] [ruby-trunk - Bug #7513]
* test/ruby/test_settracefunc.rb: add tests.



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


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/rubygems/package.rb:  Set rubygems_version before validation.
  Fixes issue with bundler.
* test/rubygems/test_gem_package.rb:  Test for above.

* lib/rubygems/remote_fetcher.rb:  Only update the cache when we have
  permission.  [ruby-trunk - Bug #7509]
* lib/rubygems/source.rb (class Gem):  ditto
* test/rubygems/test_gem_remote_fetcher.rb:  Test for above.
* lib/rubygems/test_utilities.rb:  ditto

* lib/rubygems/specification.rb:  Derive base_dir properly for default
  gems.  [ruby-trunk - Bug #7496]
* test/rubygems/test_gem_specification.rb:  Test for above.

* lib/rubygems.rb:  Untaint Dir.pwd when searching for gemdeps files
  for operation under $SAFE=1


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@38229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/rubygems/command_manager.rb:  Removed string concatenation
  syntax.  [Bug #6265]
* lib/rubygems/commands/install_command.rb:  ditto
* lib/rubygems/commands/uninstall_command.rb:  ditto
* lib/rubygems/indexer.rb:  ditto
* lib/rubygems/security/policy.rb:  ditto
* lib/rubygems/security.rb:  ditto
* lib/rubygems/uninstaller.rb:  ditto
* test/rubygems/test_gem_commands_cert_command.rb:  ditto
* test/rubygems/test_gem_package.rb:  ditto
* test/rubygems/test_gem_security.rb:  ditto
* test/rubygems/test_gem_security_policy.rb:  ditto


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