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

27182 Коммитов

Автор SHA1 Сообщение Дата
nobu d28d075cc1 RB_TYPE_P BUILTIN_TYPE
* string.c, vm_insnhelper.c, vm_method.c: use RB_TYPE_P() and
  BUILTIN_TYPE() if possible.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-01 22:29:26 +00:00
eregon 61b624d149 ext/digest/digest.c (hexencode_str_new): return an ASCII string
* test/digest: tests for all kind of digests encodings
  [ruby-core:46792][Bug #6799]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-01 13:30:51 +00:00
shirosaki f52eefece1 test_rubyoptions.rb: fix test failure on Windows
* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_encoding):
  Fix test_encoding failure on Windows.
  With chcp 65001, 1252 and 437, test_encoding failed. Test result
  depends on locale because LANG environment variable doesn't affect
  locale on Windows.
  [ruby-core:46872] [Bug #6813]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-31 20:58:08 +00:00
svn 59c139306d * 2012-08-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-31 15:33:30 +00:00
nobu b283d01987 class.c: fix duplication of prepended module
* class.c (include_class_new): fix duplication of prepended module.
  since m_tbl of prepended module is always zero, copy from its
  copy iclass of original.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-31 15:33:23 +00:00
nobu bc08bdc013 variable.c: fix r36574
* variable.c (classname): tell if found name is permanent.  search
  tmp_classpath only if class id is set.  [ruby-core:42865][Bug #6078]
* variable.c (rb_class_path): duplicate found temporary path.
* variable.c (rb_set_class_path_string, rb_set_class_path): set class
  id to find classpath.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-31 09:22:36 +00:00
tenderlove 30d957fc61 * ext/psych/lib/psych.rb: updated to released version.
* ext/psych/psych.gemspec: ditto

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-31 01:37:06 +00:00
nobu c7c4e87a40 * test/ruby/test_module.rb (TestModule#test_classpath): fix
typos.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-31 00:45:57 +00:00
svn d604ac3f1d * 2012-07-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-30 21:18:53 +00:00
drbrain b773a4f803 * time.c (time_sec): Remove extra wording about leap seconds and refer
directly to Wikipedia's leap second page for further information.
  [Bug #6749]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-30 21:18:29 +00:00
naruse 0357ac8a38 * lib/rubygems/platform.rb (Gem::Platform#initialize): Support pattern
like x86_64-netbsd6.99.7.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-30 14:04:48 +00:00
naruse e62ee61262 On amd64, RUBY_PLATFORM is x86_64-netbsd6.99.7.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-30 14:04:44 +00:00
nobu 0e15934d7f variable.c: fix r36574
* variable.c (find_class_path): no retry when preferred is given.
* variable.c (classname): if classid is set try it to find full
  qualified class path, and then try arbitrary class path.  try
  tmp_classpath at last even if enclosing namespace is anonymous.
  fix r36574.  [ruby-core:42865][Bug #6078]
* variable.c (rb_set_class_path_string, rb_set_class_path): set
  tmp_classpath instead of classpath if the name is not permanent.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-30 12:00:56 +00:00
naruse e652ecfac7 Suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-30 06:03:15 +00:00
naruse 787e40097b NetBSD's /proc/<pid>/task is broken.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-30 05:56:51 +00:00
nobu 83940fc310 variable.c: tmp_classpath
* variable.c: store anonymous class path in tmp_classpath but not in
  classpath.  [ruby-core:42865][Bug #6078]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-30 05:24:24 +00:00
nobu 48d7aa4ae9 configure.in: deprecate -flat_namespace
* configure.in (DLDFLAGS): on Darwin, deprecate -flat_namespace to get
  rid of huge imported symbols table.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-30 04:11:56 +00:00
nobu a18558140a configure.in: runnable if disable-shared
* configure.in (LIBRUBY_RELATIVE): libruby_so is not made when
  disable-shared, so no absolute path is used for it and executable
  file is runnable anywhere.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-30 04:11:21 +00:00
nagachika 8800a83f85 * common.mk: add a dependency. [ruby-core:46741] [Bug #6789]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-29 16:31:15 +00:00
nagachika 9cdf55485a * thread.c (thread_create_core): hide th->async_errinfo_mask_stack from
ObjectSpace.each_object. refix of r36539.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-29 16:00:36 +00:00
svn b521dcb92d * 2012-07-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-29 15:25:34 +00:00
nobu 240dd36ffb option.c: mingw64 only
* ext/socket/option.c (inet_ntop): something weird only on mingw64.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-29 15:25:29 +00:00
nobu dc40114781 option.c: use rb_w32_inet_ntop
* ext/socket/option.c (inet_ntop): use rb_w32_inet_ntop, instead of
  inet_ntop directly, which is unavailable on older version Windows.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-29 14:57:30 +00:00
nobu f9368f65b1 win32.c: rb_w32_inet_ntop should be const
* win32/win32.c (rb_w32_inet_ntop): type should be const.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-29 14:56:52 +00:00
ktsj afde2e8d05 * thread.c (Init_Thread): does not need to set klass
explicitly.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-29 05:28:04 +00:00
shirosaki 21aad667a5 win32/win32.c: suppress warning redeclared
* win32/win32.c: suppress warning redeclared on mingw64.
  *_s functions are declared if MINGW_HAS_SECURE_API is defined.
  Follow up r36556.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-28 21:41:37 +00:00
nobu 208e8db622 variable.c: RB_TYPE_P
* variable.c: use RB_TYPE_P() and BUILTIN_TYPE().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-28 17:04:58 +00:00
svn 06fa39143e * 2012-07-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-28 15:34:49 +00:00
nari 631b6d5aad * gc.c: remove unused initialization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-28 15:34:44 +00:00
shirosaki ce2a1e109c win32/win32.c: fix localtime_r() on x64-mingw
* win32/win32.c (gmtime_r): use _gmtime64_s() with x86_64-w64-mingw32.

* win32/win32.c (localtime_r): use _localtime64_s() with
  x86_64-w64-mingw32. Since FileTimeToSystemTime() seems not work with
  large value under x64. Mingw-w64 doesn't have these declaration.
  [ruby-core:46780] [Bug #6794]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-28 07:36:51 +00:00
nobu c1ef657b39 insns.def: RB_TYPE_P
* insns.def (checkincludearray, defineclass, opt_regexpmatch2): use RB_TYPE_P().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-28 02:15:48 +00:00
svn dc54eeccc8 * 2012-07-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-28 02:14:28 +00:00
nobu 485181e4f7 ext/socket: suppress warnings on mingw64
* ext/socket/ancdata.c (nogvl_sendmsg_func): explicitly cast via VALUE
  to suppress a warning on mingw64.
* ext/socket/option.c: declare inet_ntop() for mingw64 which has the
  function but lacks arpa/inet.h.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-28 02:14:23 +00:00
nobu c05e6a8cda process.c: try conversion at redirection
* io.c (rb_io_check_io): make public.
* process.c (check_exec_redirect): try conversion to IO on redirect
  parameters.  [ruby-core:44181] [Bug #6269]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-27 09:25:54 +00:00
nobu a8aa1e2127 configure.in: get rid of duplication in CPPFLAGS
* configure.in (RUBY_CPPOUTFILE): get rid of variable conflict so
  CPPFLAGS is not duplicated.  [ruby-core:43097] [Bug #6119]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-27 08:58:15 +00:00
nobu 044aa29b7d test_lazy_enumerator.rb: test for cycle chain
* test/ruby/test_lazy_enumerator.rb (test_cycle_chain): more test for
  infinite sequence.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-27 08:09:03 +00:00
nobu 76ff1d90c8 test_lazy_enumerator.rb: test for cycle chain
* test/ruby/test_lazy_enumerator.rb (test_cycle_chain): more test for
  infinite sequence.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-27 08:07:21 +00:00
svn 1d7ebc5c5e * 2012-07-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-27 03:15:08 +00:00
usa 3f539a5b59 * win32/mkexports.rb: should not export DllMain().
reported by luis at [ruby-core:46743] [Bug #6790], solved by
  Heesob Park, and confirmed by nobu.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-27 03:14:49 +00:00
shyouhei 9b16b7478a * test/net/http/test_https.rb (TestNetHTTPS#test_session_reuse): localhost is not (always) 127.0.0.1. Don't expect that.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-26 05:54:29 +00:00
nobu 22783fdbc5 test_complex.rb, test_rational.rb: revert some assertions
* test_complex.rb, test_rational.rb: revert some assertions, but just
  assert that a frozen object cannot be modified with marshal_load.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-26 03:08:41 +00:00
kanemoto 48cb947793 avoid compilation error on AIX by -ansi -std=iso9899:199409 (r36038). [ruby-core:46744] [Bug #6791].
This issue is fixed in upper stream as issue #142. (https://github.com/flori/json/issues/142)



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-25 22:26:41 +00:00
svn c08a213b9a * 2012-07-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-25 16:40:09 +00:00
nagachika ea637ebaa4 * thread.c (thread_create_core, Init_Thread): hide
th->async_errinfo_queue and th->async_errinfo_mask_stack from
  ObjectSpace.each_object.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-25 16:40:04 +00:00
nobu 003c45f9cd complex.c, rational.c: compatible marshal loader
* complex.c, rational.c: compatible marshal loader for compatibilities
  with 1.8.  [ruby-core:45775] [Bug #6625]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-25 08:41:07 +00:00
nobu 681c1b9f1b mkrunnable.rb: mswin
* tool/mkrunnable.rb (ln_safe, ln_dir_safe): separate for mklink
  command on Windows.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-25 08:17:46 +00:00
nobu ac64f196f8 atomic.h: prefer GCC atomic builtins
* atomic.h: prefer GCC atomic builtins than Windows APIs, if possible,
  since they are generic.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-25 08:17:08 +00:00
naruse 61a67bc720 Add test to clarify r36421. [Bug #5915]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-25 07:13:24 +00:00
naruse 131f694330 Suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-25 06:49:35 +00:00
nobu c558195999 * tool/ytab.sed: fix for Bison 2.6.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-25 04:12:44 +00:00