Граф коммитов

33980 Коммитов

Автор SHA1 Сообщение Дата
nobu 4fcdce3b68 * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-16 05:21:05 +00:00
ko1 c979a67bb4 * gc.c: use gc_verify_internal_consistency() instead of
gc_check_before_marks_i() for check consistency
  on RGENGC_CHECK_MODE >= 2.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-16 05:18:21 +00:00
naruse 2a732947a6 * process.c (make_clock_result): add :second as a unit for
Process.clock_gettime.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-16 05:04:03 +00:00
naruse b7cbdcc5fd suppress warning: SAFE=3 does no sandboxing
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-16 05:03:56 +00:00
ko1 dfa892af43 * gc.c: introduce GC.verify_internal_consistency method to verify GC
internal data structure.
  Now this method only checks geneartion (old/young) consistency.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-16 04:12:48 +00:00
tmm1 d87de08512 typo: wheb -> when
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-16 02:51:25 +00:00
svn ef6c90f463 * 2013-12-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-16 02:50:51 +00:00
tmm1 99df7a1b5b gc.c: fix build with RGENGC_ESTIMATE_OLDMALLOC=0
* gc.c (gc_info_decode): Fix build errors wheb compiled with
	  RGENGC_ESTIMATE_OLDMALLOC=0
	* gc.c (objspace_malloc_increase): ditto

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-16 02:50:45 +00:00
nobu 0e52301c4b test_logger.rb: fix system dependent test
* test/logger/test_logger.rb (test_shifting_size_not_rotate_too_much):
  useless test on Windows.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-15 09:25:05 +00:00
nobu 0bb4934afb test_dir.rb: fix system dependent test
* test/ruby/test_dir.rb (test_symlinks_not_resolved): fix system
  dependent test which has no meanings unless symlink is available.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-15 07:41:59 +00:00
