From 05/03/2011 to 05/09/2011


07:22 PM Revision 31498: * 2011-05-10
07:22 PM Revision 31497: * lib/webrick/log.rb: Hide copyright info from ri
* lib/webrick/httpstatus.rb: ditto
* lib/webrick/htmlutils.rb: ditto
* lib/webrick/httpversion.rb: ditto
* lib/web...
drbrain (Eric Hodel)
12:35 PM Revision 31496: fixed indent.
tadf (tadayoshi funaba)
11:57 AM Revision 31495: * test/ruby/test_{complex,rational}.rb: added tests.
tadf (tadayoshi funaba)
11:31 AM Revision 31494: * complex.c (string_to_c_internal): a refactoring.
tadf (tadayoshi funaba)
09:35 AM Revision 31493: * string.c: Improve documentation for String#start_with? and
String#end_with?. fixes #4652
patched by Andrew Grimm <andrew.j.grimm at>
naruse (Yui NARUSE)
04:52 AM Revision 31492: * complex.c (string_to_c_internal): support scientific notation.
patched by Tinco Andringa.
[ruby-core:36046][Bug #4655]
mrkn (Kenta Murata)
02:53 AM Revision 31491: * 2011-05-09
02:53 AM Revision 31490: * numeric.c (int_ord): remove K&R style.
patched by Daehyub Kim. naruse (Yui NARUSE)


01:18 PM Revision 31489: * test/ruby/test_{complex2,complexrational}.rb: use skip.
* test/date/*.rb: ditto. tadf (tadayoshi funaba)
12:03 PM Revision 31488: never skip
tadf (tadayoshi funaba)
12:01 PM Revision 31487: fixed
tadf (tadayoshi funaba)
11:56 AM Revision 31486: * test/date/*.rb: NEVER SKIP.
tadf (tadayoshi funaba)
11:38 AM Revision 31485: * test/date/*.rb: reverted 31432.
tadf (tadayoshi funaba)
11:33 AM Revision 31484: * test/date/*.rb: reverted 31483.
tadf (tadayoshi funaba)
11:15 AM Revision 31483: Revert r31478.
In CRuby's test-all, skip is for something to be fixed.
When some external library is missing, it should silently ret...
naruse (Yui NARUSE)
10:46 AM Revision 31482: * thread_pthread.c (native_cond_timedwait): add to care EINTR.
* thread_pthread.c (thread_timer): remove EINTR check. kosaki (Motohiro KOSAKI)
10:08 AM Revision 31481: * lib/time.rb (xmlschema): avoid passing any negative numbers.
tadf (tadayoshi funaba)
09:41 AM Revision 31480: * ext/date/date_{parse,strptime}.c: introduced some macros.
tadf (tadayoshi funaba)
08:52 AM Revision 31479: revert r31474. we cann't call xmalloc under FGLOCK.
Thansk, nagachika-san. kosaki (Motohiro KOSAKI)
08:18 AM Revision 31478: * test/date/*.rb: use skip /w messages.
tadf (tadayoshi funaba)
08:06 AM Revision 31477: * ext/date/lib/date/format.rb (_httpdate): omitted to call zone_to_diff.
tadf (tadayoshi funaba)
07:58 AM Revision 31476: * ext/date/date_core.c (date_s_test_*): use macros.
tadf (tadayoshi funaba)
04:27 AM Revision 31475: fix a typo
01:54 AM Revision 31474: * thread_pthread.c (add_signal_thread_list): use xmalloc instead
of malloc.
* thread_pthread.c (remove_signal_thread_list): use xfree instead
of free.
kosaki (Motohiro KOSAKI)
01:50 AM Revision 31473: * thread_pthread.c: cleanup signal_thread_list related ifdef.
1) we don't have to use #ifdef FOO-PLATFORM directly 2) About
half #ifdef didn't care symbian properly.
kosaki (Motohiro KOSAKI)


08:21 PM Revision 31472: * test/io/wait/test_io_wait.rb: Linux socketpair(2) only support
AF_UNIX, but windows socketpair doesn't support it. we can't
avoid platform check. sigh!
kosaki (Motohiro KOSAKI)
03:17 PM Revision 31471: * 2011-05-08
03:17 PM Revision 31470: * test/io/wait/test_io_wait.rb: use Socket.pair instaed of pipe.
Windows can only treat a socket. kosaki (Motohiro KOSAKI)
02:57 PM Revision 31469: * test/io/wait/test_io_wait.rb: skip tests if the platform is
mswin. kosaki (Motohiro KOSAKI)
02:52 PM Revision 31468: * test/ruby/test_io.rb (TestIO#test_readpartial_lock),
(TestIO#test_read_lock): get rid of GVL fairness problem. nobu (Nobuyoshi Nakada)
01:44 PM Revision 31467: * thread.c (rb_fd_zero): remove redundant zero fill.
kosaki (Motohiro KOSAKI)
01:40 PM Revision 31466: * thread.c (rb_fd_init): remove volatile qualifier.
kosaki (Motohiro KOSAKI)
01:36 PM Revision 31465: * thread.c (rb_fd_init_copy): new internal api. It provide efficient
copy constructor semantics.
* thread.c (do_select): use rb_fd_init_copy().
kosaki (Motohiro KOSAKI)
01:22 PM Revision 31464: r31460 is wrong fix. fix it again.
kosaki (Motohiro KOSAKI)
10:47 AM Revision 31463: fix typos
09:28 AM Revision 31462: * thread_pthread.c (USE_MONOTONIC_COND): check the availability
more strictly.
* thread_pthread.h (rb_thread_cond_t): ditto.
nobu (Nobuyoshi Nakada)
06:22 AM Revision 31461: remove debugging code
kosaki (Motohiro KOSAKI)
06:20 AM Revision 31460: fix incorrect native_cond_signal call when deadlock was detected.
* thread.c (lock_func): timedwait don't touch cond_waiting and
cond_notifid variables.
kosaki (Motohiro KOSAKI)
06:17 AM Revision 31459: fix win32 native_cond_timedwait() makes SIGSEGV.
* thread_win32.h (rb_thread_cond_struct): add prev field instead of last.
(ie cond_event_entry is now using double ...
kosaki (Motohiro KOSAKI)
03:43 AM Revision 31458: fix mutex deadlock test hang-up.
* thread_win32.c (abs_timespec_to_timeout_ms): fix 1000x calculation
mistake. (ie fix hang-up native_cond_timedwait())
kosaki (Motohiro KOSAKI)


06:17 PM Revision 31457: sleep_cond use monotonic time if possible.
* thread_pthread.c (native_thread_init): change sleep_cond
attribute to monotonic.
* thread_pthread.c (native_sleep...
kosaki (Motohiro KOSAKI)
06:14 PM Revision 31456: update doc.
akr (Akira Tanaka)
05:50 PM Revision 31455: fix win32 compile error.
* thread_win32.c (RB_CONDATTR_CLOCK_MONOTONIC): define
* thread_pthread.c (RB_C...
kosaki (Motohiro KOSAKI)
05:39 PM Revision 31454: mutex: deadlock check timeout use monotonic time.
* thread_pthread.c (native_cond_timeout): new internal api.
it calculate a proper time for argument of native_cond_...
kosaki (Motohiro KOSAKI)
04:56 PM Revision 31453: * thread_pthread.c (get_ts): add monotonic clock capability.
* thread_pthread.c (rb_thread_create_timer_thread): use monotonic
clock if possible.
kosaki (Motohiro KOSAKI)
04:47 PM Revision 31452: * 2011-05-07
04:47 PM Revision 31451: * thread_pthread.h (rb_thread_cond_t): add clockid field. it's
no longer an alias of pthread_cond_t.
* thread_pthread.c: adapt new rb_thread_cond_t type.
* thread.c (mutex_alloc): ...
kosaki (Motohiro KOSAKI)
02:58 PM Revision 31450: * thread.c (rb_wait_for_single_fd): use ppoll() instead of poll()
if possible. based on a patch from Eric Wong. [ruby-core:36003]. kosaki (Motohiro KOSAKI)
02:18 PM Revision 31449: * remove nanosleep check. we no longer use it.
r20124 removed last usage. kosaki (Motohiro KOSAKI)
02:02 PM Revision 31448: set properties.
nobu (Nobuyoshi Nakada)
01:36 PM Revision 31447: * ext/syck/rubyext.c (mktime_do): extra digits are not used.
nobu (Nobuyoshi Nakada)
08:44 AM Revision 31446: * ext/syck/rubyext.c (mktime_do): remove unused variable offset.
* ext/syck/syck.h: use #ifdef instead of #if DEBUG. naruse (Yui NARUSE)
08:38 AM Revision 31445: * ext/date/date_core.c (DAY_IN_NANOSECONDS): refix: 31438.
check with LONG_MAX and cast as long; without this the calculation
will be done as int and overflow.
naruse (Yui NARUSE)
06:19 AM Revision 31444: * 2011-05-06
06:19 AM Revision 31443: * ext/syck/rubyext.c (mktime_do): avoid buffer overrun, by
silently ignoring lesser significant digits. Required buffer
length can be computable so you might at first think ...
shyouhei (Shyouhei Urabe)
06:19 AM Revision 31442: ChangeLog for it
shyouhei (Shyouhei Urabe)
06:19 AM Revision 31441: YAML.load time correctly parse usecs smaller than 1 fixes #4571
Signed-off-by: URABE, Shyouhei <> shyouhei (Shyouhei Urabe)


02:09 PM Revision 31440: * test/ruby/test_io.rb (TestIO#test_O_CLOEXEC): fix false positive
detection. kosaki (Motohiro KOSAKI)
01:26 PM Revision 31439: * thread_pthread.c (native_mutex_reinitialize_atfork): removed
unused macro.
* thread_win32.c (native_mutex_reinitialize_atfork): ditto.
kosaki (Motohiro KOSAKI)
01:09 PM Revision 31438: * ext/date/date_core.c (DAY_IN_NANOSECONDS): long long int is not
available on all platforms. nobu (Nobuyoshi Nakada)
08:39 AM Revision 31437: * eval.c (frame_func_id): store result of method_entry_of_iseq() to
cfp->me because method_entry_of_iseq() might become expensive. nagachika (Tomoyuki Chikanaga)
06:32 AM Revision 31436: * eval.c (frame_func_id): __method__ return different name from
methods defined by Module#define_method with a same block.
[ruby-core:35386] fixes #4606
* eval (method_entry_o...
nagachika (Tomoyuki Chikanaga)


11:08 PM Revision 31435: * 2011-05-05
11:07 PM Revision 31434: fix capture to avoid doing a sub on the useconds when parsing dates
01:14 PM Revision 31433: * benchmark/bm_vm4_pipe.rb: Reduced iterations. Too slow benchmark
is bad.
* benchmark/bm_vm4_thread_pass.rb: ditto.
kosaki (Motohiro KOSAKI)
01:10 PM Revision 31432: * test/date/test_date_base.rb: don't use no message skip().
kosaki (Motohiro KOSAKI)
12:13 PM Revision 31431: * benchmark/bm_io_select2.rb: reduce number of using file
descriptors. because gdb need some fds. kosaki (Motohiro KOSAKI)
11:29 AM Revision 31430: * io.c (Init_IO): Added File::CLOEXEC constant. [ruby-core:22893] [Feature #1291]
* test/ruby/test_io.rb (TestIO#test_o_cloexec): test for File::CLOEXEC. kosaki (Motohiro KOSAKI)
10:02 AM Revision 31429: * thread.c (rb_wait_for_single_fd): Fix wrong return value.
* test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb
(TestWaitForSingleFD#test_wait_for_closed_pipe): test for it.
kosaki (Motohiro KOSAKI)
09:50 AM Revision 31428: * ext/-test-/wait_for_single_fd: New. for testing
rb_wait_for_single_fd() internal function.
The patch was written by Eric Wong. [ruby-core:35991]
* test/-ext-/wait...
kosaki (Motohiro KOSAKI)
06:26 AM Revision 31427: fix a typo
03:47 AM Revision 31426: * thread.c (rb_wait_for_single_fd): Added POLLNVAL check.
based on a patch from Eric Wong at [ruby-core:35991]. kosaki (Motohiro KOSAKI)
02:54 AM Revision 31425: * io.c (rb_f_select): remove useless ifdef.
kosaki (Motohiro KOSAKI)
02:44 AM Revision 31424: * ext/socket/init.c (wait_connectable): fix error handling code.
RB_WAITFD_OUT is turned on even though an error occur. kosaki (Motohiro KOSAKI)
01:13 AM Revision 31423: * ext/readline/readline.c (readline_event): use rb_wait_for_single_fd().
The patch was written by Eric Wong. [Ruby 1.9 - Feature #4531] kosaki (Motohiro KOSAKI)
01:12 AM Revision 31422: * ext/socket/init.c (wait_connectable): use rb_wait_for_single_fd().
The patch was written by Eric Wong. [Ruby 1.9 - Feature #4531]
* ext/socket/init.c (try_wait_connectable, wait_conne...
kosaki (Motohiro KOSAKI)
01:09 AM Revision 31421: * ext/io/wait/wait.c (io_wait): use rb_wait_for_single_fd().
The patch was written by Eric Wong. [Ruby 1.9 - Feature #4531] kosaki (Motohiro KOSAKI)
01:07 AM Revision 31420: * thread.c (rb_wait_for_single_fd): new. poll(2) based backend for rb_wait_for_single_fd().
Now only Linux uses it.
The patch was written by Eric Wong. [Ruby 1.9 - Feature #4531]
kosaki (Motohiro KOSAKI)
12:59 AM Revision 31419: * thread.c (rb_wait_for_single_fd): new.
* thread.c (select_single): select(2) based backend for rb_wait_for_single_fd().
* io.c (make_writeconv): use rb_wai...
kosaki (Motohiro KOSAKI)


11:06 PM Revision 31418: * ext/psych/lib/psych/visitors/yaml_tree.rb: fix time dumping so that
Syck can load UTC times that Psych dumps. tenderlove
10:37 PM Revision 31417: * 2011-05-04
10:37 PM Revision 31416: * thread.c (rb_fd_copy): fix wrong argument.This issue was pointed
out by Eric Wong. [ruby-core:35982] kosaki (Motohiro KOSAKI)
11:31 AM Revision 31415: * test/fileutils/test_fileutils.rb (TestFileUtils#test_chmod_symbol_mode):
Skip sticky bit test if the platform is FreeBSD. It doesn't allow to
change sticky bit if a target is regular file.
kosaki (Motohiro KOSAKI)
09:31 AM Revision 31414: * test/date/test_date.rb (TestDate#test_coerce):
test for [ruby-core:35127]. yugui (Yuki Sonoda)
04:45 AM Revision 31413: fix typos and remove some whitespaces

Also available in: Atom