lib/optionparser.rb

* lib/optionparser.rb, lib/optparse.rb (OptParse): aliases.
  [ruby-core:62751] [Feature #9864]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
minitest/unit.rb: fix leaking tempfile

* test/lib/minitest/unit.rb (capture_subprocess_io): opened files
  can not be unlinked on Windows.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
win32/Makefile.sub: copy enc/jis/props.h

* win32/Makefile.sub (enc/jis/props.h): nmake needs special rule
  to copy from the source directory, because it can't handle VPATH.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
pty.c: do nothing if terminated already

* ext/pty/pty.c (pty_detach_process): if the child process has
  terminated already, return immediately without starting a thread
  to detach it.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
test/thread: fix leaked threads

* test/thread/test_{queue,sync}.rb: join work threads not to leak
  threads.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
test/ruby: fix leaked threads

* test/thread/test_{backtrace,beginendblock,proc,threadgroup}.rb:
  join work threads not to leak threads.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
test/ruby: fix leaked threads

* test/thread/test_backtrace.rb: join work threads not to leak
  threads.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
test_http.rb: fix leaked threads

* test/net/http/test_http.rb (test_timeout_during_HTTP_session):
  join work threads not to leak threads.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
test_imap.rb: fix leaked threads

* test/net/imap/test_imap.rb (imaps_test): join work threads not
  to leak threads.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
thread.c: preserve encoding

* thread.c (rb_thread_inspect): preserve encoding of the class
  name.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/ruby/test_file.rb: skip the test of atime on Windows, because
  Windows delays updating atime about 1 hour.
  see more details:
    http://msdn.microsoft.com/en-us/library/windows/desktop/ms724290%28v=vs.85%29.aspx


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
thread.c: inspect location

* thread.c (rb_thread_inspect): show the location of the block.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
test_monitor.rb: fix leaked threads

* test/monitor/test_monitor.rb (test_killed_thread_in_synchronize):
  join work threads not to leak threads.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
test_rinda.rb: fix leaked threads

* test/rinda/test_rinda.rb: join work threads not to leak threads.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
test_rinda.rb: revert stop_service

* test/rinda/test_rinda.rb (test_take_bug_8215): revert
  `stop_service` for the time being.  need to reset
  `current_server` to let test/drb work, probably.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
fix typos [ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
test/rdoc: remove tempfiles

* test/rdoc/test_rdoc_encoding.rb (teardown): remove tempfiles.
* test/rdoc/test_rdoc_markup_pre_process.rb (teardown): ditto.
* test/rdoc/test_rdoc_parser_c.rb (teardown): ditto.
* test/rdoc/test_rdoc_parser_changelog.rb (teardown): ditto.
* test/rdoc/test_rdoc_parser_markdown.rb (teardown): ditto.
* test/rdoc/test_rdoc_parser_rd.rb (teardown): ditto.
* test/rdoc/test_rdoc_parser_ruby.rb (teardown): ditto.
* test/rdoc/test_rdoc_parser_simple.rb (teardown): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
test/rdoc: avoid tempfile leaks

* test/rdoc/test_rdoc_parser.rb (test_class_for_forbidden): avoid
  tempfile leaks by using `Tempfile.create` instead of
  `Tempfile.open`.
* test/rdoc/test_rdoc_rd_block_parser.rb (test_parse_include_subtree):
  ditto.
* test/rdoc/test_rdoc_rdoc.rb (test_parse_file_encoding): ditto.
* test/rdoc/test_rdoc_rdoc.rb (test_parse_file_forbidden): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
test/rubygems: remove tempfiles

* test/rubygems/test_gem_package_tar_header.rb: remove tempfiles.
* test/rubygems/test_gem_package_tar_reader.rb: ditto.
* test/rubygems/test_gem_package_tar_reader_entry.rb (teardown):
  ditto.
* test/rubygems/test_gem_package_tar_writer.rb (teardown): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
test/rdoc: avoid tempfile leaks

* test/rubygems/test_gem_package.rb: avoid tempfile leaks by using
  `Tempfile.create` instead of `Tempfile.open`.
* test/rubygems/test_gem_request_set.rb: ditto.
* test/rubygems/test_gem_request_set_gem_dependency_api.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e