ko1 1448b0abf5 * ext/objspace/objspace.c (reachable_object_from_root_i):
reachable objects should not include categories and
  category_objects because it is noisy information.
  In fact, objects created after calling
  ObjectSpace.reachable_objects_from_root should not be included
  as a returning hash objects. Currently, mswin64 platform has a
  problem because of this behaviour. Should we trace new objects?



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-15 04:42:23 +00:00
a_matsuda 82eef27f46 * lib/shell/filter.rb: [DOC] Fix typo
s/exection/execution/
[ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-15 02:09:41 +00:00
drbrain 6c9a3cb681 * lib/rubygems/basic_specification.rb (class Gem): Revert r44213, it
causes SystemStackError for bundler


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-15 00:51:37 +00:00
nobu b3348ddd4d envutil.rb: reduce wait
* test/ruby/envutil.rb (EnvUtil.diagnostic_reports): reduce watching
  interval.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 22:34:47 +00:00
nobu b46441824f test_process.rb: handshake
* test/ruby/test_process.rb: handshake by pipe instead of sleep.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 22:34:43 +00:00
drbrain 23201ab1c4 * lib/rdoc: Update to RDoc master 263a9e5. This improves the
accessibility of the search box.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 22:09:35 +00:00
nobu 0b84ee8f7b test_thread.rb: timing issues
* test/ruby/test_thread.rb: get rid of timing issues and reduce
  sleep times.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 22:03:24 +00:00
nobu 8d0b8c879f test_thread.rb: assert_operator for comparison
* test/ruby/test_thread.rb (test_priority): use assert_operator
  for comparison instead of assert_send.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 22:03:19 +00:00
nobu 637585d912 test_fiber.rb: remove core
* test/ruby/test_fiber.rb (TestFiber#invoke_rec): remove core dump
  files by stack overflow.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 20:46:44 +00:00
drbrain e6147745d5 * lib/rubygems/basic_specification.rb: Update to RubyGems master
9c718fe.  Removes code duplication.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 20:28:45 +00:00
svn eb54578a27 * 2013-12-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 18:27:04 +00:00
a_matsuda 4618b7f200 [DOC] Fix output of Shellwords.escape() by @anatol [Fixes GH-483]
* lib/shellwords.rb:  Fix output of Shellwords.escape()
https://github.com/ruby/ruby/pull/483
[ci-skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 18:26:59 +00:00
a_matsuda 65b9ee0838 * lib/debug.rb: [DOC] Fix typo
s/useage/usage/
[ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 14:48:36 +00:00
nobu cc0181caaf * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 10:56:07 +00:00
a_matsuda adb1ee65b7 [DOC] Correct a couple of typos in comments by @dvsuresh [Fixes GH-482]
* doc/ChangeLog-YARV:  Correct a typo in comment
* lib/rubygems/specification.rb:  ditto.
* test/rexml/data/tutorial.xml:  ditto.
* test/ruby/test_settracefunc.rb:  ditto.
* tool/instruction.rb:  ditto.

https://github.com/ruby/ruby/pull/482
[ci-skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 10:54:54 +00:00
nobu 91afce9afa vm_insnhelper.c: post arguments as mandatory
* vm_insnhelper.c (vm_callee_setup_arg_complex): count post
  arguments as mandatory arguments.  [ruby-core:57706] [Bug #8993]
* vm_insnhelper.c (vm_yield_setup_block_args): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 08:39:17 +00:00
nobu 1ec457c2ff * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 07:38:14 +00:00
nobu 36e9f58ddf configure.in: unexpand exec_prefix in rubylibprefix
* configure.in (rubylibprefix): replace exec_prefix as well as
  bindir and libdir.  a patch by kimuraw (Wataru Kimura) at
  [ruby-dev:47852].  [Bug #9160]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 07:26:52 +00:00
a_matsuda c1ffaef8c9 * doc/contributing.rdoc: [DOC] Correct spelling by @dvsuresh [Fixes GH-481]
https://github.com/ruby/ruby/pull/481
[ci-skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 07:26:38 +00:00
nobu 95ed081663 logger.rb: fix extra log ratation
* lib/logger.rb (lock_shift_log): no need to rotate the log file
  if it has been rotated by another process.  based on the patch
  by no6v (Nobuhiro IMAI) in [ruby-core:58620].  [Bug #9133]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 05:43:01 +00:00
nobu 742659cb6c envutil.rb: refine messages
* test/ruby/envutil.rb (assert_file_predicate): place rest
  arguments after predicate name.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 05:42:57 +00:00
nobu 7f83b7872a Additional test coverage to Enumerator#peek.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 04:17:06 +00:00
nobu 14557c7829 Additional test coverage to Dir class. Dir['**/*'] should not resolve symlinks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 04:17:04 +00:00
nobu cb7076696c Additional test coverage to DateTime comparison (sub millisecond).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 04:17:03 +00:00
nobu b83d68a38f proc.c: method by respond_to_missing?
* proc.c (mnew_from_me): method by respond_to_missing? should be
  owned by the original class.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 04:02:00 +00:00
nobu a370556cd2 object.c: check const names
* object.c (rb_mod_const_get, rb_mod_const_defined): check
  constant names more strictly.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 03:38:22 +00:00
nobu 1e4a955435 scanf.rb: fix rescue modifier
* lib/scanf.rb (IO#scanf): fix mistaken use of rescue modifier.
  a patch by Mon_Ouie at [ruby-core:52813].  [Bug #7940]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 02:55:33 +00:00
nobu fcd7887407 util.c: bump stack size in ruby_qsort()
* util.c (ruby_qsort): fix potential stack overflow on a large
  machine.  based on the patch by Conrad Irwin <conrad.irwin AT
  gmail.com> at [ruby-core:51816].  [Bug #7772]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 02:45:07 +00:00
nobu 241ca7bfff object.c: nested path const_defined?
* object.c (rb_mod_const_defined): support nested class path as
  well as const_get.  [Feature #7414]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 02:25:58 +00:00
nobu a68c69d196 object.c: remove unnecessary assignment
* object.c (rb_mod_const_get): remove unnecessary assignment and
  set path together.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 02:24:47 +00:00
nobu db318509d5 object.c: fix typo
* object.c (rb_mod_const_get): fix typo.  should use SYM2ID() not
  ID2SYM().

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 02:24:35 +00:00
nobu c74995b2af ChangeLog: fix commit miss
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 02:12:50 +00:00
nobu ae1a466401 object.c: fix r44189
* object.c (rb_mod_const_get): already interned junk name may be
  valid nested class path.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 02:11:37 +00:00
nobu 33fddfe585 object.c: optimize rb_mod_const_get for symbol
* object.c (rb_mod_const_get): Symbol must be the entire name, not
  a nested constant path, so achieve by its ID directly.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 01:50:49 +00:00
a_matsuda c0abb5e5c3 * ext/psych/yaml/emitter.c: Fix typo in the variable name
s/preceeded/preceded/

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 01:19:06 +00:00
hsbt 967677aba0 * lib/uri/common.rb: [DOC] Fix a broken link by @namusyaka [fix GH-478]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-13 23:22:41 +00:00
nobu b2f9a0f5cb eval.c: reuse tag
* eval.c (rb_rescue2): reuse tags pushed for body proc to protect
  rescue proc too.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-13 16:32:00 +00:00
tarui 71286e3770 * gc.c (wmap_final_func): Bugfix. Should update *value to new pointer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-13 16:19:49 +00:00
akr 4fd53e476e * ext/socket/lib/socket.rb: Don't test $! in "ensure" clause because
it may be set before the body.
  Reported by ko1 and mrkn.  [ruby-core:59088] [Bug #9247]

* lib/cgi/core.rb: Ditto.

* lib/drb/ssl.rb: Ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-13 16:11:12 +00:00
ngoto 42ae24a6e8 * internal.h (ruby_sized_xrealloc2): fix typo introduced in r44117, which cause compile error on Solaris.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-13 15:44:13 +00:00