Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
13361 lines (8169 sloc) 442 KB
Sat Aug 27 08:44:58 2011 Eric Hodel <drbrain@segment7.net>
* backport r33087 from trunk
* lib/rdoc: Import RDoc 3.9.4. Typo and grammar fixes by Luke Gruber.
[Ruby 1.9 - Bug #5203]
Sat Aug 27 07:53:34 2011 Eric Hodel <drbrain@segment7.net>
* backport r33087 from trunk.
* lib/open-uri.rb: Fix indentation of OpenURI::OpenRead#open. Use ++
instead of `' for method arguments in open-uri.rb
Sat Aug 27 07:22:07 2011 Eric Hodel <drbrain@segment7.net>
* backport r33086 from trunk.
* ext/pathname/lib/pathname.rb: Fix typos and grammar mistakes. Patch
by Luke Gruber. [#5203]
* ext/pty/lib/expect.rb: ditto
* lib/mathn.rb: ditto
* lib/net/http.rb: ditto
* lib/open-uri.rb: ditto
* lib/ostruct.rb: ditto
* lib/tempfile.rb: ditto
* lib/thread.rb: ditto
* lib/weakref.rb: ditto
* sample/webrick/httpproxy.rb: ditto
Fri Aug 26 10:10:37 2011 Eric Hodel <drbrain@segment7.net>
* backport r33074 from trunk.
* lib/rubygems: Update to RubyGems 1.8.10. Fixes security issue in
creating ruby-format gemspecs. Fixes Gem.dir not being at the front
of Gem.path to fix uninstall and cleanup commands. Fixes gem
uninstall stopping on the first missing gem.
Wed Aug 24 09:49:10 2011 Koichi Sasada <ko1@atdot.net>
* backport r33045 from trunk.
* insns.def (defined): fix to checking class variable.
A patch by Magnus Holm <judofyr@gmail.com>. Thanks!
Fri Aug 26 08:21:10 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* test/ruby/test_variable.rb: add a test for above.
Thu Aug 25 09:43:16 2011 Eric Hodel <drbrain@segment7.net>
* backport r33066 from trunk.
* ext/openssl/lib/openssl/bn.rb: Hide copyright info from RDoc.
* ext/openssl/lib/openssl/digest.rb: ditto
* ext/openssl/lib/openssl/cipher.rb: ditto
Thu Aug 25 09:25:48 2011 Eric Hodel <drbrain@segment7.net>
* backport r33065 from trunk.
* ext/openssl/ossl_digest.c: Document OpenSSL::Digest::digest and add
an example to OpenSSL::Digest. Patch by Sylvain Daubert.
[Ruby 1.9 - Bug #5166]
* ext/openssl/lib/openssl/digest.rb (module OpenSSL): ditto
Thu Aug 25 08:19:43 2011 Koichi Sasada <ko1@atdot.net>
* vm.c (vm_make_env_each): work around to solve Bug #2729.
fixes: Bug #2729
a patch from Kazuki Tsujimoto <kazuki@callcc.net>
This problem is caused by changing dfp (dynamic env pointer)
from saved dfp. Saved dfp is pointed env in VM stack. However,
the dfp can be moved because VM copies env from VM stack to
the heap. At this copying, dfp was also changed. To solve this
problem, I'll try to change throw mechanism (not save target dfp,
but save target cfp).
* bootstraptest/test_flow.rb: add a test for above.
Thu Aug 25 08:04:08 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* numeric.c (int_round): Fix Integer#round [ruby-core:39096]
Thu Aug 25 06:51:08 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych.rb: Fixing psych version number.
Thu Aug 25 06:11:35 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/nodes/node.rb: default `to_yaml` encoding to be
UTF-8.
* test/psych/test_encoding.rb: test yaml dump encoding.
Wed Aug 24 08:53:06 2011 Eric Hodel <drbrain@segment7.net>
* backport r33043 from trunk.
* lib/rdoc: Update to RDoc 3.9.3. Fixes RDoc with `ruby -Ku`. Allows
HTTPS image paths to be turned into <img> tags. Prevents special
markup inside <tt> from being processed.
Wed Aug 24 07:57:43 2011 Eric Hodel <drbrain@segment7.net>
* backport r33040 from trunk.
* lib/rubygems: Update to RubyGems 1.8.9. Fixes uninstalling multiple
gems and gem cleanup.
Wed Aug 24 06:45:20 2011 Ryan Davis <ryand-ruby@zenspider.com>
* backport r33036 from trunk.
* lib/minitest/*: Imported minitest 2.5.0 (r6557)
* test/minitest/*: ditto
Tue Aug 23 15:23:56 2011 Eric Hodel <drbrain@segment7.net>
* backport r33027 from trunk.
* load.c (rb_f_require): Improve documentation of Kernel#require.
[Ruby 1.9 - Bug #5210]
Tue Aug 23 15:11:48 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* backport r33023 from trunk.
* ext/zlib/zlib.c (gzfile_read_header): Ensure that each section of
gzip header is readable to avoid SEGV.
* test/zlib/test_zlib.rb (test_corrupted_header): Test it.
Mon Aug 22 23:43:33 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* backport r33021 from trunk.
* sprintf.c (rb_str_format): add RB_GC_GUARD to prevent temporary
strings from GC.
Sun Aug 21 17:58:38 2011 Kazuki Tsujimoto <kazuki@callcc.net>
* backport r33019 from trunk.
* iseq.c (iseq_s_disasm): remove variable which is no longer used
since r33013.
Sun Aug 21 14:20:58 2011 Naohisa Goto <ngotogenome@gmail.com>
* configure.in: use LD_LIBRARY_PATH_64 on 64-bit Solaris.
Sun Aug 21 11:13:54 2011 Naohisa Goto <ngotogenome@gmail.com>
* backport r32895 from trunk.
* ext/fiddle/conversions.c (generic_to_value): ffi_arg and ffi_sarg
should be used to handle shorter return value. fix [Bug #3861]
[ruby-core:32504]
* ext/fiddle/closure.c (callback): ditto
* ext/fiddle/conversions.h (fiddle_generic): ditto
* ext/fiddle/conversions.c (value_to_generic): char, short and int
are strictly distinguished on big-endian CPU, e.g. sparc64.
Sat Aug 20 13:28:32 2011 Kazuki Tsujimoto <kazuki@callcc.net>
* backport r33013 from trunk.
* iseq.c (iseq_s_disasm): fix a bug that may cause SEGV.
* test/ruby/test_method.rb (test_body): add a test for the above change.
Sat Aug 20 10:43:24 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/stringio/stringio.c (strio_read): return new string if nil
is explicitly given as a buffer ([Bug #5207]), otherwise set the
encoding. also removed dead code.
Fri Aug 19 14:25:51 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* process.c (proc_spawn_v, proc_spawn): should not wait the
spawned process.
* process.c (proc_spawn_v): fix missing argument, and try with
/bin/sh only if failed with ENOEXEC.
Fri Aug 19 14:12:57 2011 Shugo Maeda <shugo@ruby-lang.org>
* backport r33007 from trunk.
* lib/net/imap.rb (idle): raises a Net::IMAP::Error when the
connection is closed. based on the patch by Hugo Barauna.
[Bug #5190] [ruby-core:38930]
Fri Aug 19 11:28:58 2011 Shugo Maeda <shugo@ruby-lang.org>
* backport r33001 from trunk.
* lib/net/imap.rb (msg_att): accepts extra space before ')'.
based on the patch by art lussos. [Bug #5163] [ruby-core:38820]
Wed Aug 17 15:27:00 2011 Kenta Murata <mrkn@mrkn.jp>
* backport r32996 from trunk.
* ext/bigdecimal/bigdecimal.c (cannot_be_coerced_into_BigDecimal):
add a new function for raising error when an object cannot coerce
into BigDecimal. [Bug #5172]
* ext/bigdecimal/bigdecimal.c (BigDecimalValueWithPrec): use
cannot_be_coerced_into_BigDecimal function.
* ext/bigdecimal/bigdecimal.c (BigMath_s_exp): ditto.
* ext/bigdecimal/bigdecimal.c (BigMath_s_log): ditto.
* test/bigdecimal/test_bigdecimal.rb: test for the avobe changes.
* test/bigdecimal/testbase.rb (under_gc_stress): add a new utility
method to run tests under the condition of GC.stress = true.
Wed Aug 17 10:16:00 2011 Kenta Murata <mrkn@mrkn.jp>
* backport r32994 from trunk.
* rational.c (nurat_coerce): Rational#coerce should converts itself
into Complex if the argument is a Complex with non-zero imaginary
part. [Bug #5020] [ruby-dev:44088]
* test/ruby/test_rational.rb (test_coerce): test for the above change.
Wed Aug 17 06:33:19 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* backport r32992 from trunk.
* ext/openssl/ossl_x509cert.c: Add class documentation for
OpenSSL::X509::Certificate.
Wed Aug 17 05:02:25 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* backport r32987 from trunk.
* ext/openssl/ossl_pkey.c: corrected docs, OpenSSL::PKey::DH does
*not* support #sign/verify.
Tue Aug 16 18:56:54 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm.c (ruby_threadptr_data_type): rename to hide.
[ruby-core:38972]
Tue Aug 16 18:52:08 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* win32/mkexports.rb (Exports::Mswin#each_export): exclude Init_
and _threadptr_ functions, as well as mingw.
Tue Aug 16 09:38:37 2011 Eric Hodel <drbrain@segment7.net>
* backport r32981 and r32982 from trunk.
* ext/dl: Add documentation. Patch by Vincent Batts.
[Ruby 1.9 - Bug #5192]
* ext/.document (fiddle): Remove duplicate entry
* ext/fiddle: Complete documentation of Fiddle. Patch by Vincent
Batts. [#5192]
Tue Aug 16 08:00:15 2011 Eric Hodel <drbrain@segment7.net>
* backport r32977 from trunk
* ext/socket: Make Socket documentation appear. Add documentation for
Socket, TCPServer, SOCKSSocket. Patch by Sylvain Daubert.
[Ruby 1.9 - Feature #5182]
Mon Aug 15 10:16:55 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* backport r32973 from trunk.
* ext/openssl/ossl_ssl.c: Support disabling OpenSSL compression.
* test/openssl/test_ssl.rb: Add a test for it.
Thanks to Eric Wong for the patch.
[Ruby 1.9 - Feature #5183] [ruby-core:38911]
Sat Aug 13 22:17:27 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* tool/mkconfig.rb: do not make the entries related to sitedir and
verdordir if disabled by --without options. [ruby-core:38922]
[Bug #5187]
Sat Aug 13 17:06:57 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: [ruby-core:38861]
Sat Aug 13 16:59:51 2011 Tadayoshi Funaba <tadf@dotrb.org>
* test/date/test_*.rb: added tests.
Sat Aug 13 09:36:19 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* ext/date/date_parse.c (parse_ddd_cb): fix r32896. RB_GC_GUARD
insertion position was mistaken. [ruby-dev:44337] [Bug #5152]
Sat Aug 13 09:26:24 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/core_ext.rb: Make Kernel#y private.
[ruby-core:38913]
* test/psych/test_yaml.rb: corresponding test.
Sat Aug 13 09:15:16 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c (date_strftime_alloc): followed the change
of r32885.
* NEWS: followed the above change.
Sat Aug 13 08:49:05 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: [ruby-core:38855].
Sat Aug 13 03:41:37 2011 Eric Hodel <drbrain@segment7.net>
* backport r32953 from trunk.
* lib/uri/common.rb: Fix documentation of URI::Parser.new. Patch by
Steve Klabnik. [Ruby 1.9 - Bug #5177]
Sat Aug 13 02:19:57 2011 Eric Hodel <drbrain@segment7.net>
* backport r32950 from trunk.
* ext/digest/digest.c: Add documentation for the Digest module. Patch
by Sylvain Daubert. [Ruby 1.9 - Bug #5167]
Fri Aug 5 13:32:43 2011 Shugo Maeda <shugo@ruby-lang.org>
* backport r32856 from trunk.
* lib/xmlrpc/client.rb, lib/xmlrpc/server.rb: should use
String#bytesize instead of String#size.
Fri Aug 12 13:53:03 2011 Narihiro Nakamura <narihiro@netlab.jp>
* backport r32894 from trunk.
* gc.c (gc_lazy_sweep): if sweep target slots are not found, we
try heap_increment() because it might be able to expand the
heap. [Bug #5127] [ruby-dev:44285]
* gc.c (gc_clear_mark_on_sweep_slots): if a sweeping was
interrupted, we expand the heap if at all possible.
Fri Aug 12 12:28:17 2011 Eric Hodel <drbrain@segment7.net>
* lib/rake: Update to Rake 0.9.2.2. Prevent pollution of toplevel
namespace by Commands. Remove unused variable and debugging
statement in tests.
Fri Aug 12 09:00:24 2011 Eric Hodel <drbrain@segment7.net>
* backport r32941 from trunk
* lib/rubygems: Import RubyGems 1.8.8. Fixes encoding of YAML gemspec
from gems. Github Issue #149
Fri Aug 12 03:24:35 2011 Eric Hodel <drbrain@segment7.net>
* backport r32935 from trunk
* lib/rdoc: Import RDoc 3.9.2. Fixes TIDYLINK for HTML output.
Tue Aug 2 22:04:46 2011 NARUSE, Yui <naruse@ruby-lang.org>
* backport r32815 from trunk.
* gc.c (init_heap): allocate sigaltstack after heaps are allocated.
[ruby-dev:44315] [Bug #5139]
* vm.c (thread_free): use free because objspace is not ready.
* vm.c (th_init): use malloc because objspace is not ready.
Thu Aug 11 19:04:38 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* backport r32931 from trunk.
* variable.c (autoload_delete): An autoload entry is still in a
RCLASS_IV_TBL, not in a RCLASS_CONST_TBL, so take back the table
changed in r29600. And an autoload entry keeps not a
rb_const_entry_t but a NODE so remove rb_const_entry_t thing added
in r29602.
Thu Aug 11 15:07:36 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (link_command): use LIBRUBYARG in rbconfig for
unbundled extensions. [ruby-core:38802] [Bug #5147]
* lib/mkmf.rb (init_mkmf): revert r32902. [ruby-core:38903]
Wed Aug 10 19:30:00 2011 Kenta Murata <mrkn@mrkn.jp>
* backport r32903 from trunk.
* complex.c (nucomp_rationalize): calls rationalize of real part if
imaginary part is exactly zero. The patch is made by Marc-Andre
Lafortune. fixes [Bug #5178] [ruby-core:38885]
* test/ruby/test_complex.rb (test_rationalize): add a test for the
above change.
* complex.c (nucomp_to_r): fix RDoc comment. The patch is made by
Marc-Andre Lafortune.
Wed Aug 10 14:11:07 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (init_mkmf): set $LIBRUBYARG regardless of shared
option. [ruby-core:38802] [Bug #5147]
Wed Aug 10 02:57:01 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/net/http.rb: come back autoload. OpenSSL constant is used
some places, so it leads mistakes like HTTP.start.
Tue Aug 9 22:57:45 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* ext/date/date_parse.c (date_zone_to_diff): add RB_GC_GUARD.
[ruby-dev:44337] [Bug #5152]
* ext/date/data_parse.c (parse_ddd_cb): ditto.
Tue Aug 9 12:20:33 2011 Naohisa Goto <ngotogenome@gmail.com>
* test/fiddle/helper.rb (libc_so, libm_so): Solaris support added.
[ruby-core:38853] [Bug #5168]
* test/dl/test_base.rb (libc_so, libm_so): on Solaris, remove libc
and libm version numbers for detecting default libc and libm.
Tue Aug 9 10:49:52 2011 Igor Zubkov <igor.zubkov@gmail.com>
* array.c: Fix typo. https://github.com/ruby/ruby/pull/36
Mon Aug 8 00:10:45 2011 Akinori MUSHA <knu@iDaemons.org>
* test/test_syslog.rb (TestSyslog#test_log): Do not be too
specific about the log line format. Fixes #5081.
Sun Aug 7 23:39:44 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* time.c (rb_strftime_alloc): raise ERANGE if width is too large.
Patch by Nobuyoshi Nakada. [Bug #4457] [ruby-dev:43285]
* test/ruby/test_time.rb (class TestTime): add a test for the
above change.
Sun Aug 7 14:15:10 2011 Kazuki Tsujimoto <kazuki@callcc.net>
* backport r32876 from trunk.
* ext/objspace/objspace.c: fix typos in a document.
Sun Aug 7 04:42:36 2011 Eric Hodel <drbrain@segment7.net>
* marshal.c (w_object): Fix exception message when _dump_data
is not defined on a T_DATA object.
Sat Aug 6 06:14:20 2011 Eric Hodel <drbrain@segment7.net>
* lib/rdoc: Update to 3.9.1. Fixes === lines in verbatim sections.
Fixes :nodoc: on class aliases. Fixes :stopdoc: creating references
to Object. Fixes spacing when class comments are merged in ri.
Fixes `ri []` crash. Fixes bug report URL when rdoc crashes. Adds
:doc: and :nodoc: to allow hiding of implementation details in ruby.
Makes `rdoc` and `ri` gem-aware.
Sat Aug 6 03:19:45 2011 Eric Hodel <drbrain@segment7.net>
* lib/rubygems: Import RubyGems 1.8.7:
Added missing require for `gem uninstall --format-executable`.
The correct name of the executable being uninstalled is now displayed
with --format-executable.
Fixed `gem unpack uninstalled_gem` default version picker.
RubyGems no longer claims a nonexistent gem can be uninstalled.
`gem which` no longer claims directories are requirable files.
`gem cleanup` continues cleaning up gems if one can't be uninstalled
due to permissions. Issue #82.
Gem repository directories are no longer created world-writable.
Patch by Sakuro OZAWA. [Ruby 1.9 - Bug #4930]
Fri Aug 5 23:08:39 2011 Naohisa Goto <ngotogenome@gmail.com>
* backport r32845 from trunk.
* configure.in: when Solaris cc, use $(CC) to link shared libs.
Fri Aug 5 22:16:20 2011 Naohisa Goto <ngotogenome@gmail.com>
* numeric.c (rb_infinity, rb_nan): use WORDS_BIGENDIAN to get endian.
fix [Bug #5160] [ruby-dev:44356]
Fri Aug 5 15:57:10 2011 Naohisa Goto <ngotogenome@gmail.com>
* complex.c (f_signbit): fix compile error in gcc4 on Solaris with
CFLAGS="-std=gnu99". [ruby-dev:44355] fix [Bug #5159]
* math.c: ditto.
Thu Aug 5 10:09:00 2011 Kenta Murata <mrkn@mrkn.jp>
* backport r32846 from trunk.
* thread_pthread.c (native_cond_signal): retry to call pthread_cond_signal
and pthread_cond_broadcast if they return EAGAIN in
native_cond_signal and native_cond_broadcast, respectively.
It is for the pthread implementation of Mac OS X 10.7 (Lion).
fixes #5155. [ruby-dev:44342].
* thread_pthread.c (native_cond_broadcast): ditto.
* thread_pthread.c (struct cached_thread_entry): stop using
pthread_cond_t and its functions directly.
* thread_pthread.c (register_cached_thread_and_wait): ditto.
* thread_pthread.c (use_cached_thread): ditto.
Fri Aug 5 07:35:00 2011 Luis Lavena <luislavena@gmail.com>
* lib/rubygems/installer.rb (class Gem): Correct path check on Windows
Possible fix for [Ruby 1.9 - Bug #5111]
* test/rubygems/test_gem_installer.rb (load Gem): ditto
Backported from trunk r32804
Fri Aug 5 07:00:31 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/io/console/test_io_console.rb (test_noctty): daemon() on
Fedora Rawhide seems not to detach the controlling terminal,
when the argument noclose is non-zero. ref: [Bug #5135]
Wed Aug 4 02:35:00 2011 Kenta Murata <mrkn@mrkn.jp>
* configure.in: use build_os variable for checking C and C++ compilers
matching.
* configure.in: use clang++ if clang is used.
Thu Aug 4 02:21:10 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (link_command): use static library only for bundled
extensions. [Bug #5147]
Wed Aug 3 00:11:08 2011 Tanaka Akira <akr@fsij.org>
* lib/prettyprint.rb: update document. [ruby-core:36776]
Tue Aug 2 20:10:16 2011 Shota Fukumori <sorah@tubusu.net>
* test/testunit/test_parallel.rb: pass "--ruby" option to
test/testunit/tests_for_parallel/runner.rb. [Bug #5132] [ruby-dev:44303]
Backported from trunk r32812.
Tue Aug 2 12:03:16 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* hash.c (recursive_hash): hash value of emptied hash should be
equal to an empty hash. [ruby-core:38650]
Tue Aug 2 11:42:15 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (rb_enc_symname2_p): :! is valid symbol. [Bug #5136]
Tue Aug 2 03:26:02 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/rake/test_rake_directory_task.rb (TestRakeDirectoryTask#
test_directory_win32): fixed wrong test.
backported r32670 from trunk.
Mon Aug 1 15:45:23 2011 Eric Hodel <drbrain@segment7.net>
* test/rake/test_rake_functional.rb: Don't assume the binary name of
ruby is "ruby". [Ruby 1.9 - Bug #5114]
* test/rake/helper.rb: ditto
Mon Aug 1 05:21:42 2011 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
* cont.c (cont_save_thread): fix missing semicolon.
Sun Jul 31 22:57:16 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* enc/Makefile.in (ECHO1): Same as the recent fix in common.mk.
":" in a make variable replacement cause a syntax error with
/usr/ccs/bin/make on Solaris. Uses $(NULLCMD) instead.
Sun Jul 31 22:44:08 2011 Kazuki Tsujimoto <kazuki@callcc.net>
* configure.in: fix typos.
Sun Jul 31 21:19:51 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* lib/mkmf.rb (configuration:ECHO1): Same as the recent fix in
common.mk.
":" in a make variable replacement cause a syntax error with
/usr/ccs/bin/make on Solaris. Uses $(NULLCMD) instead.
Sun Jul 31 21:16:02 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* complex.c (f_signbit): gcc4 on Solaris DOES have signbit but does
not have it on header.
* math.c: ditto.
Sun Jul 31 21:09:04 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* common.mk (node_name.inc): Use $(Q) for consistency.
* Makefile.in (INSNS): ditto.
Sun Jul 31 20:39:12 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* common.mk (ECHO1): nmake does not allow parenthesis in make variable
replacement.
Sun Jul 31 20:21:36 2011 "Yuki Sonoda (Yugui)" <yugui@yugui.jp>
* common.mk (ECHO1): ":" in a make variable replacement cause a syntax
error with /usr/ccs/bin/make on Solaris. Uses $(NULLCMD) instead.
* configure.in (NULLCMD): new check.
* Makefile.in (NULLCMD): Reflects checking in configure.
* win32/Makefile.sub (NULLCMD): new assignment.
Sun Jul 31 11:31:07 2011 Kazuki Tsujimoto <kazuki@callcc.net>
* backport r32768 from trunk.
* vm.c: check if cfp is valid. [Bug #5083] [ruby-dev:44208]
Sat Jul 31 01:23:45 2011 Kenta Murata <mrkn@mrkn.jp>
* backport r32762 from trunk.
* test/bigdecimal/test_bigdecimal.rb (test_version): removed.
Sat Jul 30 23:51:44 2011 Tadayoshi Funaba <tadf@dotrb.org>
* lib/cmath.rb (cbrt): should return a real number if possible.
Sat Jul 30 23:48:04 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: an issue that is same as [ruby-dev:44071].
* ext/date/date_strftime.c: identical to [ruby-dev:44112].
Sat Jul 30 23:19:09 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* defs/default_gems: separate from tool/rbinstall.rb.
Sat Jul 30 23:14:44 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (rb_io_each_byte): rbuf can be refreshed during yield.
[Bug #5119]
Sat Jul 30 22:35:50 2011 Naohisa Goto <ngotogenome@gmail.com>
* strftime.c (NEEDS): avoid SEGV due to integer overflow in
sparc-solaris2.10 and i686-linux. fix [Bug #4456] [ruby-dev:43284]
Sat Jul 30 14:27:00 2011 Kenta Murata <mrkn@mrkn.jp>
* backport r32754 from trunk.
* ext/bigdecimal/bigdecimal.c (BigDecimal_version): version 1.1.0.
* ext/bigdecimal/bigdecimal.gemspec: turn into a default gem.
* tool/rbinstall.rb: ditto.
Sat Jul 30 13:52:00 2011 Kenta Murata <mrkn@mrkn.jp>
* ext/bigdecimal/lib/bigdecimal/util.rb (Rational#to_d):
revive zero and implicit precision support as a deprecated feature.
* test/bigdecimal/test_bigdecimal_util.rb: modify a test for the above
change.
* NEWS: describes the above change.
Sat Jul 30 10:58:10 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* vm.c (th_init): preallocate alternative stack.
NoMemoryError is better than rb_bug, of course.
Patch by Eric Wong. [ruby-core:38572][ruby-core:38594].
* signal.c (rb_register_sigaltstack): ditto.
* vm_core.h: moved ALT_STACK_SIZE definition from signal.c.
* vm.c (thread_free): use xfree() instead of free().
Sat Jul 30 07:20:49 2011 Tanaka Akira <akr@fsij.org>
* ext/socket/lib/socket.rb (udp_server_sockets): unused variable
removed.
patch by Jeremy Evans. [ruby-core:38600]
Fri Jul 29 23:56:32 2011 Tanaka Akira <akr@fsij.org>
* lib/securerandom.rb: call OpenSSL::Random.seed at the
SecureRandom.random_bytes call.
based on the patch by Masahiro Tomita. [ruby-dev:44270]
Fri Jul 29 20:48:39 2011 Tanaka Akira <akr@fsij.org>
* ext/socket/mkconstants.rb: fix typos.
Fri Jul 29 20:28:56 2011 Tanaka Akira <akr@fsij.org>
* ext/socket/mkconstants.rb: use whitespaces as a separator.
Fri Jul 29 18:59:07 2011 Tanaka Akira <akr@fsij.org>
* ext/socket/mkconstants.rb: add documents for constants.
patch by Eric Hodel. [ruby-core:37853] [Bug #4989]
Mon Jul 25 23:51:01 2011 Yusuke Endoh <mame@tsg.ne.jp>
* backport r32671 from trunk.
* proc.c: pre-allocate the unlinked_method_entry_list_entry struct to
avoid memory allocation during GC. based on a patch from Eric Wong.
[ruby-core:38498]
Mon Jul 25 22:36:11 2011 Yusuke Endoh <mame@tsg.ne.jp>
* backport r32669 from trunk.
* proc.c (struct METHOD), gc.c (gc_marks), vm_method.c
(rb_gc_mark_unlinked_live_method_entries): fix SEGV bug.
rb_method_entry_t was free'd even when the method is still on the
stack if it is BMETHOD (i.e., Method#call). This is because
rb_method_entry_t is embedded in struct METHOD. This commit
separates them and marks the live method entries.
See [ruby-core:38449] in detail. fix [Bug #5047] [ruby-core:38171]
Thu Jul 28 23:36:28 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* ext/fiddle/closure.c (callback): use rb_ary_tmp_new() instead of
xmalloc() to allocate an array for arguments of callback procedure,
to prevent arguments from being swept by GC. [ruby-core:38546]
[Bug #4929]
Thu Jul 28 22:51:27 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* backport r32723 from trunk.
* ext/openssl/ossl_cipher.c (ossl_cipher_initialize): Avoid possible
SEGV from AES encryption/decryption. Processing data by
Cipher#update without initializing key (meaningless usage of Cipher
object since we don't offer a way to export a key) could cause SEGV.
In OpenSSL, the EVP which has EVP_CIPH_RAND_KEY flag (such as DES3)
allows uninitialized key, but other EVPs (such as AES) does not
allow it. Calling EVP_CipherUpdate() without initializing key causes
SEGV so we set the data filled with "\0" as the key by default. See
#2768.
* test/openssl/test_cipher.rb: test it.
Thu Jul 28 04:53:31 2011 Eric Hodel <drbrain@segment7.net>
* lib/delegate.rb: Move file-level documentation to the appropriate
classes.
Thu Jul 28 00:33:47 2011 NARUSE, Yui <naruse@ruby-lang.org>
* test/fileutils/test_fileutils.rb: add OpenBSD case.
patched by Jeremy Evans [ruby-core:38530] see #5097
* test/ruby/test_process.rb: ditto.
Wed Jul 27 17:59:46 2011 NARUSE, Yui <naruse@ruby-lang.org>
* include/ruby/missing.h: define __syscall if the platform has
__syscall in the library but doesn't define it in headers
for example Mac OS X.
Wed Jul 27 15:39:14 2011 Eric Hodel <drbrain@segment7.net>
* object.c: Add usage documentation for BasicObject. Based on patch
by Thomas Sawyer. [Ruby 1.9 - Bug #5067]
Wed Jul 27 12:24:17 2011 Eric Hodel <drbrain@segment7.net>
* lib/rubygems/uninstaller.rb: Add missing require and update
messaging to avoid confusion with uninstall --format-executable.
[Ruby 1.9 - Bug #4062]
Wed Jul 27 10:47:57 2011 Eric Hodel <drbrain@segment7.net>
* lib/rubygems: Update to RubyGems 1.8.6.1.
Wed Jul 27 10:04:06 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* backport r32690 from trunk.
* test/openssl/test_pkcs12.rb: Add test and intermediate certificates.
[ Ruby 1.9 - Feature #3793 ] [ruby-core:32088]
Sat Jul 27 01:26:00 2011 Kenta Murata <mrkn@mrkn.jp>
* NEWS: add changes of bigdecimal and bigdecimal/util.
Wed Jul 27 01:13:00 2011 Kenta Murata <mrkn@mrkn.jp>
* ext/bigdecimal/lib/bigdecimal/util.rb (Rational#to_d):
zero or negative precision is error. fixes #5098.
[ruby-dev:44210]
* ext/bigdecimal/lib/bigdecimal/util.rb (Float#to_d): modified for
specifying precision. fixes #5098. [ruby-dev:44210]
* ext/bigdecimal/lib/bigdecimal/util.rb (Integer#to_d): added
for symmetry to BigDecimal() function with an Integer.
fixes #5098. [ruby-dev:44210]
* ext/bigdecimal/lib/bigdecimal/util.rb (BigDecimal#to_d): added
for adapting other Numeric subclasses. [ruby-dev:44245]
* test/bigdecimal/test_bigdecimal_util.rb: add tests for the above
changes.
Wed Jul 27 00:54:38 2011 Kenta Murata <mrkn@mrkn.jp>
* bigdecimal/bigdecimal.c (VpDup) a new function for duplicating
a BigDecimal.
* bigdecimal/bigdecimal.c (BigDecimal_new): support generating a new
BigDecimal from another BigDecimal using BigDecimal global function
or constructor. [ruby-dev:44245]
Mon Jul 25 22:24:09 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* backport r32666 from trunk.
* lib/xmlrpc/client.rb: Fix possible HTTP header formatting failure by
'Basic' header. Long username caused the base64 String truncation in
HTTP header which is not allowed. See #5046.
* test/xmlrpc/test_webrick_server.rb: test it.
Mon Jul 25 15:36:07 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* ext/openssl/lib/openssl/{x509.rb,ssl.rb}: Add deprecation warning
for openssl/{x509,ssl} usage. Users should require "openssl" instead
of "openssl/ssl" and "openssl/x509". Start of transition period
introduced by [ruby-dev:38018].
Mon Jul 25 13:50:33 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* backport r32662 from trunk.
* ext/openssl/lib/openssl/x509.rb: Cosmetic change: move definition
introduced in r30152 to x509-internal.rb.
Mon Jul 25 13:35:20 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* backport r32658 from trunk.
* ext/openssl/ossl_ssl.c (ossl_ssl_shutdown): Avoid randomly generated
SSLError from SSLSocket just after invoking SSLSocket#close.
OpenSSL's SSL_shutdown could try to send alert packet and it might
set SSLerr(global error stack) as the result. It causes the next
SSL read/write operation to fail by unrelated reason.
By design, we're ignoring any error at SSL_shutdown() so we clear
global error stack after SSL_shutdown is called. See #5039.
Sun Jul 24 20:29:53 2011 Tanaka Akira <akr@fsij.org>
* ext/socket/extconf.rb: refine the recvmsg test.
Sun Jul 24 20:02:31 2011 Tanaka Akira <akr@fsij.org>
* ext/socket/extconf.rb: fix the recvmsg test.
Sun Jul 24 08:42:51 2011 Tanaka Akira <akr@fsij.org>
* ext/socket/extconf.rb: test recvmsg allocates file descriptors for
fd passing even with MSG_PEEK.
* ext/socket/ancdata.c: use the above test result.
Sun Jul 24 01:24:31 2011 Eric Hodel <drbrain@segment7.net>
* lib/rubygems/specification.rb: Restore behavior of
Gem::Specification#loaded. [Ruby 1.9 - Bug #5032]
Sun Jul 24 01:14:49 2011 NARUSE, Yui <naruse@ruby-lang.org>
* test/rake/test_rake_functional.rb (setup): Use __FILE__ for the base
directory. Current directory is not the top source directory when
the building process runs on other than there.
* test/rake/test_rake_rake_test_loader.rb: ditto.
* test/rake/test_rake_task_argument_parsing.rb
(test_terminal_width_using_hardcoded_80): hardcoded 80 is used
when app.unix? is false.
Sun Jul 24 00:42:00 2011 Kenta Murata <mrkn@mrkn.jp>
* configure.in: change the default compiler to gcc-4.2 if target os
is OS X 10.7 (Lion).
Sat Jul 23 17:06:25 2011 Tanaka Akira <akr@fsij.org>
* io.c (rb_update_max_fd): validate fd.
* ext/socket/rubysocket.h (rsock_discard_cmsg_resource): add
msg_peek_p argument for the declaration.
* ext/socket/ancdata.c (discard_cmsg): add msg_peek_p argument.
assume FreeBSD, NetBSD and MacOS X doesn't generate passed fd
when MSG_PEEK.
(rsock_discard_cmsg_resource): add msg_peek_p argument.
(bsock_recvmsg_internal): call rsock_discard_cmsg_resource with
msg_peek_p argument.
* ext/socket/unixsocket.c (unix_recv_io): call
rsock_discard_cmsg_resource with msg_peek_p argument.
Sat Jul 23 14:38:28 2011 Eric Hodel <drbrain@segment7.net>
* test/rake*: Remove dependencies on flexmock and session gems.
[Ruby 1.9 - Bug #4987]
Fri Jul 22 21:46:54 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* vm_insnhelper.c (vm_call_cfunc): added volatile for a workaround
of cfp consistency error problem on OS X 10.7 (Lion). It's
suspected llvm optimization bug.
[Bug #5076] [ruby-dev:44185]
Fri Jul 22 21:50:16 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/uri/generic.rb (WFKV_): unroll the loop of regexp.
* lib/uri/generic.rb (URI.decode_www_form_component): ditto.
Fri Jul 22 21:49:48 2011 NARUSE, Yui <naruse@ruby-lang.org>
* enum.c (enum_inject): remove empty line to notify rdoc
Enumerable#reduce is alias. patched by milki@github.
https://github.com/ruby/ruby/pull/26
Fri Jul 22 21:49:28 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/webrick/httprequest.rb (WEBrick::HTTPRequest#each):
Allow HTTP/0.9 request which doesn't has any header or body.
patched by Felix Jodoin. [ruby-core:38040] [Bug #5022]
Fri Jul 22 21:45:21 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/dl/handle.c (dlhandle_sym): clear previous error with dlerror()
before calling dlsym(). [ruby-dev:44091] [Bug #5021]
Fri Jul 22 19:05:47 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (rb_enc_symname2_p): get rid of potential out-of-bound
access.
Fri Jul 22 13:55:59 2011 Eric Hodel <drbrain@segment7.net>
* lib/net/http.rb: Net::HTTP#finish is used to manually close
connections. [Ruby 1.9 - Bug #5045]
Fri Jul 22 13:51:29 2011 Eric Hodel <drbrain@segment7.net>
* ext/readline/readline.c: Add examples for Readline.completion_proc=.
[Ruby 1.9 - Bug #5057]
Fri Jul 22 13:20:33 2011 Eric Hodel <drbrain@segment7.net>
* tool/rbinstall.rb (default gems): Install executables into the fake
gem dir for Gem.bin_path. [Ruby 1.9 - Bug #4485]
Fri Jul 22 13:03:12 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* backport r32609 from trunk.
* ext/openssl/ossl_hmac.c: Revert checking return type of
HMAC_Init_ex as it is not compatible with OpenSSL < 1.0.0.
Fri Jul 22 11:22:20 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* backport r32606 from trunk.
* ext/openssl/ossl_digest.c: Check return value of EVP_DigestInit_ex.
* ext/openssl/ossl_hmac.c: Check return value of HMAC_Init_ex.
Thanks, Jared Jennings, for the patch.
[ Ruby 1.9 - Bug #4944 ] [ruby-core:37670]
Fri Jul 22 09:17:43 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* backport r32604 from trunk.
* ext/openssl/ossl_engine.c: Avoid double free of ENGINE reference.
* test/openssl/test_engine.rb: Add a test for it.
Thanks to Ippei Obayashi for providing the patch.
[ Ruby 1.9 - Bug #5062 ] [ruby-dev:44173]
Fri Jul 22 06:39:34 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* lib/csv.rb: Do not modify CSV.generate's argument [ruby-core:38356]
Thu Jul 21 20:02:11 2011 Yusuke Endoh <mame@tsg.ne.jp>
* thread.c (set_trace_func, thread_set_trace_func_m): reset tracing
state when set_trace_func hook is removed. This is workaround patch
to force to reset tracing state that is broken by continuation call.
a patch from James M. Lawrence. [Feature #4347] [ruby-core:34998]
* test/ruby/test_continuation.rb (class TestContinuation): add a test
for above. a patch from James M. Lawrence.
Thu Jul 21 20:59:59 2011 Tanaka Akira <akr@fsij.org>
* ext/socket/ancdata.c (discard_cmsg): workaround for MacOS X Lion.
Thu Jul 21 07:07:57 2011 Tanaka Akira <akr@fsij.org>
* backport r32579, r32581, r32587 by akr and r32588 by kazu.
r32579:
* io.c (rb_update_max_fd): new function.
* internal.h (rb_update_max_fd): declare rb_update_max_fd.
* thread_pthread.c (rb_thread_create_timer_thread): update max fd when
timer thread pipe is created.
r32581:
* io.c (UPDATE_MAXFD): removed.
r32587:
* include/ruby/intern.h (rb_update_max_fd): declaration moved from
internal.h.
* file.c: ditto.
* io.c: call rb_update_max_fd for each new fds.
* process.c: ditto.
* random.c: ditto.
* ruby.c: ditto.
* ext/io/console/console.c: ditto.
* ext/openssl/ossl_bio.c: ditto.
* ext/pty/pty.c: ditto.
* ext/socket/init.c: ditto.
* ext/socket/socket.c: ditto.
* ext/socket/ancdata.c: ditto.
* ext/socket/unixsocket.c: ditto.
r32588:
* io.c (rb_update_max_fd): remove parentheses. they are not in
macro.
Sun Jul 17 08:07:31 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* backport r32563 from trunk
* test/openssl/test_ssl_session.rb: add PEM SSL session without TLS
extensions. Use this as the default for the tests to ensure
compatibility with OpenSSL 0.9.7.
[ Ruby 1.9 - Bug #4961 ] [ruby-core:37726]
Sat Jul 16 17:29:20 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (RUBY_UNIVERSAL_ARCH): restore arch flag.
Bug #4977
Sat Jul 16 11:18:26 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/setup.mak: support to build x64-mswin64 on Windows7 (and Vista,
perhaps).
backported r32521 from trunk
Sat Jul 16 06:31:23 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* lib/uri/common.rb (module): Remove optional parser argument to
Kernel#URI
[ruby-core:38061]
* lib/uri/generic.rb (module): ditto
Sat Jul 16 01:15:53 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* time.c (time_dup): used rb_obj_class() instead of CLASS_OF().
The patch is made by Kazuki Tsujimoto. [Bug #5012] [ruby-dev:44071]
* test/ruby/test_time.rb (TestTime#test_getlocal_dont_share_eigenclass):
added a new test for eigenclass of time object.
Fri Jul 15 19:11:00 2011 Kenta Murata <mrkn@mrkn.jp>
* bignum.c (bigsub_int): add RB_GC_GUARD. This patch is made by
Makoto Kishimoto. fixes #4223 [ruby-dev:42907]
* bignum.c (bigadd_int): ditto.
Fri Jul 15 09:59:12 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* backport r32546 from trunk.
* ext/digest/sha2/sha2.c (SHA256_Update, SHA512_Update): avoid Bus
Error caused by unalignment access on Sparc-Solaris (and possibly on
other similar environment.) This patch just do memcpy always instead
of checking architecture. I see no perf drop on my 64bit env. For
more details, see #4320.
* test/digest/test_digest.rb: add test for unalignment access.
Thu Jul 14 12:40:07 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* backport r32537 from trunk.
* ext/openssl/ossl.c (ossl_verify_cb): trap the exception from
verify callback of SSLContext and X509Store and make the
verification fail normally. Raising exception directly from callback
causes orphan resouces in OpenSSL stack. Patched by Ippei Obayashi.
See #4445.
* test/openssl/test_ssl.rb
(test_exception_in_verify_callback_is_ignored): test it.
Wed Jul 13 08:20:08 2011 Shota Fukumori <sorah@tubusu.net>
* lib/test/unit.rb(Test::Unit::Options#process_args): Fix bug.
Fix process_args didn't return `@option` after r30939. Backported
r32526 from trunk.
Mon Jul 11 23:50:39 2011 Yutaka Kanemoto <kanemoto@ruby-lang.org>
* time.c: can't compile time.c on AIX due to missing declaration for
ffs(). It is declared in strings.h on AIX. backported r32518 from
trunk.
Mon Jul 11 23:47:00 2011 Yutaka Kanemoto <kanemoto@ruby-lang.org>
* thread_pthread.c (get_stack): need to adjust stack addr for
[Bug #1813] on AIX. backported r32511 from trunk.
Mon Jul 11 15:17:03 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* numeric.c (rb_num2ull): use FIX2LONG instead of FIX2ULONG. see
rb_num2ulong(). fixed the problem of ObjectSpace._id2ref of IL32LLP64
platforms, introduced at r32433.
backported r32512 from trunk.
Sun Jul 10 23:58:55 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* version.h: 1.9.3 is no longer trunk.
Sun Jul 10 23:24:29 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* class.c (rb_mix_module): reverted r31873.
(check_mix_method_i, do_mix_method_i) reverted r31917.
* test/ruby/test_module.rb (TestModule#test_mix_const): reverted
r31918.
Sun Jul 10 22:50:00 2011 Kenta Murata <mrkn@mrkn.jp>
* ext/bigdecimal/bigdecimal.c (rmpd_power_by_big_decimal): fix
precision treatment errors.
* test/bigdecimal/test_bigdecimal.rb: add tests for the above change.
fix precision treatment errors.
* ext/bigdecimal/bigdecimal.c (BigDecimal_power): precision argument
should be optional for its compatibility.
Sun Jul 10 22:38:09 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (var_ref): distinguish vcall from local variable
references. based on a patch by Michael Edgar michael.j.edgar
AT dartmouth.edu. Bug #5002
Sun Jul 10 21:51:29 2011 Koichi Sasada <ko1@atdot.net>
* internal.h: add comments (cautions).
Sun Jul 10 20:59:38 2011 Shota Fukumori <sorah@tubusu.net>
* lib/test/unit.rb: Add new class variable `@@testfile_prefix`.
This is for changing test name prefix. (For testing)
* test/testunit/tests_for_parallel/ptest_first.rb: Renamed from
test_first.rb
* test/testunit/tests_for_parallel/ptest_second.rb: Renamed from
test_second.rb
* test/testunit/tests_for_parallel/ptest_third.rb: Renamed from
test_third.rb
* test/testunit/tests_for_parallel/ptest_forth.rb: Renamed from
test_forth.rb
* test/testunit/tests_for_parallel/runner.rb: Remove misc.rb
* test/testunit/tests_for_parallel/ptest_first.rb: ditto.
* test/testunit/tests_for_parallel/ptest_second.rb: ditto.
* test/testunit/tests_for_parallel/ptest_third.rb: ditto.
* test/testunit/tests_for_parallel/ptest_forth.rb: ditto.
* test/testunit/tests_for_parallel/misc.rb: Removed because no longer
needed.
* test/testunit/test_parallel.rb: Fix assertions for above.
Sun Jul 10 16:57:08 2011 Koichi Sasada <ko1@atdot.net>
* vm_insnhelper.c (vm_throw): check a class frame.
Fixes Bug #4648.
The patch is contributed by Kazuki Tsujimoto.
* bootstraptest/test_proc.rb: add tests for above.
Sun Jul 10 17:28:01 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c (mutex_debug): use exit(EXIT_FAILURE) instad of
exit(1).
* thread_pthread.c (add_signal_thread_list): ditto.
* thread.c (rb_thread_call_with_gvl): ditto.
* util.c (Bug): ditto.
Sun Jul 10 15:58:12 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/json: Merge json gem 1.5.4+ (f7f78896607b6f6226cd).
[Bug #4700]
Sun Jul 10 16:41:32 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* vm_core.h (typedef struct rb_vm_struct): create a new
'inhibit_thread_createion' field.
* thread.c (rb_thread_terminate_all): set inhibit_thread_creation.
* thread.c (thread_s_new): don't permit to create new thread
if the VM is under destruction. Otherwise evil finalizer code
can make SEGV. [Bug #4992][ruby-core:37858]
* bootstraptest/test_objectspace.rb: new test for this fix.
Sun Jul 10 16:06:16 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* signal.c (sigsegv): use abort() instead of exit() when nested
SEGV was happen. Because unnested SEGV use abort().
[Bug #5013][ruby-dev:44078]
Sun Jul 10 15:30:00 2011 Kenta Murata <mrkn@mrkn.jp>
* load.c (rb_f_autoload): prevent to autoload for singleton
classes. fixes [Bug #4886] [ruby-dev:43816]
* bootstraptest/test_autoload.rb: add tests for the above change.
Sun Jul 10 15:09:17 2011 Shota Fukumori <sorah@tubusu.net>
* lib/test/unit/assertions.rb: Import documentation patch by Justin
Collins. [ruby-core:37225] [Feature #4903]
Sun Jul 10 14:57:36 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: canonicalizes nth and sf.
Sun Jul 10 14:13:50 2011 Koichi Sasada <ko1@atdot.net>
* internal.h (rb_thread_call_with_gvl, rb_thread_call_without_gvl):
make them visible as experimental C APIs. fixes Feature #4328.
Sun Jul 10 12:18:00 2011 Kenta Murata <mrkn@mrkn.jp>
* ext/bigdecimal/bigdecimal.c (BigDecimal_power): support non-integral
exponent. fixes [Bug #3271]
* ext/bigdecimal/bigdecimal.c (rmpd_power_by_big_decimal): ditto.
* ext/bigdecimal/bigdecimal.c (BigDecimal_power_op): add a function to
only use for "**" operator.
* test/bigdecimal/test_bigdecimal.rb: add a bunch of tests for the
above changes.
* ext/bigdecimal/bigdecimal.c (is_integer): add an utility function.
* ext/bigdecimal/bigdecimal.c (is_negative): ditto.
* ext/bigdecimal/bigdecimal.c (is_positive): ditto.
* ext/bigdecimal/bigdecimal.c (is_zero): ditto.
* ext/bigdecimal/bigdecimal.c (is_one): ditto.
* ext/bigdecimal/bigdecimal.c (is_even): ditto.
Sun Jul 10 12:08:39 2011 Yusuke Endoh <mame@tsg.ne.jp>
* compile.c (when_vals): when a string literal is written on when
clause, skip string creation to make it faster. [ruby-dev:44068]
[Feature #5000]
Sun Jul 10 11:35:29 2011 Yusuke Endoh <mame@tsg.ne.jp>
* parse.y (reduce_nodes_gen): NODE_RETURN in rescue body must not be
reduced when there is an else clause. This caused bizarre behavior
in [Bug #4473] [ruby-core:35629] [ruby-core:37884].
Sun Jul 10 09:46:14 2011 Masaya Tarui <tarui@ruby-lnag.org>
* range.c (range_max): fix behavior with excluded end value.
[Bug #4591]
Sun Jul 10 09:13:18 2011 Eric Hodel <drbrain@segment7.net>
* NEWS: Fix RubyGems version. [Ruby 1.9 - Bug #5004]
Sat Jul 9 20:01:59 2011 Tadayoshi Funaba <tadf@dotrb.org>
* internal.h: rb_rational_reciprocal is defined in rational.c.
Sat Jul 9 19:48:31 2011 Tadayoshi Funaba <tadf@dotrb.org>
* internal.h: added declarations.
* complex.c: followed the above change.
Sat Jul 9 17:24:41 2011 Tadayoshi Funaba <tadf@dotrb.org>
* NEWS: bigdecimal is not a builtin.
Sat Jul 9 17:17:53 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: some improvements for performance.
Sat Jul 9 16:56:01 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* atomic.h (ATOMIC_OR): _InterlockedOr is unavailable in VC6.
* numeric.c (ULLONG_MAX): fallback definition.
Sat Jul 9 15:59:19 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* win32/win32.c (rb_w32_{read,write}): should be signed.
Bug #5001
Sat Jul 9 14:02:20 2011 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
* lib/cgi/core.rb: fix multipart form parsing bug. [Bug #3866]
Sat Jul 9 11:41:03 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* lib/matrix.rb: Add Vector#normalize [ruby-dev:43829]
Sat Jul 9 09:25:06 2011 Eric Hodel <drbrain@segment7.net>
* enumerator.c: Remove "enumeration sequenced by".
[Ruby 1.9 - Bug #4757]
Sat Jul 9 09:14:56 2011 Eric Hodel <drbrain@segment7.net>
* io.c: Note that methods other than IO#gets may increase IO#lineno.
[Ruby 1.9 - Bug #4902]
Sat Jul 9 08:39:39 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (RUN_OPT): disable gems.
Sat Jul 9 08:37:05 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (rb_io_close): close(2) on a fd which is being read by
another thread causes deadlock on Mac OS X 10.5
Fri Jul 8 21:20:39 2011 NARUSE, Yui <naruse@ruby-lang.org>
* addr2line.c: use USE_ELF instead of __ELF__ because Solaris
doesn't define it. USE_ELF is already provided by configure.
patched by Naohisa Goto. [ruby-dev:44066] [Bug #4998]
* addr2line.h: ditto.
* vm_dump.c: ditto.
Fri Jul 8 16:40:38 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/json/parser/parser.rl (convert_encoding): should not modify
the argument.
* ext/json/parser/parser.rl (convert_encoding): no needs to use
force_encoding.
Fri Jul 8 15:53:31 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* error.c (rb_bug): get rid of segfault after all threads
disposed.
Fri Jul 8 15:01:06 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/openssl/ossl.h: include openssl/e_os2.h before checking the
defition of OPENSSL_SYS_WIN32.
Fri Jul 8 14:40:39 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (wunlink): reverted a part of r32426. it was mistakenly
mixed.
Fri Jul 8 14:29:47 2011 Narihiro Nakamura <authornari@gmail.com>
* configure.in: can't subtract void *.
Fri Jul 8 14:33:26 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/Makefile.sub (config.h): define GC_MARK_STACKFRAME_WORD.
fixed build problem of r32438. the value (30) is temporary value.
maybe it's enough by 20~24 according to my observation.
Fri Jul 8 13:47:39 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_mutex_unlock_all): folded into
rb_threadptr_unlock_all_locking_mutexes.
* thread.c (rb_threadptr_unlock_all_locking_mutexes) ditto.
Fri Jul 8 13:36:02 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (thread_unlock_all_locking_mutexes): rename to
rb_threadptr_unlock_all_locking_mutexes and remove static.
* vm_core.h: add rb_threadptr_unlock_all_locking_mutexes declaration.
* thread.c (thread_start_func_2): adjust the above rename.
* eval.c (ruby_cleanup): call rb_threadptr_unlock_all_locking_mutexes
again after finalizer. [Bug #4988] [ruby-dev:44049]
Fri Jul 8 13:06:09 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* cont.c (FIBER_MACHINE_STACK_ALLOCATION_SIZE): Fiber stack size
don't need to keep multiple number of sizeof(VALUE).
Fri Jul 8 11:39:12 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (sudo-precheck): true command is not standard on
Windows.
Fri Jul 8 10:39:52 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c (gvl_destroy): fix cond_t leak.
Fri Jul 8 09:17:59 2011 Eric Hodel <drbrain@segment7.net>
* gc.c: Improve documentation
Thu Jul 7 23:35:31 2011 Narihiro Nakamura <authornari@gmail.com>
* gc.c: change water_mark value that may call
gc_mark(lev <= GC_LEVEL_MAX) in gc_mark().
In ruby_stack_check(), water_mark is a value that may call some
C function. Fixes Bug #3781
* configure.in: define GC_MARK_STACKFRAME_WORD that approximate
size of gc_mark() and gc_mark_children() stackframes.
Thu Jul 7 17:55:05 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/testunit/test_parallel.rb (TestParallelWorker#teardown): wait
the child process even if the communication pipe is broken.
Thu Jul 7 15:44:42 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* encoding.c (rb_enc_set_index, rb_enc_associate_index): should
check if frozen.
* parse.y (rb_intern3), ruby.c (process_options, ruby_script):
defer freezing after associating encodings.
Thu Jul 7 15:16:51 2011 NARUSE, Yui <naruse@ruby-lang.org>
* numeric.c (rb_num2ull): use own switch sentence.
Current implementation can't convert 18446744073709551615.
Thu Jul 7 06:56:15 2011 NARUSE, Yui <naruse@ruby-lang.org>
* cont.c (FIBER_STACK_FLAGS): workaround fix for r32420 on FreeBSD.
Thu Jul 7 06:46:12 2011 Eric Hodel <drbrain@segment7.net>
* benchmark/driver.rb: Add difference column to report that averages
across all runs of a benchmark. [Ruby 1.9 - Feature #4982]
Thu Jul 7 06:19:38 2011 Eric Hodel <drbrain@segment7.net>
* lib/rubygems.rb: Reduce requires to improve `make benchmark`.
[#4962]
* lib/rubygems/specification.rb: Delay initialization of rubygems
until require is called.
Thu Jul 7 04:31:26 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (arg): rescue_mod is in inverse order from other
modifiers. patched by michael.j.edgar AT dartmouth.edu at
[ruby-core:36248]. fixed #4716.
Thu Jul 7 00:40:16 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (kill): check that the process exited or not before
terminating it. [Bug #4943]
Wed Jul 6 23:13:19 2011 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (opt_call_args): allow trailing comma after assoc
argument e.g. 'foo(bar:1,)'. fixed #3456
Wed Jul 6 22:11:12 2011 Shota Fukumori <sorah@tubusu.net>
* test/cgi/test_cgi_header.rb(test_cgi_header_nph): Validate date in
"Date:" header
Wed Jul 6 21:29:33 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* cont.c (fiber_machine_stack_alloc): cleanup pointer arithmetic.
"size/sizeof(VALUE)" is ugly and easy confusing.
* cont.c (fiber_initialize_machine_stack_context): ditto.
Wed Jul 6 21:24:53 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* cont.c (fiber_machine_stack_alloc): fix mprotect misuse. A stack
guard page should have PROT_NONE.
* cont.c (fiber_initialize_machine_stack_context):
th->machine_stack_maxsize shouldn't be included guard pages size.
[Bug #4983][ruby-dev:44043]
Wed Jul 6 21:23:38 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* cont.c (fiber_machine_stack_alloc): use MAP_STACK if it's provided.
Wed Jul 6 21:22:16 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* cont.c (fiber_machine_stack_alloc): use MAP_FAILED instead of -1.
Wed Jul 6 21:21:05 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* cont.c (fiber_machine_stack_alloc): remove unnecessary cast.
Wed Jul 6 18:10:13 2011 Shota Fukumori <sorah@tubusu.net>
* test/cgi/test_cgi_header.rb(test_cgi_header_nph): Adding space after
comma.
* test/cgi/test_cgi_header.rb(test_cgi_header_nph): Remove variable
`now`. Suppress warning.
Wed Jul 6 12:18:09 2011 Shota Fukumori <sorah@tubusu.net>
* test/cgi/test_cgi_header.rb(test_cgi_header_nph): Fix bug depends to
time. The test fails if time past 1 second in line 136-145
Tue Jul 5 15:28:04 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (parser_here_document): should dispatch heredoc_end
scanner event on an empty here document. fixed Bug#4543.
Tue Jul 5 13:49:26 2011 Yusuke Endoh <mame@tsg.ne.jp>
* addr2line.c: fix r32407 to check HAVE_ALLOCA_H.
Tue Jul 5 14:05:43 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/webrick/httpauth/digestauth.rb (_authenticate):
Literal texts in HTTP ABNF is case-insensitive (RFC2616 2.1),
and a ample implementation in RFC2617 also ignores the case
of algorithms. So now this ignores those cases.
[ruby-dev:43965] [Feature #4936]
* lib/webrick/httpauth/digestauth.rb (initialize):
Because of above, opera_hack is useless and removed.
Tue Jul 5 01:30:01 2011 Yusuke Endoh <mame@tsg.ne.jp>
* thread_pthread.c (native_sleep): cut the waiting time up to
100,000,000 because Solaris cond_timedwait() return EINVAL if an
argument is greater than current_time + 100,000,000. This is
considered as a kind of spurious wakeup. The caller to native_sleep
should care about spurious wakeup.
Tue Jul 5 01:24:26 2011 Yusuke Endoh <mame@tsg.ne.jp>
* cont.c: disable FIBER_USE_NATIVE on Solaris because resuming any
Fiber caused SEGV. I haven't follow up the issue deeply, but it
works when disabling the feature.
Tue Jul 5 01:22:46 2011 Yusuke Endoh <mame@tsg.ne.jp>
* addr2line.c: include <alloca.h> to fix a build issue on Solaris.
Tue Jul 5 00:49:05 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* ext/coverage/coverage.c: resurrect r32071 + add GC guard for
rb_coverages. [ruby-core:37352] [Bug #4927]
[ruby-core:36539] [Feature #4796]
* test/coverage/test_coverage.rb resurrect r32071.
Mon Jul 4 22:24:46 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c (get_stack): For NetBSD/FreeBSD, use
pthread_attr_getstack() if possible. and, remove an assumption
of stack growing direction.
Mon Jul 4 20:42:31 2011 Yusuke Endoh <mame@tsg.ne.jp>
* ext/coverage/coverage.c: revert r32071. The commit caused SEGV on
some minor nonfree OS. I have no means of debugging the bug. My
personal opinion is that such OS should be unsupported unless there
is an active maintainer. [ruby-core:37352]
* test/coverage/test_coverage.rb: ditto.
Mon Jul 4 07:14:12 2011 NARUSE, Yui <naruse@ruby-lang.org>
* thread_pthread.c (get_stack): the return address of get_stack
must be the highest address of the current thread's stack.
Mon Jul 4 06:37:22 2011 Koichi Sasada <ko1@atdot.net>
* include/ruby/intern.h, thread_pthread.c (rb_reserved_fd_p,
RB_RESERVED_FD_P): added. This C API is to limit to access
fds which are used by RubyVM internal. In this version of
CRuby, return 1 if fd is communication pipe.
If your application needs to close all file descriptors to
present resource leak, skip internal fds using this C API.
We also define a macro RB_RESERVED_FD_P(fd). So you can write
#ifndef RB_RESERVED_FD_P
#define RB_RESERVED_FD_P(fd) 0
#endif
for Ruby 1.9.2 or previous version to write compatible extensions.
See [ruby-core:37727]
* thread_win32.c (rb_reserved_fd_p): added (return 0 for any fds).
* io.c (rb_io_initialize): raise ArgumentError if given fd is reserved by Ruby.
Sun Jul 3 23:43:56 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* ext/extmk.rb (extmake): suppresses outputs from extconf.rb.
(extmake) warns a failure in extconf.rb.
Sun Jul 3 13:44:51 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* array.c (ary_reject_bang): should not remove elements which are
not yielded. [Bug #2545]
Sun Jul 3 06:10:26 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c (get_stack): pthread_attr_getstack() doesn't
return stack start address, but stack base address. Thus,
we need to add stack size for getting stack start address.
And, we don't have to decrease guard size twice.
* thread_pthread.c (thread_start_func_1): don't use inaccurate
stack start guess if native_thread_init_stack() can be used.
[Bug #1813] [ruby-core:24540]
Sun Jul 3 04:50:08 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c (get_stack): add to a care of guard page on Mac
OS X. [Bug #1813] [ruby-core:24540]
* signal.c (ruby_signal): SIGBUS use alternative stack too.
* signal.c (sigbus): On Mac, thread stack overflow makes SIGBUS
instead of SIGSEGV. thus, added stackoverflow check.
* signal.c (default_handler): get rid of compilation warning.
* signal.c (Init_signal): ditto.
Sat Jul 02 08:59:20 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* test/openssl/test_ocsp.rb
* test/openssl/test_x509_cert.rb: Perform SHA-256 tests only if
supported by the available OpenSSL version. Versions < 0.9.8 don't
support it. [ruby-core:37724]
Sat Jul 2 07:17:45 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* array.c (rb_ary_reject_bang, rb_ary_delete_if): rejected
elements should be removed. fixed [Bug #2545]
Sat Jul 2 01:57:00 2011 Kenta Murata <mrkn@mrkn.jp>
* NEWS: remove a description of Kernel#respond_to? because it has
been reverted at revision 28564.
Sat Jul 2 00:58:00 2011 Kenta Murata <mrkn@mrkn.jp>
* NEWS: describe a change of multiplication of Bignum.
Fri Jul 1 18:52:31 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* benchmark/bm_app_erb.rb: increase loop count. too short
measurement time makes less accuracy.
* benchmark/bm_app_factorial.rb: ditto.
* benchmark/bm_app_mandelbrot.rb: ditto.
* benchmark/bm_app_strconcat.rb: ditto.
* benchmark/bm_io_file_create.rb: ditto.
* benchmark/bm_io_file_read.rb: ditto.
* benchmark/bm_io_file_write.rb: ditto.
* benchmark/bm_so_concatenate.rb: ditto.
* benchmark/bm_so_lists.rb: ditto.
* benchmark/bm_so_matrix.rb: ditto.
* benchmark/bm_so_random.rb: ditto.
* benchmark/bm_so_sieve.rb: ditto.
* benchmark/bm_vm_thread_mutex1.rb: ditto.
* benchmark/bm_vm_thread_mutex2.rb: ditto.
* benchmark/bm_vm_thread_mutex3.rb: ditto.
* benchmark/bm_vm1_block.rb: cleanup.
* benchmark/bm_vm1_const.rb: cleanup.
* benchmark/bm_vm1_ensure.rb: cleanup.
* benchmark/bm_vm1_ivar.rb: cleanup.
* benchmark/bm_vm1_length.rb: cleanup.
* benchmark/bm_vm1_neq.rb: cleanup.
* benchmark/bm_vm1_not.rb: cleanup.
* benchmark/bm_vm1_rescue.rb: cleanup.
* benchmark/bm_vm1_simplereturn.rb: cleanup.
* benchmark/bm_vm1_swap.rb: cleanup.
* benchmark/bm_vm2_array.rb: cleanup.
* benchmark/bm_vm2_case.rb: cleanup.
* benchmark/bm_vm2_defined_method.rb: cleanup.
* benchmark/bm_vm2_eval.rb: cleanup.
* benchmark/bm_vm2_method.rb: cleanup.
* benchmark/bm_vm2_mutex.rb: cleanup.
* benchmark/bm_vm2_poly_method.rb: cleanup.
* benchmark/bm_vm2_poly_method_ov.rb: cleanup.
* benchmark/bm_vm2_proc.rb: cleanup.
* benchmark/bm_vm2_regexp.rb: cleanup.
* benchmark/bm_vm2_send.rb: cleanup.
* benchmark/bm_vm2_super.rb: cleanup.
* benchmark/bm_vm2_unif1.rb: cleanup.
* benchmark/bm_vm2_zsuper.rb: cleanup.
* benchmark/bm_vm_thread_alive_check1.rb: cleanup.
Fri Jul 1 15:23:00 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* lib/matrix: Add LUP decomposition
Fri Jul 1 15:21:14 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* lib/matrix.rb: Allow non integer exponents for Matrix#**
Fri Jul 1 15:13:25 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* lib/matrix: Add Eigenvalue Decomposition
Fri Jul 1 15:10:22 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* lib/matrix: Add Matrix#round
Fri Jul 1 11:41:12 2011 NARUSE, Yui <naruse@ruby-lang.org>
* string.c (tr_trans): free heap ptr when the str is not embedded.
patched by Eric Wong. [Bug #4956] [ruby-core:37708]
Fri Jul 1 11:07:43 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (do_select): fix memory leak.
Patch by Eric Wong. Thank you! [Bug #4953] [ruby-core:37702]
Fri Jul 1 08:21:28 2011 Koichi Sasada <ko1@atdot.net>
* vm_insnhelper.c (vm_getivar): check vm state version
to invalidate inline cache (ivar index).
fixes Bug #4926.
* vm_insnhelper.c (vm_setivar): ditto.
Fri Jul 1 08:03:15 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* error.c, thread_pthread.c (WRITE_CONST): suppress warnings
`ignoring return value'.
Fri Jul 1 06:41:36 2011 Koichi Sasada <ko1@atdot.net>
* thread.c (rb_threadptr_check_signal): only wake up main thread.
* thread.c (rb_threadptr_execute_interrupts_common): check signal
delivery if it is main thread.
fixes [ruby-dev:44005] [Ruby 1.9 - Bug #4950]
* bootstraptest/test_fork.rb: add a test for above.
* signal.c (rb_get_next_signal): skip if signal_buff is empty.
(check signal_buff.size first)
* vm_core.h: remove unused variable rb_thread_t::exec_signal.
* thread.c (rb_thread_check_trap_pending): check
rb_signal_buff_size() because rb_thread_t::exec_signal
is no longer available.
Fri Jul 1 03:28:25 2011 Yukihiro Matsumoto <matz@ruby-lang.org>
* class.c (Init_class_hierarchy): should name BasicObject
explicitly.
* variable.c (rb_const_defined_0): should not check for
superclasses as const_get.
Fri Jul 1 03:24:03 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: mathn is still alive (should die soon).
Thu Jun 30 23:50:00 2011 Kenta Murata <mrkn@mrkn.jp>
* misc/ruby-mode.el (ruby-indent-beg-re): Fix broken regular
expression. Fixes #4546
Thu Jun 30 23:43:30 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/ossl.c/.h: Added ossl_x509_name_sk2ary.
* ext/openssl/ossl.c: Replaced ossl_x509_ary2k by generic macro to
simplify future conversions.
* ext/openssl/ossl_ssl.c: Implement SSLSocket#client_ca.
* test/openssl/test_ssl.rb: Add test for SSLSocket#client_ca.
Thanks to Ippei Obayashi for providing the patch!
[ Ruby 1.9 - Feature #4481 ] [ruby-core:35461]
Thu Jun 30 22:38:58 2011 Koichi Sasada <ko1@atdot.net>
* benchmark/bm_vm2_defined_method.rb: added to measure performance of
bmethod (method defined by define_method()).
Thu Jun 30 22:17:04 2011 Koichi Sasada <ko1@atdot.net>
* vm_insnhelper.c (vm_call_bmethod): fix to hook call/return event
for methods defined by define_method(). fixes Bug #4613.
* thread.c (call_trace_proc): Fix to skip if class is not given (0).
Note that ID and Class object are passed for call/return event
if the called method was defined by define_method().
If you are author of tracer/profiler/debugger, this may be an
important change. You should check passed class as zero or
non-zero instead of checking the event type.
* test/ruby/test_settracefunc.rb: add a test for above.
Thu Jun 30 21:18:35 2011 Yutaka Kanemoto <kanemoto@ruby-lang.org>
* configure.in: Add warnflags for XL/C on AIX during configure
to avoid [Bug #3971]. See [ruby-core:32859]
Thu Jun 30 21:16:04 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c (m_ajd): refers a constant.
Thu Jun 30 20:54:25 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/io/console/io-console.gemspec: spin-off gem for 1.9.2.
Thu Jun 30 20:36:23 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: trivial changes.
Thu Jun 30 20:12:36 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/ruby/test_module.rb: tests for [Bug #3422] and [Bug #3423].
Thu Jun 30 20:03:39 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: modified doc.
Thu Jun 30 19:09:19 2011 Koichi Sasada <ko1@atdot.net>
* thread_pthread.c (thread_timer): ignore unknown errno.
(we observed that select(2) was canceled by errno=514 on
boron == Linux/Xen environment)
Thu Jun 30 17:33:25 2011 Koichi Sasada <ko1@atdot.net>
* ext/objspace/objspace.c (ObjectSpace.count_tdata_objects):
Fix rdoc. Fixes Bug #3892.
* ext/objspace/objspace.c (ObjectSpace.count_tdata_objects):
Change key type if the klass of a object is zero (internal object).
Read rdoc for details.
* internal.h: export rb_objspace_data_type_name().
Thu Jun 30 17:25:08 2011 Koichi Sasada <ko1@atdot.net>
* thread_pthread.c (ping_signal_thread_list, thread_timer):
fix to keep polling state if there are any ping-tasks.
Thu Jun 30 12:25:34 2011 Koichi Sasada <ko1@atdot.net>
* thread_pthread.c (rb_thread_create_timer_thread): allocate
machine stack for the timer thread at least 12KB. FreeBSD 8.2
AMD64 causes machine stack overflow (SIGSEGV) only with
PTHREAD_STACK_MIN (maybe defined as 2KB).
Thu Jun 30 09:36:37 2011 Eric Hodel <drbrain@segment7.net>
* lib/weakref.rb: Attach documentation to WeakRef and add missing
documentation
Thu Jun 30 09:30:14 2011 Eric Hodel <drbrain@segment7.net>
* lib/yaml.rb: Document toplevel YAML and YAML::ENGINE to describe
Psych vs Syck engines.
Thu Jun 30 09:21:52 2011 Eric Hodel <drbrain@segment7.net>
* lib/cmath.rb: Hide handle_no_method_error from RDoc.
* error.c: Document or hide undocumented error classes.
Thu Jun 30 07:49:04 2011 Eric Hodel <drbrain@segment7.net>
* hash.c: Document ENV
Thu Jun 30 06:37:43 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ruby.c (ruby_init_loadpath_safe): ensure RUBYLIB_PREFIX stored
before RUBYLIB, even if MANGLED_PATH is enabled. fixed #1679.
MANGLED_PATH is disabled by the default and will be removed
completely in the future.
Thu Jun 30 06:32:21 2011 Eric Hodel <drbrain@segment7.net>
* lib/drb/drb.rb: Hide deprecated toplevel DRb constants.
Thu Jun 30 06:17:02 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/cmath.rb (CMath.log): second argument: b can be nil.
Thu Jun 30 06:23:28 2011 Eric Hodel <drbrain@segment7.net>
* thread.c (ruby_thread_s_pass): Fix typo.
Thu Jun 30 06:16:53 2011 Eric Hodel <drbrain@segment7.net>
* lib/rdoc: Update to RDoc 3.8 which contains fixes for documentation
in trunk.
Thu Jun 30 02:53:26 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_threadptr_execute_interrupts_common): remove
meaningless native_thread_yield(). It never close a race.
Thu Jun 30 02:41:47 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_thread_schedule_limits): minor optimization.
eliminate machine context saving when running time is enough small.
Thu Jun 30 02:28:11 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_thread_schedule_rec): move interrupt_flag check to
rb_thread_schedule().
And also rename to rb_thread_schedule_limits() and remove
sched_depth argument. It's no longer called recursive.
* thread.c (rb_thread_schedule): add to check interrupt_flag as
above explained.
* thread.c (rb_threadptr_execute_interrupts_rec): rename to
rb_threadptr_execute_interrupts_common() and remove sched_depth
argument. It's no longer called recursive.
* thread.c (rb_thread_sleep): adapt the renaming.
* thread.c (rb_threadptr_execute_interrupts): ditto.
* thread.c (rb_thread_execute_interrupts): ditto.
Thu Jun 30 01:31:33 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (thread_s_pass): change RDoc description and remove
a sample code. The actual implementation never behave as explained by
an example. It's a documentation bug.
Thu Jun 30 00:54:33 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_thread_stop): change RDoc sample code. The old
example is buggy and may cause deadlock. The patch is
suggested by Heesob Park <phasis@gmail.com>. Thank you!
[Bug #3606][ruby-core:31454]
Thu Jun 30 00:49:53 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_thread_wakeup): change RDoc sample code. The old
example is buggy and may not display anything by a race.
The patch is suggested by Heesob Park <phasis@gmail.com>.
Thank you! [Bug #3606][ruby-core:31454]
Thu Jun 30 00:43:33 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_thread_run): change RDoc. The old example is buggy
and may cause deadlock. The patch is suggested by Heesob Park
<phasis@gmail.com>. Thank you! [Bug #3606][ruby-core:31454]
Thu Jun 30 00:30:15 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
* lib/cmath.rb: make same exception for Math. fix [Bug #3137].
Thu Jun 30 00:03:20 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
* lib/irb/completion.rb: complement correctly string literal. fix
[Bug #1145].
Wed Jun 29 23:42:51 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: avoided using timev.
* ext/date/date_strftime.c: ditto.
* ext/date/date_tmx.h: ditto.
Wed Jun 29 23:17:57 2011 WATANABE Hirofumi <eban@ruby-lang.org>
* ext/openssl/ossl.h (OPENSSL_SYS_WIN32): support for mingw(msys).
Wed Jun 29 23:09:14 2011 WATANABE Hirofumi <eban@ruby-lang.org>
* ext/tk/extconf.rb (intptr_t, uintptr_t): support for the latest ActiveTcl with mingw.
Wed Jun 29 22:49:10 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
* lib/irb/cmd/help.rb: support RDoc 3.7. fix [Bug #3760].
Wed Jun 29 22:04:14 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* lib/tracer.rb: Tracer.on only if required by -r command-line option.
and consider --disable-gems option.
* test/test_tracer.rb: add tests for it.
Wed Jun 29 13:55:36 2011 Yukihiro Matsumoto <matz@ruby-lang.org>
* variable.c (rb_const_get_0): should not look for superclasses if
the second optional argument is given for #const_get().
fix [Bug #3422] [Bug #3423]
Wed Jun 29 12:07:27 2011 Eric Hodel <drbrain@segment7.net>
* math.c: Attach documentation for Math.
* object.c: Document NIL, TRUE, FALSE.
* io.c: Improve grammar in ARGF comment. Document STDIN/OUT/ERR.
Document ARGF global constant.
* lib/rake: Hide deprecated toplevel constants from RDoc (import from
rake trunk).
* lib/thwait.rb: Document ThWait.
* lib/mathn.rb: Hide Math redefinition from RDoc
* lib/sync.rb: Add a basic comment for Sync_m, Synchronizer_m, Sync,
Synchronizer.
* parse.y: Document SCRIPT_LINES__.
* hash.c: Document ENV class and global constant.
* vm.c: Document TOPLEVEL_BINDING.
* version.c: Document RUBY_* constants.
* ruby.c: Document DATA and ARGV.
Wed Jun 29 10:13:12 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* lib/matrix.rb: Matrix.zero can build rectangular matrices.
Vector#r should be called #magnitude
Wed Jun 29 10:11:08 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* lib/matrix.rb: Add Matrix#diagonal?, hermitian?, normal?,
orthogonal?
permutation?, symmetric?, {lower|upper}triangular?, unitary?, zero?
Wed Jun 29 10:09:35 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* lib/matrix.rb: Specialize Matrix#find_index to return [row, col]
and accept the same optional argument as #each
Wed Jun 29 10:07:32 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* lib/matrix.rb: Matrix#each{_with_index} can iterate over a subset
of the Matrix
Wed Jun 29 06:21:02 2011 Koichi Sasada <ko1@atdot.net>
* thread_pthread.c (native_stop_timer_thread): skip to close
communication pipe to avoid timing bug (process termination timing).
The communication pipe will closed by OS.
Wed Jun 29 06:09:54 2011 Koichi Sasada <ko1@atdot.net>
* error.c (rb_async_bug_errno): async-safe bug report function.
In timer thread, signal handler should use it.
The patch is contributed by Eric Wong <normalperson@yhbt.net>.
Refs: [ruby-core:37644] and [ruby-core:37647]
* thread_pthread.c: use rb_async_bug_errno().
And replace all fprintf() to write().
* internal.h (rb_async_bug_errno): add decl. of above func.
Tue Jun 28 23:46:08 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
* lib/tracer.rb: count only non-internal libraries in stack trace,
ignoring custom_require.
Tue Jun 28 21:44:58 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
* lib/irb/ruby-lex.rb: recognize '\char' in ruby statement.
Tue Jun 28 20:39:29 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* lib/debug.rb (var_list): Command 'var *' did not work on 1.9(!).
global_variables, local_variables, and instance_variables returns
Symbols from 1.9 and need to stringify before evaling it.
See #4931.
Tue Jun 28 19:23:01 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* signal.c: Now, USE_TRAP_SIGMASK depend on HAVE_PTHREAD_SIGMASK.
The code have already depended on pthread_sigmask since r27464.
Tue Jun 28 15:09:21 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/benchmark.rb: merge eregon/benchmark.
https://github.com/eregon/ruby/tree/benchmark
patched by Benoit Daloze. [ruby-core:37593] [Bug #4940]
* lib/benchmark (Benchmark#bmbm): bmbm should be consistent with bm
for the return value.
* test/benchmark: remove preemptive test instead of skipping
I removed the preemptive test I wrote for Feature #4197.
I'll add it back when the implementation will be able to satisfy it.
* lib/benchmark (Benchmark#bmbm): remove useless explicit call,
#format is an alias of #to_s test/benchmark: add a test for
format of long time.
* lib/benchmark: fix label width: always add 1 to ensure there is a
space delimiter even with times over 100s
When I asked for Feature #4197, I wanted to make delimiting spaces
consistent for #bm and #bmbm.
But with times over 100s, the output contains no space between the
label and the first time (user).
Now both ensure there is always a space, even if that means 3 spaces
with times under 10s (because it is formatted as %10.6f)
* test/benchmark: let labels be a constant
lib/benchmark (Benchmark#realtime): avoid creating an unused Proc
lib/benchmark (Benchmark#benchmark): use ensure clause to restore
STDOUT.sync, as in #bmbm
Tue Jun 28 13:41:51 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* thread_win32.c (native_stop_timer_thread): fixed commit miss of
r32244. grep sources before changing the signature of a function.
Tue Jun 28 11:49:14 2011 Koichi Sasada <ko1@atdot.net>
* thread_pthread.c (consume_communication_pipe):
Make "buff" as static. (Maybe) "buff" can be shared between
any caller (any threads) because no one use the read values.
"buff" (1024 byte) on stack may cause stack overflow on
several environment (we found a crash on FreeBSD).
And remove const value "buff_size", and define CCP_READ_BUFF_SIZE
macro.
Tue Jun 28 11:45:30 2011 Eric Hodel <drbrain@segment7.net>
* lib/rake: Update rake to fix some bugs and hide deprecated features
from RDoc.
* lib/rake/version.rb: Bump version to 0.9.2.1 to distinguish it from
the released version.
* NEWS: ditto
Tue Jun 28 11:17:28 2011 Eric Hodel <drbrain@segment7.net>
* lib/rdoc: Update to RDoc 3.7 (final)
* NEWS: ditto
Tue Jun 28 10:18:42 2011 NARUSE, Yui <naruse@ruby-lang.org>
* process.c (rb_daemon): fix wrong #endif position.
Tue Jun 28 07:50:32 2011 Eric Hodel <drbrain@segment7.net>
* object.c (Init_Object): Teach RDoc what Init_class_hierarchy does to
hook up ri for BasicObject, Object, Module and Class.
Tue Jun 28 05:03:32 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* thread.c (rb_thread_local_aref): RDoc fix. Thread#[] example
had a race. See #4480.
Tue Jun 28 01:22:00 2011 Kenta Murata <mrkn@mrkn.jp>
* ext/bigdecimal/bigdecimal.c (BigMath_s_log): move BigMath.log from
bigdecimal/math.rb.
* ext/bigdecimal/lib/bigdecimal/math.rb: ditto.
* test/bigdecimal/test_bigdecimal.rb: move test for BigMath.log from
test/bigdecimal/test_bigmath.rb.
* test/bigdecimal/test_bigmath.rb: ditto.
Tue Jun 28 01:19:52 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
* lib/irb/ruby-lex.rb: fix [Bug #4232].
Tue Jun 28 00:14:13 2011 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
* lib/drb/drb.rb: fix [Bug #4409]. add DRbServer#here?.
* test/drb/test_drb.rb: ditto.
* test/drb/drbtest.rb: ditto.
* test/drb/ut_eq.rb: ditto.
Tue Jun 28 00:08:43 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
* lib/irb/workspace.rb: fix BUG#4793.
Mon Jun 27 22:06:12 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c (consume_communication_pipe): don't use C99
style variable length array.
Mon Jun 27 22:04:27 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c (consume_communication_pipe): change return
type to void. caller doesn't use it.
Mon Jun 27 21:29:50 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.h (rb_global_vm_lock_struct): add volatile to
gvl->waiting. now thread_timer() access it w/o lock.
Mon Jun 27 21:16:11 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c: s/__gvl_acquire/gvl_acquire_common/ and
s/__gvl_release/gvl_release_common/.
Mon Jun 27 11:41:47 2011 NARUSE, Yui <naruse@ruby-lang.org>
* thread_pthread.c (rb_thread_create_timer_thread):
the type of return value of write(2) is ssize_t.
Mon Jun 27 09:57:02 2011 Koichi Sasada <ko1@atdot.net>
* thread_pthread.c (rb_thread_create_timer_thread):
Fixes missing initialization of oflags.
Mon Jun 27 09:07:42 2011 Koichi Sasada <ko1@atdot.net>
* thread_pthread.c: Stop polling in the timer thread when there are
no waiting thread. If there are 2 or more runnable threads,
the timer thread does polling. Avoid polling makes power save
for several computers (0.2W per a Ruby process, when I measured).
If outside-event such as signal or Thread#kill was occurred
when the timer thread does not do polling, then wake-up
the timer thread using communication-pipe (the timer thread
waits this communication-pipe with select(2)).
The discussion about this modification can be found from the post
[ruby-core:33456] and other related posts.
Note that Eric Wong and KOSAKI Motohiro give us the huge
contributions for this modification. Thanks.
* thread_pthread.c (rb_thread_wakeup_timer_thread): add a function.
This function wakes up the timer thread using communication-pipe.
* thread.c (rb_thread_stop_timer_thread): add a parameter which
specify closing communication-pipe or not.
* thread.c (rb_thread_terminate_all): do not stop timer thread here
(ruby_cleanup() terminate timer thread).
* signal.c: wake up timer thread using
rb_thread_wakeup_timer_thread() from signal handler.
* eval.c (ruby_cleanup): use rb_thread_stop_timer_thread(1).
* process.c: use rb_thread_stop_timer_thread(0)
(reuse communication-pipe).
* thread_win32.c (rb_thread_wakeup_timer_thread): add a dummy
function.
* vm_core.h: add and fix decl. of functions.
Mon Jun 27 08:01:19 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_parse.c: should use ALLOCA_N.
Mon Jun 27 01:34:18 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/etc/test_etc.rb (TestEtc#test_get{pw,gr}nam): skip entries
start with + sign, which means NIS. these are returned in the
case that passwd and group entries in /etc/nsswitch.conf are set
to use "nis" explicitly on Debian. fixed #3683
Mon Jun 27 00:44:53 2011 NARUSE, Yui <naruse@ruby-lang.org>
* parse.y (rb_parser_end_seen_p): fix documentation about return
value. patched by Sho Hashimoto. [Bug #4511]
Mon Jun 27 00:40:47 2011 NARUSE, Yui <naruse@ruby-lang.org>
* hash.c (rb_hash_reject): add documentation that Hash#reject
without block returns enumerator.
patched by Michael Edgar [Bug #4847] [ruby-core:36800]
Sun Jun 26 23:49:21 2011 Tadayoshi Funaba <tadf@dotrb.org>
* test/date/test_switch_hitter.rb: added a test.
Sun Jun 26 22:21:23 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: refactoring.
Sun Jun 26 18:03:30 2011 URABE Shyouhei <shyouhei@ruby-lang.org>
* parse.y: comma at the end of line is no longer allowed.
A patch from Yukihiro Matsumoto <matz AT ruby-lang.org>.
(fixed #3456).
Sun Jun 26 13:35:35 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* vm_dump.c (rb_vm_bugreport): change CrashReporter suggestion messages
on Mac. It should be placed after "-- C level backtrace" line.
Suggested by Endoh-san.
<before>
-- See Crash Report log file under ~/Library/Logs/CrashReporter or ---------
-- /Library/Logs/CrashReporter, for the more detail of ---------------------
-- C level backtrace information -------------------------------------------
<after>
-- C level backtrace information -------------------------------------------
See Crash Report log file under ~/Library/Logs/CrashReporter or
/Library/Logs/CrashReporter, for the more detail of.
Sun Jun 26 10:08:28 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/extconf.rb
* ext/openssl/ossl_missing.h/.c: add ASN1_put_eoc if missing.
* ext/openssl/ossl_asn1.c: introduce ossl_asn1_object_size and
ossl_asn1_put_object to wrap functionality depending on OpenSSL
version in use.
Fixes [ Ruby 1.9 - Bug #4916 ] reported by Hiroshi Nakamura.
[ruby-core:37286]
Sun Jun 26 01:00:15 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c (date_strftime_internal): removed meaningless braces.
* ext/date/date_core.c (gengo): the value should be int.
Sat Jun 25 23:45:30 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* vm_insnhelper.c (vm_search_superclass): avoid control frame
stack overrun. currently super() in Proc created in a method
defined by Module#define_method raise NoMethodError. [Bug #4881]
* test/ruby/test_method.rb t_super_in_proc_from_define_method):
add test for it.
Sat Jun 25 23:23:14 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* thread.c (sleep_forever): now Kernel#sleep don't wakeup by
signal handler execution. [Bug #4072]
Sat Jun 25 23:14:47 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* thread.c (rb_threadptr_check_signal): remove unnecessary th->status
backup. fix race condition which may results unexpected main thread's
status transition. see #4072
Fri Jun 24 19:57:30 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* lib/webrick/httprequest.rb (setup_forwarded_info): Parsing request
header failed when the request is from 2 or more Apache reverse
proxies. It's said that all X-Forwarded-* headers will contain more
than one (comma-separated) value if the original request already
contained one of these headers. Since we could use these values as
Host header, we choose the initial(first) value. See #4922.
* test/webrick/test_httprequest.rb (test_forwarded): Test it.
Fri Jun 24 17:06:33 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* process.c (proc_daemon): should not start timer thread
twice. fixed Bug#4920.
Fri Jun 24 15:54:14 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* ext/openssl/ossl_ssl.c (ossl_ssl_shutdown): Try to shutdown SSL
connection more gracefully. Call SSL_shutdown() max 4 times until it
returns 1 (success). Bi-directional SSL close has several states but
SSL_shutdown() kicks only 1 transition per call. Max 4 is from
mod_ssl.c of Apache httpd that says 'max 2x pending + 2x data = 4'.
See #4237.
Fri Jun 24 07:24:37 2011 Eric Hodel <drbrain@segment7.net>
* lib/rake/version.rb: Fixed VERSION to work with tool/rbinstall.rb
* bin/rake: Import bin/rake from 0.9.2
* tool/rbinstall.rb (install): Rake::VERSION is now in
lib/rake/version.rb. Fixes `make install`
Fri Jun 24 07:11:37 2011 Eric Hodel <drbrain@segment7.net>
* lib/rake: Import Rake 0.9.2
Fri Jun 24 00:44:15 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c (c_valid_{julian,gregorian}_p): fixed the range of month.
Fri Jun 24 00:14:23 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: trivial changes on text.
Thu Jun 23 22:46:57 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* ext/openssl/ossl_x509name.c: Add X509::Name#hash_old as a wrapper
for X509_NAME_hash_old in OpenSSL 1.0.0. See #4805
* test/openssl/test_x509name.rb (test_hash): Make test pass with
OpenSSL 1.0.0.
* NEWS: Add it.
Thu Jun 23 19:30:53 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* ext/openssl/ossl_ssl_session.c (ossl_ssl_session_set_time): Check
argument type with NUM2LONG if the arg is not a Time object.
See #4919.
* ext/openssl/ossl_ssl_session.c (ossl_ssl_session_set_timeout): Check
type with NUM2LONG. Time as an arg is not allowed. See #4919.
* test/openssl/test_ssl_session.rb (test_session_time,
test_session_timeout): Test it.
Wed Jun 23 13:30:30 2011 Shota Fukumori <sorah@tubusu.net>
* signal.c(ruby_atomic_exchange): Fix definition style.
Wed Jun 22 22:34:05 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* ext/openssl/ossl_ssl.c (ossl_sslctx_session_new_cb): Return 0 to
OpenSSL from the callback for SSL_CTX_sess_set_get_cb().
Returning 0 means to OpenSSL that the session is still valid
(since we created Ruby Session object) and was not freed by us with
SSL_SESSION_free(). Call SSLContext#remove_session(sess) in
session_get_cb block if you don't want OpenSSL to cache the session
internally.
This potential issue was pointed by Ippei Obayashi. See #4416.
* test/openssl/test_ssl_session.rb (test_ctx_server_session_cb): Test
it.
Wed Jun 22 22:21:17 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/ossl_ssl_session.c: Respect T_BIGNUM time values. Patch by
Tomoyuki Chikanaga.
[ Ruby 1.9 - Bug #4919 ] [ruby-dev:43869]
Wed Jun 22 21:29:25 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* ext/socket/depend (SOCK_HEADERS): use $(top_srcdir) instead of
$(topdir). sorry!
Wed Jun 22 19:47:03 2011 NARUSE, Yui <naruse@ruby-lang.org>
* cont.c (cont_capture): add volatile.
On clang -O, it is needed to avoid the optimization.
With this and llvm/clang's recent fix, clang 3.0 can
build ruby-trunk with -O option.
* cont.c (cont_capture): use for-loop.
* array.c (rb_ary_each): add volatile and use it.
* vm_insnhelper.c (vm_call_cfunc): ditto.
Wed Jun 22 18:20:46 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* ext/openssl/ossl_ssl.c (ossl_sslctx_session_remove_cb):
OpenSSL::SSL::SSLContext#session_remove_cb was broken. It wrongly
tried to call the session_*new*_cb callback.
* test/openssl/test_ssl_session.rb (class OpenSSL): Test it.
Wed Jun 22 17:37:49 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/ossl.h: Introduced OSSL_BIO_reset macro for PEM/DER
fallback scenarios.
* ext/openssl/ossl_pkey_dsa.c
* ext/openssl/ossl_x509req.c
* ext/openssl/ossl_pkey_rsa.c
* ext/openssl/ossl_pkey_ec.c
* ext/openssl/ossl_ssl_session.c
* ext/openssl/ossl_x509crl.c
* ext/openssl/ossl_pkey.c
* ext/openssl/ossl_pkey_dh.c
* ext/openssl/ossl_x509cert.c
* ext/openssl/ossl_pkcs7.c: Use OSSL_BIO_reset.
* ext/openssl/ossl_ssl.c
* ext/openssl/ossl_cipher.c
* ext/openssl/ossl_pkey_ec.c
* ext/openssl/ossl_pkcs12.c
* ext/openssl/ossl_ssl_session.c: Replace rb_raise occurrences by
ossl_raise. This automatically flushes OpenSSL's error queue.
* ext/openssl/ossl_pkcs7.c: Raise error if DER fallback for parsing
fails.
* test/openssl/test_pkey_ec.rb
* test/openssl/test_pkey_dsa.rb
* test/openssl/test_pkey_rsa.rb: Add assertions that OpenSSL.errors is
empty.
* test/openssl/test_pkey_rsa.rb: Remove initial OpenSSL.errors call in
test_new.
[ Ruby 1.9 - Bug #4885 ] [ruby-core:37134]
Wed Jun 22 15:01:24 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/ossl_ssl.c: Use SSL_MODE_RELEASE_BUFFERS if available.
Thanks, Eric Wong, for providing the patch.
[ Ruby 1.9 - Feature #4672 ] [ruby-core:36127]
Wed Jun 22 14:47:53 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* test/openssl/test_buffering.rb
* test/openssl/test_pkcs12.rb: Inherit from Test::Unit::TestCase
instead of MiniTest::Unit::TestCase. [ruby-core:37275]
Wed Jun 22 12:41:03 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* ext/openssl/ossl_ssl_session.c (ossl_ssl_session_to_der):
OpenSSL::SSL::Session#to_der was broken. Fix buffer handling.
* test/openssl/test_ssl_session.rb (test_session): Test it.
Wed Jun 22 12:38:52 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* test/openssl/test_ssl_session.rb: Split out SSL::Session related
tests from test_ssl.rb
Wed Jun 22 03:20:52 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/visitors/to_ruby.rb: Fix cyclic references of
objects. Thanks to CvX for reporting the bug and a test case.
* test/psych/test_object.rb: test for cyclic object references.
Wed Jun 22 02:39:54 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* lib/net/http.rb (Net::HTTP.post_form): Do not ignore query part of
the given URI to post. See #655.
* test/net/http/test_http.rb, test/net/http/utils.rb: Test it.
Wed Jun 22 01:28:13 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* test/openssl/test_x509store.rb (test_set_errors): Redhat is
distributing a patched version of OpenSSL that allows multiple CRL
for a key (multi-crl.patch.) Make test pass on such env. See #4122,
#4554.
Tue Jun 21 21:50:37 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* lib/webrick/httpresponse.rb (HTTPResponse#setup_header): Close
HTTP/1.1 connection when returning an IO object as response body
without setting HTTPResponse#chunked to true. See #855 no.1.
* test/webrick/test_httpserver.rb: Test it.
Tue Jun 21 21:27:34 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* internal.h: move rb_thread_io_blocking_region() declaration
from intern.h to internal.h. It's still experimental API and
need more discussion. [ruby-dev:43698]
* include/ruby/intern.h: ditto.
* ext/socket/rubysocket.h: include internal.h.
* ext/socket/depend: add internal.h dependency.
* ext/socket/extconf.rb: add $INCFLAGS to topdir.
Tue Jun 21 20:38:47 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c (datetime_s_*): canonicalize 24 o'clock.
Tue Jun 21 19:46:23 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/ruby/test_thread.rb (TestThread#test_priority): enable
this test again. Current GVL respect thread priority rather
than past.
Tue Jun 21 13:25:35 2011 TAKAO Kouji <kouji@takao7.net>
* ext/readline/readline.c (readline_getc): applied a patch in
#3827 by by Akio Tajima <artonx AT yahoo.co.jp>. (see #3827)
Tue Jun 21 13:16:31 2011 TAKAO Kouji <kouji@takao7.net>
* ext/readline/extconf.rb: fixed bug, specify --disable-libedit
then disable libedit, does not specify then check readline and
libedit if failed checking readline. (fixes #3375)
Mon Jun 20 22:52:07 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* process.c (before_exec): use sig_do_nothing instead of SIG_DFL
for avoiding a race.
* process.c (sig_do_nothing): new function.
Mon Jun 20 21:31:03 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c (thread_timer): rename timeout_10ms to
time_quantum. it's no longer 10ms.
Mon Jun 20 18:46:02 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* ext/openssl/ossl_cipher.c, ext/openssl/lib/openssl/cipher.rb:
Documentation fix by Ippei Obayashi. See #4419.
Mon Jun 20 15:41:33 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* lib/webrick/cookie.rb (WEBrick::Cookie.parse): Revert r31228.
r31228 was for allowing the 'Cookie:' header which did not have no
SP after ';' for separating cookie-pairs but RFC6265 requires single
SP after ';' there. We allow multiple SPs here for compatibility
with older WEBrick version.
* test/webrick/test_cookie.rb: Test it.
Sun Jun 19 13:31:26 2011 Shota Fukumori <sorah@tubusu.net>
* NEWS: Introduce --hide-skip on test/unit.
Sun Jun 19 10:05:16 2011 Shota Fukumori <sorah@tubusu.net>
* lib/test/unit/parallel.rb: Override Test::Unit::TestCase#on_parallel_worker?
only when $0 == __FILE__.
* lib/test/unit/parallel.rb: Run Test::Unit::Worker.run only when
$0 == __FILE__.
Sat Jun 18 23:59:24 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (fill_cbuf): finish reading at EOF, and the readconv has
been cleared by another thread while io_fillbuf() is waiting at
select(). a patch in [ruby-core:37197] by Hiroshi Shirosaki
<h.shirosaki AT gmail.com>. fixed #3840
Sat Jun 18 21:36:29 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c: remove GVL_DEBUG
Sat Jun 18 21:32:02 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* vm.c, vm_core.h (rb_vm_stack_to_heap): remove const.
It makes compilations warnings.
Sat Jun 18 18:54:15 2011 Koichi Sasada <ko1@atdot.net>
* vm.c, vm_core.h (rb_vm_stack_to_heap): fix "const" place.
Sat Jun 18 17:23:38 2011 Tanaka Akira <akr@fsij.org>
* eval.c, hash.c, load.c, proc.c, range.c, thread.c, time.c: don't
declare internal functions.
* internal.h, vm_core.h: declare internal functions.
* array.c: include internal.h.
* common.mk: update dependency for array.o.
Sat Jun 18 13:39:33 2011 Tanaka Akira <akr@fsij.org>
* internal.h: declarations declared in include/ruby/*.h removed.
Sat Jun 18 12:42:17 2011 Tanaka Akira <akr@fsij.org>
* method.h, internal.h iseq.h: declare internal functions.
* compile.c, eval.c, iseq.c, object.c, parse.y, proc.c, process.c,
thread.c, vm.c, vm_eval.c, vm_insnhelper.c, vm_method.c: don't
declare internal functions.
Note that rb_method_entry_eq() is defined in vm_method.c but
there was a declaration in proc.c with different const-ness.
Now it is declared in method.h with same const-ness to the
definition.
* object.c (rb_mod_module_exec): don't declare functions declared in
include/ruby/intern.h.
Sat Jun 18 12:05:08 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/backward/classext.h: for evil gems. fixed #4803
Sat Jun 18 11:12:13 2011 Tanaka Akira <akr@fsij.org>
* common.mk: update dependencies.
Sat Jun 18 11:09:03 2011 Tanaka Akira <akr@fsij.org>
* io.c: suppress warnings.
Sat Jun 18 10:22:39 2011 Tanaka Akira <akr@fsij.org>
* internal.h: declare more internal functions.
* iseq.h (rb_method_get_iseq): declared.
* compile.c, eval.c, eval_error.c, iseq.c, parse.y, proc.c, range.c,
ruby.c, time.c, util.c, vm.c: don't declare internal functions.
* eval.c, parse.y, thread_pthread.c: non-existing function declarations
removed.
Sat Jun 18 08:12:54 2011 Tanaka Akira <akr@fsij.org>
* common.mk: dependencies updated.
* tool/update-deps: new file to assist update dependencies in
common.mk.
Sat Jun 18 07:27:27 2011 Tanaka Akira <akr@fsij.org>
* internal.h: declare internal functions here.
* node.h: declare NODE dependent internal functions here.
* iseq.h: declare rb_iseq_t dependent internal functions here.
* vm_core.h: declare rb_thread_t dependent internal functions here.
* bignum.c, class.c, compile.c, complex.c, cont.c, dir.c, encoding.c,
enumerator.c, error.c, eval.c, file.c, gc.c, hash.c, inits.c, io.c,
iseq.c, load.c, marshal.c, math.c, numeric.c, object.c, parse.y,
proc.c, process.c, range.c, rational.c, re.c, ruby.c, string.c,
thread.c, time.c, transcode.c, variable.c, vm.c,
tool/compile_prelude.rb: don't declare internal functions declared
in above headers. include above headers if required.
Note that rb_thread_mark() was declared as
void rb_thread_mark(rb_thread_t *th) in cont.c but defined as
void rb_thread_mark(void *ptr) in vm.c. Now it is declared as
the later in internal.h.
Sat Jun 18 02:36:00 2011 Kenta Murata <mrkn@mrkn.jp>
* ext/bigdecimal/bigdecimal.c (VpNewRbClass): fix type of the 2nd
argument.
* ext/bigdecimal/bigdecimal.h: ditto.
Sat Jun 18 02:30:00 2011 Kenta Murata <mrkn@mrkn.jp>
* ext/bigdecimal/bigdecimal.c (BigMath_s_exp): move BigMath.exp from
bigdecimal/math.rb.
* ext/bigdecimal/lib/bigdecimal/math.rb: ditto.
* test/bigdecimal/test_bigdecimal.rb: move test for BigMath.exp from
test/bigdecimal/test_bigmath.rb.
* test/bigdecimal/test_bigmath.rb: ditto.
Sat Jun 18 00:20:54 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: do not define wnum[01].
Fri Jun 17 18:57:36 2011 NARUSE, Yui <naruse@ruby-lang.org>
* compile.c (iseq_compile_each): fix return value of obj[a,*b]=c.
Fri Jun 17 13:09:45 2011 Eric Hodel <drbrain@segment7.net>
* ext/curses/curses.c: Clean up documentation.
Fri Jun 17 09:25:14 2011 Eric Hodel <drbrain@segment7.net>
* ext/curses/curses.c: Document curses constants. Patch by Vincent
Batts. [Ruby 1.9 - Bug #4880]
Fri Jun 17 09:11:05 2011 Eric Hodel <drbrain@segment7.net>
* object.c: Document Module#method_added and #method_removed.
Patch by Bryce Kerley. [Ruby 1.9 - Feature #4867]
Fri Jun 17 08:50:16 2011 Eric Hodel <drbrain@segment7.net>
* io.c: Improve documentation of IO and File open and new.
Patch by Roger Pack. [Ruby 1.9 - Bug #4790]
Fri Jun 17 07:53:50 2011 Eric Hodel <drbrain@segment7.net>
* lib/csv.rb: Document #raw_encoding. Patch by David Czarnecki.
[Ruby 1.9 - Bug #4874]
Fri Jun 17 07:46:50 2011 Eric Hodel <drbrain@segment7.net>
* lib/benchmark.rb: Document Benchmark::Tms#memberwise. Patch by
David Czarnecki. [Ruby 1.9 - Bug #4873]
Fri Jun 17 07:38:31 2011 Eric Hodel <drbrain@segment7.net>
* lib/prettyprint.rb: Improve documentation. Patch by Ysiad
Ferreiras. [#4834]
Fri Jun 17 07:23:03 2011 Eric Hodel <drbrain@segment7.net>
* array.c (rb_ary_drop): Improve documentation. Patch by Caley Woods.
[Ruby 1.9 - Bug #4858]
Fri Jun 17 06:11:31 2011 Eric Hodel <drbrain@segment7.net>
* lib/webrick/log.rb: Improve documentation of BasicLog and Log.
Patch by Olivier Brisse. [Ruby 1.9 - Bug #4833]
* lib/webrick/httpstatus.rb: Improve documentation of
WEBrick::HTTPStatus. Patch by Olivier Brisse.
[Ruby 1.9 - Bug #4833]
Fri Jun 17 04:48:22 2011 Koichi Sasada <ko1@atdot.net>
* thread_pthread.c, thread_pthread.h: remove unused variables.
(native_thread_data_t::gvl_cond, native_thread_data_t::gvl_next)
Thu Jun 16 14:32:31 2011 NARUSE, Yui <naruse@ruby-lang.org>
* time.c (rb_time_new): prevent overflow by "* 1000".
Fri Jun 17 03:07:36 2011 Koichi Sasada <ko1@atdot.net>
* benchmark/bm_vm4_thread_create_join.rb,
benchmark/bm_vm4_thread_mutex[1-3].rb: renamed to
bm_thread_* (fix last rename).
Fri Jun 17 02:26:47 2011 Koichi Sasada <ko1@atdot.net>
* thread_pthread.c (native_thread_create): fix debug message.
(add last newline)
Thu Jun 16 23:40:49 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_thread_schedule_rec): fix {UN,}LIKELY macro misuse.
* gc.c (rb_newobj): ditto.
* vm_insnhelper.c (vm_method_search): ditto.
Thu Jun 16 20:06:15 2011 Shota Fukumori <sorah@tubusu.net>
* test/testunit/test_parallel.rb: Fix Regexp for test.
* test/testunit/tests_for_parallel/test_third.rb: Use
Test::Unit::TestCase#on_parallel_worker? for detecting worker.
* lib/test/unit/testcase.rb(Test::Unit::TestCase#on_parallel_worker?):
New Method Test::Unit::TestCase#on_parallel_worker? returns true
when a testcase is running on parallel worker.
* lib/test/unit/parallel.rb(Test::Unit::TestCase#on_parallel_worker?):
ditto.
Thu Jun 16 19:27:12 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* test/test_securerandom.rb: Add testcase. This testcase does NOT aim
to test cryptographically strongness and randomness. It includes
the test for PID recycle issue of OpenSSL described in #4579 but
it's disabled by default.
Thu Jun 16 17:55:07 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/ruby/test_io.rb (TestIO#test_copy_stream_socket): fix
test hanging up issue. Patch by CHIKANAGA Tomoyuki.
Thu Jun 16 15:17:39 2011 Eric Hodel <drbrain@segment7.net>
* variable.c (const_missing): Add simple example of const_missing.
Patch by Anuj Dutta. [Ruby 1.9 - Bug #4794]
Thu Jun 16 15:09:29 2011 Eric Hodel <drbrain@segment7.net>
* lib/monitor.rb: Improve documentation. Patch by Sandor Szucs.
[Ruby 1.9 - Bug #4823]
Thu Jun 16 14:54:09 2011 Eric Hodel <drbrain@segment7.net>
* lib/webrick/utils.rb: Document WEBrick::Utils. Patch by Olivier
Brisse. [Ruby 1.9 - Bug #4819]
Thu Jun 16 14:26:46 2011 Eric Hodel <drbrain@segment7.net>
* lib/webrick/httpservlet/erbhandler.rb: Allow the ERB document to
alter the content-type of the response. [Ruby 1.9 - Bug #4685]
Thu Jun 16 14:15:47 2011 Eric Hodel <drbrain@segment7.net>
* lib/timeout.rb: Clarify timeout duration types. Patch by Alf Mikula.
[Ruby 1.9 - Bug #4791]
* lib/net/http.rb: ditto
Thu Jun 16 13:25:25 2011 Eric Hodel <drbrain@segment7.net>
* lib/rdoc*: Import RDoc 3.7 release candidate
Thu Jun 16 11:35:09 2011 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/imap.rb (search_response): parses SEARCH responses from
the Yahoo IMAP server correctly. patched by Mark Nadig. [Bug #4509]
Thu Jun 16 09:12:38 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* fix for build on solaris 10.
Thu Jun 16 09:08:39 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/io/console/test_io_console.rb (TestIO_Console#test_sync):
fix for daemon process.
Thu Jun 16 07:58:01 2011 Shota Fukumori <sorah@tubusu.net>
* test/testunit/test_parallel.rb(test_ignore_tzero): Test for r32109.
* test/testunit/tests_for_parallel/test_third.rb: Use another way to
detect that test is running on worker. This fixes sometimes
TestParallel failing.
Thu Jun 16 07:20:06 2011 Shota Fukumori <sorah@tubusu.net>
* lib/test/unit.rb(Test::Unit::Runner#_run_parallel): Ignore -j0
because it makes blocking forever by IO.select.
Thu Jun 16 03:08:11 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/testunit/test_parallel.rb (TestParallel::TestParallelWorker#
setup): now can run on Windows, probably.
* test/testunit/test_parallel.rb (TestParallel::TestParallel#setup):
ditto.
Thu Jun 16 03:00:26 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* thread.c (do_select): Windows: no need to poll if select(2) is
cancelable.
* thread_win32.c (native_fd_select): new function to make select(2)
cancelable.
* thread_win32.c (rb_w32_check_interrupt): new function for checking
interrupt.
* win32/win32.c (rb_w32_select_with_thread): new function. cancelable
select(2).
* win32/win32.c (rb_w32_select): use above function internally.
Wed Jun 15 23:30:45 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* gc.c: fix a regression by r31690 on AIX because AIX malloc
return NULL if it's passed 0. But some caller don't expect it.
patch by Yutaka Kanemoto. [ruby-dev:43779]
(vm_malloc_prepare): return calculated size.
(vm_xmalloc): use above result.
(vm_xcalloc): ditto.
Wed Jun 15 23:11:35 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c: remove BLOCKING_REGION_CORE() macro. It's no longer used
since r32022.
Wed Jun 15 21:00:47 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* test/openssl/test_config.rb: execute based on the existence of the
OpenSSL module.
Wed Jun 15 12:35:11 2011 Tanaka Akira <akr@fsij.org>
* test/ruby/test_io.rb (test_copy_stream_socket): wait a child process
before SIGUSR1 handler is removed.
* test/pathname/test_pathname.rb (define_assertion): use line number
for test method names.
Wed Jun 15 10:37:43 2011 NARUSE, Yui <naruse@ruby-lang.org>
* file.c (rb_stat_rdev): use DEVT2NUM.
* file.c (rb_stat_rdev_major): ditto.
* file.c (rb_stat_rdev_minor): ditto.
Wed Jun 15 05:12:59 2011 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/tcltklib.c (lib_eventloop_core): revert the last change (it's
the part for ruby_1_8), and use rb_thread_check_ints() when RUBY_VM
is defined.
Wed Jun 15 04:42:47 2011 Koichi Sasada <ko1@atdot.net>
* benchmark/bm_vm3_thread_*.rb: renamed bm_vm3_thread_*.rb to
benchmark/bm_vm_thread_*.rb.
Wed Jun 15 04:28:39 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* benchmark/bm_vm4_thread_pass.rb: rename bm_vm4* to
bm_vm_thread_*. suggested by ko1.
* benchmark/bm_vm4_pipe.rb: ditto.
* benchmark/bm_vm4_alive_check1.rb: ditto.
* benchmark/bm_vm4_pass_flood.rb: ditto.
Wed Jun 15 03:52:50 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* benchmark/bm_vm4_pass_flood.rb: new benchmark for GVL fairness.
* benchmark/bm_vm4_alive_check1.rb: ditto.
Wed Jun 15 01:27:53 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c (gvl_yield): fix live lock issue on 1-2 cpus
system. It's additional fix for r32021.
* thread_pthread.c (gvl_init): add switch_wait_cond.
* thread_pthread.h (typedef struct rb_global_vm_lock_struct): ditto.
Tue Jun 14 23:16:22 2011 Tanaka Akira <akr@fsij.org>
* bootstraptest/runner.rb (show_progress): refine verbose mode.
(exec_test): ditto.
Tue Jun 14 23:02:36 2011 Tanaka Akira <akr@fsij.org>
* bootstraptest/runner.rb (show_progress): extracted from assert_check.
(assert_check): use show_progress.
(assert_normal_exit): ditto.
(assert_finish): ditto.
(flunk): ditto.
Tue Jun 14 22:51:42 2011 Tadayoshi Funaba <tadf@dotrb.org>
* test/date/test_*.rb: added tests.
Tue Jun 14 22:09:58 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: renamed some functions.
* ext/date/date_core.c: modified doc.
Tue Jun 14 21:26:01 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* cont.c (cont_save_thread): add new utility function.
rb_context_t::saved_thread.machine_stack_start and
machine_stack_end should be cleared immediately after a snapshot of
current thread is stored to saved_thread. [ruby-dev:43680] [Bug #4855]
this change aims to get rid of unnecessary GC mark at machine stack.
Tue Jun 14 19:50:49 2011 Tanaka Akira <akr@fsij.org>
* test/ruby/test_autoload.rb: remove temporary directory.
Tue Jun 14 11:05:03 2011 Narihiro Nakamura <narihiro@netlab.jp>
* gc.c (rb_gc_set_params): call initial_expand_heap if
initial_heap_min_slots is set.
Tue Jun 14 11:02:08 2011 Narihiro Nakamura <narihiro@netlab.jp>
* gc.c: use size_t.
Tue Jun 14 01:10:38 2011 Yusuke Endoh <mame@tsg.ne.jp>
* test/coverage/test_coverage.rb: add a test for restart. a patch
from Xavier Shay. [ruby-core:36745]
Tue Jun 14 01:05:10 2011 Yusuke Endoh <mame@tsg.ne.jp>
* ext/coverage/coverage.c: make it restartable. [ruby-core:36539]
Mon Jun 13 23:55:40 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_thread_schedule_rec): call gvl_yield() unconditionally.
* thread_pthread.c: remove HAVE_GVL_YIELD macro.
* thread_win32.c (gvl_yield): new. this fallback logic was moved from
rb_thread_schedule_rec().
Mon Jun 13 23:50:25 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/io/console/console.c (console_dev): typo.
Mon Jun 13 23:38:23 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (parser_parse_string): flush delayed token. based on a
patch by Masaya Tarui in [ruby-dev:43762]. Bug #4544
* parse.y (yylex): revert r24557. delayed token at the end of
string should be flushed already by the above change.
Mon Jun 13 23:33:31 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/io/console/console.c (console_dev): console should be
unbuffered.
* ext/io/console/console.c (console_dev): take care of no-ctty
case.
Mon Jun 13 23:06:12 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c: rewrite GVL completely. This fix improve some
benchmark dramatically (e.g. vm3_thread_mutex result changed
form 120.601sec to 3.426sec).
* thread_win32.c: ditto.
* thread_pthread.h: ditto.
* vm_core.h: ditto.
* thread.c: ditto.
Mon Jun 13 23:11:52 2011 Tanaka Akira <akr@fsij.org>
* test/socket/test_unix.rb: don't use Thread.abort_on_exception.
Mon Jun 13 23:05:01 2011 Tanaka Akira <akr@fsij.org>
* ext/socket/unixsocket.c (unix_send_io): race condition fixed.
(unix_recv_io): ditto.
fixed by Eric Wong. [ruby-core:35574]
* test/socket/test_unix.rb: test added for above problem.
Mon Jun 13 21:41:05 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_win32.c (native_cond_signal): remove unnecessary rb_bug().
It's additional fix for r32021. [Bug #4696]
Mon Jun 13 20:50:49 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* test/openssl/test_ec.rb
test/openssl/test_pkey_ec.rb: merge both files into test_pkey_ec.rb.
Removed redundant group instantiation from PKey tests.
* test/openssl/utils.rb: only create TEST_PKEY_EC_P256V1 if EC is
defined.
Mon Jun 13 20:28:24 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* test/openssl/digest.rb: remove MDC2 from test, it is not available
by default in an OpenSSL installation.
Mon Jun 13 20:18:55 2011 Koichi Sasada <ko1@atdot.net>
* vm_core.h, vm_insnhelper.h: move decl. of
ruby_vm_global_state_version and related macros
from vm_core.h to vm_insnhelper.h.
* vm.c (vm_clear_all_cache): added. This function is called
when ruby_vm_global_state_version overflows.
TODO: vm_clear_all_inline_method_cache() is only place holder.
We need to implement it ASAP.
* vm_method.c (vm_clear_global_method_cache): added.
Mon Jun 13 19:46:21 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
* lib/cmath.rb: add new method Object#real?. fix #3137
Mon Jun 13 18:52:00 2011 Kenta Murata <mrkn@mrkn.jp>
* ext/bigdecimal/bigdecimal.c (is_kind_of_BigDecimal): new function to
examine the whether the object is kind of BigDecimal.
Mon Jun 13 18:49:00 2011 Kenta Murata <mrkn@mrkn.jp>
* ext/bigdecimal/bigdecimal.c (BigDecimalCmp): use GetVpValueWithPrec
for Float and Rational arguments.
* test/bigdecimal/test_bigdecimal.rb (test_new, test_cmp, test_power):
add and modify tests for the above change.
* ext/bigdecimal/bigdecimal.c (BigDecimalCmp): modify coding style to
match ruby's standard.
Mon Jun 13 18:33:04 2011 Tanaka Akira <akr@fsij.org>
* lib/securerandom.rb (SecureRandom.random_bytes): modify PRNG state
to prevent random number sequence repetition at forked child
process which has same pid.
reported by Eric Wong. [ruby-core:35765]
Mon Jun 13 17:02:34 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/net/http.rb (Net::HTTP#use_ssl?): require 'openssl' only when
https is needed. fixes r31933.
Mon Jun 13 14:35:00 2011 Kenta Murata <mrkn@mrkn.jp>
* lib/cmath.rb (CMath.cbrt): returns the principal value of the cube
root of the argument. fix #3676
* test/test_cmath.rb (test_cbrt_returns_principal_value_of_cube_root):
test for the above change.
Mon Jun 13 14:17:00 2011 Kenta Murata <mrkn@mrkn.jp>
* lib/test/unit.rb (Test::Unit::GlobOption#non_options): fix typo.
Mon Jun 13 13:04:20 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/ossl_digest.c: fix error for digests that have no oid
(e.g. DSS1).
* test/openssl/test_digest.c: add tests for this.
Mon Jun 13 12:51:51 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/yaml.rb: load psych only when syck is not loaded.
Mon Jun 13 12:23:39 2011 NARUSE, Yui <naruse@ruby-lang.org>
Mon Jun 13 12:23:39 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/psych/lib/psych/deprecated.rb (Object#to_yaml_properties):
undef to_yaml_properties before redefine it.
* ext/syck/lib/syck/rubytypes.rb: ditto.
Mon Jun 13 11:30:10 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/ossl_digest.c: allow Digests to be created by sn, ln or
oid.
* test/openssl/test_digest.rb: add tests for this.
[Ruby 1.9 - Feature #4412] [ruby-core:35319]
Mon Jun 13 10:54:03 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/pkey_dh.c: corrected documentation.
* test/openssl/utils.rb: add test key for DH.
* test/openssl/test_pkey_dh.rb: add tests.
Mon Jun 13 10:13:08 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/pkey_dh.c: clarify difference between DH#public_key and
DH#pub_key in documentation.
Mon Jun 13 05:50:43 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* NEWS: introduce PKey.read.
Mon Jun 13 05:17:29 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/ossl_pkey.c: added PKey.read module function that allows
reading arbitrary public/private keys from DER-/PEM-encoded File or
string instances.
* ext/openssl/ossl_pkey_dh.c: improved documentation.
* test/openssl/utils.rb: added EC test key.
* test/openssl/test_pkey_rsa.rb
test/openssl/test_pkey_dsa.rb: Test PKey.read. Reuse keys from
OpenSSL::TestUtils.
* test/openssl/test_pkey_ec.rb: Created test file for EC tests.
Test PKey.read.
[Ruby 1.9 - Feature #4424] [ruby-core:35330]
Mon Jun 13 04:42:24 2011 Koichi Sasada <ko1@atdot.net>
* ext/objspace/objspace.c (total_i): fix to skip no ruby objects.
Mon Jun 13 03:07:38 2011 NARUSE, Yui <naruse@ruby-lang.org>
* test/benchmark/test_benchmark.rb (capture_output):
replace '-' as space. On NetBSD, subtract between two Process.times
after and before the short process may return negative value like:
t0=Process.times; yield; t1=Process.times; p t1.utime-t0.utime
Mon Jun 13 02:40:23 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* test/openssl/test_pkey_dsa.rb: Test for DSA#syssign/sysverify.
Mon Jun 13 01:59:19 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/ossl_pkey_dh.c: completed documentation.
* ext/openssl/ossl_pkey_dsa.c: corrected examples. Improved parameter
sections.
Mon Jun 13 00:25:10 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/ossl_pkey_dsa.c: completed documentation.
Sun Jun 12 23:36:46 2011 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
* lib/drb/drb.rb (kill_sub_thread): remove the method. [ruby-core:34185]
Sun Jun 12 21:01:56 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c (d_lite_marshal_load): should give converted value.
Sun Jun 12 20:36:30 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: edited doc.
Sun Jun 12 18:12:07 2011 Koichi Sasada <ko1@atdot.net>
* benchmark/bm_vm3_clearmethodcache.rb: added.
Sun Jun 12 17:40:29 2011 Koichi Sasada <ko1@atdot.net>
* vm_method.c (rb_clear_cache*): update only vm state version.
* vm_method.c (rb_method_entry_get_without_cache, rb_method_entry):
Fill method cache entry with vm state version, and
check current vm state version for method (cache) look up.
This modification speed-up invalidating of global method cache table.
[Ruby 1.9 - Feature #3905] [ruby-core:36908]
Sun Jun 12 16:19:48 2011 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/extconf.rb: fail on Mac OS X. [Bug #4853][ruby-dev:43655]
Sun Jun 12 15:56:08 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c: remove th->transition_for_lock. It's thread unsafe.
[Bug #4723][ruby-dev:43563]
Sun Jun 12 15:47:35 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c: introduce spurious wakeup safe deadlock check.
[Bug #4696][ruby-dev:43554]
Sun Jun 12 13:33:52 2011 Koichi Sasada <ko1@atdot.net>
* benchmark/bm_vm3_thread_mutex.rb: remove it.
* benchmark/bm_vm3_thread_mutex[1-3].rb: added 3 benchmarks.
1: one thread with one mutex (no contention).
2: two threads with one mutex (contention).
3: 1000 threads with one mutex (huge number of contention)
Above removed benchmark was type 3.
Therefore, this commit adds type 1 and 2 benchmark.
Sun Jun 12 11:16:59 2011 Tanaka Akira <akr@fsij.org>
* io.c: use select() appropriately for sendfile().
Fixed by Eric Wong. [ruby-core:36150]
(maygvl_copy_stream_wait_readwrite): removed.
(nogvl_copy_stream_sendfile): use nogvl_copy_stream_wait_write and
maygvl_copy_stream_wait_read instead of
maygvl_copy_stream_wait_readwrite.
Sun Jun 12 09:32:13 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* atomic.h (ATOMIC_OR): _InterlockedOr is not available on mingw.h
* gc.c (rb_gc_set_params): VM_OBJSPACE is disabled on mingw.
Sun Jun 12 01:07:09 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: edited doc.
Sat Jun 11 23:18:00 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* vm_core.h (RUBY_VM_SET_TIMER_INTERRUPT, RUBY_VM_SET_INTERRUPT,
RUBY_VM_SET_FINALIZER_INTERRUPT): use atomic ops for preventing
interrupt_flag bit lost. [Bug #4770][ruby-dev:43467]
* thread.c (rb_threadptr_execute_interrupts_rec): ditto.
* vm_core.h (typedef struct rb_thread_struct): change type of
interrupt_flag to rb_atomic_t.
* atomic.h: move atomic ops definition from signal.c.
* signal.c: remove atomic ops definition.
* common.mk (gc, signal, thread, cont): add to dependency to atomic.h.
Sat Jun 11 23:23:52 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: edited doc.
Sat Jun 11 23:02:36 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* ext/openssl/lib/openssl/buffering.rb (module OpenSSL):
Buffering#each_byte should return String in accordance with IO in
1.9.
* test/openssl/test_buffering.rb (class OpenSSL): add tests for getc
and each_byte.
Sat Jun 11 22:41:37 2011 Tadayoshi Funaba <tadf@dotrb.org>
* time.c: a correction of doc for strftime (%v).
Sat Jun 11 22:30:53 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: replaced doc for strftime based on Time's one.
Sat Jun 11 22:07:56 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c (datetime_s_{iso8601,rfc3339,xmlschema,rfc2822,httpdate}):
do not take argument comp.
Sat Jun 11 21:58:31 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: added examples.
Sat Jun 11 19:40:45 2011 Narihiro Nakamura <authornari@gmail.com>
* gc.c: expand heap if initial_heap_min_slots is bigger than
HEAP_MIN_SLOTS.
Sat Jun 11 19:42:50 2011 WATANABE Hirofumi <eban@ruby-lang.org>
* ChangeLog (vim): set shiftwidth to 2.
Sat Jun 11 19:27:06 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* ext/openssl/ossl_x509req.c: raise RequestError instead of
CertificateError when Request#to_der gets an error from OpenSSL.
Patch from Ippei Obayashi, see #4420. I cannot write a test for
this... Request does not allow to create broken bytes...
Sat Jun 11 19:34:51 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c (Date::(ABBR_)?(MONTH|DAY)NAMES): should be usascii.
Sat Jun 11 19:24:33 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: rewrote doc.
Sat Jun 11 19:04:15 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit.rb (Test::Unit::GlobOption#non_options): should run
with 1.8.
Sat Jun 11 18:05:57 2011 WATANABE Hirofumi <eban@ruby-lang.org>
* bootstraptest/runner.rb: should initialize $stress to avoid warnings.
Sat Jun 11 18:02:09 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (io_getc): should be 7bit if ascii. fixes #4557
Sat Jun 11 16:52:16 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* numeric.c (rb_enc_uint_chr): fix message format. Bug#4869
Sat Jun 11 16:28:25 2011 Kouhei Sutou <kou@cozmixng.org>
* lib/rexml/formatters/pretty.rb
(REXML::Formatters::Pretty#write_text),
test/rexml/test_core.rb
(Tester#test_pretty_format_long_text_finite): don't ignore
'width' parameter in pretty formatter. fixes #4498
Reported by Michael Frasca. Thanks!!!
Sat Jun 11 16:11:36 2011 Kouhei Sutou <kou@cozmixng.org>
* test/rexml/test_core.rb
(Tester#test_pretty_format_long_text_finite): remove needless
assert_nothing_raised.
Sat Jun 11 16:04:03 2011 Kouhei Sutou <kou@cozmixng.org>
* lib/rexml/parsers/xpathparser.rb
(REXML::Parsers::XPathParser#parse),
test/rexml/test_elements.rb
(ElementsTester#test_each_with_frozen_condition):
don't modify original XPath. fixes #4161
Reported by Pavel Shved. Thanks!!!
Sat Jun 11 15:53:27 2011 Kouhei Sutou <kou@cozmixng.org>
* test/rexml/test_elements.rb (ElementsTester): remove needless
prefix from test name.
Sat Jun 11 15:36:36 2011 Martin Duerst <duerst@it.aoyama.ac.jp>
* common.mk: fixed a grammatical error
Sat Jun 11 14:20:16 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* vm.c (thread_memsize): don't ignore size of th->local_storage.
Sat Jun 11 10:32:46 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb: should quote arch_hdrdir and libpath for the case
installed prefix contains spaces.
Sat Jun 11 10:20:52 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* thread_pthread.c (native_cond_timeout): wrap conditionally used
label.
* thread_pthread.c (native_sleep): remove unused variable.
Sat Jun 11 10:15:50 2011 Tanaka Akira <akr@fsij.org>
* thread.c (rb_thread_execute_interrupts): use GetThreadPtr to extract
rb_thread_t from VALUE.
reported by Motohiro KOSAKI. [ruby-dev:43700]
Sat Jun 11 10:00:49 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ruby.c (ruby_process_options): add missing return type.
Fri Jun 10 23:18:09 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* ext/tk/tcltklib.c (lib_eventloop_core): replace CHECK_INTS with
rb_thread_check_ints(). Because current code can't be compiled.
Fri Jun 10 16:38:13 2011 NARUSE, Yui <naruse@ruby-lang.org>
* encoding.c (rb_locale_charmap): When ruby process is run as Windows
Service the console codepage is not set, GetConsoleCP returns 0.
So on such environment, use GetACP().
http://blogs.msdn.com/b/michkap/archive/2005/02/08/369197.aspx
patched by Rafal Bigaj [ruby-core:36832] [Bug #4854]
Fri Jun 10 14:34:24 2011 Koichi Sasada <ko1@atdot.net>
* common.mk: restore TESTRUN_SCRIPT to "$(srcdir)/test.rb".
TESTRUN_SCRIPT is used by "make run", "make gdb" and so on.
Fri Jun 10 13:01:24 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/ruby/test_module.rb (TestModule#remove_rake_mixins): remove all
module related to Rake.
Fri Jun 10 09:52:38 2011 Eric Hodel <drbrain@segment7.net>
* encoding.c: Mention that Encoding.compatible? can work with more
than just Strings.
Fri Jun 10 02:25:53 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych.rb: updating version to match released gem.
Fri Jun 10 01:06:29 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/bigdecimal (BigDecimal_to_i): Integer#** may return flonum.
Fri Jun 10 00:35:12 2011 Tadayoshi Funaba <tadf@dotrb.org>
* complex.c (string_to_c_internal): uses rb_reg_nth_match;
* rational.c (string_to_r_internal): ditto.
Fri Jun 10 00:25:03 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* gc.c: remove an unused declaration.
Fri Jun 10 00:24:04 2011 Tadayoshi Funaba <tadf@dotrb.org>
* rational.c (string_to_r): Rational#** may return flonum.
Thu Jun 9 23:57:53 2011 Tanaka Akira <akr@fsij.org>
* io.c: fix IO.copy_stream interrupt handling.
based on the patch by Eric Wong. [ruby-core:36156]
* vm_core.h (rb_thread_call_with_gvl): don't declare here.
* thread.c: include internal.h.
(rb_thread_execute_interrupts): new function.
* internal.h (rb_thread_execute_interrupts): declared.
(rb_thread_call_with_gvl): declared.
Thu Jun 9 23:34:01 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* gc.c (rb_objspace_call_finalizer): use rb_typeddata_is_kind_of() for
type check to get rid of a double free when main Thread has singleton
class. [ruby-core:36741] [Bug #4828]
* thread.c (rb_obj_is_mutex): add a new utility function.
* vm.c (rb_obj_is_thread): ditto.
Thu Jun 9 22:53:49 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* test/ruby/test_thread.rb (TestThread#test_kill_thread_subclass):
add test for Thread.kill with Thread subclass instance.
Thu Jun 9 22:31:47 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* test/ruby/test_thread.rb (TestThread#test_kill_wrong_argument):
test for [ruby-core:35086].
partially forward porting r31402 from ruby_1_9_2 branch.
Thu Jun 9 18:36:00 2011 Kenta Murata <mrkn@mrkn.jp>
* string.c: Fix the ambiguous description of the behavior of
rb_str_aref_m with a range. It returns nil when the beginning of
the range is greater than the end of the string rather than the range.
Thu Jun 9 10:57:03 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/visitors/to_ruby.rb: Hash subclasses can be read
from YAML files.
* ext/psych/lib/psych/visitors/yaml_tree.rb: Hash subclasses can be
dumped to YAML files.
* test/psych/test_hash.rb: corresponding test.
Thu Jun 9 09:18:51 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/visitors/to_ruby.rb: Ruby modules can be loaded
from YAML files.
* ext/psych/lib/psych/visitors/yaml_tree.rb: Ruby modules can be
dumped to YAML files.
* test/psych/test_class.rb: corresponding test.
Thu Jun 9 09:05:04 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/visitors/to_ruby.rb: Ruby classes can be loaded
from YAML files.
* ext/psych/lib/psych/visitors/yaml_tree.rb: Ruby classes can be
dumped to YAML files.
* test/psych/test_class.rb: corresponding test.
Wed Jun 8 21:38:57 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* cont.c (root_fiber_alloc): set root fiber's status RUNNING.
in cont_mark() only RUNNING fiber's machine stack is marked.
root fiber's status should be RUNNING at the beginning regardless of
FIBER_USE_NATIVE. [ruby-core:36735] fixes #4827
Tue Jun 7 20:50:11 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* doc/irb/irb.rd: fix typo. patch by Nobuhiro IMAI.
[Bug #4843] [ruby-dev:43639]
* doc/irb/irb.rd.ja: ditto.
* doc/ChangeLog-YARV: ditto.
Tue Jun 7 18:52:55 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* lib/rubygems/user_interaction.rb (Gem::StreamUI#tty?): IO#tty? of
Windows has been fixed at r29969.
* test/rubygems/test_gem_stream_ui.rb: now can run tests.
Tue Jun 7 18:36:41 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/rubygems/test_gem.rb (TestGem#{test_self_user_home_userprofile,
test_self_user_home_user_drive_and_path}): should simply ignore
meaningless tests instead of skipping them.
Tue Jun 7 18:15:00 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_set_program_name):
should show some messages when skipping tests.
Tue Jun 7 13:59:47 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/date/date_core.c (date_s_today, datetime_s_now): check the
result of localtime_r().
Tue Jun 7 13:36:51 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/tk/extconf.rb: use $defs not $CPPFLAGS to get rid of
command line escape issues on Windows. fixed #4835.
Tue Jun 7 03:18:45 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* test/ruby/test_io.rb (TestIO#test_s_{,bin}write): do not create a
file under /tmp. [Bug #4846]
Mon Jun 6 22:51:43 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* cont.c: use #if FIBER_USE_NATIVE instead of #ifdef.
you can suppress use of setcontext for Fiber with compile option
-DFIBER_USE_NATIVE=0
Mon Jun 6 21:59:23 2011 Tadayoshi Funaba <tadf@dotrb.org>
* test/date/test_switch_hitter.rb: added a test.
Mon Jun 6 21:37:45 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: added notes.
Mon Jun 6 21:02:12 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: flattened format to strftimev.
* ext/date/date_core.c (date_strftime_internal): taints run.
Mon Jun 6 15:10:17 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* include/ruby/{defines,missing}.h (rb_infinity, rb_nan): move from
defines.h to missing.h. (couldn't use RUBY_EXTERN there.)
Mon Jun 6 14:35:48 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/rdoc/test_rdoc_markup_pre_process.rb (TestRDocMarkupPreProcess#
{test_include_file,test_include_file_encoding_incompatible}): no
need to write such workaround. don't hide the bug of ruby. (and the
bug is already fixed.)
Mon Jun 6 14:11:11 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/date/date_core.c (valid_jd_sub): need to convert from VALUE to
double.
* ext/date/date_core.c (offset_to_sec): get rid of a compiler warning.
Mon Jun 6 14:09:08 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* include/ruby/defines.h (rb_infinity, rb_nan): export for Windows.
Mon Jun 6 10:54:45 2011 Shota Fukumori <sorah@tubusu.net>
* lib/test/unit.rb(Test::Unit::Runner#puke):
Add overriding from MiniTest::Unit#puke. This reverts minitest's fix
that skip messages are hidden when not verbose mode (-v option).
To hide skip messages, use --hide-skip option instead.
Mon Jun 6 10:52:13 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/net/http.rb: don't use autoload.
Mon Jun 6 09:39:43 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/parser.c (parse): release event objects to plug memory
leak. Thanks Mark J. Titorenko!
Sun Jun 5 23:26:15 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* eval.c: remove rb_thread_stop_timer_thread function declaration.
Instead, include vm_core.h.
* process.c: ditto.
Sun Jun 5 21:38:51 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c (thread_timer): add to care a spurious wakeup.
When native_cond_timedwait() return 0 by spurious wakeup, we
don't have to neither 1) call timer_thread_function and 2)
exit the timer thread.
Sun Jun 5 17:50:01 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c (m_real_cwyear): new. derived from m_cwyear.
* ext/date/date_strftime.c: trivial changes.
Sun Jun 5 17:22:01 2011 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/config_list.in: add new options for tcltklib.
Sun Jun 5 10:06:50 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_tmx.h: now does not place decoded data. allows to
access indirectly via functions on demand.
* ext/date/date_strftime.c: ditto.
* ext/date/date_core.c: ditto.
* ext/date/date_core.c ({d|dt}_lite_to_s): use strftime.
Sun Jun 5 06:22:02 2011 Tadayoshi Funaba <tadf@dotrb.org>
* NEWS: wrote about changes of date.
Sat Jun 4 16:59:26 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c (d_lite_inspect): changed the format.
* ext/date/date_core.c: refactoring and fixing some bugs.
Sat Jun 4 04:04:41 2011 NARUSE, Yui <naruse@ruby-lang.org>
* test/rubygems/test_gem_commands_which_command.rb:
"missing" exists on ruby's top source directory. [Bug #4815]
Fri Jun 3 21:48:12 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/rubygems/test_case.rb: Refix for test-all in separate directory.
r31147 + r31151.
Fri Jun 3 20:58:47 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/date/date_core.c (d_lite_plus): get rid of compiler warnings.
Fri Jun 3 20:56:40 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* include/ruby/missing.h, numeric.c (round): moved prototype of round()
from numeric.c to missing.h. (note: round() is C99 feature, so ruby
provides it if not exist in C runtime.)
Fri Jun 3 20:42:04 2011 Shota Fukumori <sorah@tubusu.net>
* lib/test/unit/parallel.rb: Keep $stdin, $stdout before run testcase
and restore after run. Because some test break $stdin, $stdout.
Fixes [Bug #4433] [ruby-core:35353]
Fri Jun 3 19:58:14 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* io.c (io_fflush): windows -- call fsync() only when the FD is tied to
file, because if the FD is pipe, it blocks.
Fri Jun 3 09:27:31 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/net/http.rb (URI::HTTP#request_uri): return nil when the uri
is path-rootless form. Bug #4759
Thu Jun 2 23:51:03 2011 James Edward Gray II <jeg2@ruby-lang.org>
* lib/csv.rb: Improve the line ending detection algorithm
patch by Alexey).
Thu Jun 2 20:05:57 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* io.c (rb_io_s_write, rb_io_s_binwrite): return!!!
Thu Jun 2 16:29:34 2011 Shota Fukumori <sorah@tubusu.net>
* io.c: Add File.write, File.binwrite. [Feature #1081] [ruby-core:21701]
* test/ruby/test_io.rb: Test for File.write, File.binwrite.
* NEWS: News for above.
Thu Jun 2 12:33:09 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* io.c (io_fflush, rb_io_flush): need to fsync() when ruby calls
internal flush. [ruby-core:36670] [Bug #4813]
Thu Jun 2 07:56:24 2011 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/tcltklib.c: reduce CPU power required by an eventloop.
Tue May 31 21:28:33 2011 Tanaka Akira <akr@fsij.org>
* test/ruby/test_signal.rb (TestSignal#test_signal_requiring):
redirect stderr to null device.
Thu Jun 2 00:45:26 2011 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/extconf.rb: fix for uninitialized global variables.
[Ruby 1.9 - Bug #4811]
Wed Jun 1 21:57:08 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c (native_sleep): fix 1000times calculation error.
this is a regression since r31457. [Bug #4808] [ruby-dev:43606]
Wed Jun 1 17:19:16 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c: remove unused macro.
Wed Jun 1 15:42:18 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (peek_n): new macro to see next nth char.
Wed Jun 1 15:40:46 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* tool/rbinstall.rb (gem): fix for rubygems change.
Wed Jun 1 14:07:57 2011 Ryan Davis <ryand-ruby@zenspider.com>
* lib/minitest/*: Imported minitest 2.2.2 (r6281)
* test/minitest/*: ditto
Wed Jun 1 12:35:50 2011 Ryan Davis <ryand-ruby@zenspider.com>
* lib/rubygems*: Import rubygems 1.8.5 (released @ 137c80f)
* test/rubygems: Ditto
Wed Jun 1 12:34:00 2011 Kenta Murata <mrkn@mrkn.jp>
* NEWS: add new features of bigdecimal.
Wed Jun 1 09:41:14 2011 Eric Hodel <drbrain@segment7.net>
* lib/cgi/util.rb: Improve documentation. Patch by Kuba Fietkiewicz.
[Ruby 1.9 - Bug #4775]
* lib/cgi/core.rb: ditto
Wed Jun 1 09:26:05 2011 Eric Hodel <drbrain@segment7.net>
* lib/mathn.rb: Improve documentation and attach it to Numeric.
Modified from patch by Anil V. [Ruby 1.9 - Bug #4762]
Wed Jun 1 09:21:30 2011 Eric Hodel <drbrain@segment7.net>
* lib/prime.rb: Indent examples enough to appear as code sections.
Note that Prime is Enumerable. [#4762]
Wed Jun 1 07:34:57 2011 Eric Hodel <drbrain@segment7.net>
* hash.c (key_i): Change rdoc from "the first occurrence" to "an
occurrence" since first occurrence is not a specification of
Hash#key. [Ruby 1.9 - Bug #4760]
Wed Jun 1 07:26:19 2011 Eric Hodel <drbrain@segment7.net>
* ext/pty/pty.c (pty_check): Restore "not reached" comment.
[Ruby 1.9 - Bug #4756]
Wed Jun 1 07:21:40 2011 Eric Hodel <drbrain@segment7.net>
* ext/zlib/zlib.c: Fix document-method declarations for set_sync and
set_comment. [Ruby 1.9 - Bug #4695]
Wed Jun 1 06:43:13 2011 Masaya Tarui <tarui@ruby-lang.org>
* load.c (loaded_feature_path): cut nonsense loop execution to fix
performance bug.
Wed Jun 1 01:16:02 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* class.c (rb_mix_module): implement Module#mix.
Wed Jun 1 01:15:12 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (io_encoding_set): should honor already set ecflags since it
might be set by mode option. fixed #4804
Wed Jun 1 00:34:04 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): remove unused
variable.
Wed Jun 1 00:32:00 2011 Kenta Murata <mrkn@mrkn.jp>
* ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): support instantiation from
a Float through Rational.
* ext/bigdecimal/bigdecimal.c (BigDecimal_new): ditto.
* test/bigdecimal/test_bigdecimal.rb (test_global_new_float): add a test for
the above changes.
* test/bigdecimal/test_bigdecimal.rb (test_new_with_float): ditto.
Wed Jun 1 00:07:00 2011 Kenta Murata <mrkn@mrkn.jp>
* ext/bigdecimal/bigdecimal.c (BigDecimal_coerce): support coerce with a
Rational. The precision used for instantiate a BigDecimal from the
given Rational is obtained from the receiver BigDecimal.
* test/bigdecimal/test_bigdecimal.rb (test_coerce): add a test for the
above change.
Tue May 31 23:49:08 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c (offset_to_sec): fixed invalid validation.
Tue May 31 23:43:00 2011 Kenta Murata <mrkn@mrkn.jp>
* ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): replace the algorithm for
coercing from a Rational to stop requiring "bigdecimal/util.rb".
[ruby-core:34318]
* ext/bigdecimal/bigdecimal.c (GetVpValue): refactoring.
* ext/bigdecimal/bigdecimal.c (BigDecimal_new): support instantiation from a
Rational.
* test/bigdecimal/test_bigdecimal.rb (test_global_new_with_rational): add a
test for the above change.
* test/bigdecimal/test_bigdecimal.rb (test_new_with_rational): ditto.
Tue May 31 22:44:00 2011 Kenta Murata <mrkn@mrkn.jp>
* ext/bigdecimal/bigdecimal.c (BigDecimal_new): support instantiation a
BigDecimal object from an Integer.
* test/bigdecimal/test_bigdecimal.rb (test_new_with_integer):
add for testing the above change.
* ext/bigdecimal/bigdecimal.c (BigDecimal_global_new): replace its body
with a BigDecimal_new call.
* test/bigdecimal/test_bigdecimal.rb (test_global_new_with_integer):
add for testing the above change.
Tue May 31 22:24:39 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: use simple/complex mode instead of light/right mode.
* test/date/*.rb: followed the above changes.
Tue May 31 21:28:33 2011 Tanaka Akira <akr@fsij.org>
* test/ruby/test_signal.rb (TestSignal#test_signal_requiring):
initialize SIGINT handler.
Tue May 31 17:03:24 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* lib/net/http.rb, lib/net/protocol.rb: Allow to configure to wait
server returning '100 continue' response before sending HTTP request
body. See NEWS for more detail. See #3622.
Original patch is made by Eric Hodel <drbrain@segment7.net>.
* test/net/http/test_http.rb: test it.
* NEWS: Add new feature.
Tue May 31 14:17:49 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* io.c (rb_io_s_pipe): potential bug. the mode of read IO is set as
DEFAULT_TEXTMODE in call of io_set_encoding(), and of write IO is
also set as it in call of io_new_instance() via rb_protect().
so, if DEFAULT_TEXTMODE is not 0, we should check the result of
extract_binmode() and avoid crush of default IO mode and the result.
Tue May 31 13:00:17 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* strftime.c (rb_strftime_with_timespec): improved style consistency.
constified some variables.
* test/test_time.rb (TestTime#test_huge_precision): test for #4456.
Tue May 31 12:53:10 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/io/wait/test_io_wait.rb (TestIOWait#{test_nread,test_ready?,
test_wait}: give system some time to process the written data.
Tue May 31 12:40:49 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_io.rb (TestIO#test_open_mode): MUST release resources
explicitly. fix problem of r31671
Tue May 31 10:49:55 2011 NARUSE, Yui <naruse@ruby-lang.org>
* vm_exec.c: remove conditions for clang
because clang version 3.0 (trunk 132165) doesn't need them.
Mon May 30 22:19:33 2011 Tanaka Akira <akr@fsij.org>
* test/ruby/test_signal.rb (TestSignal#test_signal_requiring): don't
close stderr.
Mon May 30 20:22:00 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_signal.rb (TestSignal#test_signal_requiring): small
but critical typo of r31642. sorry...
[Bug #4798] [ruby-core:36550]
Mon May 30 15:44:16 2011 NARUSE, Yui <naruse@ruby-lang.org>
* insns.def (opt_mult): as r31805, volatile it.
Without this, clang -O fails calculation.
* numeric.c (fix_mul): ditto.
* rational.c (f_imul): ditto.
Mon May 30 10:26:51 2011 NARUSE, Yui <naruse@ruby-lang.org>
* numeric.c (int_pow): make sure to assign the result of x * z.
If xz is optimized out, the value won't overflow.
Sun May 29 23:17:29 2011 NARUSE, Yui <naruse@ruby-lang.org>
* re.c (rb_reg_match): fix rdoc of Regexp#=~.
patched by Tsuyoshi Sawada. [Bug #4781]
Sun May 29 23:10:42 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/webrick/https.rb (WEBrick::HTTPRequest#parse_uri):
keep parse_uri as private. patched by okkez. [Bug #4773]
Sun May 29 17:53:03 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* numeric.c: add #include "internal.h" for rb_big_uminus() prototype.
Sun May 29 15:09:05 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* numeric.c (flo_round): fix for negative value.
Sun May 29 02:16:53 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/net/http/utils.rb (TestNetHTTPUtils#teardown): add nil check.
Sun May 29 00:22:40 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* process.c (before_exec, after_exec): change from macro to function.
Sat May 28 19:30:17 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* process.c (before_exec, after_exec): change SIGPIPE handler to SIG_DFL
before calling execve(). Because r31760 reintroduced an issue that
system() may hang up (i.e. [ruby-dev:12261]).
* process.c (save_sigpipe, restore_sigpipe): new.
Sat May 28 16:08:16 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* signal.c (Init_signal, default_handler): change default SIGPIPE handler
from empty function to SIG_IGN. [ruby-dev:43215]
* signal.c (sigpipe): removed.
Sat May 28 03:04:27 2011 NARUSE, Yui <naruse@ruby-lang.org>
* io.c (fill_cbuf): return MORE_CHAR_SUSPENDED when cbuf is not empty.
Sat May 28 02:22:48 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* string.c (rb_str_bytesize): rb_str_bytesize() should use LONG2NUM().
Patch by Nikolai Weibull. [Bug #4789] [ruby-core:36511]
Sat May 28 02:06:26 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* io.c (fill_cbuf): Fix test-all crash.
Sat May 28 00:58:40 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* lib/ostruct.rb (method_missing): Handle [] and []= correctly.
Based on a patch by Caius Durling, bug #4179 [ruby-core:33792]
Fri May 27 23:56:54 2011 Kouhei Sutou <kou@cozmixng.org>
* test/rexml/test_core.rb (Tester::test_text_frozen): split frozen
string test. refs #4783
Fri May 27 22:46:23 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* tool/rbinstall.rb (gem): install gemspec of json. fixed #4784
Fri May 27 22:45:10 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (validate_enc_binmode): do not clear textmode flag if
default. fixed #4732
* io.c (fill_cbuf): finish reading at EOF.
Fri May 27 11:31:51 2011 misfo <tedwardo2@gmail.com>
* lib/rexml/text.rb (REXML::Text#initialize): prevent an error
when passing a frozen string to REXML::Text.new
dup the string passed in instead of cloning so that it's frozen
state is ignored
Fri May 27 08:47:26 2011 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* thread.c (ppoll): typo bug fix.
Fri May 27 08:35:04 2011 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/lib/tk.rb: hang-up at exit before calling Tk.mainloop.
* ext/tk/lib/tk/extconf.rb: cannot make on MinGW [Ruby 1.9 - Bug #4141].
Thu May 27 00:34:07 2011 James Edward Gray II <jeg2@ruby-lang.org>
* lib/csv.rb: Enhance each() to support Enumerator.
Thu May 26 10:32:11 2011 James Edward Gray II <jeg2@ruby-lang.org>
* lib/csv.rb: Documentation improvements from Ysiad Ferreiras.
[Ruby 1.9 - Bug #4785]
Thu May 26 15:42:02 2011 Cezary Baginski <cezary.baginski@gmail.com>
* lib/xmlrpc/parser.rb (FaultException): fix to_s and inspect
* test/xmlrpc/parser.rb: test for the above
Wed May 25 11:54:31 2011 Eric Hodel <drbrain@segment7.net>
* ext/curses/curses.c: Remove color constants block.
[Ruby 1.9 - Bug #4748]
Wed May 25 09:56:45 2011 Eric Hodel <drbrain@segment7.net>
* ext/curses/curses.c: Add missing documentation for button state, MIN
and MAX comments. Add Curses. to TABSIZE= and ESCDELAY= methods.
[Ruby 1.9 - Bug #4747]
Wed May 25 09:35:31 2011 Eric Hodel <drbrain@segment7.net>
* lib/benchmark.rb: Restore nodoc for Benchmark::Job and
Benchmark::Report. [Ruby 1.9 - Bug #4726]
Wed May 25 09:29:38 2011 Eric Hodel <drbrain@segment7.net>
* lib/net/pop.rb: Hide implementation details from RDoc.
[Ruby 1.9 - Bug #4711]
Wed May 25 09:26:29 2011 Eric Hodel <drbrain@segment7.net>
* lib/net/ftp.rb: Add :nodoc: for private methods.
[Ruby 1.9 - Bug #4710]
Wed May 25 09:19:17 2011 Eric Hodel <drbrain@segment7.net>
* ext/zlib/zlib.c: Fix Document-method declarations. Improve
Zlib::GzipFile's method catalog. [Ruby 1.9 - Bug #4695]
Wed May 25 08:22:12 2011 Eric Hodel <drbrain@segment7.net>
* lib/erb.rb: Hide documentation for implementation details of ERB.
[Ruby 1.9 - Bug #4694]
Wed May 25 07:58:14 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/tempfile.rb (Tempfile.{mkdir,rmdir}): revert for backward
compatibility.
Wed May 25 07:13:12 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* spec/README: update the description.
Wed May 25 07:12:16 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/tempfile.rb (Tempfile.{lock,unlock}_tempfile): refactor.
Tue May 24 17:30:36 2011 NARUSE, Yui <naruse@ruby-lang.org>
* spec/README: fix typo.
patched by bowsersenior. https://github.com/ruby/ruby/pull/24
Tue May 24 07:06:34 2011 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/lib/tk.rb: fail to start Tk.mainloop (exit immediately) on
some environment (reported on [ruby-talk:381444]).
* ext/tk/lib/tk/canvas.rb: support creating a canvas item object from
an item ID number.
* ext/tk/lib/tk/image.rb: import documents which are pull-requested.
[Ruby 1.9 - Feature #4595]
* ext/tk/lib/tk/extconf.rb: search directories for 64bit library (e.g.
/usr/lib64), add some new configure options (see README.tcltklib),
and bug fix.
* ext/tk/lib/tk/README.tcltklib: modify docs for some new configure
options.
Tue May 24 04:01:46 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* lib/yaml.rb: switch default YAML engine to Psych, old syck engine
may be enabled via YAML::ENGINE.yamler = "syck". [ruby-core:36374]
Mon May 23 09:45:26 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
* include/ruby/defines.h (CASEFOLD_FILESYSTEM): Revert r30508. Forgot to
include this file in the commit r31692. __APPLE__ is not
CASEFOLD_FILESYSTEM again, from this time.
Mon May 23 10:01:02 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/ossl_asn1.c: Do not parse zero-tagged values as EOC. Do
not let current length become negative for infinite length constructed
values. Support constructed values of length zero. Added tests.
Mon May 23 09:19:53 2011 Eric Hodel <drbrain@segment7.net>
* lib/net/smtp.rb: Document Net::SMTP::Response. Patch by J.R. Garcia.
[Ruby 1.9 - Bug #4768]
Mon May 23 09:03:52 2011 Shota Fukumori <sorah@tubusu.net>
* lib/test/unit/parallel.rb: Never Ignore SIGINT. When received
Interrupt, immediately puts result and exit. [ruby-dev:43571]
* lib/test/unit.rb: When received Interrupt, wait results from workers
and collect them. [ruby-dev:43571]
Mon May 23 09:08:07 2011 Eric Hodel <drbrain@segment7.net>
* lib/mathn.rb: Improve documentation. Patch by Sandor Szucs.
[Ruby 1.9 - Bug #4767]
Mon May 23 08:45:55 2011 Eric Hodel <drbrain@segment7.net>
* lib/ostruct.rb: Improve documentation. Patch by Franklin Webber.
[Ruby 1.9 - Bug #4761]
Mon May 23 08:35:24 2011 Eric Hodel <drbrain@segment7.net>
* hash.c: Improve documentation of Hash#key. Patch by Utkarsh
Kukreti. [Ruby 1.9 - Bug #4760]
Mon May 23 08:32:59 2011 Eric Hodel <drbrain@segment7.net>
* enumerator.c: Improve documentation. Patch by Dave Copeland.
[Ruby 1.9 - Bug #4757]
Mon May 23 07:19:45 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* NEWS (openssl): Infinite length support. Different behavior of
Constructive and Primitive constructors.
Mon May 23 06:58:33 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/ossl_asn1.c: Forbid Constructives whose value is not an
Array to prevent segfault. Added test.
Mon May 23 06:33:17 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/ossl_asn1.c: Forbid Constructive without infinite
length. This also prevents a segfault. Added test and improved
documentation.
Mon May 23 05:58:14 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/ossl_asn1.c: Fix decoding of infinite length values.
Simplified ossl_asn1_decode0 by splitting it into three separate
functions. Add tests.
[Ruby 1.9 - Bug #4374][ruby-core:35123]
Mon May 23 04:03:46 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/ossl_asn1.c (ossl_asn1_initialize): Allow creation of
Constructives with an explicit tag_class parameter without
automatically setting tagging to :EXPLICIT. Fixes a bug when encoding
infinite length primitive values.
Mon May 23 04:03:46 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/ossl_asn1.c (ossl_asn1_cons_to_der): Add an additional
EOC for infinite length Constructives that are supposed to be encoded
with explicit tagging. Also tabify method correctly.
Mon May 23 03:44:39 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/ossl_asn1.c (ossl_asn1data_to_der): Remove redundant
flag tmp_cons.
Mon May 23 00:35:00 2001 Kenta Murata <mrkn@mrkn.jp>
* bignum.c (dump_bignum, bigmul1_balance, big_split, biglsh_bang),
(bigrsh_bang, big_split3, bigmul1_toom3, bigmul0): implement Toom3 (Toom-Cook)
multiplication.
* include/ruby/defines.h: add format prefixes for BDIGIT and BDIGIT_DBL.