Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 10219ff621
Fetching contributors…

Cannot retrieve contributors at this time

8512 lines (5127 sloc) 285.637 kb
Sat May 14 05:02:58 2011 Eric Hodel <drbrain@segment7.net>
* lib/uri.rb: Add toplevel documentation. Patch by Vincent Batts.
[Ruby 1.9 - Bug #4690]
Sat May 14 04:19:06 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* NEWS: Describe altered behaviour for RSA and DSA public key
encoding. [Ruby 1.9 - Bug #4421, Bug #4422]
[ruby-core:35327,35328]
Sat May 14 02:57:52 2011 Eric Hodel <drbrain@segment7.net>
* lib/ipaddr.rb (unless Socket): Document valid*? methods. Patch by
Sebastian Martinez. [Ruby 1.9 - Feature #4687]
Sat May 14 02:54:04 2011 Eric Hodel <drbrain@segment7.net>
* lib/rexml/functions.rb: Add some documentation for REXML::Functions.
Patch by Sebastian Martinez. [Ruby 1.9 - Feature #4688]
Sat May 14 02:51:42 2011 Eric Hodel <drbrain@segment7.net>
* lib/resolv.rb: Hide private method and state-tracking constants from
RDoc. Patch by Mark Turner. [Ruby 1.9 - Feature #4691]
Fri May 13 19:23:21 2011 URABE Shyouhei <shyouhei@ruby-lang.org>
* numeric.c (flo_coerce): Add #flo_coerce documentation.
Patch by Sebastian Martinez.
https://github.com/ruby/ruby/pull/21
Fri May 13 18:42:22 2011 URABE Shyouhei <shyouhei@ruby-lang.org>
* README.EXT: fix typo. Patch by William Blackerby.
https://github.com/ruby/ruby/pull/19
* README.EXT.ja: ditto.
Fri May 13 15:22:34 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (rb_w32_select): check invalid handle before doing
select operations. see [ruby-dev:43513], [ruby-dev:43535]
Fri May 13 08:34:00 2011 Eric Hodel <drbrain@segment7.net>
* lib/rdoc/rdoc.rb: Output summary after documentation report.
* lib/rdoc/stats/normal.rb: Don't output information for users when
we're not on a TTY
Fri May 13 07:49:02 2011 Eric Hodel <drbrain@segment7.net>
* lib/fileutils.rb: Hide internal methods from RDoc. Patch by Darragh
Curran. [Ruby 1.9 - Bug #4684]
Fri May 13 07:36:23 2011 Eric Hodel <drbrain@segment7.net>
* lib/webrick/httpservlet/erbhandler.rb: Add documentation.
Fri May 13 07:04:33 2011 Eric Hodel <drbrain@segment7.net>
* lib/mathn.rb: Fix indentation. Patch by Jason Dew.
[Ruby 1.9 - Feature #4682]
Fri May 13 06:50:43 2011 Eric Hodel <drbrain@segment7.net>
* lib/mathn.rb: Add documentation. Patch by Jason Dew. [Ruby 1.9 -
Feature #4667]
Fri May 13 05:44:19 2011 Eric Hodel <drbrain@segment7.net>
* lib/logger.rb (class Logger): Document Logger#datetime_format.
Patch by Sergio Gil Pérez de la Manga. [Ruby 1.9 - Bug #4678]
Fri May 13 05:39:11 2011 Eric Hodel <drbrain@segment7.net>
* re.c (Init_Regexp): Document option constants. Patch by Vincent
Batts. [Ruby 1.9 - Bug #4677]
* lib/uri/common.rb (module URI): Documentation for URI. Patch by
Vincent Batts. [Ruby 1.9- Bug #4677]
* lib/uri/ftp.rb (module URI): ditto
* lib/uri/generic.rb (module URI): ditto
* lib/uri/http.rb (module URI): ditto
* lib/uri/https.rb (module URI): ditto
* lib/uri/ldap.rb (module URI): ditto
* lib/uri/ldaps.rb (module URI): ditto
* lib/uri/mailto.rb (module URI): ditto
* process.c (Init_process): Document Process constants. Patch by
Vincent Batts. [Ruby 1.9- Bug #4677]
Fri May 13 05:16:38 2011 Eric Hodel <drbrain@segment7.net>
* lib/rss/atom.rb (module RSS): Document URIs. Patch by Mark Turner.
[Ruby 1.9 - #4671]
* lib/rss/rss.rb (module RSS): Document exception classes. Patch by
Mark Turner. [Ruby 1.9 - #4671]
Fri May 13 02:15:18 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* io.c (select_internal): remove unused variable (interrupt_flag).
Thu May 12 18:24:34 2011 Kouhei Sutou <kou@clear-code.com>
* configure.in: limit to "T" type for prefix of external symbols
because x86_64-w64-mingw32-gcc on Debian GNU/Linux generates the
following symbol:
0000000068483390 D _GLOBAL__F__conftest_external
Approved by nobu.
Thu May 12 14:50:52 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/dl/test_base.rb (Fiddle::LIBC_SO): its always msvc*.dll on
mswin/mingw.
Thu May 12 14:47:53 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* lib/mkmf.rb (Logging.postpone): copy only when tmporary logfile
exists.
Thu May 12 12:24:22 2011 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* ext/openssl/ossl_ssl.c: By trunk@31346, function check of SSLv2 is executed.
However, the problem is not revised in this.
This adds the control of using function of SSLv2 in made macro by function check.
Thu May 12 08:10:46 2011 Eric Hodel <drbrain@segment7.net>
* lib/set.rb (class Set): Add nodoc to internal-use methods. Patch
by Pete Higgins. [Ruby 1.9 - Bug #4665]
Thu May 12 08:01:14 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/ossl_pkey_ec.c: Allow encryption when PEM-encoding
Elliptic Curve private keys.
[ruby-core:35329] [Bug #4423]
Thu May 12 07:54:59 2011 Eric Hodel <drbrain@segment7.net>
* object.c (rb_obj_equal): Add documentation. Patch by Vincent Batts.
[Ruby 1.9 - Bug #4664]
* lib/rexml: ditto
* lib/mkmf.rb: ditto
* ext/socket/lib/socket.rb: ditto
Thu May 12 07:30:08 2011 Eric Hodel <drbrain@segment7.net>
* Various .document files: Update .document files to match files which
have documentation.
Thu May 12 07:18:45 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/ossl_pkey_dsa.c: Use generic X.509 SubjectPublicKeyInfo
format for PEM-encoding DSA public keys.
[ruby-core:35328] [Bug #4422]
Thu May 12 06:27:31 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/ossl_pkey_rsa.c: Use generic X.509 SubjectPublicKeyInfo
format for encoding RSA public keys.
[ruby-core:35327] [Bug #4421]
Wed May 11 19:45:27 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
* lib/forwardable.rb: support 'delegate :foo => :bar' for to meet
by specification of RDOC.
Wed May 11 08:36:38 2011 Eric Hodel <drbrain@segment7.net>
* lib/webrick: Add documentation for WEBrick::HTTPAuth
Wed May 11 03:06:35 2011 Eric Hodel <drbrain@segment7.net>
* lib/rss.rb: Add documentation for RSS. Patch by Steve Klabnik.
[Ruby 1.9 - Bug #4663]
Tue May 10 14:50:32 2011 Shota Fukumori <sorah@tubusu.net>
* lib/test/unit.rb: Add option for hiding skip messages when test
ends. #4657
* test/testunit/test_hideskip.rb, test/testunit/test4test_hideskip.rb:
test for above.
Tue May 10 10:53:04 2011 Eric Hodel <drbrain@segment7.net>
* common.mk (rdoc): Add rdoc-coverage rule
Tue May 10 09:13:21 2011 Eric Hodel <drbrain@segment7.net>
* lib/webrick: Add Documentation
Tue May 10 04:22:09 Eric Hodel <drbrain@segment7.net>
* 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/webrick/version.rb: ditto
* lib/webrick/httpauth/userdb.rb: ditto
* lib/webrick/httpauth/authenticator.rb: ditto
* lib/webrick/accesslog.rb: ditto
Mon May 9 20:57:13 2011 Tadayoshi Funaba <tadf@dotrb.org>
* test/ruby/test_{complex,rational}.rb: added tests.
Mon May 9 20:29:44 2011 Tadayoshi Funaba <tadf@dotrb.org>
* complex.c (string_to_c_internal): a refactoring.
Mon May 9 18:33:05 2011 NARUSE, Yui <naruse@ruby-lang.org>
* string.c: Improve documentation for String#start_with? and
String#end_with?. fixes #4652
patched by Andrew Grimm <andrew.j.grimm at gmail.com>
Mon May 9 13:49:00 2011 Kenta Murata <mrkn@mrkn.jp>
* complex.c (string_to_c_internal): support scientific notation.
patched by Tinco Andringa. https://github.com/ruby/ruby/pull/16
[ruby-core:36046][Bug #4655]
Mon May 9 11:52:48 2011 NARUSE, Yui <naruse@ruby-lang.org>
* numeric.c (int_ord): remove K&R style.
patched by Daehyub Kim. https://github.com/ruby/ruby/pull/17
Sun May 8 22:17:24 2011 Tadayoshi Funaba <tadf@dotrb.org>
* test/ruby/test_{complex2,complexrational}.rb: use skip.
* test/date/*.rb: ditto.
Sun May 8 21:02:31 2011 Tadayoshi Funaba <tadf@dotrb.org>
* test/ruby/test_{complex2,complexrational}.rb: NEVER SKIP.
Sun May 8 21:01:21 2011 Tadayoshi Funaba <tadf@dotrb.org>
* test/date/test_date_base.rb: fixed.
Sun May 8 20:54:11 2011 Tadayoshi Funaba <tadf@dotrb.org>
* test/date/*.rb: NEVER SKIP.
Sun May 8 20:37:33 2011 Tadayoshi Funaba <tadf@dotrb.org>
* test/date/*.rb: reverted 31432.
Sun May 8 20:32:43 2011 Tadayoshi Funaba <tadf@dotrb.org>
* test/date/*.rb: reverted 31483.
Sun May 8 19:39:16 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c (native_cond_timedwait): add to care EINTR.
* thread_pthread.c (thread_timer): remove EINTR check.
Sun May 8 19:04:15 2011 Tadayoshi Funaba <tadf@dotrb.org>
* lib/time.rb (xmlschema): avoid passing any negative numbers.
Sun May 8 18:40:03 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_{parse,strptime}.c: introduced some macros.
Sun May 8 17:17:13 2011 Tadayoshi Funaba <tadf@dotrb.org>
* test/date/*.rb: use skip /w messages.
Sun May 8 17:04:55 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/lib/date/format.rb (_httpdate): omitted to call zone_to_diff.
Sun May 8 16:56:19 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c (date_s_test_*): use macros.
Sun May 8 10:24:16 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* 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.
Sun May 8 05:19:37 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* 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!
Sun May 8 00:13:05 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/io/wait/test_io_wait.rb: use Socket.pair instead of pipe.
Windows can only treat a socket.
Sat May 7 22:43:48 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_fd_zero): remove redundant zero fill.
Sat May 7 22:38:04 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_fd_init): remove volatile qualifier.
Sat May 7 22:34:29 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_fd_init_copy): new internal api. It provide efficient
copy constructor semantics.
* thread.c (do_select): use rb_fd_init_copy().
Sat May 7 15:18:06 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
fix incorrect native_cond_signal call when deadlock was detected.
* thread.c (lock_func): decrement cond_waiting if timeout was happen.
Sat May 7 18:28:37 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* thread_pthread.c (USE_MONOTONIC_COND): check the availability
more strictly.
* thread_pthread.h (rb_thread_cond_t): ditto.
Sat May 7 15:15:10 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
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 linked list instead of single)
* thread_win32.c (cond_event_entry): add prev field.
* thread_win32.c (__cond_timedwait): remove entry properly if timeout
was happen.
* thread_win32.c (native_cond_signal): change for double linked list.
* thread_win32.c (native_cond_broadcast): ditto.
* thread_win32.c (native_cond_initialize): ditto.
Sat May 7 12:41:04 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
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())
Sat May 7 03:14:13 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
sleep_cond use monotonic time if possible.
* thread_pthread.c (native_thread_init): change sleep_cond
attribute to monotonic.
* thread_pthread.c (native_sleep): use native_cond_timeout().
* thread_pthread.c (native_cond_timeout): add overflow care.
* thread_win32.c (native_cond_timeout): ditto.
Sat May 7 02:49:12 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
fix win32 compile error.
* thread_win32.c (RB_CONDATTR_CLOCK_MONOTONIC): define
RB_CONDATTR_CLOCK_MONOTONIC always.
* thread_pthread.c (RB_CONDATTR_CLOCK_MONOTONIC): ditto.
Sat May 7 02:29:41 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
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_timedwait().
* thread_win32.c (native_cond_timeout): ditto.
* thread_pthread.c (thread_timer): use native_cond_timeout()
instead of get_ts.
* thread.c (lock_func): ditto.
* thread_pthread.c (get_ts): removed. use native_cond_timeout().
* thread.c (init_lock_timeout): ditto.
Sat May 7 01:54:21 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c (get_ts): add monotonic clock capability.
* thread_pthread.c (rb_thread_create_timer_thread): use monotonic
clock if possible.
Sat May 7 01:43:37 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* 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): ditto.
* thread_win32.c (native_cond_initialize): ditto.
* configure.in: add check for pthread_cond_attr_setclock() and
clockid_t type.
Fri May 6 23:29:47 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_wait_for_single_fd): use ppoll() instead of poll()
if possible. based on a patch from Eric Wong. [ruby-core:36003].
Fri May 6 23:13:43 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* configure.in: remove nanosleep check. we no longer use it.
r20124 removed last usage.
Fri May 6 22:35:56 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/syck/rubyext.c (mktime_do): extra digits are not used.
Fri May 6 17:43:07 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/syck/rubyext.c (mktime_do): remove unused variable offset.
* ext/syck/syck.h: use #ifdef instead of #if DEBUG.
Fri May 6 16:27:33 2011 NARUSE, Yui <naruse@ruby-lang.org>
* 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.
Fri May 6 15:01:11 2011 URABE Shyouhei <shyouhei@ruby-lang.org>
* 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 of
allocating enough memory space on the fly using alloca(). That
is a wrong idea because when using alloca there is always risk
of integer overflow. A function that accepts outer-process
resources like this should not blindly trust its inputs. In
this particular case we just want to generate milliseconds
resolution by strtod() so the string in question needs no more
length than what we originally have. Ignoring lesser
significant digits should suffice I believe.
Fri May 6 14:25:53 2011 Tinco Andringa <mail@tinco.nl>
* ext/syck/rubyext.c (mktime_do): YAML.load time correctly parse
usecs smaller than 1 fixes #4571
Thu May 5 23:08:32 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/ruby/test_io.rb (TestIO#test_O_CLOEXEC): fix false positive
detection.
Thu May 5 22:23:34 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c (native_mutex_reinitialize_atfork): removed
unused macro.
* thread_win32.c (native_mutex_reinitialize_atfork): ditto.
Thu May 5 22:09:39 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/date/date_core.c (DAY_IN_NANOSECONDS): long long int is not
available on all platforms.
Thu May 5 17:36:31 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* eval.c (frame_func_id): store result of method_entry_of_iseq() to
cfp->me because method_entry_of_iseq() might become expensive.
Thu May 5 15:03:51 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* 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_of_iseq): new helper function. search control
frame stack for a method entry which has given iseq.
* test/ruby/test_method.rb: add tests for #4696
Wed May 4 22:13:09 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* benchmark/bm_vm4_pipe.rb: Reduced iterations. Too slow benchmark
is bad.
* benchmark/bm_vm4_thread_pass.rb: ditto.
Wed May 4 22:08:22 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/date/test_date_base.rb: don't use no message skip().
Wed May 4 21:11:28 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* benchmark/bm_io_select2.rb: reduce number of using file
descriptors. because gdb need some fds.
Wed May 4 20:22:12 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* 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.
Wed May 4 19:00:59 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* 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.
Wed May 4 18:46:39 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* 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_for_single_fd/test_wait_for_single_fd.rb: ditto.
Wed May 4 12:46:25 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_wait_for_single_fd): Added POLLNVAL check.
based on a patch from Eric Wong at [ruby-core:35991].
Wed May 4 11:51:01 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* io.c (rb_f_select): remove useless ifdef.
Wed May 4 11:42:47 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* ext/socket/init.c (wait_connectable): fix error handling code.
RB_WAITFD_OUT is turned on even though an error occur.
Wed May 4 10:12:39 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* ext/readline/readline.c (readline_event): use rb_wait_for_single_fd().
The patch was written by Eric Wong. [Ruby 1.9 - Feature #4531]
Wed May 4 10:10:28 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* 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_connectable_ensure):
removed.
Wed May 4 10:07:48 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* 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]
Wed May 4 10:01:27 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* 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]
Wed May 4 09:56:57 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* 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_wait_for_single_fd() instead of
rb_thread_fd_select().
* io.c (rb_io_wait_readable): ditto.
* thread.c (rb_thread_wait_fd_rw): ditto.
* io.c (wait_readable): removed.
* thread.c (init_set_fd): new helper function.
* include/ruby/io.h (RB_WAITFD_IN, RB_WAITFD_PRI, RB_WAITFD_OUT):
new constant for rb_single_wait_fd().
The patch was written by Eric Wong. [Ruby 1.9 - Feature #4531]
Wed May 4 08:04:59 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/visitors/yaml_tree.rb: fix time dumping so that
Syck can load UTC times that Psych dumps.
Wed May 4 07:33:00 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_fd_copy): fix wrong argument.This issue was pointed
out by Eric Wong. [ruby-core:35982]
Tue May 3 20:29:33 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* 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.
Tue May 3 18:23:57 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* test/date/test_date.rb (TestDate#test_coerce):
test for [ruby-core:35127].
Tue May 3 04:27:53 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* thread.c (rb_thread_select): preserve errno if no error
occurred.
Tue May 3 03:57:04 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/intern.h (rb_w32_fdcopy): add prototype. fixes
#4640
Mon May 2 01:02:04 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* lib/fileutils.rb (FileUtils#chmod): accept symbolic mode argument.
The patch was written by takkanm. [ruby-core:26029][Feature #2190]
* lib/fileutils.rb (FileUtils#fu_mode): new helper function.
* lib/fileutils.rb (FileUtils#symbolic_modes_to_i): ditto.
* lib/fileutils.rb (FileUtils#mode_mask): ditto.
* lib/fileutils.rb (FileUtils#user_mask): ditto.
* test/fileutils/test_fileutils.rb (TestFileUtils#test_chmod_symbol_mode):
new test for the above symbolic mode.
* test/fileutils/test_fileutils.rb (TestFileUtils#test_chmod_R): ditto.
Mon May 2 00:36:12 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* ext/socket/init.c (rsock_connect): add to care EINTR. based
on a patch from Eric Wong at [ruby-core:35621][Bug #4555]
Sun May 1 01:06:24 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_thread_select): release GVL while waiting select().
Sat Apr 30 23:10:15 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* win32/win32.c (rb_w32_fdcopy): New. This can copy even though
fdset size exceed FD_SETSIZE.
* include/ruby/intern.h (rb_fd_copy): use rb_w32_fdcopy()
Sat Apr 30 20:18:43 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (do_select): Change argument type to rb_fdset_t.
Now do_select() is free from unexpected hangup if
HAVE_RB_FD_INIT=1 [Bug #4636]
* thread.c (rb_thread_fd_select, rb_thread_wait_fd_rw):
adapt new argument type.
* thread.c (rb_thread_select): make dummy implementation.
Sat Apr 30 20:16:53 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_fd_copy): Change function argument. Now
rb_fd_copy() has fully copy semantics.
* include/ruby/intern.h: ditto.
Sat Apr 30 20:11:47 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* include/ruby/intern.h (rb_thread_select): mark as deprecated.
* ext/io/wait/wait.c (wait_readable): use rb_thread_fd_select
instead of rb_thread_select.
* ext/socket/init.c (wait_connectable0): ditto.
* ext/readline/readline.c (readline_event): ditto.
* io.c (rb_io_wait_readable, wait_readable, rb_io_wait_writable,
wait_writable): ditto.
Sat Apr 30 20:06:36 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (do_select): remove useless ifdef. time calculation
is not heavy weight.
Sat Apr 30 16:48:36 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* benchmark/bm_io_select3.rb: New.
Sat Apr 30 16:27:09 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* io.c (copy_stream_body, rb_io_s_copy_stream): move rb_fd_init()
from copy_stream_body to rb_io_s_copy_stream. fds of passing
rb_fd_term() have to be guaranteed initialized.
Sat Apr 30 16:13:17 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* benchmark/bm_io_select.rb, benchmark/bm_io_select2.rb: New.
based on a patch from Eric Wong at [Feature #4531]
Sat Apr 30 03:25:53 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/io/wait/test_io_wait.rb: New. for testing ext/io/wait.
the patch was written by Eric Wong. [Feature #4531]
Sat Apr 30 00:34:56 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* include/ruby/win32.h: remove redundant declaration of
rb_w32_time_subtract().
Sat Apr 30 00:16:40 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c (gvl_init): fix hangup if GVL_SIMPLE_LOCK=1.
We don't have to call mutex_unlock() before initialize it!
Fri Apr 29 13:15:15 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_win32.c (native_cond_timedwait): New. r31373 caused
win32 build failure.
* thread_win32.c (__cond_timedwait, abs_timespec_to_timeout_ms):
New helper functions.
* win32/win32.c (rb_w32_time_subtract): rename from subtract and
remove static.
Fri Apr 29 10:43:09 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* benchmark/bm_vm4_pipe.rb: Add two new benchmark for GVL
performance. They was written by Koichi Sasada.
* benchmark/bm_vm4_thread_pass.rb: ditto.
Fri Apr 29 10:25:31 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* vm_method.c (rb_clear_cache_by_class): Revert r29673. It made
a segmentation fault regression. [Bug #4289][ruby-core:34554].
Fri Apr 29 10:24:51 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (make_writeconv): do not add textmode newline decorator if any
newline decorator is set already. fixes #4618, fixes #4619
Fri Apr 29 10:17:42 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (lock_func): small cleanup.
Fri Apr 29 10:07:13 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_mutex_lock, lock_func): Avoid busy loop and
performance regression. bm_vm3_thread_mutex.rb performance
change from 109.064sec to 16.331sec. [Feature #4607]
* thread.c (init_lock_timeout): New helper function.
Thu Apr 28 16:15:49 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/{win32.c,dir.h} (rb_w32_uopendir): new API to pass UTF-8 path.
* win32/win32.c (opendir_internal, rb_w32_opendir): extract and merge
common part of rb_w32_opendir() and rb_w32_uopendir().
* dir.c (do_opendir, glob_helper): encoding.
* dir.c (dir_initialize, do_opendir): convert path to UTF-8 and call
rb_w32_uopendir() instead of rb_w32_opendir() on Windows.
fixes #4491, reported by Joey Zhou.
Thu Apr 28 15:32:53 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/dl/test_base.rb (DL::LIBC_SO): its always msvc*.dll on
mswin/mingw.
Thu Apr 28 06:07:06 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/csv.rb (CSV::open): suppress universal newline decorator.
fixes #4603
* lib/csv.rb (CSV.read): no mode is needed.
Thu Apr 28 06:06:56 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (rb_io_extract_modeenc, rb_f_backquote): set default text
mode. fixes #4619
* io.c (pipe_open): set universal newline decorator if needed.
Wed Apr 27 11:33:08 2011 NARUSE, Yui <naruse@ruby-lang.org>
* enc/trans/emoji_iso2022_kddi.trans: ISO-2022-JP-KDDI doesn't have
CP932 UDA. Another reason is emacs-mule: the implementation of
stateless-iso-2022-jp doesn't support beyond 94x94 (0x7fxx);
but CP932 UDA is in 7Fxx-92xx.
Wed Apr 27 07:42:44 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (STRIP): use proper toolchain. based on a patch
from Jon Forums at [ruby-core:35909]. fixes #4617
Wed Apr 27 01:20:59 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c (date_zone_to_diff): renamed.
* ext/date/date_parse.c: ditto.
* ext/date/date_strptime.c: ditto.
Wed Apr 27 01:16:59 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* encoding.c (enc_find): accept Encoding objects.
Wed Apr 27 00:55:56 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* transcode.c (econv_opts): add newline option.
* io.c (validate_enc_binmode, rb_io_extract_modeenc): set newline
decorator according to open mode.
* transcode.c (rb_econv_prepare_options): new function, to prepare
econv options with newline flags.
* include/ruby/encoding.h (ECONV_NEWLINE_DECORATOR_MASK): add.
Wed Apr 27 00:51:01 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* file.c (rb_file_truncate): fix function.
* include/ruby/win32.h (ftruncate, truncate, ftello, fseeko): non-64
versions on mingw are useless because they use int32_t. fixes #4564
Wed Apr 27 00:50:33 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: modified validation methods.
* ext/date/lib/date.rb: ditto.
Wed Apr 27 00:00:37 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c (dt_lite_set_tmx): should get df value.
Tue Apr 26 22:34:04 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/lib/date/format.rb (_iso8601): allowed day only civil
date. disallowed separatorless day only ordinal date.
Mon Apr 25 21:31:36 2011 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* ext/openssl/extconf.rb: Should check SSLv2_*method.
openssl compiled with "no-ssl2" the extconf don't fail
when running `make' having this compilation errors.
Patched by Laurent Arnoud. fixes #4562, #4556
Mon Apr 25 20:53:32 2011 Tajima, Akio <artonx@yahoo.co.jp>
* win32/win32.c (kill): accept 0 only sig is SIGINT #4596
Mon Apr 25 19:59:47 2011 Tajima, Akio <artonx@yahoo.co.jp>
* win32/win32.c (kill): accept 0 as pid, fixes #4596
Mon Apr 25 16:43:45 2011 NARUSE, Yui <naruse@ruby-lang.org>
* random.c (random_rand): remove unused variables.
* struct.c (rb_struct_define_without_accessor): ditto.
* strftime.c (rb_strftime_with_timespec): ditto.
* sprintf.c: ditto.
* time.c (time_asctime): remove useless GetTimeval().
* thread_pthread.c: cast to (void *) for %p.
Mon Apr 25 11:02:11 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/ripper/lib/ripper/sexp.rb: fix rdoc around sexp.
patched by Sho Hashimoto. fixes #4599
Mon Apr 25 08:24:04 2011 Shota Fukumori <sorah@tubusu.net>
* random.c (rb_f_rand, random_s_rand): RDocs for them.
Mon Apr 25 07:18:00 2011 Kenta Murata <mrkn@mrkn.jp>
* random.c (random_s_rand, Init_Random): Random.rand should behave as
Random::DEFAULT.rand rather than Kernel#rand.
* random.c (rand_range, random_rand): rand_range function extracted
from random_rand function.
* random.c (rb_f_rand): accept a Range argument as Random#rand
[ruby-dev:43427] #4605
Mon Apr 25 03:31:06 2011 Tadayoshi Funaba <tadf@dotrb.org>
* lib/time.rb: require 'date'.
* ext/date/lib/date/format.rb: removed require line.
Mon Apr 25 03:08:39 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/lib/date/format.rb: require 'date'.
Mon Apr 25 03:04:16 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/lib/date/format.rb (_iso8601): added a pattern.
Mon Apr 25 02:51:22 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/date/lib/date/format.rb: require 'date_core.so'.
date/format needs methods which are now in date_core.so.
This breaks make rdoc which uses Date._parse from time.rb.
Mon Apr 25 02:47:46 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/lib/date/format.rb (_iso8601): fixed a bug of regex.
Mon Apr 25 02:12:26 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/lib/date/format.rb: an adjustment of regex.
Mon Apr 25 01:58:50 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/lib/date/format.rb: omitted to call _parse.
Mon Apr 25 01:03:03 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* string.c (rb_to_id): remove unused variable.
Sun Apr 24 22:19:05 2011 Tadayoshi Funaba <tadf@dotrb.org>
* complex.c, rational.c: omitted some method calls.
Sun Apr 24 02:57:27 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_parse.c (n2i): takes long.
Sun Apr 24 02:51:06 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_parse.c: reverted.
Sun Apr 24 02:25:23 2011 NARUSE, Yui <naruse@ruby-lang.org>
* include/ruby/intern.h: pcc can't use __builtin_constant_p.
* vm_exec.c: change condition.
Sun Apr 24 01:58:01 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/date/date_core.c (leap_p): suppress warning: parentheses.
* ext/date/date_core.c (date_s__parse_internal): remove unused
variable "str".
* ext/date/date_parse.c (parse_ddd_cb): use RSTRING_LENINT.
* ext/date/date_strftime.c (date_strftime_with_tmx): remove unused
variable.
Sun Apr 24 00:34:23 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_parse.c: removed some unused macros. use strchr()
instead of index().
Sat Apr 23 21:29:42 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: replacement of implementation of
_parse. [experimental]
* ext/date/date_parse.c: new.
* ext/date/lib/date/format.rb: removed ruby version of _parse.
Fri Apr 22 12:04:15 2011 NARUSE, Yui <naruse@ruby-lang.org>
* array.c (rb_ary_sort_bang): fix rdoc.
patched by burningTyger. https://github.com/ruby/ruby/pull/11
Fri Apr 22 11:49:49 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/xmlrpc/create.rb (XMLRPC::Create#conv2value):
XML-RPC's int is 32bit int, and Fixnum also may be beyond 32bit.
* lib/xmlrpc/create.rb (XMLRPC::Create#conv2value):
XML-RPC doesn't allow Infinity and NaN.
http://www.xmlrpc.com/spec
Fri Apr 22 04:16:14 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/parser.c (parse): strings from psych have proper taint
markings.
* test/psych/test_tainted.rb: test for string taint
Thu Apr 21 01:30:02 2011 NARUSE, Yui <naruse@ruby-lang.org>
* random.c (rb_f_srand): fix rdoc: srand(0)'s 0 is a seed.
[ruby-core:35833] fixes #4590
Thu Apr 21 01:01:28 2011 Masaya Tarui <tarui@ruby-lang.org>
* win32/win32.c (CreateChild): maximum length of lpCommandLine is
32,768 characters, including the Unicode terminating null character.
Wed Apr 20 21:32:11 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_strptime.c (date__strptime_internal): do not
overwrite local variables.
Wed Apr 20 14:41:28 2011 NARUSE, Yui <naruse@ruby-lang.org>
* string.c (rb_str_each_line): check string's length when compare
separator and string. [ruby-core:35815] fixes #4586
Wed Apr 20 00:02:13 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* misc/ruby-mode.el (ruby-parse-partial): use position of open paren.
Tue Apr 19 01:00:21 2011 Tajima Akio <artonx@yahoo.co.jp>
* test/ruby/test_io.rb (TestIO#test_cross_thread_close_fd):
skip cross thread pipe close if windows
Mon Apr 18 12:15:46 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_range.rb (TestRange#test_step_ruby_core_35753):
avoid float error. [ruby-core:35804]
Sun Apr 17 00:20:14 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_{core,strftime}.c: use struct tmx instead of vtm.
* ext/date/date_tmx.h: new.
Sat Apr 16 22:23:52 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_strftime.c (date_strftime_wo_timespec): changed
the way of validation of locale modifiers.
Sat Apr 16 21:55:12 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: replacement of implementation of
_strptime. [experimental]
* ext/date/date_strptime.c: new.
* ext/date/lib/date/format.rb: removed ruby version of _strptime.
Sat Apr 16 10:18:30 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* vm.c (Init_VM): suppress warning: "OPT_BASIC_OPERATIONS" is not
defined.
Fri Apr 15 23:41:18 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* ruby.c (proc_options): suppress warning:
"ALLOW_DEFAULT_SOURCE_ENCODING" is not defined.
Fri Apr 15 15:10:29 2011 Akinori MUSHA <knu@iDaemons.org>
* lib/uri/generic.rb (#route_from_path): Fix a bug where
URI('http://h/b/').route_to('http://h/b') wrongly returned './'
(should be '../b'). [Bug #4476]
Fri Apr 15 14:58:06 2011 Akinori MUSHA <knu@iDaemons.org>
* lib/fileutils.rb (FileUtils#touch): Fix corrupted output when
mtime is specified in addition to nocreate (and verbose).
ref [ruby-dev:43401]
Thu Apr 14 23:43:43 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* numeric.c (ruby_float_step): wrong loop condition.
fixes [ruby-core:35753], reported by Joey Zhou.
* test/ruby/test_range.rb (TestRange#test_step_ruby_core_35753):
test above change.
Thu Apr 14 22:48:12 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit.rb (Test::Unit::Options#setup_options): set possible
values for completion. no conversion is needed.
* lib/test/unit.rb (Test::Unit::Runner::Worker#initialize): use
positional arguments instead of keyword arguments.
* lib/test/unit.rb (Test::Unit::Runner#jobs_status): io/console may
not be available. use 80 as the last resort if IO#winsize and
COLUMNS are unavailable.
* lib/test/unit.rb (Test::Unit::Runner::Worker#died): rename using a
verb.
* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): check if worker
is signaled and use its exit status.
* lib/test/unit.rb (Test::Unit::Runner::Worker#dead): no longer @in
and @out are separated.
Thu Apr 14 21:23:29 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* variable.c (rb_autoload_p): search superclasses as same as actual
loading. fixes [ruby-core:35679]
Thu Apr 14 21:21:06 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/win32.h (frexp, modf): wrongly declared as pure in
mingw math.h.
* include/ruby/win32.h (ftruncate, truncate): mingw64 misses
prototypes.
* win32/win32.c (rb_w32_read): suppress warning.
Thu Apr 14 19:55:54 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* lib/fileutils.rb (FileUtils#touch): fix corrupted output when
FileUtils.touch(:nocreate => true, :verbose => true) case.
The patch was written by Hiroyuki Iwatsuki. [ruby-dev:43401]
Thu Apr 14 16:01:45 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* io.c (rb_f_syscall): suppress warning: "HAVE___SYSCALL" is not defined.
Thu Apr 14 00:41:09 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* thread.c (thread_fd_close_i): IOError exception should be assigned
to rb_thread_t::thrown_errinfo.
Wed Apr 13 20:12:26 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* io.c (rb_io_fdatasync): remove unused variable.
Tue Apr 12 20:54:12 2011 Tanaka Akira <akr@fsij.org>
* include/ruby/st.h: parenthesize macro arguments.
Tue Apr 12 19:19:50 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/uri/common.rb: avoid race condition. fixes #4572
Tue Apr 12 18:07:13 2011 TAKAO Kouji <kouji@takao7.net>
* ext/readline/extconf.rb: --disable-libedit to disable
libedit. fixes #4550
Tue Apr 12 10:37:39 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* include/ruby/win32.h: VC doesn't have ftruncate() and others, but
ruby needs HAVE_ macros to use our emulation functions.
(fix the problem of 31262)
Tue Apr 12 01:33:00 2011 Luis Lavena <luislavena@gmail.com>
* configure.in: properly evaluate existence of truncate, ftruncate
and ftello for MinGW. [ruby-core:35678]
* win32/win32.c: rename truncate, ftruncate and ftello to avoid
redefinitions.
* win32/win32.h: ditto.
Mon Apr 11 21:51:52 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* io.c: revert r31230. Because it made a regression.
[ruby-core:35631]
Mon Apr 11 21:49:18 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/ruby/test_io.rb: Added TestIO#test_cross_thread_close_stdio
and TestIO#test_cross_thread_close_fd.
The patch was written by Eric Wong. [ruby-core:35669]
Mon Apr 11 21:15:54 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* file.c (rb_group_member): kill 256K of stack usage.
the patch was written by Eric Wong. [ruby-core:35699]
Mon Apr 11 07:24:13 2011 Eric Hodel <drbrain@segment7.net>
* ext/openssl/ossl.c: Fix typo, document version constants.
Sun Apr 10 22:23:45 2011 Tanaka Akira <akr@fsij.org>
* include/ruby/ruby.h: parenthesize macro arguments.
Sat Apr 9 23:31:47 2011 Shota Fukumori <sorah@tubusu.net>
* ext/stringio/stringio.c (strio_each, strio_readlines):
Use `NUM2LONG` instead of `FIX2INT`. Fixes [ruby-dev:43395].
Sat Apr 9 23:22:27 2011 Shota Fukumori <sorah@tubusu.net>
* ext/stringio/stringio.c (strio_each):
Fix exception message and don't raise immediately if block is not given.
Fixes [ruby-dev:43394].
* test/stringio/test_stringio.rb (test_each_line_limit_0):
Fix test for above.
Sat Apr 9 21:54:15 2011 Shota Fukumori <sorah@tubusu.net>
* ext/stringio/stringio.c (strio_each, strio_readlines):
limit must not be zero. Fixes [ruby-dev:43392].
* test/stringio/test_stringio.rb: Add tests for above.
Sat Apr 9 18:01:36 2011 Tanaka Akira <akr@fsij.org>
* include/ruby/util.h: parenthesize macro arguments.
Fri Apr 8 16:01:56 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/stringio/stringio.c (strio_getline): check whether str is
a string when str and lim are given.
https://twitter.com/watson1978/status/56225052152168449
Thu Apr 7 20:03:52 2011 Tanaka Akira <akr@fsij.org>
* include/ruby/io.h: parenthesize macro arguments.
Wed Apr 6 21:08:31 2011 Tanaka Akira <akr@fsij.org>
* include/ruby/intern.h: parenthesize macro arguments.
Wed Apr 6 15:12:40 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/openssl/ossl_pkey_dh.c (ossl_dh_initialize):
pop pushed error after each try of reading. fixes #4550
* ext/openssl/ossl_pkey_dsa.c (ossl_dsa_initialize): ditto.
* ext/openssl/ossl_pkey_ec.c (ossl_ec_initialize): ditto.
Wed Apr 6 11:36:44 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/openssl/ossl_pkey_rsa.c (ossl_rsa_initialize):
pop pushed error after each try of reading. fixes #4550
Tue Apr 5 20:33:43 2011 Tanaka Akira <akr@fsij.org>
* include/ruby/encoding.h: parenthesize macro arguments.
Mon Apr 4 22:02:16 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* ext/io/nonblock/nonblock.c (io_nonblock_set): Avoid F_SETFL if
we're not changing the O_NONBLOCK bit. F_SETFL is an expensive
operation since it needs to affect all processes with the same
file object.
The patch is written by Eric Wong. [ruby-core:35556]
Mon Apr 4 21:41:26 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* io.c (rb_io_syswrite): While local FS writes are usually
buffered, the buffers can be full or the file opened with
O_SYNC. IO#syswrite can also be used on blocking IOs
(pipe/socket) just like IO#write.
The patch is written by Eric Wong. [ruby-core:35554]
Mon Apr 4 11:50:40 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/test_tempfile.rb: simply ignore platform dependent testcases
instead of skipping.
Sun Apr 3 22:52:22 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* ext/syslog/syslog.c: improve rdoc.
a patch by Jonas Pfenniger. [ruby-core:35592] fixes #4545
Sun Apr 3 22:10:09 2011 Tanaka Akira <akr@fsij.org>
* ext/zlib/zlib.c: parenthesize macro arguments.
Sun Apr 3 21:33:58 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* configure.in: disable fdatasync again on Mac OS X.
[ruby-core:35493][Bug #4500]
Sun Apr 3 21:16:20 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* io.c (io_reopen): IO#close releases GVL if possible.
close() may block for certain file types (NFS, SO_LINGER
sockets, inotify), so let other threads run. The patch was
created by Eric Wong [ruby-core:35555][Bug #4527]
* io.c (fptr_finalize): ditto.
* io.c (maygvl_fclose): new.
* io.c (nogvl_fclose): ditto.
* io.c (maygvl_close): ditto.
* io.c (nogvl_close): ditto.
Fri Apr 1 22:25:50 2011 Tanaka Akira <akr@fsij.org>
* ext/syslog/syslog.c: parenthesize macro arguments.
Fri Apr 1 18:53:06 2011 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
* lib/webrick/cookie.rb (WEBrick::Cookie.parse): 'white space is
permitted between tokens' according to RFC2965. Though 'Netscape
spec' does not define the syntax clearly, make it tolerant as a
server. As a real-world example, rest-client gem sends
'Cookie: foo=1;bar=2'
* test/webrick/test_cookie.rb (test_parse_non_whitespace): test it.
Fri Apr 1 13:19:20 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm_core.h (RUBY_VM_CHECK_INTS_TH): merge a patch by ko1
in [ruby-dev:43373].
Thu Mar 31 23:15:46 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* misc/ruby-mode.el (ruby-brace-to-do-end, ruby-do-end-to-brace):
adjust space between block beginning and block arguments
Thu Mar 31 20:42:05 2011 Tanaka Akira <akr@fsij.org>
* ext/strscan/strscan.c: parenthesize macro arguments.
Thu Mar 31 18:06:12 2011 Shugo Maeda <shugo@ruby-lang.org>
* vm_insnhelper.c (vm_get_ev_const): should ignore crefs with
the NODE_FL_CREF_PUSHED_BY_EVAL flag.
Thu Mar 31 16:49:56 2011 Shugo Maeda <shugo@ruby-lang.org>
* vm_insnhelper.c (vm_get_ev_const): search root cref properly.
[ruby-dev:43365]
Thu Mar 31 14:50:25 2011 Shugo Maeda <shugo@ruby-lang.org>
* eval.c (rb_mod_s_constants): should ignore crefs with
the NODE_FL_CREF_PUSHED_BY_EVAL flag.
Wed Mar 30 22:55:47 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* misc/ruby-mode.el (ruby-toggle-block): toggle do/end and {}.
* misc/ruby-mode.el (ruby-move-to-block): move to opening of
block.
Wed Mar 30 14:35:15 2011 Shugo Maeda <shugo@ruby-lang.org>
* vm_insnhelper.h (COPY_CREF): should copy
the NODE_FL_CREF_PUSHED_BY_EVAL flag to hide constants from
methods defined by class_eval. [ruby-dev:43365]
Wed Mar 30 00:24:53 2011 Tanaka Akira <akr@fsij.org>
* ext/stringio/stringio.c: parenthesize macro arguments.
Tue Mar 29 21:51:31 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* object.c (rb_String): Kernel#String should call to_str before to_s.
Tue Mar 29 10:28:08 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/webrick/test_filehandler.rb
(WEBrick::TestFileHandler#test_short_filename): the cgi doesn't exist
on current directory.
Tue Mar 29 05:19:57 2011 Tanaka Akira <akr@fsij.org>
* ext/socket/raddrinfo.c: parenthesize macro arguments.
Tue Mar 29 00:03:51 2011 Tajima Akio <artonx@yahoo.co.jp>
* test/webrick/test_filehandler.rb (test_short_filename):
read real short filename by cmd because smb mounted files
have different naming convention.
Mon Mar 28 11:38:08 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/date/date_core.c (date_s_today): use int for year.
* ext/date/date_core.c (datetime_s_now): ditto.
Mon Mar 28 11:07:41 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/extmk.rb: set MFLAGS from MAKEFLAGS when using nmake.
Mon Mar 28 11:07:00 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* common.mk (love): all you need is love.
Sun Mar 27 23:16:31 2011 Tanaka Akira <akr@fsij.org>
* ext/socket/ipsocket.c: parenthesize macro arguments.
Sun Mar 27 16:55:34 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* misc/ruby-mode.el (ruby-mode-map): remove unnecessary
binding. fixes
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468952
* misc/ruby-mode.el: suppress warnings at byte compile. fixes
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502926
Sun Mar 27 11:18:35 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: removed unused variables.
Sat Mar 26 15:16:09 2011 Tanaka Akira <akr@fsij.org>
* ext/socket/getaddrinfo.c: parenthesize macro arguments.
Sat Mar 26 05:27:34 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/date/lib/date/format.rb (DateTime#strftime): removed because
date_core defines it.
Fri Mar 25 21:59:45 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: should not force cast with macros.
Fri Mar 25 21:56:10 2011 Tanaka Akira <akr@fsij.org>
* ext/sdbm/init.c: parenthesize macro arguments.
Fri Mar 25 19:39:40 2011 Ben Walton <bwalton@artsci.utoronto.ca>
* test/test_syslog.rb:
Skip syslog tests that rely on LOG_PERROR unless it's defined
Instead of checking looking at the platform to determine if the tests
relying on LOG_PERROR should be run, look for the definition of the
constant as this will be robust against all platforms as long as the
underlying syslog.c code sets it up correctly.
This specifically addresses failures on Solaris 9.
Use LOG_PID instead of LOG_PERROR in Syslog.open test
LOG_PERROR isn't a POSIX option for syslog, so it fails on platforms
that don't define it. Solaris 9 and 10 are examples of this.
Use LOG_PID instead.
Fri Mar 25 15:42:17 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/sdbm/_sdbm.c (sdbm_open): use size_t.
* ext/syck/bytecode.c: ditto.
* ext/sdbm/_sdbm.c (delpair): use ptrdiff_t.
* ext/sdbm/init.c: use RSTRING_LENINT.
* ext/dl/handle.c: suppress warning: shorten-64-to-32.
* ext/strscan/strscan.c: ditto.
* ext/syck/emitter.c: ditto.
* ext/syck/implicit.c: ditto.
* ext/syck/syck.c: ditto.
* ext/syck/token.c: ditto.
Fri Mar 25 12:14:58 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/nkf/nkf-utf8/nkf.c: import nkf 7f18e30.
Fri Mar 25 11:49:29 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_process.rb (TestProcess#test_no_curdir): skip silently
on Windows, because this tests a platform specific feature and it'll
never be supported on ruby on Windows.
* test/ruby/test_dir_m17n.rb
(TestDir_M17N#test_filename_extutf8_invalid,
TestDir_M17N#test_filename_as_bytes_extutf8): ditto.
* test/open-uri/test_open-uri.rb
(TestOpenURI#test_find_proxy_case_sensitive_env): ditto.
* test/dl/test_handle.rb (DL::TestHandle#test_NEXT,
DL::TestHandle#test_DEFAULT): ditto.
Thu Mar 24 23:06:29 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm_insnhelper.c (vm_get_ev_const): should not autoload in
defined? mode.
* variable.c (rb_const_defined_0): fix autoloading base.
[ruby-core:35509]
Thu Mar 24 22:48:43 2011 Tanaka Akira <akr@fsij.org>
* ext/sdbm/_sdbm.c: parenthesize macro arguments.
Thu Mar 24 14:45:57 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/openssl/ossl.c: suppress warning: shorten-64-to-32.
* ext/openssl/ossl.h: ditto.
* ext/openssl/ossl_asn1.c: ditto.
* ext/openssl/ossl_bio.c: ditto.
* ext/openssl/ossl_bn.c: ditto.
* ext/openssl/ossl_cipher.c: ditto.
* ext/openssl/ossl_hmac.c: ditto.
* ext/openssl/ossl_ns_spki.c: ditto.
* ext/openssl/ossl_ocsp.c: ditto.
* ext/openssl/ossl_pkcs5.c: ditto.
* ext/openssl/ossl_pkey.c: ditto.
* ext/openssl/ossl_pkey_dh.c: ditto.
* ext/openssl/ossl_pkey_dsa.c: ditto.
* ext/openssl/ossl_pkey_ec.c: ditto.
* ext/openssl/ossl_pkey_rsa.c: ditto.
* ext/openssl/ossl_rand.c: ditto.
* ext/openssl/ossl_ssl.c: ditto.
* ext/openssl/ossl_x509ext.c: ditto.
* ext/openssl/ossl_x509name.c: ditto.
Thu Mar 24 11:48:19 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/openssl/ossl_rand.c (ossl_rand_egd_bytes): use NUM2INT because
the result is used with functions whose argument is int.
* ext/openssl/ossl_ssl.c (ossl_sslctx_setup): ditto.
* ext/openssl/ossl_x509store.c (ossl_x509store_set_purpose): ditto.
* ext/openssl/ossl_x509store.c (ossl_x509store_set_trust): ditto.
* ext/openssl/ossl_x509store.c (ossl_x509stctx_set_purpose): ditto.
* ext/openssl/ossl_x509store.c (ossl_x509stctx_set_trust): ditto.
Thu Mar 24 11:36:55 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/openssl/ossl_x509name.c: id_aref's type is ID.
Thu Mar 24 10:04:35 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/io/console/console.c (console_set_winsize):
suppress warning: shorten-64-to-32.
Thu Mar 24 09:56:19 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/openssl/ossl_ocsp.c (ossl_ocspreq_verify): flags is VALUE,
so it should use NUM2INT.
* ext/openssl/ossl_ocsp.c (ossl_ocspbres_verify): ditto.
Wed Mar 23 21:09:29 2011 Tanaka Akira <akr@fsij.org>
* ext/readline/readline.c: parenthesize macro arguments.
Wed Mar 23 08:07:33 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* numeric.c (flo_round): fix inaccurate results.
Wed Mar 23 00:12:16 2011 Tajima Akio <artonx@yahoo.co.jp>
* win32/win32.c: wait process real termination after reading
exit code. fixes #4518
Tue Mar 22 21:20:10 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/rubygems/test_case.rb: save current dir to @current_dir
before Dir.chdir.
Tue Mar 22 20:10:04 2011 Tanaka Akira <akr@fsij.org>
* ext/psych/parser.c: parenthesize macro arguments.
Tue Mar 22 20:10:01 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ruby_missing.h: parenthesize macro arguments.
Tue Mar 22 13:33:22 2011 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
* ext/openssl/lib/openssl/buffering.rb: removed circular require of
openssl.rb.
* ext/openssl/lib/openssl/*: removed following comment for transition
measures of avoiding circular require. No one claimed about this as
far as I know.
##
# Should we care what if somebody require this file directly?
# require "openssl"
Tue Mar 22 10:57:36 2011 NARUSE, Yui <naruse@ruby-lang.org>
* test/runner.rb: set Gem::TestCase's @@project_dir.
* lib/rubygems/test_case.rb: set Gem::TestCase's @@project_dir only
when it is not defined.
Tue Mar 22 09:38:19 2011 NARUSE, Yui <naruse@ruby-lang.org>
* numeric.c (flo_round): use pow instead of while-loop. fixes #4510
patched by Alex Young [ruby-core:35526]
Tue Mar 22 06:47:46 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/date/date_strftime.c (date_strftime_wo_timespec):
suppress warning: shorten-64-to-32.
Tue Mar 22 06:42:42 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/date/date_core.c: suppress warning: shorten-64-to-32.
Tue Mar 22 06:41:37 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/test/unit/parallel.rb: remove unused variable.
Tue Mar 22 06:19:42 2011 NARUSE, Yui <naruse@ruby-lang.org>
* enc/utf_16le.c: suppress warning: shorten-64-to-32.
* ext/dbm/dbm.c: ditto.
* ext/gdbm/gdbm.c: ditto.
* parse.y (Init_ripper): suppress warning: unused value.
Mon Mar 21 11:21:32 2011 Shota Fukumori <sorah@tubusu.net>
* lib/test/unit.rb: Refactoring. Unified if and elsif.
Sun Mar 20 23:09:34 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_strftime.c: checks duplicated modifiers.
Sun Mar 20 22:32:30 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_strftime.c: removed unused code and arguments.
Sun Mar 20 21:34:49 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: replacement of implementation of
strftime. It has some limitations that is same as Time's
one. [experimental]
* ext/date/date_strftime.c: new.
* ext/date/lib/date/format.rb: removed ruby version of strftime.
Sun Mar 20 12:43:12 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_x509store.c: parenthesize macro arguments.
Sun Mar 20 01:39:48 2011 Tajima Akio <artonx@yahoo.co.jp>
* hash.c (ruby_setenv): check env process block size with OS ver.
* win32/win32.c: export rb_w32_osver for above patch.
* include/ruby/win32.h: declare rb_w32_osver for Win32 Libs.
Sat Mar 19 18:35:05 2011 Tajima Akio <artonx@yahoo.co.jp>
* hash.c (ruby_setenv): calculate total env block size for win32.
* test/ruby/test_env.rb: add test for above patch.
Sat Mar 19 17:14:46 2011 Tajima Akio <artonx@yahoo.co.jp>
* hash.c (ruby_setenv): checking with max process environment
block size for Win32. 32767 for 2000/XP, 2003. if failed to
read the block, then checking with 5120 for earlier Windows.
Sat Mar 19 12:30:25 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_x509revoked.c: parenthesize macro arguments.
Fri Mar 18 20:44:36 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_x509req.c: parenthesize macro arguments.
Fri Mar 18 08:48:06 2011 Oleg Shaldybin <oleg.shaldybin@gmail.com>
* lib/fileutils.rb (FileUtils::Entry_#copy_file): updated FileUtils.cp
to still copy file permissions when :preserve is false (as cp does
this even when -p isn't set).
Fri Mar 18 00:59:38 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/win32ole/extconf.rb (create_docfile): removed. should not
modify source directory unnecessarily, platform dependent
documentation should be dealt with by rdoc. [ruby-core:35495]
Fri Mar 18 00:54:20 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/ruby.h (rb_funcall_passing_block): add prototype.
a patch by James M. Lawrence at [ruby-core:35501]
Wed Mar 17 06:23:31 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_x509name.c: parenthesize macro arguments.
Wed Mar 16 20:36:56 2011 Tanaka Akira <akr@fsij.org>
* ext/socket/ipsocket.c (init_inetsock_internal): raise an error on
listen(2) failure.
reported by Xavier Shay. [ruby-core:35505]
Wed Mar 16 15:06:21 2011 Eric Hodel <drbrain@segment7.net>
* ext/openssl/lib/openssl/buffering.rb (module OpenSSL): #flush should
not change sync mode on exception.
* test/openssl/test_buffering.rb: added
Wed Mar 16 13:45:28 2011 Eric Hodel <drbrain@segment7.net>
* ext/openssl/lib/openssl/buffering.rb: de-nest Buffering module
* ext/openssl/lib/openssl/buffering.rb: add RDoc
Wed Mar 16 08:40:39 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_x509ext.c: parenthesize macro arguments.
Tue Mar 15 18:34:27 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_x509crl.c: parenthesize macro arguments.
Tue Mar 15 09:49:03 2011 Shota Fukumori <sorah@tubusu.net>
* test/misc/test_ruby_mode.rb (test_singleton_class): Skip for Pending.
Mon Mar 14 21:20:44 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* test/ruby/test_require.rb (test_require_too_long_filename):
increase path length, because MAXPATHLEN is defined as 4096 on linux.
* test/ruby/test_require.rb (test_require_path_home_1): ditto.
* test/ruby/test_require.rb (test_require_path_home_2): ditto.
Mon Mar 14 19:54:37 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_x509cert.c: parenthesize macro arguments.
Sun Mar 13 18:11:28 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_x509attr.c: parenthesize macro arguments.
Sun Mar 13 16:07:58 2011 Shota Fukumori <sorah@tubusu.net>
* lib/pstore.rb: Fix don't raise "nested transaction" when thread_safe
is true. Patch by Masaki Matsushita (Glass_saga). [ruby-dev:43337]
* test/test_pstore.rb: Test for above.
Patch by Masaki Matsushita (Glass_saga) [ruby-dev:43337]
Sat Mar 12 04:12:41 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_ssl_session.c: parenthesize macro arguments.
Sat Mar 12 02:27:07 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c ({d,dt}_lite_marshal_load): checks the given argument.
Sat Mar 12 01:26:24 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: changed some directives.
Sat Mar 12 01:16:02 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c, ext/date/lib/*: moved rdoc descriptions.
Sat Mar 12 00:06:24 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/lib: moved from lib.
Fri Mar 11 23:32:38 2011 Tadayoshi Funaba <tadf@dotrb.org>
* lib/date/delta*: removed undocumented delta.
Fri Mar 11 18:42:43 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (find_executable0): should exclude directories.
Fri Mar 11 01:40:35 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* process.c (proc_getmaxgroups, proc_setmaxgroups): Process#maxgroups
and Process#maxgroups= now raise NotImplementedError if the
platform don't support supplementary groups concept.
Fri Mar 11 01:25:03 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* process.c (get_sc_ngroups_max): return -1 if platform don't
support NGROUPS_MAX.
Thu Mar 10 22:28:15 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_ssl.h: parenthesize macro arguments.
Thu Mar 10 21:59:37 2011 NARUSE, Yui <naruse@ruby-lang.org>
* parse.y (parser_encode_length): add exception as UTF8-MAC for
magic comment's emacs newline specifier
patched by James M. Lawrence [ruby-core:35476] fixes #4489
Thu Mar 10 16:00:22 2011 NARUSE, Yui <naruse@ruby-lang.org>
* parse.y (parser_encode_length): fix typo: the length of
"-dos" and "-mac" is not 5 but 4.
patched by James M. Lawrence [ruby-core:35476] fixes #4489
Thu Mar 10 10:52:01 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_require.rb: setting too long string to ENV causes
Errno::EINVAL on Windows. long path name errors may causes over
about 1024 bytes, then limit it about 4000 bytes.
Thu Mar 10 10:09:35 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/test/unit.rb (Test::Unit::Runner::Worker#read): fix for the case
when IO#read or IO#gets returns nil.
Thu Mar 10 07:12:03 2011 Ryan Davis <ryand-ruby@zenspider.com>
* lib/rubygems*: Import rubygems 1.6.2 (release candidate @ 2026fbb5)
* test/rubygems: Ditto
* test/runner.rb: Added test to load path to fix test requires.
Thu Mar 10 03:00:43 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_ssl.c: parenthesize macro arguments.
Wed Mar 9 23:51:26 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* test/ruby/test_io_m17n.rb (test_io_new_enc): "sjis" is now an alias
of Windows-31J.
Wed Mar 9 23:06:13 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* misc/ruby-mode.el (ruby-parse-partial): fix indent after aref.
Wed Mar 9 12:50:24 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/visitors/yaml_tree.rb: Rescue exceptions when
people implement the method method. Thanks Lin Jen-Shin.
[ruby-core:35255]
* test/psych/visitors/test_yaml_tree.rb: test for implementation of
method method.
Wed Mar 9 11:53:31 2011 NARUSE, Yui <naruse@ruby-lang.org>
* enc/shift_jis.c: Change SJIS as an alias of Windows-31J.
[ruby-dev:43027] fixes #4280
* enc/shift_jis.c: Add PCK as an alias of Windows-31J.
Wed Mar 9 00:45:29 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/extmk.rb: nmake substitutes all occurrences in macro.
* ext/extmk.rb: workaround for nmake.
Tue Mar 8 23:49:45 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* process.c (proc_setgroups): cleanup.
Tue Mar 8 23:40:30 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/misc/test_ruby_mode.rb: test for ruby-mode.el.
Tue Mar 8 23:27:38 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* process.c (get_sc_ngroups_max): try to use NGROUPS_MAX at first if
_SC_NGROUP_MAX is not defined.
Tue Mar 8 23:10:16 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* misc/ruby-mode.el (ruby-parse-partial): fix for array in block.
Tue Mar 8 21:44:49 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_rand.c: parenthesize macro arguments.
Tue Mar 8 16:45:31 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* hash.c (ruby_setenv): MSDN says that Windows XP or earlier limits
the total size of environment block to 5,120 chars. and on such
OS, putenv() causes SEGV. So, ruby should limit the size of an
environment variable to 5,120 bytes for workaround.
Tue Mar 8 15:57:20 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/rubygems/test_gem_spec_fetcher.rb
(TestGemSpecFetcher#test_cache_dir_escapes_windows_paths): cache_dir
may have driveletter and `:' for base of cache_dir itself, so need
to skip it for checking.
Tue Mar 8 12:30:06 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* misc/ruby-mode.el (ruby-deep-indent-paren-p, ruby-calculate-indent):
do not apply deep-indent inside parens at the beginning of
expressions.
Tue Mar 8 09:32:48 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (configure-ext, build-ext), ext/extmk.rb (extmake):
support parallel-make under ext.
Tue Mar 8 09:25:23 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* process.c (proc_setgroups): use getgrnam() if getgrnam_r() is
not available.
* process.c: RARRAY_LEN() returns long int.
Tue Mar 8 09:07:03 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (RUBY_REPLACE_TYPE): enclose in quotes for multiple
type names.
Tue Mar 8 01:43:11 2011 NARUSE, Yui <naruse@ruby-lang.org>
* process.c (get_sc_ngroups_max): define to wrap sysconf(3).
this also supports Windows which doesn't have sysconf(3).
* process.c (maxgroups): use get_sc_ngroups_max.
* process.c (proc_setmaxgroups): ditto.
Tue Mar 8 01:16:49 2011 NARUSE, Yui <naruse@ruby-lang.org>
* gc.c (rb_objspace): an initializer must be a constant.
Tue Mar 8 01:11:44 2011 NARUSE, Yui <naruse@ruby-lang.org>
* process.c (maxgroups): cast because sysconf(3)'s return value is long.
* process.c (proc_setmaxgroups): ditto.
* process.c (proc_setgroups): cast because RARRAY_LEN() is long.
Tue Mar 8 00:02:47 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_pkey_rsa.c: parenthesize macro arguments.
Mon Mar 7 22:59:39 2011 Shota Fukumori <sorah@tubusu.net>
* lib/pstore.rb: Delete variable @transaction and fix #4474. Patch by
Masaki Matsushita (Glass_saga).
* test/test_pstore.rb(test_thread_safe): Add test for #4474.
Mon Mar 7 21:31:38 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* process.c (proc_setgroups): replace getgrnam() with getgrnam_r()
because getgrnam() isn't thread safe.
Mon Mar 7 20:49:12 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* process.c (proc_getmaxgroups, proc_setmaxgroups): reflect
platform maxgroups limitation by default instead hardcoded 65536.
Mon Mar 7 17:13:00 2011 Yukihiro Matsumoto <matz@ruby-lang.org>
* gc.c (rb_gc_set_params): allow GC parameter configuration by
environment variables. based on a patch from funny-falcon at
https://gist.github.com/856296, but honors safe level.
Mon Mar 7 09:05:18 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* process.c: NUM2RLIM is defined but no getrlimit and setrlimit on
mingw.
Mon Mar 7 08:38:14 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/date/date_core.c (DateTimeData): should not use bare 'long long'
and 'long double', which are not defined by C89.
* ext/date/date_core.c (dt_lite_plus): get rid of overflow at casting
down double to integer.
Mon Mar 7 00:21:11 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* process.c (proc_getgroups): get rid of maxgroups dependency.
ngroups can be calculated dynamically.
Sun Mar 6 23:45:40 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* configure.in: rlim_t use standard RUBY_REPLACE_TYPE mechanism.
Sun Mar 6 23:26:07 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* process.c (proc_setmaxgroups): added negative value check.
This was suggested by Daniel Berger. Thanks Daniel!
[ruby-core:35426][Bug#4467]
Sun Mar 6 23:18:23 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* process.c (maxgroups, proc_setmaxgroups): increase max groups
limitation up to 65536.
Sun Mar 6 22:20:59 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_pkey_ec.c: parenthesize macro arguments.
Sun Mar 6 21:49:04 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* sample/list.rb (MyElem#initialize): initialize @head
explicitly. Otherwise -W2 option makes following warning.
"warning: instance variable @head not initialized".
This issue was founded by Andrew Grimm. Thanks Andrew!
[ruby-core:35435][Bug#4471]
Sun Mar 6 05:21:41 2011 NARUSE, Yui <naruse@ruby-lang.org>
* class.c: fix camelCase to snake_case in documentation code examples.
patched by Andrew Grimm. fixes Bug #4469
* marshal.c: ditto.
* proc.c: ditto.
* sample/biorhythm.rb: ditto.
* vm_eval.c: ditto.
* vm_method.c: ditto.
Sun Mar 6 03:22:27 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* io.c (io_cntl): use rb_thread_io_blocking_region() instead
rb_thread_blocking_region().
Sat Mar 5 22:54:36 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* include/ruby/intern.h: fix a typo of prototype declaration.
rb_mutex_try_lock -> rb_mutex_trylock [ruby-dev:43213]
Sat Mar 5 19:44:03 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/ruby/test_io.rb (TestIO#test_fcntl_lock): small clean up.
Sat Mar 5 01:33:46 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* io.c (io_cntl, nogvl_io_cntl): IO.fcntl() and IO.ioctl()
release GVL during calling kernel interface.
Suggested by Eric Wong. [ruby-core:35417][Bug #4463]
* test/ruby/test_io.rb (TestIO#test_fcntl_lock): add new test for
IO.fcntl().
Fri Mar 4 23:09:12 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* test/testunit/test_parallel.rb
(test_should_run_all_without_any_leaks): consider that the order of
testcase could change. [ruby-dev:43300] [Bug #4466]
Fri Mar 4 22:01:14 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* io.c (io_cntl): change 'cmd' type to int. ioctl and fcntl need to
be passed int.
* io.c (rb_io_ctl): ditto.
Fri Mar 4 21:10:40 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* configure.in: save warnflags. the patch is created by Eric Wong.
[Bug #4465]
Wed Mar 2 21:15:00 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_pkey_dsa.c: parenthesize macro arguments.
Thu Mar 3 22:10:26 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* process.c (check_exec_redirect_fd, check_exec_redirect): raise
ArgumentError if fd >= 3 on Windows because the feature is not
supported.
* test/ruby/test_process.rb (test_execopts_redirect): remove meaningless
argument.
Thu Mar 3 21:21:42 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_process.rb (test_execopts_redirect): redirecting fd
>= 3 is not supported on Windows, so should not specify such options
when calling spawn or others.
Thu Mar 3 18:59:04 2011 NARUSE, Yui <naruse@ruby-lang.org>
* string.c (rb_str_slice_bang): raise error when the string is frozen.
Thu Mar 3 14:25:19 2011 NARUSE, Yui <naruse@ruby-lang.org>
* strftime.c (STRFTIME): return 0 and ERANGE when precision is too
large. [ruby-dev:43284] fixes #4456
Thu Mar 3 00:46:51 2011 NARUSE, Yui <naruse@ruby-lang.org>
* addr2line.c (uleb128): cast the value to unsigned long.
* addr2line.c (fill_lines): print error when lseek fails.
Thu Mar 3 00:36:29 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/rexml/encoding.rb (REXML::Encoding#encoding=): store @encoding
a String which means the name of the encoding.
this partially revert r29646.
* lib/rexml/document.rb: follow above.
* lib/rexml/output.rb: ditto.
* lib/rexml/parsers/baseparser.rb: ditto.
* lib/rexml/source.rb: ditto.
* lib/rexml/xmldecl.rb: ditto.
Wed Mar 2 23:19:56 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* string.c (str_byte_substr): return nil for negative length.
Wed Mar 2 21:15:00 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_pkey_dh.c: parenthesize macro arguments.
Wed Mar 2 14:24:04 2011 Shota Fukumori <sorah@tubusu.net>
* lib/test/unit/parallel.rb: Fix name from `inclement_io` to
`increment_io`.
Wed Mar 2 14:06:01 2011 NARUSE, Yui <naruse@ruby-lang.org>
* string.c (rb_str_slice_bang): move treatments which is only needed
when the result is not nil.
Wed Mar 2 14:02:29 2011 Shota Fukumori <sorah@tubusu.net>
* test/testunit/test_parallel.rb(TestParallel#spawn_runner):
Fix outputing empty line in running test.
* test/testunit/tests_for_parallel/test_third.rb: Remove `sleep`
Tue Mar 1 22:29:10 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_pkey.h: parenthesize macro arguments.
Tue Mar 1 22:02:35 2011 Shota Fukumori <sorah@tubusu.net>
* lib/test/unit/parallel.rb: Fix number.
Tue Mar 1 21:48:22 2011 Shota Fukumori <sorah@tubusu.net>
* lib/test/unit/parallel.rb: For Windows.
* test/testunit/test_parallel.rb(TestParallelWorker#test_quit_in_test):
Fix for above specification change.
* test/testunit/test_parallel.rb(TestParallel#spawn_runner):
Fix outputing empty line in running test.
Tue Mar 1 20:51:57 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/ruby/test_system.rb (TestSystem#test_system_at):
remove tests for [bug#4396]. because we decided to reject this
ticket.
Tue Mar 1 19:46:19 2011 Tadayoshi Funaba <tadf@dotrb.org>
* test/date/{test_date.rb,test_date_attr.rb}: [ruby-dev:43280]
Tue Mar 1 18:40:38 2011 Ryan Davis <ryan@YPCMC09457>
* lib/rubygems*: Import rubygems 1.6.0 (released version @ 58d8a0b9)
* test/rubygems: Ditto
Tue Mar 1 16:22:22 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c: revert r30987 because it causes some failures in
test-all, especially webrick.
Tue Mar 1 15:59:53 2011 NARUSE, Yui <naruse@ruby-lang.org>
* string.c (rb_str_byteslice): the resulted encoding should keep
original encoding. this also fixes the encoding when the result
shares internal string. [ruby-core:35376]
Tue Mar 1 13:25:00 2011 Kenta Murata <mrkn@mrkn.jp>
* ext/bigdecimal/bigdecimal.c (VpMemAlloc): CVE-2011-0188.
Fixes a bug reported by Drew Yao <ayao at apple.com>
Tue Mar 1 10:34:39 2011 NARUSE, Yui <naruse@ruby-lang.org>
* string.c (rb_str_byteslice): Add String#byteslice. [ruby-core:35376]
Tue Mar 1 00:12:49 2011 Tajima Akio <artonx@yahoo.co.jp>
* include/ruby/win32.h: define WIN32 if neither _WIN64 nor WIN32
defined. it forces to use push/pop for pack(4) pragma.
Mon Feb 28 23:52:13 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* test/testunit/test_rake_integration.rb (test_with_rake_runner):
use assert_in_out_err for suppress messages.
Mon Feb 28 22:48:56 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* win32/win32.c (rb_w32_spawn): use shell if a commandline contain
double-quote character.
* win32/win32.c (is_internal_cmd): similar, use shell if a commandline
contain caret character.
* test/ruby/test_system.rb (TestSystem#test_system_at): fix
wrong test case. if system() invoke a command by using shell,
system() never return nil. Also, "" quotation must not appear
twice in a command line.
Mon Feb 28 17:36:57 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_pkcs7.c: parenthesize macro arguments.
Mon Feb 28 16:48:42 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_pkcs12.c: parenthesize macro arguments.
Mon Feb 28 16:28:15 2011 NARUSE, Yui <naruse@ruby-lang.org>
* string.c (tr_trans): when the hash for multibyte repl is empty,
tr is inverse mode, and a character doesn't much the table, the
character should be replaced by last replacement. Bug #4449
Mon Feb 28 16:38:56 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_ocsp.c: parenthesize macro arguments.
Mon Feb 28 13:02:15 2011 Danial Pearce <github@tigris.id.au>
* lib/tempfile.rb: Fix example file paths in docs for tempfile.
https://github.com/ruby/ruby/pull/5
Mon Feb 28 12:56:18 2011 URABE Shyouhei <shyouhei@ruby-lang.org>
* ext/openssl/ossl_cipher.c (ossl_cipher_init): typo fix.
https://github.com/ruby/ruby/pull/8
Mon Feb 28 12:28:13 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/date/date_core.c (datetime_s_now): localtime() and localtime_r()
required time_t pointer as 1st parameter, and tv_sec member of struct
timeval is long.
Mon Feb 28 11:57:40 2011 Shota Fukumori <sorah@tubusu.net>
* test/testunit/test_parallel.rb: Temporally disable test on Windows.
Mon Feb 28 07:28:35 2011 Shota Fukumori <sorah@tubusu.net>
* lib/test/unit.rb(Test::Unit::Runner#after_worker_quit):
method name more be natural English.
* lib/test/unit.rb(Test::Unit::Runner::Worker.launch):
IO.sync doesn't need. Should use "b" for mode.
Sun Feb 27 21:59:37 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/ruby/test_system.rb (TestSystem#test_system_redirect_win):
add test for system().
Sun Feb 27 18:00:09 2011 Shota Fukumori <sorah@tubusu.net>
* lib/test/unit.rb: Refactoring; Worker never use Hash for internal
storage.
* lib/test/unit.rb: Never use Kernel#spawn. Use IO.popen instead.
Sun Feb 27 13:16:48 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_ns_spki.c: parenthesize macro arguments.
Sat Feb 26 17:07:53 2011 Tadayoshi Funaba <tadf@dotrb.org>
* lib/date.rb: [Feature #4257]
* ext/date/extconf.rb: new
* ext/date/date_core.c: new
Sat Feb 26 16:10:23 2011 Shota Fukumori <sorah@tubusu.net>
* lib/test/unit.rb: --jobs-status won't puts over 2 lines.
* test/testunit/test_parallel.rb: Fix test for above.
* lib/test/*: refactoring.
Sat Feb 26 07:10:05 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/scalar_scanner.rb: fix parsing timezone's whose
whose format is (+/-)hhmm. Thanks Gon??alo Silva!
* test/psych/test_scalar_scanner.rb: test for bug.
Thu Feb 24 23:02:55 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_hmac.c: parenthesize macro arguments.
Thu Feb 24 22:53:10 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (love): for the birthday.
Thu Feb 24 22:51:54 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm.c (ruby_vm_destruct): run vm exit hooks after all objects are
destructed.
Thu Feb 24 14:40:33 2011 Shota Fukumori <sorah@tubusu.net>
* ChangeLog (vim): Modeline for vim
Thu Feb 24 13:39:25 2011 Shota Fukumori <sorah@tubusu.net>
* common.mk: Use $RUNRUBY for worker process.
* lib/test/unit.rb: Fix bug.
* lib/test/unit.rb: @options[:ruby](@opts[:ruby]) is now Array.
* test/testunit/parallel.rb: Fix for above.
Thu Feb 24 10:05:55 2011 Shota Fukumori <sorah@tubusu.net>
* test/testunit/tests_for_parallel/misc.rb: Fix bug in r30947.
* lib/test/unit.rb, lib/test/unit/assertions.rb: For this test.
Wed Feb 23 23:07:38 2011 Shota Fukumori <sorah@tubusu.net>
* test/testunit/test_parallel.rb, test/testunit/parallel/*:
Test for r30939.
* lib/test/unit.rb: For test.
* lib/test/parallel.rb: For test.
* lib/test/unit/testcase.rb: For test.
Wed Feb 23 22:05:13 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_engine.c: parenthesize macro arguments.
Tue Feb 22 23:15:17 2011 Shota Fukumori <sorah@tubusu.net>
* lib/test/unit.rb: Fix --ruby option doesn't effect.
* lib/test/unit.rb: Fix typo.
Tue Feb 22 21:39:28 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_digest.c: parenthesize macro arguments.
Tue Feb 22 14:34:26 2011 Shota Fukumori <sorah@tubusu.net>
* lib/test/unit.rb: Fix merging miss.
Tue Feb 22 12:27:26 2011 Shota Fukumori <sorah@tubusu.net>
* lib/test/unit.rb: Add new options; --jobs,-j,--ruby,--jobs-status,
--no-retry.
[Feature #4415] [ruby-dev:43226],[ruby-dev:43222],[ruby-core:35294]
* lib/test/unit/parallel.rb: Used at test/unit --jobs(-j) option.
* test/csv/test_serialization.rb: test/unit parallel running ready.
* test/rake/test_file_task.rb: test/unit parallel running ready.
Tue Feb 22 06:09:10 2011 Eric Hodel <drbrain@segment7.net>
* ext/syslog/syslog.c: Apply documentation patch from mathew murphy.
[Bug #4149]
Tue Feb 22 03:09:10 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych.rb: increase Psych to 1.1.0 for help with
debugging.
Tue Feb 22 03:04:46 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/streaming.rb: refactor streaming methods to a
module.
* ext/psych/lib/psych/stream.rb: extracted streaming specific methods
to a module.
* ext/psych/lib/psych/json/stream.rb: JSON stream inherits from
JSONTree and includes streaming methods.
* ext/psych/lib/psych/visitors/json_tree.rb: JSON does not support
object references, so remove object reference testing when building
JSON trees.
Tue Feb 22 02:41:51 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/visitors/yaml_tree.rb (accept): use Hash#key?
when looking up object references to err on the side of cache
misses.
Mon Feb 21 10:58:39 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/json/yaml_events.rb: refactoring JSON event
handling methods to a module for reuse.
* ext/psych/lib/psych/json/tree_builder.rb: AST builder uses JSON
event methods.
* ext/psych/lib/psych/json/stream.rb: stream emitter uses JSON event
methods.
Mon Feb 21 10:54:29 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/json/stream.rb: do not emit custom tags in maps
or sequences when emitting JSON.
* ext/psych/lib/psych/json/tree_builder.rb: do not emit custom tags in
sequences when emitting JSON.
* test/psych/json/test_stream.rb: tests for custom stream emits.
* test/psych/test_json_tree.rb: tests for JSON emits.
Mon Feb 21 10:05:10 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/json/ruby_events.rb: DRY up ruby event handling
for JSON.
* ext/psych/lib/psych/visitors/json_tree.rb: use ruby events module
* ext/psych/lib/psych/json/stream.rb: ditto
Mon Feb 21 10:01:01 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/json/stream.rb: fix JSON stream emits to use
double quotes during stream.
* test/psych/json/test_stream.rb: tests to reflect changes.
Mon Feb 21 00:38:56 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/ruby/test_system.rb (TestSystem#test_system_at):
add testcase for bug4396.
Sun Feb 20 19:59:32 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_cipher.c: parenthesize macro arguments.
Sun Feb 20 16:26:45 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* thread.c (exec_recursive): prevent temporary objects from GC.
* prevent temporary objects from GC, and should not use
RSTRING_PTR() for function calls since it evaluates the argument
a couple of times.
Sun Feb 20 16:22:53 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* file.c (rb_file_flock): use rb_thread_io_blocking_region for the
time being.
Sun Feb 20 05:33:17 2011 Ryan Davis <ryand-ruby@zenspider.com>
* lib/minitest/*.rb: Imported minitest 2.0.2 r6207.
* test/minitest/*: ditto
Sun Feb 20 02:14:09 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* signal.c (sig_trap): avoid pthread_sigmask(xx, &mask, &mask) usage
because FreeBSD don't permit it. If it's used, it behave as
pthread_sigmask(xx, NULL, &mask).
* signal.c (init_sigchld): ditto.
Sun Feb 20 00:46:51 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_bn.c: parenthesize macro arguments.
Sat Feb 19 22:37:42 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* vm_insnhelper.c (vm_check_if_namespace): guard temporary object
from GC.
Sat Feb 19 06:36:27 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* lib/test/unit.rb: partial revert of r30849. [ruby-core:32864]
* test/testunit/test_rake_integration.rb: adding an integration test
with the rake loader to prevent regressions.
Fri Feb 18 19:31:31 2011 Shugo Maeda <shugo@ruby-lang.org>
* lib/fileutils.rb (FileUtils::remove_entry_secure): there is a
race condition in the case where the given path is a directory,
and some other user can move that directory, and create a
symlink while this method is executing.
Reported by: Nicholas Jefferson <nicholas at pythonic.com.au>
Fri Feb 18 00:28:39 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* compile.c (get_exception_sym2type): guard temporary object from GC.
Thu Feb 17 23:54:29 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* iseq.c (prepare_iseq_build): initialize iseq_compile_data::err_info
with nil. this fix exception in rb_iseq_load().
Thu Feb 17 22:32:35 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* test/ruby/test_marshal.rb (test_marshal_dump_extra_iv):
fix a typo of local variable. [Bug #3720] [ruby-dev:42083]
Thu Feb 17 21:32:53 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl.h: parenthesize macro arguments.
Wed Feb 16 20:37:48 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* eval_jump.c (rb_exec_end_proc): changed at_exit and END proc
evaluation order. [Bug #4400] [ruby-core:35237]
* eval_jump.c (rb_mark_end_proc): ditto.
* test/ruby/test_beginendblock.rb (TestBeginEndBlock#test_nested_at_exit):
added a test for nested at_exit.
* test/ruby/test_beginendblock.rb (TestBeginEndBlock#test_beginendblock):
changed the test to adopt new spec.
Wed Feb 16 20:17:06 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/openssl_missing.h: parenthesize macro arguments.
Tue Feb 15 21:37:45 2011 Tanaka Akira <akr@fsij.org>
* ext/gdbm/gdbm.c: parenthesize macro arguments.
Tue Feb 15 20:34:53 2011 Tanaka Akira <akr@fsij.org>
* array.c (ary_join_1): fix array size.
Tue Feb 15 19:43:23 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* configure.in: fix and resubmit r30621. [ruby-dev:43203]
Tue Feb 15 15:41:30 2011 NARUSE, Yui <naruse@ruby-lang.org>
* array.c (array_join): copy the encoding of the first element as
an initial encoding.
* array.c (array_join_0): ditto.
* array.c (array_join_1): ditto.
* array.c (inspect_ary): ditto.
* array.c (array_join_1): add an argument to check the appending is
first one or not.
Tue Feb 15 15:40:53 2011 NARUSE, Yui <naruse@ruby-lang.org>
* hash.c (inspect_i): copy the encoding of the first key as
an initial encoding.
Mon Feb 14 15:00:16 2011 NARUSE, Yui <naruse@ruby-lang.org>
* array.c (inspect_ary): don't taint the inspected result of a
recursive array.
Tue Feb 15 15:43:29 2011 NARUSE, Yui <naruse@ruby-lang.org>
* encoding.c (rb_enc_compatible): change the rule for empty strings:
remove the special treatment of the US-ASCII encoded empty string.
Now Encoding.compatible? usually respect the encoding of the
receiver.
Tue Feb 15 15:39:37 2011 NARUSE, Yui <naruse@ruby-lang.org>
* string.c (rb_enc_cr_str_buf_cat): remove special treatment of
ASCII-8BIT receivers.
* string.c (str_gsub): set initial encoding of the buffer as the
same of the receiver. [ruby-core:35141]
Tue Feb 15 09:49:33 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_system.rb (TestSystem#test_system_at): use findstr
command instead of find command, because the latter is confusing
another famous Unix command.
Mon Feb 14 23:01:19 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* thread.c (rb_thread_io_blocking_region): reset th->waiting_fd
after blocking region, because remaining waiting_fd might
cause unnecessary IOError.
Mon Feb 14 21:06:50 2011 URABE Shyouhei <shyouhei@ruby-lang.org>
* configure.in: revert r30621. That revision introduced mkmf test
failures and it turned out to be OK to revert. [ruby-dev:43203]
Mon Feb 14 21:04:01 2011 Tanaka Akira <akr@fsij.org>
* ext/fiddle/conversions.h: parenthesize macro arguments.
Mon Feb 14 18:41:47 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* win32/setup.mak (USE_RUBYGEMS): fixed r30835. It didn't work on
mswin32 port. If you changed win32/configure.bat, you should change
setup.mak too.
Mon Feb 14 17:28:34 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/ruby/test_system.rb (TestSystem#test_system_at):
added test. [ruby-core:35218] (#4393)
Mon Feb 14 13:15:35 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (is_internal_cmd): if the first char of prog is '@',
execute it via shell. [ruby-core:35218] (#4393)
Mon Feb 14 10:33:45 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* lib/test/unit.rb: revert r30863, because it causes too many noise.
Mon Feb 14 07:34:55 2011 Tanaka Akira <akr@fsij.org>
* ext/curses/curses.c: parenthesize macro arguments.
Sun Feb 13 19:41:47 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit.rb (Test::Unit::RequireFiles#non_options): skip
test suites failed to load instead of mere messages.
Sun Feb 13 09:56:44 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/openssl/test_config.rb (OpenSSL#test_freeze): fix error
message assertion.
* test/io/nonblock/test_flush.rb (TestIONonblock#flush_test):
return true to finish the test.
* test/syck/test_string.rb (Syck::TestString#test_non_binary_string):
use assert_not instead of refute, unless required minitest
explicitly.
* test/test_prime.rb (TestPrime::sieve.Integer): ditto.
* test/xmlrpc/webrick_testing.rb (WEBrick_Testing#start_server):
catch IOError when server socket was closed.
Sun Feb 13 07:39:51 2011 Yukihiro Matsumoto <matz@ruby-lang.org>
* enum.c (enum_inject): typo fixed. a patch from Gaku Ueda in
[ruby-core:35216].
Sun Feb 13 00:48:47 2011 Tadayoshi Funaba <tadf@dotrb.org>
* lib/date.rb (Date#===): [ruby-core:35127]
Sun Feb 13 00:29:18 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit.rb (Test::Unit::Options#process_args): always
return options.
* lib/test/unit.rb (Test::Unit::RequireFiles#non_options): return
if any test case get loaded.
* lib/test/unit.rb (Test::Unit::AutoRunner#initialize): do not add
default directory if it is nil.
* lib/test/unit.rb (Test::Unit::AutoRunner#process_args): return
true if any test cases to run.
Sat Feb 12 23:17:43 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit.rb (assert_include): add alias.
Sat Feb 12 14:44:20 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* thread.c (rb_thread_io_blocking_region): new function to run
blocking region with GIL released, for fd.
* thread.c (rb_thread_fd_close): implement. [ruby-core:35203]
* vm.c (th_init): rename from th_init2.
Sat Feb 12 14:41:36 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit.rb (Test::Unit::AutoRunner#initialize): use
default_dir if no test case given.
* lib/test/unit.rb (Test::Unit::Runner): rename from Test::Unit::Mini.
* lib/test/unit.rb (Test::Unit::GlobOption#non_options): run tests
under base directory if no argument given.
Sat Feb 12 08:03:12 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/ruby/test_settracefunc.rb (TestSetTraceFunc): ensure to use
method_added hook defined in Module.
Sat Feb 12 01:04:02 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ruby.c (proc_options): enable rubygems if --gem option is given.
* ruby.c (process_options): load rubygems if it is disabled but
--gem option is given.
Fri Feb 11 23:27:50 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* ruby.c (proc_options): add --gem=enabled as an alias of
--enable=gems and --gem=disabled as an alias of --disable=gems.
Gem named "enabled" or "disabled" has already been reserved
legitimately for this purpose.
Fri Feb 11 23:17:04 2011 Tanaka Akira <akr@fsij.org>
* ext/dl/cfunc.c: parenthesize macro arguments.
Fri Feb 11 21:41:53 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* bin/testrb, test/runner.rb, lib/test/unit.rb: improve backward
compatibility.
Fri Feb 11 19:45:26 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (ruby_cleanup): use rb_ary_free to free internal object.
* gc.h (RUBY_FREE_UNLESS_NULL): get rid of double free.
[ruby-core:35192]
Fri Feb 11 16:57:03 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/ruby/test_transcode.rb (test_from_cp50221): fix wrong
assertion and move back.
Fri Feb 11 14:33:18 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit/assertions.rb (assert_no_match): alias for
backward compatibility.
Fri Feb 11 12:06:48 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ruby.c (add_gems, require_libraries, proc_options): add
--require and --gem options.
Fri Feb 11 12:03:24 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (rubygems): add --disable-rubygems option.
Fri Feb 11 11:39:03 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* template/fake.rb.in (CROSS_COMPILING): get rid of NameError.
Thu Feb 10 23:12:34 2011 Tanaka Akira <akr@fsij.org>
* ext/dl/dl.h: parenthesize macro arguments.
Wed Feb 9 23:11:27 2011 Tanaka Akira <akr@fsij.org>
* ext/pty/pty.c: parenthesize macro arguments.
Tue Feb 8 11:47:11 2011 Loren Sands-Ramshaw <lorensr@gmail.com>
* array.c: documentation clarification in rotate, rotate!,
index, and rindex. [ruby-core:35144]
Wed Feb 9 09:45:43 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/rdoc/test_rdoc_encoding.rb: remove unnecessary (and wrong)
platform-dependent hacks.
Wed Feb 9 00:47:18 2011 Tanaka Akira <akr@fsij.org>
* ext/etc/etc.c: parenthesize macro arguments.
Tue Feb 8 19:38:00 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* misc/ruby-mode.el (ruby-expr-beg): fix for invalid nest errors.
Tue Feb 8 19:22:59 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* configure.in (AC_MSG_CHECKING): fixed typo. the patch is
created by Benoit Daloze. Thanks a lot. [Bug #4384][ruby-core:35148]
Tue Feb 8 16:04:03 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* io.c (rb_io_s_sysopen): use NUM2MODET() instead NUM2UINT().
Tue Feb 8 15:59:23 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* process.c (rb_run_exec_options_err): use MODET2NUM() instead LONG2NUM().
Tue Feb 8 13:59:56 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* configure.in: revert r30725. Now we have proper runtime fallback.
Therefore, no need compile time disabling. (see r30762).
Tue Feb 8 01:00:21 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* process.c (proc_setgroups): add GC guard to prevent intermediate
variable from GC.
Tue Feb 8 00:56:33 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* misc/ruby-mode.el (ruby-expr-beg, ruby-in-here-doc-p): tell
singleton class definitions from here documents.
* misc/ruby-mode.el (ruby-expr-beg, ruby-parse-partial): keyword
followed by colon is label.
Mon Feb 7 22:56:16 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* lib/benchmark.rb (Benchmark#bmbm): use ensure clause instead of
Object#tap to restore STDOUT.sync.
Mon Feb 7 22:34:20 2011 Tanaka Akira <akr@fsij.org>
* lib/net/http.rb (Net::HTTP#connect): support SNI (Server Name
Indication) for HTTPS. [ruby-dev:43164]
http://stackoverflow.com/questions/4685736/openssl-server-name-indication-support-in-ruby
Mon Feb 7 16:05:32 2011 Eric Hodel <drbrain@segment7.net>
* lib/rdoc: Upgrade to RDoc 3.5.3 Fixes [Bug #4376]
Mon Feb 7 11:46:59 2011 NARUSE, Yui <naruse@ruby-lang.org>
* common.mk (rdoc): add --encoding=UTF-8; ruby's rdoc must be UTF-8.
Mon Feb 7 10:21:50 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/rdoc/test_rdoc_options.rb (TestRDocOptions#test_check_files):
there is no easy way to create owner unreadable file on Windows.
So, skip the test.
Sun Feb 6 13:48:29 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/json/lib/json/common.rb (JSON::MissingUnicodeSupport.iconv):
should not drop rest of the result. use Iconv.conv instead.
Sun Feb 6 12:46:02 2011 Eric Hodel <drbrain@segment7.net>
* string.c (gsub): Ensure result encoding is the same as input
encoding. [Bug #4340].
Sun Feb 6 12:18:25 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (words, qwords): dispatch array events. based on a
patch from Michael Edgar. [Bug #4365].
Sun Feb 6 12:12:59 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/fileutils/fileasserts.rb (FileAssertions): separate module.
Sun Feb 6 11:29:23 2011 Tanaka Akira <akr@fsij.org>
* ext/dbm/dbm.c: parenthesize macro arguments.
Sat Feb 5 22:01:59 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
revert r30796. r30797 and r30798 are an alternative fix.
[ruby-dev:43174]
Sat Feb 5 21:47:09 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (mlhs_basic): include mlhs_post for ripper. a patch
from Michael Edgar at [ruby-core:35078].
Sat Feb 5 21:22:21 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit/assertions.rb (assert_block): move from
test/fileutils/fileasserts.rb.
* test/fileutils/fileasserts.rb (assert_block): pass arguments
as-is. [ruby-dev:43174]
Sat Feb 5 16:47:54 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
msg can be passed nil. [Bug #4371] [ruby-dev:43174]
Sat Feb 5 15:18:25 2011 Eric Hodel <drbrain@segment7.net>
* lib/rdoc: Upgrade to RDoc 3.5.2
Sat Feb 5 12:05:27 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/syck/rubyext.c (syck_node_init_copy): SyckNode is not
copiable. [ruby-core:35094]
Sat Feb 5 11:48:47 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/openssl/ossl_cipher.c (ossl_cipher_alloc): leave data ptr
NULL.
* ext/openssl/ossl_cipher.c (ossl_cipher_new, ossl_cipher_initialize):
allocate internal structure. [ruby-core:35094]
* ext/openssl/ossl_cipher.c (ossl_cipher_copy): ditto.
Sat Feb 5 11:29:10 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/json/parser/parser.h (GET_PARSER): raise TypeError.
* ext/json/parser/parser.rl (cParser_initialize): ditto.
* ext/json/parser/parser.h (GET_PARSER): check if initialized.
[ruby-core:35079]
* ext/json/parser/parser.rl (cParser_initialize): ditto.
Sat Feb 5 10:09:31 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* load.c (rb_get_expanded_load_path): always expand load paths.
Sat Feb 5 09:38:08 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* transcode.c (encoded_dup): extract.
Sat Feb 5 03:37:47 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/fileutils.rb (FileUtils::LowMethods): make low level methods
in NoWrite and DryRun to do nothing. [ruby-dev:43129]
* test/fileutils/fileasserts.rb: add message arguments.
* test/fileutils/fileasserts.rb (Test::Unit::Assertions#assert_block):
show the given message.
Sat Feb 5 02:09:39 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (lex_getline, parser_set_encode): set encoding of lines
in SCRIPT_LINES__ as source encoding. [ruby-dev:43168]
Sat Feb 5 02:08:37 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm.c (ruby_thread_data_type): add prefix.
Sat Feb 5 00:59:54 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* vm_core.h (GetThreadPtr): use TypedData_Get_Struct() instead
CoreDataFromValue() because we need type check. Otherwise,
type mismatch can cause segmentation fault crash.
[ruby-core:35086] [Ruby 1.9-Bug#4367]
* vm.c (thread_data_type): remove static.
Fri Feb 4 19:14:27 2011 Tanaka Akira <akr@fsij.org>
* enc/trans/utf8_mac.trans: parenthesize macro arguments.
Fri Feb 4 12:11:51 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* string.c (str_utf8_nth): fixed a condition of optimized lead
byte counting. [Bug #4366][ruby-dev:43170]
Fri Feb 4 01:50:13 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* string.c (count_utf8_lead_bytes_with_word): wrote function
comments.
Fri Feb 4 00:14:55 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/zlib/zlib.c (gzfile_reader_get_unused): no need to dup
before rb_str_resurrect.
Thu Feb 3 20:04:44 2011 Tanaka Akira <akr@fsij.org>
* ext/curses/curses.c (CHECK): unused macro removed.
Thu Feb 3 18:33:26 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/zlib/zlib.c (gzfile_reader_get_unused): use rb_str_resurrect
because gz->z.input is hidden string. [ruby-core:35057]
Thu Feb 3 16:34:10 2011 NARUSE, Yui <naruse@ruby-lang.org>
* enc/shift_jis.c (code_to_mbc): cast as int from the subtraction of
pointers.
* enc/utf_16le.c (utf16le_mbc_enc_len): use ptrdiff_t.
* enc/utf_32be.c (utf32be_left_adjust_char_head): ditto.
* enc/utf_32le.c (utf32le_left_adjust_char_head): ditto.
Thu Feb 3 16:31:43 2011 NARUSE, Yui <naruse@ruby-lang.org>
* include/ruby/missing.h: don't use HAVE_STDDEF_H because it never
defined by configure though configure.bat defines it.
* include/ruby/ruby.h: move include stddef.h to defines.h
* include/ruby/defines.h: ditto.
Wed Feb 2 20:25:04 2011 NARUSE, Yui <naruse@ruby-lang.org>
* include/ruby/encoding.h (rb_enc_step_back): cast 4th argument 'n'
as int because Ruby usually treats length value as long but
onigenc_step_back's 4th argument is int.
Thu Feb 3 07:20:46 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/visitors/to_ruby.rb: use Regexp::NOENCODING
rather than magic number.
* ext/syck/lib/syck/rubytypes.rb: ditto
Thu Feb 3 07:16:11 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* re.c (Init_Regexp): added a constant for ARG_ENCODING_NONE
[ruby-core:35054]
* test/ruby/test_regexp.rb: corresponding test.
Thu Feb 3 07:02:16 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/visitors/to_ruby.rb: ARG_ENCODING_NONE regular
expressions can round trip. [ruby-core:34969]
* test/psych/test_yaml.rb: test for ARG_ENCODING_NONE regex
* ext/sych/lib/syck/rubytypes.rb: ARG_ENCODING_NONE regular
expressions can round trip.
* test/syck/test_yaml.rb: test for ARG_ENCODING_NONE regex
Wed Feb 2 17:09:22 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* io.c (rb_io_fdatasync): Use fsync(2) if the underlying
operating system does not support fdatasync(2).
Wed Feb 2 14:51:08 2011 Eric Hodel <drbrain@segment7.net>
* lib/rdoc/markup/to_tt_only.rb: commit miss
* test/rdoc/test_rdoc_markup_to_tt_only.rb: ditto
* test/rdoc/test_rdoc_single_class.rb: ditto
Wed Feb 2 09:27:53 2011 Eric Hodel <drbrain@segment7.net>
* lib/rdoc: Upgrade to RDoc 3.5.1
Wed Feb 2 00:30:43 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* include/ruby/st.h (st_table): Added comment why we need __extension__.
Tue Feb 1 20:45:44 2011 Tanaka Akira <akr@fsij.org>
* enc/encdb.c: parenthesize macro arguments.
Tue Feb 1 15:12:26 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_require.rb (TestRequire#test_require_with_unc):
use ``127.0.0.1'' instead of ``localhost'' as host name, because
XP or earlier cannot resolv it as NBT hostname.
Tue Feb 1 13:20:39 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/benchmark/test_benchmark.rb (#capture_bench_output):
Added explicit sleep. Windows have imprecise time support.
Thus Tms.new.Add!{} may be or may be not equal 0. The
test failure started since r30747.
Tue Feb 1 11:03:47 2011 Ryan Davis <ryan@lust.local>
* lib/rubygems*: Import rubygems 1.5.0 (released version @ 1fb59d0)
* test/rubygems: Ditto
Tue Feb 1 08:01:39 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/io/console/console.c (console_set_winsize): new method to set
console size. [EXPERIMENTAL]
* ext/io/console/console.c (console_winsize): use GetWriteFD.
Tue Feb 1 02:28:14 2011 Masaya Tarui <tarui@ruby-lnag.org>
* include/ruby/win32.h, win32/win32.c: add rb_w32_inet_ntop.
inet_ntop's minimum supported client is Vista.
Tue Feb 1 00:10:30 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/benchmark.rb: fix benchmark to work with current ruby.
patched by Benoit Daloze [ruby-core:33846] [ruby-dev:43143]
merged from https://github.com/eregon/ruby/commits/benchmark
* lib/benchmark (Report#width): update documentation
* lib/benchmark: document the return value of #benchmark and the
:list attribute in Report
* lib/benchmark (Tms#format): rename variables, use String#%
instead of Kernel.format
* lib/benchmark: remove undocumented Benchmark::times (an alias
of Process::times used twice)
* lib/benchmark (#benchmark): use label_width for the caption
* lib/benchmark (Tms#initialize): rename variables
* lib/benchmark: allow title to not be a String and call #to_s
* lib/benchmark (Benchmark#bm): return an Array of the times with
the labels
* lib/benchmark: correct output for Benchmark#bmbm
(remove the extra space)
* lib/benchmark: add a few tests for Benchmark::Tms output
* lib/benchmark: improve style (enumerators, ljust, unused vars)
* lib/benchmark: add spec about output and return value
* lib/benchmark: improve basic style and consistency
no parenthesis for print and use interpolation instead of printf
* lib/benchmark: remove unnecessary conversions and variables
* lib/benchmark: correct indentation
* lib/benchmark: rename the FMTSTR constant and variable to FORMAT
* lib/benchmark: remove useless exception
* test/benchmark: remove unused variable warnings
Mon Jan 31 23:27:23 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* node.c (add_id): remove duplicated rb_id2str() call.
Sun Jan 30 17:19:46 2011 Tanaka Akira <akr@fsij.org>
* missing/langinfo.c: parenthesize macro arguments.
Mon Jan 31 21:57:39 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* configure.in: revert r30698.
Mon Jan 31 21:32:44 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* thread.c (thread_start_func_2): check deadlock condition before
release thread stack. fix memory violation when deadlock detected.
reported by Max Aller. [Bug #4009] [ruby-core:32982]
Mon Jan 31 14:45:47 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* lib/irb/locale.rb (IRB::Locale::#search_file):
Gem might be undefined if --disable-gems. [ruby-core:34990]
Mon Jan 31 12:26:14 2011 NARUSE, Yui <naruse@ruby-lang.org>
* addr2line.c: suppressed shorten-64-to-32 warnings.
* regcomp.c: ditto.
* regexec.c: ditto.
* regint.h: ditto.
* regparse.c: ditto.
* regparse.h: ditto.
* time.c: ditto.
* variable.c: ditto.
Mon Jan 31 04:45:12 2011 NARUSE, Yui <naruse@ruby-lang.org>
* array.c (rb_ary_uniq_bang): call ARY_SET_LEN(ary, 0) before
ary_resize_capa because ary_resize_capa expects resized length is
smaller than current array length. call rb_ary_unshare before
ary_resize_capa because ary_resize_capa lost the reference to
original shared array. [ruby-core:34997]
Sun Jan 30 17:19:46 2011 Tanaka Akira <akr@fsij.org>
* missing/crypt.c: parenthesize macro arguments.
Sun Jan 30 16:40:27 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/rubygems/test_gem_security.rb (TestGemSecurity): valid only
if OpenSSL is available.
* test/dl/test_dl2.rb (TestDL#test_sin): math functions do not
work on x86_64 due to the design of DL2.
* test/dl/test_func.rb (DL::TestFunc#test_{sinf,sin): ditto.
Sun Jan 30 16:09:22 2011 Tanaka Akira <akr@fsij.org>
* strftime.c (rb_strftime_with_timespec): %G produces 4 digits.
Sun Jan 30 15:13:19 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* enc/emacs_mule.c (emacsmule_islead): 7bit range is also leading
byte.
Sun Jan 30 13:03:16 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* hash.c (rb_hash_fetch_m): use useful message for longer key, not a
nonsense id value.
* string.c (rb_str_ellipsize): new function to ellipsize a string.
* include/ruby/encoding.h (rb_enc_step_back): new function to step
back n characters.
Sun Jan 30 12:53:38 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* enc/emacs_mule.c (emacsmule_islead): fix inverse condition.
Sun Jan 30 09:37:25 2011 Yutaka Kanemoto <kanemoto@ruby-lang.org>
* io.c (struct argf): char behaves like an unsigned char
by default on AIX.
Sun Jan 30 08:02:55 2011 NARUSE, Yui <naruse@ruby-lang.org>
* configure.in: Mac OS X wrongly reports it has fdatasync(3).
Sun Jan 30 03:29:47 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/openssl/ossl_bn.c (GetBNPtr): add missing nil case.
patched by Martin Bosslet. [ruby-core:34987]
Sun Jan 30 01:02:28 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* include/ruby/ruby.h: Added NUM2MODET() and MODET2NUM() default definition.
Because r30686 introduced win32 build failure.
Sat Jan 29 22:16:26 2011 NARUSE, Yui <naruse@ruby-lang.org>
* array.c (rb_ary_join): [].join.encoding must be US-ASCII.
[ruby-list:47790]
Sat Jan 29 20:22:39 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* benchmark/driver.rb (BenchmarkDriver#measure): Show command line
when abnormal exiting occur.
Sat Jan 29 10:53:16 2011 Yusuke Endoh <mame@tsg.ne.jp>
* vm_insnhelper.c (vm_get_ev_const): no-scope reference to toplevel
private constant has been prohibited incorrectly.
* test/ruby/test_module.rb (test_toplevel_private_constant): add a
test for above.
Sat Jan 29 08:43:23 2011 Ryan Davis <ryand-ruby@zenspider.com>
* lib/rubygems*: Import rubygems 1.5.0 (release candidate @ 09893d9)
* test/rubygems: Ditto
Sat Jan 29 02:02:37 2011 Yusuke Endoh <mame@tsg.ne.jp>
* variable.c (rb_mod_const_of, sv_i): Module#constant should exclude
private constants. see [ruby-core:32912].
* test/ruby/test_module.rb (test_constants_with_private_constant): add
a test for above.
Sat Jan 29 01:36:41 2011 Yusuke Endoh <mame@tsg.ne.jp>
* variable.c (rb_const_set): const_set should preserve constant
visibility. see [ruby-core:32912].
* test/ruby/test_module.rb: add a test for above.
Sat Jan 29 01:24:57 2011 Yusuke Endoh <mame@tsg.ne.jp>
* compile.c (NODE_CLASS, NODE_MODULE), insns.def (defineclass): raise
an exception when "class Foo::Bar" is evaluated and Foo::Bar is
private. To implement this, define_type of "defineclass" is added
so that the instruction can distinguish whether the class definition
is scoped (class Foo::Bar) or not (class Bar).
* test/ruby/test_class.rb (test_redefine_private_class),
test/ruby/test_module.rb
(test_define_module_under_private_constant): add tests for above.
Sat Jan 29 01:19:17 2011 Yusuke Endoh <mame@tsg.ne.jp>
* constant.h, variable.c: to ensure compatibility, rb_const_get_* must
not raise an exception even when the constant is private. Instead,
rb_public_const_get_* and rb_public_const_defined_* are introduced,
which raise an exception when the referring constant is private.
see [ruby-core:32912].
* vm_insnhelper.c (vm_get_ev_const): use rb_public_const_get_* instead
of rb_const_get_* to follow the constant visibility when user code
refers a constant.
* test/ruby/test_marshal.rb (test_marshal_private_class): add a test.
This test had failed because of incompatibility of rb_const_get.
Sat Jan 29 00:30:44 2011 Yusuke Endoh <mame@tsg.ne.jp>
* variable.c (set_const_visibility): fix typo. a patch from Tomoyuki
Chikanaga in [ruby-core:32919].
Fri Jan 28 23:20:28 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_no_create,
TestGDBM2#test_writer_open_notexist): We only need to skip libgdbm 1.8.0,
not all 1.8.x. 1.8.1 or later don't have GDBM_WRITER sickness.
Fri Jan 28 21:56:57 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* ext/dbm/extconf.rb: Added new header places for Fedora13.
Fri Jan 28 21:49:30 2011 Tanaka Akira <akr@fsij.org>
* ext/zlib/zlib.c: parenthesize macro arguments.
Fri Jan 28 17:47:33 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/gdbm/test_gdbm.rb (TestGDBM2#test_writer_open_notexist):
gdbm 1.8.x changed GDBM::WRITER behavior. Thus our testcase need
to be changed too.
Fri Jan 28 17:33:28 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_no_create): skip
the test if gdbm version is 1.8.x.
Fri Jan 28 16:30:51 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/ruby/test_require.rb (TestRequire#test_require_too_long_filename):
Added -w option because too long path error don't output a message
by default since r30660. [Bug #4336] [ruby-dev:43134]
Fri Jan 28 16:19:38 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/ruby/test_require.rb (TestRequire#test_require_path_home_{1,2}):
Added -w option because too long path error don't output a message
by default since r30660. [Bug #4336] [ruby-dev:43134]
Fri Jan 28 16:04:54 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/ruby/test_require.rb (TestRequire#test_require_path_home_{1,2,3}):
split from test_require_path_home.
Fri Jan 28 13:04:38 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* configure.in (--with-valgrind): Fixed r29683. Now this option
is really default on.
Fri Jan 28 12:05:48 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* configure.in: Add #include<sys/stat.h> when struct stat is
tested. Otherwise, incomplete type dereference error will occur.
Fri Jan 28 11:53:19 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* configure.in: redundant variable names made strange conftest
error. Fixed it.
Fri Jan 28 11:47:00 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_process.rb (TestProcess#test_too_long_path{,2}):
should handle Errno::E2BIG, because this test checks crash of ruby,
not the error type system.
Fri Jan 28 11:23:54 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* io.c (rb_io_open): Use NUM2MODET() instead NUM2UINT().
* io.c (rb_scan_open_args): ditto.
Fri Jan 28 10:58:20 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* configure.in: Added mode_t type checking.
* process.c (rb_exec_arg_addopt): Use NUM2MODET() instead
NUM2LONG because clang makes compile error by this narrowing
conversion.
* process.c (rb_run_exec_options_err): ditto.
Fri Jan 28 02:37:18 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* re.c (rb_reg_raise): add GC guard to prevent intermediate
variable from GC.
Fri Jan 28 02:35:41 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* hash.c (rb_hash_fetch_m): add GC guard to prevent intermediate
variable from GC.
Fri Jan 28 01:33:51 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/ruby/test_process.rb (TestProcess#test_too_long_path)
TestProcess#test_too_long_path): Reduced string size from 100MB
to 10MB. 100MB may cause no memory error. It isn't intended.
Fri Jan 28 01:27:42 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/ruby/test_process.rb (TestProcess#test_too_long_path2):
Factored out from test_too_long_path. A test should only do
one test.
Thu Jan 27 23:29:36 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* st.c (st_foreach): check if unpacked.
Thu Jan 27 23:14:19 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* misc/ruby-mode.el (ruby-mode-map): remove deprecated binding.
use M-; instead.
Thu Jan 27 21:58:32 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* bignum.c (rb_str_to_inum): get rid of too huge alloca().
Thu Jan 27 21:43:29 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* object.c (rb_str_to_dbl): rewrite again. use ALLOCV instead
rb_str_tmp_new().
Thu Jan 27 21:41:47 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* win32/win32.c: get rid of STRNDUPA(). It's dangerous API.
Thu Jan 27 21:31:57 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* win32/win32.c (rb_w32_aspawn): get rid of too huge alloca().
[Bug #4330] [ruby-core:34898]
Thu Jan 27 20:30:18 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* win32/win32.c (rb_w32_spawn): get rid of too huge alloca().
Thu Jan 27 18:49:53 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* win32/win32.c (open_dir_handle): get rid of too huge alloca().
Thu Jan 27 18:34:58 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* file.c (w32_io_info): get rid of too huge alloca().
[Bug #4313] [ruby-core:34830]
Thu Jan 27 18:19:51 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* win32/win32.c (wstati64): get rid of too huge alloca().
[Bug #4316] [ruby-core:34834]
Thu Jan 27 15:11:52 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (rb_w32_spawn, rb_w32_aspawn): get rid of too huge
alloca(). this is the real fix of [ruby-core:34833].
Thu Jan 27 12:46:25 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* process.c (ALLOC_ARGV_WITH_STR): fix void pointer arithmetic.
Thu Jan 27 08:41:40 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* process.c (proc_exec_v, rb_proc_exec_n, rb_proc_exec)
(proc_spawn_n, proc_spawn): get rid of too huge alloca().
[ruby-core:34827], [ruby-core:34833]
Thu Jan 27 08:32:17 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/ruby.h (ALLOCV): new API for exception-safe
temporary buffer. [ruby-core:34844]
* string.c (rb_alloc_tmp_buffer, rb_free_tmp_buffer):
implementation of the API.
Thu Jan 27 08:22:49 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* dln_find.c (dln_find_1): use rb_warning and return immediately
if fname is longer than buffer.
Wed Jan 26 22:57:30 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* class.c (clone_method): add GC guard to prevent intermediate
variable from GC. [Bug #4321] [ruby-dev:43107]
Wed Jan 26 22:45:16 2011 Tanaka Akira <akr@fsij.org>
* template/id.h.tmpl: parenthesize macro arguments.
Wed Jan 26 22:28:49 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* vm_eval.c (rb_throw_obj): add GC guard to prevent intermediate
variable from GC. [Bug #4322] [ruby-dev:43108]
Wed Jan 26 17:08:59 2011 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
* ext/openssl/ossl_asn1.c (ossl_asn1_decode0): OpenSSL::ASN1.decode
should reject indefinite length primitive encodings as that is
illegal. Patch by Martin Bosslet. See #4324.
Wed Jan 26 10:36:28 2011 NARUSE, Yui <naruse@ruby-lang.org>
* string.c (=~): documentation fix; the return value is nil when
it doesn't match. patched by Andrei Kulakov [ruby-core:34562]
Tue Jan 25 08:41:58 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* dln_find.c (dln_find_1): omit too long pathnames.
Tue Jan 25 08:28:19 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* string.c (rb_str_resize): get rid of out-of-bound access.
Tue Jan 25 07:48:22 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* test/ruby/test_thread.rb: remove unused variables.
Tue Jan 25 07:45:44 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* test/ruby/test_thread.rb (TestThread#test_condvar_nolock_2): get
rid of method redefined.
Tue Jan 25 07:00:52 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* string.c (rb_string_value_cstr): rb_str_modify can change
RSTRING_PTR.
Tue Jan 25 03:24:28 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/ruby/test_thread.rb: Added various ConditionVariable tests.
Mon Jan 24 22:26:33 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* object.c (rb_str_to_dbl): Fix again. use rb_str_tmp_new()
instead ALLOC_N.
Mon Jan 24 21:50:48 2011 Tanaka Akira <akr@fsij.org>
* vm_insnhelper.h: parenthesize macro arguments.
Mon Jan 24 21:28:34 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* object.c (rb_str_to_dbl): use ALLOC_N instead ALLOCA_N because
ALLOC_N may cause stack overflow.
Mon Jan 24 21:04:45 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* error.c (rb_invalid_str): prevent intermediate variable from GC.
[ruby-core:34820]
Sun Jan 23 23:01:54 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/io/console/test_io_console.rb: Don't run test if the system
don't support io/console.
Sun Jan 23 22:17:07 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/fiddle/test_fiddle.rb: Don't run test if the system don't support
fiddle.
* test/fiddle/test_function.rb: ditto.
* test/fiddle/test_closure.rb: ditto.
Sun Jan 23 11:39:18 2011 Tanaka Akira <akr@fsij.org>
* vm_exec.h: parenthesize macro arguments.
Sun Jan 23 10:33:02 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* template/fake.rb.in (ruby): suppress warnings.
Sun Jan 23 08:00:09 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* string.c (str_nth_len, str_utf8_nth): return the rest length together.
* string.c (rb_str_substr): get rid of measure the length always
to improve performance for huge string. [ruby-core:34648]
Sun Jan 23 00:40:10 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/test_syslog.rb: Fix to make a lot of test failure if
the platform doesn't support syslog.
Sat Jan 22 11:49:55 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/visitors/to_ruby.rb: fixing merge key support
when multiple merge keys are specified.
* test/psych/test_merge_keys.rb: tests for multi-merge key support
Sat Jan 22 11:33:04 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/visitors/to_ruby.rb: merge keys are actually
part of YAML 1.1, so they should be supported. Remove warning and
merge keys to parent. [ruby-core:34679]
* test/psych/test_merge_keys.rb: test for merge keys
Sat Jan 22 10:25:19 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/parser.c (parse): add the file name to the exception when
parse errors occur.
* test/psych/test_parser.rb: test for parse error file name
Sat Jan 22 10:12:30 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/parser.c (parse): fix assertion error when reusing a
parser after an exception has been raised
* test/psych/test_parser.rb: test for assertion error
Sat Jan 22 04:09:22 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/nodes/node.rb: Make Psych::Nodes::Node
enumerable.
* ext/psych/lib/psych/visitors/depth_first.rb: Add a depth-first
visitor to enumerate over a YAML AST in a depth-first fashion
* test/psych/nodes/test_enumerable.rb: test for enumerating nodes
* test/psych/visitors/test_depth_first.rb: test for depth-first
visitor
Sat Jan 22 00:53:42 2011 Tanaka Akira <akr@fsij.org>
* vm_core.h: parenthesize macro arguments.
Fri Jan 21 18:15:09 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in: should not use -Werror=* flags while conftests.
Fri Jan 21 09:17:00 2011 Luis Lavena <luislavena@gmail.com>
* configure.in: Fix incorrectly detected x86_64-w64-mingw32 due
canonalization of target_os. Bug #3889 [ruby-core:32634]
Thu Jan 20 23:44:00 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* configure.in: Fix rb_cv_va_args_macro was broken. We are using
-Werror=implicit-function-declaration compile option. therefore
we need a function declaration explicitly.
Thu Jan 20 23:58:02 2011 Tanaka Akira <akr@fsij.org>
* node.h: parenthesize macro arguments.
Thu Jan 20 23:25:28 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* configure.in: Add '#include <stdlib.h>' to
rb_cv_localtime_overflow test too. It's reported by Tomoyuki
Chikanaga. Thanks.
Thu Jan 20 16:11:00 2011 Kenta Murata <mrkn@mrkn.jp>
* README.EXT, README.EXT.ja: You shouldn't choose ``conftest.c'' as a
name of a source file.
Thu Jan 20 12:15:44 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* configure.in: Add stdlib.h inclusion into rb_cv_negative_time_t
test because it's required for exit(3). The patch is
created by Tomoyuki Chikanaga. [Bug #4287] [ruby-dev:43060]
Thu Jan 20 11:39:41 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/webrick/utils.rb (TestWEBrick::RubyBin): test CGI does not need
to load rubygems. if it activated, ruby raises LoadError about
rbconfig.rb.
Thu Jan 20 09:19:42 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/visitors/json_tree.rb: Fix JSON emit for
DateTime and Time classes.
* test/psych/test_json_tree.rb: test for JSON emit
Thu Jan 20 08:02:46 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/coder.rb (represent_object): arbitrary objects
may be passed to the Psych::Coder object.
* ext/psych/lib/psych/visitors/yaml_tree.rb: support for visiting
arbitrary objects set on the coder.
* test/psych/test_coder.rb: supporting test case.
Thu Jan 20 06:03:17 2011 Tanaka Akira <akr@fsij.org>
* method.h: parenthesize macro arguments.
Wed Jan 19 13:16:05 2011 Eric Hodel <drbrain@segment7.net>
* lib/rubygems/commands/sources_command.rb: Finish removing code,
(fixes sources command test).
Wed Jan 19 13:04:16 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* proc.c (proc_call): Add gc guard to avoid segfault. The fix
is created by Tomoyuki Chikanaga. [Bug #4238][ruby-dev:42963]
Wed Jan 19 12:31:28 2011 Eric Hodel <drbrain@segment7.net>
* lib/rubygems.rb: Since gem_prelude requires rubygems, enable
custom_require always.
Wed Jan 19 12:08:08 2011 Eric Hodel <drbrain@segment7.net>
* lib/rubygems/commands/dependency_command.rb: Remove require of
deleted file.
* lib/rubygems/commands/fetch_command.rb: ditto
* lib/rubygems/commands/setup_command.rb: ditto
* lib/rubygems/commands/sources_command.rb: ditto
* lib/rubygems/commands/specification_command.rb: ditto
Wed Jan 19 08:13:59 2011 Ryan Davis <ryand-ruby@zenspider.com>
* lib/rubygems*: Import rubygems 1.5.0 (release candidate)
* test/rubygems: Ditto
Tue Jan 18 23:31:01 2011 Yusuke Endoh <mame@tsg.ne.jp>
* parse.y: avoid NULL reference. [ruby-dev:43067]
Wed Jan 19 02:54:04 2011 NARUSE, Yui <naruse@ruby-lang.org>
* vsnprintf.c (cvt): set first byte of buf to NUL for the case when
no bytes are written to the buf. [ruby-dev:43062]
Tue Jan 18 23:04:51 2011 Tanaka Akira <akr@fsij.org>
* gc.h: parenthesize macro arguments.
Tue Jan 18 18:31:14 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
* lib/irb/completion.rb: Irb tab completion support for XX::method forms.
Tue Jan 18 15:05:55 2011 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
* lib/logger.rb: added RDoc document for logging message escape
by Hal Brodigan. See #3869
Tue Jan 18 07:53:52 2011 Tanaka Akira <akr@fsij.org>
* eval_intern.h: parenthesize macro arguments.
Tue Jan 18 04:42:44 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/parser.rb (Mark): Adding a class to wrap
marker information
* ext/psych/parser.c (mark): Add a method to return the mark object
for the parser
* test/psych/test_parser.rb: tests for the Mark class.
Tue Jan 18 02:46:55 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/visitors/json_tree.rb (visit_String): JSON
strings should be dumped with double quotes. [ruby-core:34186]
* test/psych/test_json_tree.rb: test for double quotes
Mon Jan 17 23:36:33 2011 Tanaka Akira <akr@fsij.org>
* array.c (rb_ary_times): less MEMCPY calls.
Mon Jan 17 22:54:33 2011 Tanaka Akira <akr@fsij.org>
* debug.h: parenthesize macro arguments.
Mon Jan 17 21:40:25 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ruby.c (process_options): revert r30549.
Sun Jan 16 20:55:45 2011 Tanaka Akira <akr@fsij.org>
* vsnprintf.c: parenthesize macro arguments.
Sat Jan 15 11:57:30 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (warnflags): add -Werror=implicit-function-declaration
if available.
* lib/mkmf.rb (init_mkmf): ignore warnings in mkmf tests.
* test/mkmf/base.rb (setup, teardown): restore config values.
* test/mkmf/test_flags.rb: split from test_find_executable.rb.
Sat Jan 15 10:04:14 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ruby.c (process_options): autoload rubygems.
* tool/compile_prelude.rb (Prelude#initialize): ignore empty
preludes.
* ruby.c (ruby_init_prelude): get rid of global namespace
pollution.
Sat Jan 15 09:42:12 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/io.h: missing prototypes.
Fri Jan 14 23:25:55 2011 Tanaka Akira <akr@fsij.org>
* vm_method.c: parenthesize macro arguments.
Fri Jan 14 15:32:29 2011 Shugo Maeda <shugo@ruby-lang.org>
* test/net/imap/test_imap.rb: call neither logout nor disconnect
unless connected. patch by Kazuhiro NISHIYAMA. [ruby-dev:42860]
Fri Jan 14 14:56:57 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/net/imap.rb: use bytesize for binary strings.
patched by Yoshimasa Niwa. [ruby-core:34222]
Fri Jan 14 14:01:12 2011 NARUSE, Yui <naruse@ruby-lang.org>
* pack.c (pack_unpack): the resulted string of unpack('M') must have
ASCII-8BIT encoding (and ENC_CODERANGE_VALID). [ruby-core:34482]
Fri Jan 14 13:38:58 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/zlib/zlib.c (gzfile_check_footer): ISIZE (Input SIZE) in
gzip's header is the size of uncompressed input data modulo 2^32.
[ruby-core:34481] http://www.ietf.org/rfc/rfc1952.txt
Fri Jan 14 11:36:25 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* configure.in, win32/Makefile.sub (RUNRUBY): require path should
include "." because rbconfig.rb is there.
Fri Jan 14 10:40:11 2011 Ryan Davis <ryan@lust.local>
* gem_prelude.rb: Just require rubygems. Fixes rubygems 1.4.
* lib/rubygems.rb: removed all Gem::Quickloader code.
* ruby.c: renamed ruby_init_gems to ruby_init_prelude. Set
$disable_rubygems since there is no fine grained mechanism to
skip parts of the prelude. Open to suggestions on how to do this
better.
* test/*.rb: Load path isn't set up correctly, so add
--disable-gems as needed to failing tests that are explicitly
testing stderr w/ ==.
Fri Jan 14 07:30:47 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (argf_next_argv): go advance when the next file cannot be
read. [ruby-core:34446]
Thu Jan 13 20:49:19 2011 Tanaka Akira <akr@fsij.org>
* vm_insnhelper.c: parenthesize macro arguments.
Thu Jan 13 13:21:00 2011 Kenta Murata <mrkn@mrkn.jp>
* vm_dump.c: delete dashes to make lines 80 chars, Patched by
Shota Fukumori (sora_h). [Bug #4275] [ruby-dev:43021]
Thu Jan 13 13:21:00 2011 Kenta Murata <mrkn@mrkn.jp>
* vm_dump.c: fix misspelling of CrashReporter, Patched by Shota
Fukumori (sora_h). [Bug #4275] [ruby-dev:43021]
Thu Jan 13 06:27:29 2011 Ryan Davis <ryand-ruby@zenspider.com>
* error.c: Exception#to_s should actually call to_s.
Thu Jan 13 00:32:54 2011 NARUSE, Yui <naruse@ruby-lang.org>
* addr2line.c (get_nth_dirname): decrement the directory index
because the index specifies the index of given included_directories
which is separated by NUL and its index is begun from 1.
Note that 0 specifies the current directory of the compilation.
see also http://www.dwarfstd.org/doc/dwarf-2.0.0.pdf
Thu Jan 13 00:06:38 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* io.c (rb_f_syscall): Add warning messages. [ruby-core:34062]
Thu Jan 13 00:00:07 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* io.c (rb_f_syscall): Some syscall return unsigned or pointer value.
Therefore we should only check the result is -1 or not. [ruby-core:34062]
Wed Jan 12 23:55:48 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* io.c (rb_f_syscall): Add 64bit Linux support. Some syscall takes
long type arguments.
Wed Jan 12 19:37:10 2011 Tanaka Akira <akr@fsij.org>
* vm_dump.c: parenthesize macro arguments.
Wed Jan 12 19:28:23 2011 Tanaka Akira <akr@fsij.org>
* vm.c (thread_free): reset ruby_current_thread if it points the
thread to free.
* gc.c (slot_sweep): don't call RUBY_VM_SET_FINALIZER_INTERRUPT if
there is no current thread.
[ruby-dev:43000]
Wed Jan 12 19:09:29 2011 Tanaka Akira <akr@fsij.org>
* enum.c (sort_by_i): reenter check more strictly.
(sort_by_cmp): ditto.
[ruby-dev:43003] reported by Usaku NAKAMURA.
Wed Jan 12 16:25:12 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* lib/net/http.rb (Net::HTTP#connect): makes it timeout during
SSL handshake too. [ruby-core:34203]
Patch by Marc Slemko.
* test/net/http/test_http.rb (TestNetHTTP_v1_2#test_timeout_during_HTTP_session):
test for [ruby-core:34203]
* test/net/http/test_https.rb (TestNetHTTPS#test_timeout_during_SSL_handshake):
ditto.
Wed Jan 12 16:24:53 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* ext/readline/extconf.rb: new checks for RL_PROMPT_START_IGNORE
and RL_PROMPT_END_IGNORE. [ruby-core:34331]
* ext/readline/readline.c: enables USE_INSERT_IGNORE_ESCAPE only if
RL_PROMPT_{START,END}_IGNORE are available to get rid of compilation
error with libedit.
Wed Jan 12 15:53:49 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* README.EXT.ja (rb_ensure): typo.
Wed Jan 12 11:33:46 2011 NARUSE, Yui <naruse@ruby-lang.org>
* addr2line.c: OpenBSD uses the elf_abi.h header file instead of the
elf.h header file. patched by Jeremy Evans [ruby-core:34384]
Wed Jan 12 03:59:36 2011 NARUSE, Yui <naruse@ruby-lang.org>
* test/webrick/test_cgi.rb: Removes usage of deprecated
:RequestHandler option.
patched by Peter Weldon [ruby-core:34010]
* test/webrick/test_httpproxy.rb: ditto.
* test/webrick/test_httpserver.rb: Add a test of the deprecation
behaviour.
Wed Jan 12 08:37:07 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* hash.c (hash_i): return different values for inverse hash.
[ruby-core:34334]
Tue Jan 11 20:32:59 2011 Tanaka Akira <akr@fsij.org>
* variable.c: parenthesize macro arguments.
Tue Jan 11 13:06:38 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* array.c (rb_ary_resize): should care of embeded array when extending
the array.
* array.c (rb_ary_resize): need to set capa when changing the real
size of the array.
these are latent bugs.
Mon Jan 10 22:46:43 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/defines.h (CASEFOLD_FILESYSTEM): HFS+ is case
insensitive.
* load.c (loaded_feature_path, rb_feature_p, load_lock): on a
case-insensitive filesystem, loaded features search should
ignore case. [ruby-core:34297]
Mon Jan 10 21:34:12 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (showflags): show LD commands.
Mon Jan 10 14:32:55 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/ruby/test_method.rb (TestMethod#test_define_method): method
transplanting between class and module is impossible.
Mon Jan 10 13:51:17 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* misc/rdoc-mode.el (rdoc-mode): show trailing whitespace.
Mon Jan 10 11:22:02 2011 Tanaka Akira <akr@fsij.org>
* util.c: parenthesize macro arguments.
Mon Jan 10 07:41:31 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* misc/README: mention rdoc-mode.el and ruby-style.el.
Sun Jan 9 20:37:21 2011 Tanaka Akira <akr@fsij.org>
* transcode.c: parenthesize macro arguments.
Sun Jan 9 16:31:53 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* io.c (Kernel.#syscall): implemented on LP64/LLP64 environments too.
also uses __syscall if available for *BSD on 64bit architecture.
[ruby-core:34062]
Sun Jan 9 16:31:34 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* lib/irb/locale.rb (IRB::Locale::LOCALE_NAME_RE):
some platform has a locale without territory but with
encoding.
(#each_sub_locale): ditto.
Sun Jan 9 14:47:50 2011 TAKAO Kouji <kouji@takao7.net>
* ext/readline/readline.c: apply a patch from Nobuyoshi Nakada.
fixed #3616 [ruby-core:31484] IRB + readline incorrectly counts
non-printing characters in prompt
Sat Jan 8 21:47:26 2011 Tanaka Akira <akr@fsij.org>
* enum.c (enum_sort_by): use rb_ary_resize.
(ary_cutoff): removed.
Sat Jan 8 21:24:17 2011 Tanaka Akira <akr@fsij.org>
* pack.c (swapf): compilation condition simplified.
(swapd): ditto.
Sat Jan 8 20:51:25 2011 Tanaka Akira <akr@fsij.org>
* pack.c (swapd): remove duplicated code.
Sat Jan 8 19:28:55 2011 Tanaka Akira <akr@fsij.org>
* thread.c: parenthesize macro arguments.
Fri Jan 7 23:07:40 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (configuration): backref needs to capture.
Fri Jan 7 21:57:22 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* misc/ruby-mode.el (ruby-mode-variables), misc/ruby-style.el:
show trailing whitespace.
* misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): highlight
regexp after open bracket. [ruby-core:34183]
Fri Jan 7 00:37:35 2011 Tanaka Akira <akr@fsij.org>
* string.c: parenthesize macro arguments.
Thu Jan 6 22:42:02 2011 Yukihiro Matsumoto <matz@ruby-lang.org>
* bignum.c (bigmul1_karatsuba): avoid overflow that make assertion
fail in certain case. this patch is contributed from Ray Chason
<chasonr at gmail.com> in personal communication.
Thu Jan 6 20:55:49 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* lib/mkmf.rb (create_makefile): ignore rest from first dot from
TARGET to generate init function name.
this is followup of r30464.
Thu Jan 6 11:27:01 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/json/tree_builder.rb (start_mapping): tags
should not be included in JSON mapping
Thu Jan 6 09:23:33 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* lib/net/protocol.rb (eof?): BufferedIO should proxy eof? to the
underlying IO object.
Thu Jan 6 09:12:31 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* lib/mkmf.rb (configuration): fixing gsub when multiple error flags
are passed to GCC.
Thu Jan 6 05:25:49 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* array.c (rb_ary_modify): export.
Thu Jan 6 05:14:41 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/stringio/stringio.c (get_strio, strio_set_string)
(strio_reopen): check if frozen. [ruby-core:33648]
Thu Jan 6 05:10:58 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* array.c (rb_ary_resize): new utility function. [ruby-dev:42912]
Thu Jan 6 05:03:26 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* dln.c (init_funcname_len): ignore rest from first dot.
[ruby-dev:41774]
Thu Jan 6 02:55:48 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/visitors/yaml_tree.rb: use YAML 1.0 output
format for serializing nil values. Thanks Eric Hodel!
* test/psych/test_nil.rb: test for nil values
Wed Jan 5 14:21:34 2011 Mark Dodwell <hi@mkdynamic.co.uk>
* string.c: fix rdoc typo.
https://github.com/shyouhei/ruby/pull/3
Wed Jan 5 14:06:01 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/rdoc/test_rdoc_options.rb (TestRDocOptions#test_check_files):
skip on Windows because chmod 0 doesn't mean unreadable by owner.
Wed Jan 5 13:56:54 2011 Akinori MUSHA <knu@iDaemons.org>
* lib/net/http.rb (Net::HTTP#get): A header hash given should not
be modified.
Wed Jan 5 12:10:08 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/dl/{cfunc.c,dl.h,handle.c}, ext/fiddle/fiddle.{h,c}: Use _WIN32
rather than checking for windows.h. Thanks Jon Forums!
[ruby-core:33977]
Sat Jan 1 17:02:50 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* lib/irb/locale.rb (IRB::Locale#search_file): make it possible
to load a localization from a gem.
(IRB::Locale#lc_path): obsoleted because of the change of #search_file
(IRB::Locale#each_localized_path): new private method, based on lc_path
(IRB::Locale#find): follows the change of #search_file.
(IRB::Locale#load): removed duplicate with #find.
Sat Jan 1 11:44:42 2011 Tanaka Akira <akr@fsij.org>
* strftime.c: parenthesize macro arguments.
Sat Jan 1 11:10:29 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/zlib/zlib.c: take care of platforms where long is bigger
than int.
Sat Jan 1 11:03:58 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* NEWS (optparse): shell completion support.
* misc/README (rb_optparse.{bash,zsh}): for shell completion.
* include/ruby/intern.h (VALUE rb_ary_print_on): I have never seen
this function anywhere.
Sat Jan 1 04:20:11 2011 NARUSE, Yui <naruse@ruby-lang.org>
* win32/win32.c (rb_w32_write_console): don't raise exception when
the conversion is for writing to console.
Patched by Heesob Park [ruby-core:33999]
Fri Dec 31 12:02:06 2010 Tanaka Akira <akr@fsij.org>
* enum.c (enum_sort_by): use less temporary objects.
Fri Dec 31 11:46:47 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (warnflags), lib/mkmf.rb (configuration): turn
warnings into errors only for bundled extensions.
[ruby-core:33815]
Fri Dec 31 11:15:57 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/zlib/zlib.c (sizeof): zlib.h mistakenly assumes the result
of sizeof to be int, not size_t.
Fri Dec 31 10:27:34 2010 Tanaka Akira <akr@fsij.org>
* st.c: parenthesize macro arguments.
Fri Dec 31 03:23:26 2010 NARUSE, Yui <naruse@ruby-lang.org>
* vsnprintf.c (BSD__uqtoa): Fix overflow when long != quad_t.
patched by Peter Weldon <peter.weldon AT null.net>
[ruby-core:33985]
Fri Dec 31 03:00:34 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* Makefile.in: remove unnecessary semicolons.
Thu Dec 30 23:09:47 2010 wanabe <s.wanabe@gmail.com>
* vm.c (vm_define_method): guard iseq from GC while method definition.
[ruby-dev:42832]
Thu Dec 30 20:18:32 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* win32/Makefile.sub: ditto.
Thu Dec 30 20:57:09 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* Makefile.in: Check V=1 argument if run "make clean" or similar.
Thu Dec 30 20:41:50 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* Makefile.in: Kill ugly line continuation.
Thu Dec 30 11:49:40 2010 Tanaka Akira <akr@fsij.org>
* sprintf.c: parenthesize macro arguments.
Wed Dec 29 21:20:13 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (maygvl_copy_stream_wait_readwrite): define if USE_SENDFILE
Wed Dec 29 20:37:43 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/extmk.rb: strip current directory prefix.
* enc/depend (clean): remove name2ctype.h when out-of-place build.
* win32/Makefile.sub (clean-enc): pass V to inferior make.
Wed Dec 29 18:23:46 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* re.c (rb_reg_expr_str): need to escape if the coderange is invalid.
Wed Dec 29 10:06:51 2010 Tanaka Akira <akr@fsij.org>
* signal.c: parenthesize macro arguments.
Wed Dec 29 07:22:15 2010 Eric Hodel <drbrain@segment7.net>
* lib/rake/rdoctask.rb: Deprecate in favor of rdoc/task.
Wed Dec 29 07:07:06 2010 Eric Hodel <drbrain@segment7.net>
* lib/rdoc: Import RDoc 3.1
Tue Dec 28 18:36:38 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* error.c, include/ruby/intern.h (rb_compile_error_with_enc): new
function to raise syntax error, with source encoding'ed message.
* parse.y (compile_error): use above function.
[ruby-core:33951] (#4217)
Tue Dec 28 07:37:38 2010 Tanaka Akira <akr@fsij.org>
* ruby.c: parenthesize macro arguments.
Tue Dec 28 07:17:11 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* NEWS: add ARGF.write and so on.
Tue Dec 28 07:12:38 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* NEWS: add new magic-comment. (warn-indent) [ruby-core:25442]
Tue Dec 28 04:32:37 2010 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/fiddle/extconf.rb: check for windows.h while building fiddle.
Thanks Jon Forums! [ruby-core:33923]
Tue Dec 28 01:45:12 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* NEWS: Add Zlib.deflate and Zlib.inflate.
[ruby-dev:42833]
Mon Dec 27 21:22:33 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* win32/configure.bat: Remove obsoleted coding rule. Now, we
don't support to build on Windows 95/98 and Me.
Mon Dec 27 18:27:13 2010 Tanaka Akira <akr@fsij.org>
* re.c: parenthesize macro arguments.
Mon Dec 27 15:22:23 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/README.win32: note to need NT based OS to build ruby.
Mon Dec 27 12:14:46 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* common.mk (EXTMK_ARGS): specify to pass macro V, because nmake
doesn't pass it via MAKEFLAGS.
Mon Dec 27 10:33:43 2010 NARUSE, Yui <naruse@ruby-lang.org>
* ext/zlib/zlib.c (Init_zlib): Add Zlib.deflate and Zlib.inflate.
[ruby-dev:42833]
Mon Dec 27 07:38:07 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* misc/rb_optparse.zsh: add compdef for generator.
Mon Dec 27 07:32:07 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* lib/optparse.rb (OptionParser#compsys): escape brackets too.
[ruby-dev:42754]
Mon Dec 27 01:30:08 2010 Tanaka Akira <akr@fsij.org>
* ext/socket/mkconstants.rb: add IF_NAMESIZE.
add a default for INET6_ADDRSTRLEN.
Sun Dec 26 23:49:47 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* win32/Makefile.sub: suppress a strange error message when RMALL
found no such file.
* win32/rmall.bat: new.
Sun Dec 26 21:23:23 2010 <kosaki.motohiro@gmail.com>
* win32/Makefile.sub: fix 'nmake clean-enc' breakage since r28322.
Sun Dec 26 22:25:07 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/ripper/depend (ripper.y): fix messages with nmake.
[ruby-dev:42896]
Sun Dec 26 22:24:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* file.c (file_expand_path): get rid of warnings caused by
-Wdeclaration-after-statement on cygwin.
Sun Dec 26 20:28:34 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* process.c (before_exec): add small comment.
Sun Dec 26 20:52:21 2010 Tanaka Akira <akr@fsij.org>
* ext/socket/mkconstants.rb: define INET_ADDRSTRLEN as 16 if not
available. fix compilation error on mswin32-60. reported by nobu.
Sun Dec 26 19:37:37 2010 Tanaka Akira <akr@fsij.org>
* ext/socket/option.c: define IFNAMSIZ if not available.
fix compilation error on mingw32. reported by nobu.
Sun Dec 26 12:16:29 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/rdoc/ri/paths.rb (RDoc::RI::Paths::HOMEDIR): no exception if
HOME is not set. [ruby-core:33867]
Sun Dec 26 11:39:11 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (stmt): missing ripper rule. i.e., `a::B ||= c 1'.
http://twitter.com/#!/wannabe53/status/18797576396472321
http://twitter.com/#!/wannabe53/status/18798416150663168
Sun Dec 26 11:15:50 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/with_different_ofs.rb (DifferentOFS): should not affect
original classes.
Sun Dec 26 09:35:07 2010 Tanaka Akira <akr@fsij.org>
* rational.c: parenthesize macro arguments.
Sun Dec 26 09:22:19 2010 Tanaka Akira <akr@fsij.org>
* ext/socket/option.c (rb_if_indextoname): new function to abstract
environments without if_indextoname.
(inspect_ipv6_multicast_if): new function to inspect
IPV6_MULTICAST_IF.
Socket::Option.new(:INET6, :IPV6, :MULTICAST_IF,
[2].pack("I!")).inspect is
"#<Socket::Option: INET6 IPV6 MULTICAST_IF eth0>".
Sun Dec 26 04:31:15 2010 Luis Lavena <luislavena@gmail.com>
* ext/dl/win32/registry.rb: Corrected RegCreateKeyExA signature.
Patch by Rafal Michalski [ruby-core:33874] [Ruby 1.9-Bug#4203]
Sun Dec 26 02:31:58 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* io.c (advice_arg_check): Change argument check.
Now, an unsupported advice makes NotImplementedError.
[ruby-dev:42887] [Ruby 1.9-Feature#4204]
Sun Dec 26 03:00:53 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* ext/socket/extconf.rb: Fix build error which was introduced r30372.
Sun Dec 26 01:37:10 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/socket/extconf.rb: check the existence of if_indextoname().
* ext/socket/option.c: yesterday's akr's commits destroyed the build of
some unrelated platforms (such as Windows).
Sat Dec 25 23:29:11 2010 Tanaka Akira <akr@fsij.org>
* ext/socket/option.c (inspect_ipv4_add_drop_membership): new function
to inspect struct ip_mreq and struct ip_mreqn for
IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP.
Socket::Option.new(:INET, :IP, :ADD_MEMBERSHIP,
[239,255,99,81, 0,0,0,0].pack("CCCCCCCC")).inspect is now
"#<Socket::Option: INET IP ADD_MEMBERSHIP 239.255.99.81 0.0.0.0>".
(inspect_ipv4_multicast_if): new function to inspect struct in_addr
and struct ip_mreqn for IP_MULTICAST_IF.
Socket::Option.new(:INET, :IP, :MULTICAST_IF,
[192,168,0,7].pack("CCCC")).inspect is now
"#<Socket::Option: INET IP MULTICAST_IF 192.168.0.7>".
* ext/socket/extconf.rb: check struct ip_mreq and struct ip_mreqn.
Sat Dec 25 22:49:10 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/csv: DifferentOFS needs to be include in each classes.
* test/digest/test_digest_extend.rb (TestDigestExtend#setup):
should not depend on the result of previous tests
* test/with_different_ofs.rb (DifferentOFS::WithDifferentOFS): give
name.
* test/with_different_ofs.rb (DifferentOFS): test suite for test
suites affected by $,.
* test/digest/test_digest_extend.rb (TestDigestExtend): should not
assume $, invariant.
* test/csv/test_data_converters.rb, test/csv/test_table.rb: don't
call setup within tests.
Sat Dec 25 20:01:40 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* io.c (pipe_open): Added rb_thread_atfork(). We must reinitialize
GVL at new process creation.
Sat Dec 25 18:26:55 2010 Tanaka Akira <akr@fsij.org>
* ext/socket/option.c (inspect_ipv6_mreq): new function to inspect
struct ipv6_mreq for IPV6_JOIN_GROUP and IPV6_LEAVE_GROUP.
Socket::Option.new(:INET6, :IPV6, :JOIN_GROUP,
[0xff12,0,0,0,0,0,0,1, 2].pack("nnnnnnnnI!")).inspect is now
"#<Socket::Option: INET6 IPV6 JOIN_GROUP ff12::1 eth0>".
* ext/socket/extconf.rb: check struct ipv6_mreq.
Sat Dec 25 18:04:30 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/csv.rb (CSV.foreach): 'rb' mode is defaulted in open.
* lib/csv.rb (CSV#init_separators): cannonicalize encoding options
as Encoding objects.
Sat Dec 25 18:30:34 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_thread_atfork): Add small comment why we need
reset random seed.
Sat Dec 25 17:33:55 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/csv/base.rb (TestCSV.with_different_ofs): give name to
anonymous classes.
* lib/csv.rb (CSV#init_separators): use IO#gets with length
parameter to get rid of wrong convertion.
* lib/csv.rb (CSV::foreach, CSV#initialize): directly use encoding
* lib/csv.rb, test/csv: should not assume $, invariant.
Sat Dec 25 16:08:06 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* signal.c: change rb_atomic_t definition from uchar to uint.
Sat Dec 25 15:04:05 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/csv/test_encodings.rb (TestEncodings#setup): fix evil test
suite writing to the source directory.
Sat Dec 25 15:08:08 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* ext/pty/pty.c (chfunc): Added rb_thread_atfork_before_exec().
We must reinitialize GVL at new process creation. Otherwise
we may meet an insane deadlock. [Bug#4121][ruby-dev:42686]
Sat Dec 25 14:27:09 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (rb_io_extract_encoding_option): accept Encoding object as
encoding: optional argument. [ruby-dev:42884]
Sat Dec 25 13:37:55 2010 Ryan Davis <ryand-ruby@zenspider.com>
* lib/minitest/*.rb: Imported minitest 2.0.2 r6093.
Sat Dec 25 13:05:59 2010 Tanaka Akira <akr@fsij.org>
* random.c: parenthesize macro arguments.
Sat Dec 25 12:48:50 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* load.c (rb_f_require_relative): don't omit return type.
Sat Dec 25 11:06:00 2010 Eric Hodel <drbrain@segment7.net>
* load.c (rb_f_require_relative): Add documentation.
Sat Dec 25 11:02:52 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/zlib/zlib.c (gzreader_gets): support optional length
parameter.
* ext/zlib/zlib.c (gzfile_read, gzfile_readpartial): length should
be long.
Sat Dec 25 10:51:03 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/json/generator/generator.{c,h} (fbuffer_free_only_buffer):
unused.
* ext/openssl/ossl_pkcs5.c (ossl_pkcs5_pbkdf2_hmac): add casts.
Fri Dec 24 08:46:04 2010 Tanaka Akira <akr@fsij.org>
* process.c: parenthesize macro arguments.
Thu Dec 23 19:17:14 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* test/net/imap/cacert.pem: updated because it has been expired.
* test/net/imap/server.crt: signed again because CA cert was expired.
Thu Dec 23 11:16:52 2010 Tanaka Akira <akr@fsij.org>
* parse.y: parenthesize macro arguments.
Thu Dec 23 11:00:09 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* error.c (rb_check_type): check for type from extensions for ruby
1.8. see [ruby-core:33797].
Thu Dec 23 08:12:59 2010 Aaron Patterson <aaron@tenderlovemaking.com>
* lib/net/smtp.rb: refactoring Net::SMTP#esmtp= to use an
attr_accessor
Thu Dec 23 06:35:41 2010 Aaron Patterson <aaron@tenderlovemaking.com>
* lib/net/smtp.rb: Net::SMTP should close the SSL connection if the
connection verification fails.
Thu Dec 23 01:47:58 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* NEWS: remove #object_id. [ruby-dev:42840]
Wed Dec 22 08:56:39 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* NEWS: add Module#private_constant and Module#public_constant.
[ruby-dev:39685][ruby-core:32698]
Wed Dec 22 07:59:23 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* NEWS: add IO#advise. [ruby-core:33110] [Ruby 1.9-Feature#4038]
Tue Dec 21 23:45:31 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
* gc.c (Init_GC): move back object_id to Kernel. [ruby-dev:42840]
Tue Dec 21 12:45:16 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (target_archs): remove temporary objects.
* enc/Makefile.in, enc/depend (clean): remove work directories.
Tue Dec 21 07:39:12 2010 Tanaka Akira <akr@fsij.org>
* pack.c: parenthesize macro arguments.
Tue Dec 21 06:25:43 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/rexml/test_contrib.rb (ContribTester#test_pos): should not
use fixed path name for tests. [ruby-dev:42827]
* test/rexml/test_sax.rb (SAX2Tester#test_socket): should not use
fixed port for tests. [ruby-dev:42828]
Tue Dec 21 06:10:18 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* compile.c (setup_args), vm.c (invoke_block_from_c),
vm_insnhelper.c (caller_setup_args): reverted r30241 and r30243
except for the test.
Tue Dec 21 01:41:42 2010 Masaya Tarui <tarui@ruby-lnag.org>
* io.c : add an extra byte to buffer for the specification of read
in Windows. see [ruby-core:33460] and r29980. and, we have to
discuss how to do this one byte.
Tue Dec 21 01:18:06 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* error.c: Fix build error for win32. This regression was
introduced by r30271.
Tue Dec 21 00:59:40 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (thread_cleanup_func): Moved interrupted_lock
destroying code from native_thread_destroy() to
thread_cleanup_func() because it's platform independent logic.
* thread_win32.c (native_thread_destroy): ditto.
* thread_pthread.c (native_thread_destroy): ditto.
Tue Dec 21 00:46:20 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (thread_cleanup_func): Don't touch native threading
resource at fork. Sadly this is purely bandaid. We need to
implement proper fix later. [Bug #4169] [ruby-core:33767]
Tue Dec 21 00:22:44 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* error.c (exit_success_p): Check status code more carefully.
status code may have garbage in upper bit.
Mon Dec 20 23:12:37 2010 Tanaka Akira <akr@fsij.org>
* node.c: parenthesize macro arguments.
Mon Dec 20 20:04:41 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* NEWS: add #__id__ and #object_id. [ruby-dev:42778]
Mon Dec 20 20:03:21 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c (native_thread_destroy): Fixed gvl_cond leak.
Mon Dec 20 13:49:05 2010 Eric Hodel <drbrain@segment7.net>
* NEWS: Add item for RDoc 3.0.1
* lib/rdoc: Import RDoc 3.0.1, remove require for perl parser.
Mon Dec 20 12:15:32 2010 Eric Hodel <drbrain@segment7.net>
* lib/rdoc: Import RDoc 3.0.
Mon Dec 20 01:55:03 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* io.c (Init_IO): Added O_DIRECT. This feature was proposed by Run Paint Run Run.
[Feature #4015] [ruby-core:33018]
Sun Dec 19 19:15:23 2010 Tanaka Akira <akr@fsij.org>
* marshal.c: parenthesize macro arguments.
Sat Dec 18 21:52:37 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* vsnprintf.c (BSD_vfprintf): suppress warning: "_WIN32" is not
defined.
Sat Dec 18 16:02:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* compile.c (setup_args), vm.c (invoke_block_from_c),
vm_insnhelper.c (caller_setup_args): fix of r30241. lambda block
should check argument number.
Sat Dec 18 14:42:29 2010 Tanaka Akira <akr@fsij.org>
* load.c: parenthesize macro arguments.
Sat Dec 18 10:07:04 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* compile.c (setup_args, iseq_compile_each): optimize AMPER LAMBDA
combination as block.
Fri Dec 17 22:07:16 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
* gc.c (Init_GC): move #__id__ and #object_id to BasicObject.
[ruby-dev:42778]
Fri Dec 17 19:35:13 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/mkmf/base.rb (TestMkmf::FakeLog): capture output from mkmf.
* test/mkmf/test_find_executable.rb (test_find_executable):
suppress meaningless differences for chkbuild.
Fri Dec 17 13:26:54 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/setup.mak (BASERUBY): quit with an error when BASERUBY was not
able to set, just like configure.in does. [ruby-dev:42782]
Fri Dec 17 07:04:09 2010 Tanaka Akira <akr@fsij.org>
* iseq.c: parenthesize macro arguments.
Fri Dec 17 04:18:37 2010 Eric Hodel <drbrain@segment7.net>
* transcode.c (str_encode): Alter comment for better wording and ri
output.
Fri Dec 17 00:05:40 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* io.c (rb_io_advise): New API. IO#advise() allows to tell the
ruby runtime how it expects to use a file handle. This feature
can be improved a performance some situations.
Note: This feature is mainly developed by Run Paint Run Run.
Thank you! [ruby-core:33110] [Ruby 1.9-Feature#4038]
* io.c (do_io_advise): Helper function.
* io.c (io_advise_sym_to_const): ditto.
Thu Dec 16 23:29:20 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* tool/rbinstall.rb (bin-comm): use transformed name.
[ruby-dev:42777]
Thu Dec 16 21:52:07 2010 Tanaka Akira <akr@fsij.org>
* io.c: parenthesize macro arguments.
Thu Dec 16 21:46:39 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* tool/mkconfig.rb (RbConfig): honor ARCHFLAGS and RC_ARCHS to
override embedded ARCH_FLAG value on universal-darwin.
Thu Dec 16 19:50:12 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/{configure.bat,setup.mak,Makefile.sub} (PROGRAM_PREFIX,
PROGRAM_SUFFIX): unite the differences of the names of macros of
prefix and suffix.
reported by HANEDA Norikatsu. [ruby-dev:42775]
Thu Dec 16 08:04:47 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* node.h (RNode): match the type of flags to RBasic, and renamed
nd_file as nd_reserved.
* iseq.c (set_relation), vm_insnhelper.c (vm_cref_push): nd_file
is always zero-cleared.
Thu Dec 16 07:22:30 2010 Ryan Davis <ryand-ruby@zenspider.com>
* lib/minitest/unit.rb: Imported minitest 2.0.1 r6079.
Wed Dec 15 20:45:02 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* lib/test/unit.rb (process_args): need to setup @help to print options.
Wed Dec 15 11:19:33 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* test/zlib/test_zlib.rb (test_to_io): forgotten to fix with r30201.
Wed Dec 15 11:07:34 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (simple_sendfile): enable on Mac OS X.
* io.c (nogvl_copy_stream_sendfile): moved precheck of copy length.
* io.c (nogvl_copy_stream_sendfile): should wait for both of
read/write fds.
Wed Dec 15 07:11:55 2010 Tanaka Akira <akr@fsij.org>
* hash.c: parenthesize macro arguments.
Wed Dec 15 04:02:00 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* ext/openssl/ossl_x509ext.c (ossl_x509extfactory_set_config):
fix compile error when !HAVE_X509V3_SET_NCONF. Thanks
Chikanaga-san. [ruby-dev:42761] [Ruby 1.9-Bug#4158]
Wed Dec 15 03:41:31 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/ripper/test_parser_events.rb (TestRipper#test_block_variables):
Limit address space 100MB instead 100KB. Quite frankly, This
margin is too narrow to contain ruby. [ruby-dev:42763] [Bug#4159]
Tue Dec 14 23:53:52 2010 NARUSE, Yui <naruse@ruby-lang.org>
* io.c (simple_sendfile): improve linux compatibility on FreeBSD,
and now it works. But without cpuset -l 0, it still gets stuck.
Tue Dec 14 20:31:33 2010 Tanaka Akira <akr@fsij.org>
* gc.c: parenthesize macro arguments.
Tue Dec 14 18:31:48 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* lib/test/unit.rb: help messages.
Tue Dec 14 18:19:03 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* common.mk (help): there is no reason to use the abbreviation for here.
Tue Dec 14 15:03:46 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_io.rb (test_reopen, test_reinitialize): should close
the temporary files.
Tue Dec 14 14:24:15 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_io.rb (make_tempfile): change the prefix from 'foo'
to 'test_io' because the old one is meaningless and inconvenient.
* test/ruby/test_io.rb (test_binmode_after_closed): the temporary file
maked by make_temfile is already closed.
Tue Dec 14 13:52:19 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_io.rb (test_flush_in_finalizer[12]): should close
temporary file because it's only used for taking pathname and
unlinking the file after the end of the test (in GC phase).
Tue Dec 14 13:34:33 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/zlib/zlib.c (gzfile_s_open): should close the IO if some error
occurs in initializing.
Tue Dec 14 13:04:16 2010 NARUSE, Yui <naruse@ruby-lang.org>
* lib/net/http.rb (Net::HTTPRequest#send_request_body_data):
set binmode to tempfile.
Tue Dec 14 12:55:46 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* test/zlib/test_zlib.rb (*): should close files associated with zlib.
Tue Dec 14 11:30:17 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_argf.rb (test_inplace_rename_impossible): unlink
the renamed temporary file on no_safe_rename platforms.
* test/ruby/test_argf.rb (test_readlines_limit_0,
test_each_line_limit_0): should close argf because the associated
Tempfile object cannot unlink the temporary file when it's gc'ed