Mon Oct 9 01:56:34 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_obj_define_method): add new method
Kernel#define_singleton_method. [ruby-list:42851]
Sat Oct 7 23:53:08 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_scan): small documentation fix.
[ruby-core:09007]
Sat Oct 7 23:44:33 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* bignum.c (rb_big_rshift): a bug in right shift of negative
bignums. [ruby-core:09020]
Sat Oct 7 23:33:02 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (formal_assign): packed post splat arguments may conflict
with normal arguments. [ruby-core:09021]
* eval.c (rb_call0): ditto.
Sat Oct 7 11:53:04 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* object.c (rb_mod_initialize): since module_eval no longer passes
self, use module_exec instead. fixed: [ruby-dev:29637]
Sat Oct 7 00:27:58 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* class.c (rb_include_module): remove unnecessary check.
[ruby-talk:218402]
Fri Oct 6 15:19:59 2006 Akinori MUSHA <knu@iDaemons.org>
* ext/digest/depend: Fix header installation when the build
directory is different from srcdir. [Pointed out by: eban]
Fri Oct 6 09:56:31 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* {bcc32,win32,wince}/Makefile.sub (config.status): shouldn't use
copy command instead of install. use -run install.
Fri Oct 6 06:53:46 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_yield_0): small refactoring.
* parse.y (bparam_item): fixed bugs in handling parenthesized LHS.
Fri Oct 6 04:47:07 2006 Akinori MUSHA <knu@iDaemons.org>
* ext/digest/depend: Install digest.h.
Fri Oct 6 04:27:40 2006 Akinori MUSHA <knu@iDaemons.org>
* ext/digest/lib/md5.rb, ext/digest/lib/sha1.rb: Remove those
compatibility stub libraries.
* sample/openssl/c_rehash.rb: Use digest/md5 instead of obsolete md5.
Fri Oct 6 04:09:51 2006 Akinori MUSHA <knu@iDaemons.org>
* ext/digest/digest.c: Make hexdigest() always call digest() internally.
* ext/digest/digest.c: Add bubblebabble().
Fri Oct 6 02:38:42 2006 Akinori MUSHA <knu@iDaemons.org>
* ext/digest/digest.c: Allow subclassing in Ruby.
Fri Oct 6 02:06:10 2006 Akinori MUSHA <knu@iDaemons.org>
* ext/digest/digest.c (hexdigest_str_new): Add a string size check.
Thu Oct 5 19:28:35 2006 Akinori MUSHA <knu@iDaemons.org>
* ext/digest/digest.[ch]: Since the argument order of
hash_final_func_t was inconsistent with others, change it and
rename to hash_finish_func_t to avoid confusion.
* ext/digest/digest.[ch]: Remove and eliminate the use of
hash_end_func_t. Implement hexdigest conversion in the base
class.
* ext/digest/md5/md5.c, ext/digest/md5/md5.h,
ext/digest/md5/md5init.c, ext/digest/md5/md5ossl.c,
ext/digest/md5/md5ossl.h: Remove MD5_End() and change
MD5_Final() to MD5_Finish().
* ext/digest/rmd160/depend, ext/digest/rmd160/extconf.rb,
ext/digest/rmd160/rmd160.c, ext/digest/rmd160/rmd160.h,
ext/digest/rmd160/rmd160hl.c, ext/digest/rmd160/rmd160init.c,
ext/digest/rmd160/rmd160ossl.c, ext/digest/rmd160/rmd160ossl.h:
Remove unused functions RMD160_End(), RMD160_File(),
RMD160_Data() and change RMD160_Final() to RMD160_Finish().
* ext/digest/sha1/extconf.rb, ext/digest/sha1/sha1.c,
ext/digest/sha1/sha1.h, ext/digest/sha1/sha1hl.c,
ext/digest/sha1/sha1init.c, ext/digest/sha1/sha1ossl.c,
ext/digest/sha1/sha1ossl.h: Likewise.
* ext/digest/sha2/extconf.rb, ext/digest/sha2/sha2.c,
ext/digest/sha2/sha2.h, ext/digest/sha2/sha2hl.c,
ext/digest/sha2/sha2init.c: Likewise.
Wed Oct 4 18:47:25 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/lib/tkextlib/*: bugfix and update
(see ext/tk/ChangeLog.tkextlib).
Wed Oct 4 17:25:14 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_call): check protected visibility based on real self,
not ruby_frame->self. [ruby-talk:217822]
Wed Oct 4 15:46:32 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (block_param): should interpret single parenthesized
left hand side expression.
Wed Oct 4 08:52:30 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/optparse/test_getopts.rb: changed the class name of test case
to get rid of conflict with test_optparse.rb.
Tue Oct 3 21:04:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (dyna_in_block): inline using macro.
* parse.y (mlhs): simplifies the rule a bit.
* parse.y (block_param): restrict block parameters to be local
variables only.
* test/ruby/test_iterator.rb (TestIterator::test_nested_iterator):
update test suite to conform the last change.
Tue Oct 3 02:31:13 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (splat_value): use "to_splat" instead of "to_ary" to
prepare splat values as an array.
* array.c (Init_Array): define to_splat.
* range.c (range_to_splat): new method.
* enumerator.c (enumerator_to_splat): ditto.
Tue Oct 3 01:36:47 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_lines): returns an Enumerator instead of an
array of lines.
* string.c (rb_str_bytes): a new method.
Mon Oct 2 23:47:55 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::COLLECTORS):
base directory should be lower precedence. fixed: [ruby-dev:29622]
* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner#options): typo.
* lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#collect_file):
load expanded path. fixed: [ruby-dev:29621]
Mon Oct 2 15:47:55 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* instruby.rb: batfile should be CRLF'ed.
Mon Oct 2 01:24:26 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (test-all): separate directory where running test cases
from source tree.
* lib/test/unit/autorunner.rb (options): added --basedir, --workdir
and --load-path options.
* lib/test/unit/collector/dir.rb (recursive_collect, collect_file):
base directory support.
Sun Oct 1 23:56:52 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* Makefile.in, common.mk, ext/extmk.rb, win{32,ce}/Makefile.in: keep
LIBRUBY_SO unless need to be removed.
Sun Oct 1 23:12:19 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/optparse.rb (OptionParser#make_switch): pass arguments directly.
Sat Sep 30 15:11:26 2006 Tadayoshi Funaba <tadf@dotrb.org>
* lib/date.rb, lib/date/format.rb: updated based on date2 3.9.4.
Fri Sep 29 13:18:24 2006 Akinori MUSHA <knu@iDaemons.org>
* ext/digest/lib/digest.rb (Digest): Require digest.so and fix the
breakage. Point out by NAKAMURA Usaku in [ruby-dev:29619].
Fri Sep 29 12:11:04 2006 WATANABE Hirofumi <eban@ruby-lang.org>
* jcode.rb (succ!): call original succ! if $KCODE == 'n'.
fixed: [ruby-talk:216845]
Fri Sep 29 11:43:40 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (try_func): revert fallback checking undeclared function.
fixed: [ruby-core:08949]
Fri Sep 29 09:56:56 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/extmk.rb: extout is needed for also clean.
fixed: [ruby-core:08944]
* lib/optparse.rb (OptionParser::Switch#conv_arg): unsplat by
Proc#call if no conversion is given.
Thu Sep 28 23:59:31 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* node.h (struct thread): declare win32_exception_list on cygwin and
win32 regardless if it is implemented. Provisional fix for
[ruby-core:08917].
Thu Sep 28 20:49:20 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* lib/tmpdir.rb: use return value of getdir.call for length.
Wed Sep 27 22:08:16 2006 Akinori MUSHA <knu@iDaemons.org>
* ext/digest/md5/md5init.c (Init_md5): Now that we have digest.rb,
require "digest" rather than "digest.so".
* ext/digest/rmd160/rmd160init.c (Init_rmd160): Ditto.
* ext/digest/sha1/sha1init.c (Init_sha1): Ditto.
* ext/digest/sha2/sha2init.c (Init_sha2): Ditto.
Wed Sep 27 21:21:08 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_startwith): rename startwith? to start_with?,
endwith? to endwith?, respectively. [ruby-talk:216685]
Wed Sep 27 13:29:01 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/cgi.rb (CGI::TagMaker::nOE_element_def): replace to_s by
join. some other methods as well. [ruby-dev:29613]
Wed Sep 27 01:04:49 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (try_func): check function pointer first and macro next.
* lib/mkmf.rb (have_type): simplified with typedef and sizeof.
Wed Sep 27 00:08:12 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* array.c (rb_ary_shift): shift/unshift performance boost patch,
based on the patch from Eric Mahurin <eric_mahurin at yahoo.com>.
[ruby-core:05861]
* array.c (rb_ary_unshift_m): ditto.
* array.c (ary_make_shared): ditto.
* array.c (RESIZE_CAPA): ditto.
* array.c (rb_ary_free): new function to free memory. code moved
from gc.c.
* string.c (rb_str_free): ditto.
Tue Sep 26 23:57:03 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/optparse.rb (OptionParser#getopts): use strings as key.
fixed: [ruby-dev:29614]
Tue Sep 26 15:29:55 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* {win32,wince}/Makefile.sub (CPP): check predefined value.
Tue Sep 26 07:55:16 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* array.c (rb_ary_shift): should not move memory region if array
body is shared. a patch from Kent Sibilev <ksruby at gmail.com>.
[ruby-core:08922]
Mon Sep 25 23:10:46 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* dir.c (rb_push_glob): need not to check by FilePathValue().
[ruby-dev:29599]
* dir.c (dir_globs): ditto.
Mon Sep 25 22:26:26 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* file.c (rb_path_end): skip root directory. fixed: [ruby-core:08913]
* lib/mkmf.rb (rm_f): get rid of NUL.
* lib/mkmf.rb (init_mkmf): set default $LDFLAGS. Patch by Michal
Suchanek <hramrach at centrum.cz>. [ruby-talk:216256]
Mon Sep 25 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* sample/test.rb: "print nil" now prints empty string.
* test/ruby/test_system.rb (TestSystem::test_system): ditto.
Mon Sep 25 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* hash.c (recursive_hash): remove unused local variable.
* parse.y (parser_yylex): ditto.
* parse.y (rb_gc_mark_symbols): fix unmatched prototype .
* file.c (rb_get_path): check NUL byte in the path string.
Mon Sep 25 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* array.c (rb_ary_shift): should clear shifting top element.
[ruby-talk:216055]
* array.c (rb_ary_shift): avoid creating shared object if array
size is small.
Mon Sep 25 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* random.c (rb_f_rand): RDoc typo fix. a patch from Frederick
Cheung <fred at 82ask.com>. [ruby-talk:216047]
Sun Sep 24 21:24:54 2006 Guy Decoux <ts@moulon.inra.fr>
* gc.c (gc_mark_children): NODE_POSTEXE holds Ruby VALUE.
[ruby-core:08912]
Sun Sep 24 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* runruby.rb: extension library scripts moved into common directory.
Sun Sep 24 21:24:54 2006 Tadayoshi Funaba <tadf@dotrb.org>
* lib/date.rb, lib/date/format.rb: updated based on date2 3.9.3.
Sun Sep 24 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (rb_io_print): no special handling for nil as well as puts.
fixed: [ruby-dev:29586]
Sun Sep 24 21:24:54 2006 why the lucky stiff <why@ruby-lang.org>
* eval.c (rb_thread_save_context, rb_thread_restore_context):
sandbox hook to save and restore sandbox state.
* eval.c (thread_no_ensure): added THREAD_NO_ENSURE thread flag.
* eval.c (rb_thread_kill_bang): Thread#kill! uses the above flag
to circumvent ensure, in order to prevent endless loops.
contributed by MenTaLguY. [ruby-core:08768]
* eval.c (rb_thread_kill): fix Thread#kill docs, which returns
the thread object in all cases.
* node.h: expose the rb_jmpbuf_t and rb_thread_t structs, along
with the thread flags. used by the sandbox extension.
* ruby.h: extern rb_eThreadError, so sandbox can swap it.
Sat Sep 23 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/cgi.rb (CGI::QueryExtension::read_multipart): CGI content
may be empty. a patch from Jamis Buck <jamis at 37signals.com>.
Sat Sep 23 21:24:54 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
* oniguruma.h: Version 4.4.4
* regexec.c: ditto.
* regcomp.c ditto.
Sat Sep 23 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/rdoc/ri/ri_options.rb: prevent NameError. [ruby-dev:29597]
Sat Sep 23 21:24:54 2006 Tadayoshi Funaba <tadf@dotrb.org>
* lib/date.rb, lib/date/format.rb: updated based on date2 3.9.2.
Fri Sep 22 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_partition): no need to call rb_call_super(),
since String is no longer includes Enumerable.
Fri Sep 22 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* hash.c (rb_hash_eql): new method to be used by Hash.
* hash.c (rb_hash_hash): ditto.
Fri Sep 22 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* bignum.c (rb_big_hash): use rb_memhash().
* numeric.c (flo_hash): simplified. klass need not to affect
resulting hash value.
Fri Sep 22 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* .cvsignore: ignore timestamp files and installed list file.
Fri Sep 22 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* instruby.rb: include FileUtils unconditionally.
Fri Sep 22 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* numeric.c (Init_Numeric): fix_odd_p and fix_even_p are for Fixnum.
patch from Ondrej Bilka <neleai at seznam.cz>. [ruby-core:08904]
Thu Sep 21 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (no-install): not install rdoc actually.
* common.mk (install-doc, no-install-doc): use instruby.rb.
* instruby.rb: rdoc installation.
* ext/extmk.rb: expand ruby executable names.
Thu Sep 21 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (str_new3): embed shorter strings more eagerly.
Thu Sep 21 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_startwith): a new method to check if a string
starts with given prefix.
* string.c (rb_str_endwith): the opposite of String#startwith?.
Thu Sep 21 21:24:54 2006 WATANABE Hirofumi <eban@ruby-lang.org>
* rubytest.rb: use each_line instead of each.
Thu Sep 21 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* numeric.c (int_odd_p): a new method to check even or odd.
[RCR#337]
* numeric.c (int_even_p): ditto.
Thu Sep 21 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/etc/etc.c (etc_getpwuid): uid integer should be wraped in
uid_t value. [ruby-core:08897]
* ext/etc/etc.c (etc_getpwuid): uid_t may be bigger than plain
'int' type.
Thu Sep 21 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_partition): RDoc typo fixed. [ruby-core:08898]
* string.c (rb_str_rpartition): fixed separation seek bug.
Thu Sep 21 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_lines): new method to split a string into lines.
* string.c (Init_String): Strings are no longer Enumerable. use
each_line or lines method explicitly.
* string.c (Init_String): remove each method. use each_lines.
Wed Sep 20 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (pre-install-doc): create data directory before install.
* lib/mkmf.rb (dir_re): fixed typo.
* lib/mkmf.rb (install_dirs): remove extra slash.
Wed Sep 20 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* numeric.c (fix_mul): typo again. patch from Tadashi Saito
<shiba at mail2.accsnet.ne.jp>. fixed: [ruby-core:08893]
Wed Sep 20 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_partition): a new method to separate the string
by a separator. taken from Python 2.5.
* string.c (rb_str_rpartition): ditto.
Wed Sep 20 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* {bcc32,win32,wince}/Makefile.sub (INSTALLED_LIST): need to define
this macro to install.
Wed Sep 20 21:24:54 2006 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/imap.rb: allow extra spaces in responses.
Thanks, Tom Soderlund.
Wed Sep 20 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/gdbm/gdbm.c: add RDoc documentation. a patch from Peter
Adolphs <futzilogik at users dot sourceforge dot net>.
[ruby-doc:1223]
Tue Sep 19 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (sym_eql): fail early to gain performance.
* string.c (sym_hash): cache hash value in aux.shared if possible.
* gc.c (rb_obj_id): no need to treat symbols specially.
* lib/fileutils.rb (FileUtils::FileUtils): singleton_methods() no
longer return an array of strings, but of symbols.
* lib/delegate.rb (DelegateClass): ditto.
Tue Sep 19 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* object.c (rb_obj_ivar_defined, rb_mod_cvar_defined): new methods,
Kernel#instance_variable_defined? and Module#class_variable_defined?.
[ruby-dev:29587]
* lib/date/format.rb (Date::Bag#method_missing): use new method,
instance_variable_defined? to check if an instance variable is
defined. fixed: [ruby-dev:29554]
Mon Sep 18 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* dir.c (dir_s_glob): restore GC protection volatile variable.
[ruby-dev:29588]
* re.c (rb_reg_regcomp): ditto.
Mon Sep 18 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* numeric.c (fix_mul): get rid of shift overflow.
Mon Sep 18 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* dir.c (dir_s_glob): remove unused variable.
* math.c (math_log): ditto.
* re.c (rb_reg_regcomp): ditto.
* eval.c (break_jump): ditto.
* eval.c (rb_thread_yield_0): remove unused function.
Sun Sep 17 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/rdoc/rdoc.rb (RDoc::RDoc#document): scan only files modified
after the previous generation.
Sun Sep 17 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (install-doc): reverted.
* instruby.rb: stores file name list without destdir prefix.
* lib/rdoc/generators/ri_generator.rb: do not chdir twice.
Sun Sep 17 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* numeric.c (fix_mul): fixed typo. fixed: [ruby-core:08885]
Sat Sep 16 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* README.EXT: should mention new macros: RSTRING_PTR, RSTRING_LEN,
RARRAY_PTR, RARRAY_LEN.
* README.EXT.ja: ditto.
Sat Sep 16 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* Makefile.in, common.in, instruby.rb, ext/extmk.rb, lib/mkmf.rb:
use instruby.rb to install extensions instead of ext/extmk.rb.
* instruby.rb: store installed list into the file.
* ext/dbm/extconf.rb: allow multiple candidates for dbm-type.
* ext/io/wait/extconf.rb: suspicious checking_for.
* ext/pty/pty.c (establishShell): parent pid is not used.
* ext/pty/pty.c (freeDevice): not used.
* lib/mkmf.rb (checking_for): improved the messages.
Sat Sep 16 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* array.c (ary_shared_first): should create embedded copies
instead of sharing memory region for smaller arrays.
Sat Sep 16 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* struct.c (inspect_struct): do not display a class name for
anonymous struct. The member fields are sufficient.
Fri Sep 15 21:24:54 2006 NARUSE, Yui <naruse@ruby-lang.org>
* ext/nkf/nkf-8/nkf.c: imported nkf 2.0.8 rev.110.
* Fix: check_bom cuts \xfe\xff\xXX\xXX of UTF-32LE.
* Add support --ic=UTF-32.
* Fix: can't guess UTF-16 and UTF-32.
* Fix: can't decode beyond BMP of UTF-16LE.
* ext/nkf/nkf.c (guess): Support UTF-32.
* ext/nkf/lib/kconv.rb (kconv): Support UTF-32.
* ext/nkf/lib/kconv.rb (to_utf32): new method.
Fri Sep 15 21:24:54 2006 NARUSE, Yui <naruse@ruby-lang.org>
* ext/nkf/nkf-8/nkf.c: imported nkf 2.0.8 2006-09-15.
Add support for U+10000 - U+10FFFF
Add support UTF-32
Fri Sep 15 21:24:54 2006 Tanaka Akira <akr@fsij.org>
* ext/digest/lib/digest.rb (Digest::Base.file): open a file in binary
mode. suggested by Kazuhiro NISHIYAMA. [ruby-dev:29579]
Thu Sep 14 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* numeric.c (fix_mul): avoid bignum multiplication as far as
possible. a patch from Ondrej Bilka <neleai at seznam.cz>.
[ruby-core:08825]
Thu Sep 14 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_intern): allow zero length symbols.
[ruby-core:08861]
Thu Sep 14 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_intern): raise SecurityError only when $SAFE
level is greater than zero. [ruby-core:08862]
* parse.y (rb_interned_p): new function to check if a string is
already interned.
* string.c (str_to_id): use rb_str_intern().
Thu Sep 14 21:24:54 2006 Tanaka Akira <akr@fsij.org>
* ext/digest/lib/digest.rb (Digest::Base.file): new method.
[ruby-dev:29572]
Thu Sep 14 21:24:54 2006 Tanaka Akira <akr@fsij.org>
* ext/digest/digest.c (rb_digest_base_inspect): new method.
[ruby-dev:29573]
Thu Sep 14 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* gc.c (ruby_init_stack): decrease "stack level too deep" in Windows.
[ruby-dev:29569]
Thu Sep 14 21:24:54 2006 Tanaka Akira <akr@fsij.org>
* ext/digest/lib/digest.rb: new file.
[ruby-dev:28689]
Wed Sep 13 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* README.EXT: English adjustment. [ruby-core:08851] and
[ruby-core:08852]
Wed Sep 13 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* misc/ruby-mode.el (ruby-parse-partial): better here-doc support.
a patch from Marshall T. Vandegrift <llasram at gmail.com>.
[ruby-core:08804]
Wed Sep 13 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_intern): prohibit interning tainted string.
Wed Sep 13 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/optparse.rb (OptionParser#getopts): works with pre-registered
options. [ruby-core:08826]
Tue Sep 12 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* hash.c (rb_hash_compare_by_identity): rename Hash#identical to
Hash#compare_by_identity.
Mon Sep 11 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* hash.c (rb_hash_identical): a new method to make a hash to
compare keys by their identity.
* hash.c (rb_hash_identical_p): new method to tell if a hash is
identical or not.
* st.c (st_numcmp, st_numhash): export hash type functions.
Mon Sep 11 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/rexml/source.rb (REXML::Source::encoding): should not
convert the body twice. [ruby-core:08828]
* lib/rexml/encoding.rb (REXML::Encoding::encoding):
Encoding#encoding= to return boolean value to tell if the body
is really converted or not.
* lib/rexml/encoding.rb (REXML::Encoding::encoding): Specific
conversion library (e.g. rexml/encodings/UTF-16.rb) to have
higher preceding.
* lib/rexml/encodings/UTF-16.rb (REXML::Encoding::decode_utf16):
UTF-16#decode_utf16 should work strings without BOM.
Mon Sep 11 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (sym_equal): "sym == str" should compare them as
strings. [ruby-dev:29554]
Sun Sep 10 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* instruby.rb (parse_args): remove splat.
Sun Sep 10 21:24:54 2006 Tadayoshi Funaba <tadf@dotrb.org>
* lib/date.rb, lib/date/format.rb: updated based on date2 3.9.1.
Sun Sep 10 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* file.c: ISPRINT() needs ctype.h
Sun Sep 10 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/optparse.rb: splat parsed arguments.
Tue Jan 10 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_require_safe): prevent extension from loading twice.
fixed: [ruby-dev:29523]
Sat Sep 9 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* file.c (rb_f_test): test(0) should not have any special
meaning. [ruby-dev:29425]
* file.c (rb_f_test): properer error message.
Sat Sep 9 21:24:54 2006 Eric Hodel <drbrain@segment7.net>
* lib/test/unit/testcase.rb (Test::Unit::TestCase#run): Rescue
Exception in Test::Unit::TestCase#run. [ruby-core:08783]
Sat Sep 9 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/pstore.rb: open all in binary mode, and get rid of the quirk of
msvcrt. fixed: [ruby-dev:29518]
Sat Sep 9 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* Makefile.in, win32/Makefile.sub (MINIRUBY): append MINIRUBYOPT.
* mkconfig.rb, ext/extmk.rb, lib/mkmf.rb, win32/mkexports.rb: suppress
warnings with $VERBOSE.
* win32/resource.rb: only file which has more than one icon is DLL.
Fri Sep 8 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (str_alloc): should allocate a String object, even when
asked to allocate a Symbol object. [ruby-dev:29529]
Fri Sep 8 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/extmk.rb (extmake): follow Array#to_s.
* lib/mkmf.rb (create_makefile): ditto.
* win32/resource.rb: ditto.
Fri Sep 8 21:24:54 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
* lib/webrick/cookie.rb (WEBrick::Cookie.parse_set_cookies): new
method to parse multiple cookies per Set-Cookie header.
Thanks to Aaron Patterson <aaron_patterson at speakeasy.net>.
[ruby-core:08802]
Fri Sep 8 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* win32/Makefile.sub, win32/configure.bat win32/setup.mak: program
name transform.
Fri Sep 8 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/optparse.rb: suppress `assigning void value' warning.
Fri Sep 8 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* array.c (Init_Array): #to_s to be an alias to #inspect.
[ruby-dev:29520]
* hash.c (Init_Hash): ditto.
* lib/mkmf.rb (create_makefile): replace "print array" by
"print *array".
* mkconfig.rb: ditto.
Thu Sep 7 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* object.c (nil_to_s): returns the empty string again.
[ruby-dev:29520]
Thu Sep 7 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* file.c (path_check_0, fpath_check): disable path check on cygwin.
[ruby-talk:213074]
Thu Sep 7 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* time.c (time_to_s): adopt new date format using digits
e.g. "2006-09-07 21:24:54 +9000".
Thu Sep 7 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (sym_equal): override. check equivalence.
Wed Sep 6 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (symbols_i): need to initialize early-created symbols.
[ruby-dev:29496]
Wed Sep 06 21:24:54 2006 NARUSE, Yui <naruse@ruby-lang.org>
* ext/nkf/lib/kconv.rb (Kconv::toeuc): remove -m0 [ruby-dev:29505]
Tue Sep 5 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/tk/tcltklib.c: use rb_ary_new3() since RARRAY_LEN() is not l-value.
* ext/tk/tkutil/tkutil.c: use RARRAY_PTR() and RARRAY_LEN() and etc.
fixed: [ruby-dev:29473]
Tue Sep 5 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* time.c (time_to_s): variable declaration after an execution
statement.
Tue Sep 5 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* file.c (path_check_0): check if sticky bit is set on parent
directories for executable path. fixed: [ruby-dev:29415]
Tue Sep 5 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* numeric.c (fix_plus): addition in Fixnum will never overflow
long. a patch from Ondrej Bilka <neleai at seznam.cz>.
[ruby-core:08794]
* numeric.c (fix_minus): ditto.
* bignum.c (rb_big_pow): eagerly truncate resulting bignum.
[ruby-core:08794]
Mon Sep 4 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* time.c (time_to_s): make it conform to RFC2822 date format.
[ruby-dev:29467]
Mon Sep 4 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/dbm/extconf.rb: create makefile according to the result of check
for dbm header. fixed: [ruby-dev:29445]
Mon Sep 4 21:24:54 2006 Tadayoshi Funaba <tadf@dotrb.org>
* lib/date.rb, lib/date/format.rb: updated based on date2 3.9.
Mon Sep 4 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* time.c (time_strftime): include nul character. fixed: [ruby-dev:29422]
Mon Sep 4 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/cgi.rb (CGI::out): specify -x option for nkf.
* lib/cgi.rb (CGI::out): should not convert utf-8 implicitly using
NKF. it is too Japanese centric.
Mon Sep 4 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/dbm/extconf.rb (db_check): remove debug print.
Mon Sep 4 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (rb_id2sym): intern if id is attrset_id.
[ruby-dev:29420] [ruby-dev:29447]
Mon Sep 4 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_f_local_variables): list symbols.
* struct.c (rb_struct_s_members_m): ditto.
* variable.c (ivar_i): ditto.
* variable.c (gvar_i): ditto.
* variable.c (cv_i): ditto.
Sun Sep 3 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ruby.h (SYMBOL_P): Qnil and Qfalse are not Symbol.
Sun Sep 3 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb: get rid of nil.to_s.
Sun Sep 3 21:24:54 2006 Tanaka Akira <akr@fsij.org>
* ext/socket/socket.c (ruby_connect): sockerrlen should be socklen_t.
Sun Sep 3 21:24:54 2006 Tanaka Akira <akr@fsij.org>
* ext/socket/extconf.rb: check arpa/inet.h for ntohs.
* ext/socket/socket.c: include arpa/inet.h if available.
Sat Sep 2 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (Init_String): undef Symbol#new.
* struct.c (rb_struct_s_def): wrong symbol detection.
Sat Sep 2 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (str_to_id): a bug caused by premature optimization.
Sat Sep 2 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* object.c (Init_Object): move symbol related code to string.c
* string.c (Init_String): Symbol as subclass of String.
* parse.y (rb_intern2): handle symbol as strings.
* string.c (str_new): substring of symbols are mere strings, not
symbols.
Sat Sep 2 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ruby.h (struct RArray): embed small arrays.
(RARRAY_LEN): defined for accessing array members.
(RARRAY_PTR): ditto.
* array.c: use RARRAY_LEN and RARRAY_PTR.
Sat Sep 2 21:24:54 2006 Tanaka Akira <akr@fsij.org>
* common.mk (ia64.o): use the compiler driver to assemble ia64.s
to use appropriate ABI.
Sat Sep 2 21:24:54 2006 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
* lib/soap/generator.rb (SOAP::SOAPGenerator#encode_tag): do not dump
XML attribute which value is nil. value "" and nil both were dumped
as 'attr="value"'. [ruby-dev:29395]
Sat Sep 2 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_eval): should handle when in else clause. a patch
from Eric Hodel <drbrain at segment7.net>. [ruby-core:08662]
* parse.y (primary): wrap with NODE_CASE. [ruby-core:08663]
Sat Sep 2 21:24:54 2006 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
* lib/csv.rb (CSV::IOReader#initialize): use String#[](pos, len)
instead of String#[](idx) to check utf BOM. follows String#[](idx)
behavior change of 1.9.
Sat Sep 2 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_eval): should handle when in else clause. a patch
from Eric Hodel <drbrain at segment7.net>. [ruby-core:08662]
* parse.y (primary): wrap with NODE_CASE. [ruby-core:08663]
Fri Sep 1 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ruby.h (RSTRING_EMBED_LEN_MASK): uses 5 bits to support 64bit
environment. [ruby-dev:29369]
Fri Sep 1 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_resize): should copy embedded string to
malloc'ed buffer. a patch from <nobu at ruby-lang.org> in
[ruby-dev:29369]. fixed: [ruby-dev:29368]
* string.c (rb_str_ord): use %ld specifier since STRING_LEN() is a
long. [ruby-dev:29369]
Fri Sep 1 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/socket/socket.c (socks_init): typo fixed. a patch from Sven
Klemm <sven at c3d2.de>. [ruby-core:08770]
Fri Sep 1 21:24:54 2006 WATANABE Hirofumi <eban@ruby-lang.org>
* array.c (rb_ary_shuffle): RDoc fixed.
Fri Sep 1 21:24:54 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/lib/tk/font.rb: TkFont#current_configinfo() doesn't work
on Tcl/Tk8.x.
Fri Sep 1 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/irb/ruby-lex.rb (RubyLex::getc): should not push nil into
reading buffer (@readed). reported in
<http://jarp.does.notwork.org/diary/200608c.html#200608311>.
Thu Aug 31 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (configuration): follow nil.to_s.
Thu Aug 31 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* lib/mkmf.rb (create_makefile): follow nil.to_s.
* win32/resource.rb: ditto.
Thu Aug 31 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* eval.c (search_required): use RSTRING_PTR and RSTRING_STR.
* file.c (test_identical, rb_file_s_truncate): ditto.
* io.c (pipe_open, rb_io_reopen): ditto.
* object.c (nil_plus): ditto.
* process.c (proc_spawn_n, rb_spawn): ditto.
* util.c (ruby_add_suffix): ditto.
* ext/Win32API/Win32API.c (Win32API_initialize): ditto.
* ext/dl/cptr.c (rb_dlptr_s_to_ptr): ditto.
* ext/openssl/ossl_x509ext.c (ossl_x509extfactory_create_ext): ditto.
* ext/tk/stubs.c, ext/tk/tcltklib.c, ext/tk/tkutil/tkutil.c: ditto.
* ext/win32ole/win32ole.c (ole_val2olevariantdata): ditto.
Thu Aug 31 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ruby.h (struct RString): embed small strings.
(RSTRING_LEN): defined for accessing string members.
(RSTRING_PTR): ditto.
* string.c: use RSTRING_LEN and RSTRING_PTR.
Thu Aug 31 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* array.c (rb_ary_shuffle_bang): new method.
* array.c (rb_ary_shuffle): ditto.
* random.c (genrand_real): ditto.
* random.c (genrand_int32): export the function.
* random.c (Init_Random): initialize random seed at the
beginning.
Thu Aug 31 21:24:54 2006 why the lucky stiff <why@ruby-lang.org>
* eval.c (ruby_init): rename top_cref to ruby_top_cref and export,
along with ruby_cref, for use by the sandbox. [ruby-core:08762]
* node.h: ditto.
Wed Aug 30 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* numeric.c (flo_hash): improve collision.
* string.c (rb_memhash): new generic function to calculate hash value
for memory chunk.
Tue Aug 29 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* hash.c (rb_hash_s_create): fixed memory leak, based on the patch
by Kent Sibilev <ksruby at gmail.com>. fixed: [ruby-talk:211233]
Mon Aug 28 21:24:54 2006 Eric Hodel <drbrain@segment7.net>
* eval.c, parse.y: Revert.
* ext/.document: Add digest.c.
* ext/digest/digest.c: Make RDoc show up.
* ext/io/wait.c: Fix call-seq in RDoc.
Mon Aug 28 21:24:54 2006 Eric Hodel <drbrain@segment7.net>
* ext/.document: Add C files with RDoc.
* ext/digest/digest.c: Convert to RDoc.
* ext/io/wait.c: ditto.
* lib/rdoc/parsers/parse_rb.rb: Fix typo. Submitted by
<calamitas at gmail.com>. [ruby-core:08724]
Mon Aug 28 21:24:54 2006 Eric Hodel <drbrain@segment7.net>
* file.c (File#size?): Fix documentation submitted by Rick Ohnemus.
ruby-Bugs-5529. [ruby-core:08725]
Sun Aug 27 21:24:54 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
* oniguruma.h: Version 4.4.0
* regint.h: ditto.
* regparse.h: ditto.
* regexec.c: ditto.
* regcomp.c ditto.
* regparse.c: ditto.
Sat Aug 26 21:24:54 2006 Tadayoshi Funaba <tadf@dotrb.org>
* lib/date.rb, lib/date/format.rb: updated based on date2 3.8.2.
Fri Aug 25 21:24:54 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
* common.mk: add regint.h and oniguruma.h to dependence.
* ext/strscan/depend: ditto.
Fri Aug 25 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* test/wsdl/document/echo.rb: removed.
* test/wsdl/document/test_rpc.rb: remove echo.rb after test.
[ruby-dev:29337]
Fri Aug 25 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* gc.c (gc_sweep): typo fixed.
Fri Aug 25 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* object.c (sym_call): check if the receiver is given.
Fri Aug 25 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* object.c (rb_Integer): Integer(nil) should raise TypeError.
[ruby-talk:210205]
* object.c (nil_to_s): no longer returns empty string but "nil".
[ruby-talk:210205]
* lib/mkmf.rb: avoid COMMON_HEADERS being nil.
Wed Aug 23 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/rexml/source.rb (REXML::IOSource#initialize): encoding have to
be set with the accessor. fixed: [ruby-list:42737]
Tue Aug 22 21:24:54 2006 Minero Aoki <aamine@loveruby.net>
* lib/net/smtp.rb: parameter `to_addrs' might be an Array,
.flatten is required. [ruby-dev:29316]
Tue Aug 22 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::handle_method):
rdoc documents C module methods as instance methods. a patch in
[ruby-core:08536].
Tue Aug 22 21:24:54 2006 NARUSE, Yui <naruse@ruby-lang.org>
* ext/nkf/lib/kconv.rb (Kconv::RegexpEucjp): fix regexp for
euc-jp [ruby-dev:29344]
Sun Aug 20 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* numeric.c (num_step): also return an enumerator object if no block
is given.
Sat Aug 19 21:24:54 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
* ext/win32ole/win32ole.c (hash2named_arg): accept hash argument
of symbol key.
* test/win32ole/test_win32ole.rb
ditto.
Sat Aug 19 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* file.c (rb_file_s_rename): use errno if set properly.
fixed: [ruby-dev:29293]
Fri Aug 18 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/cgi.rb (CGI::out): specify -m0 to disable MIME decode. a
patch from Fujioka <fuj at rabbix.jp>. [ruby-dev:29284]
Thu Aug 17 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* file.c (rb_stat_[rRwWxX]): check for super user.
fixed: [ruby-core:08616]
Thu Aug 17 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb: added rdoc by Daniel Berger. [ruby-core:08177]
Wed Aug 16 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* marshal.c (r_byte): IO#getc returns one byte string now.
fixed: [ruby-dev:29255]
Wed Aug 16 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* common.mk (pre-install-local): remove unnecessary code.
[ruby-dev:29249]
Wed Aug 16 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* process.c (proc_setuid, proc_setgid, proc_seteuid, proc_setegid):
get rid of bogus implementations on Mac OS X.
Wed Aug 16 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ruby.c (set_arg0): fill argv other than the first with an empty
string instead of NULL.
Tue Aug 15 21:24:54 2006 Minero Aoki <aamine@loveruby.net>
* lib/net/smtp.rb: support SMTP/SSL. Thanks Kazuhiro NISHIYAMA.
* lib/net/smtp.rb: new method SMTP.use_ssl?
* lib/net/smtp.rb: new method SMTP.enable_ssl.
* lib/net/smtp.rb: new method SMTP.disable_ssl.
* lib/net/smtp.rb: new method SMTP.default_ssl_port.
* lib/net/smtp.rb: new method SMTP.default_tls_port.
* lib/net/smtp.rb: now SMTP#enable_tls accepts a SSLContext
object, instead of a verity and cert. [FEATURE CHANGE]
* lib/net/smtp.rb: new method SMTP.ssl_context.
* lib/net/smtp.rb: new method SMTP.default_ssl_context.
* lib/net/smtp.rb: export SMTP.authenticate.
* lib/net/smtp.rb: export SMTP.auth_plain.
* lib/net/smtp.rb: export SMTP.auth_login.
* lib/net/smtp.rb: export SMTP.auth_cram_md5.
* lib/net/smtp.rb: export SMTP.starttls.
* lib/net/smtp.rb: export SMTP.helo.
* lib/net/smtp.rb: export SMTP.ehlo.
* lib/net/smtp.rb: export SMTP.mailfrom.
* lib/net/smtp.rb: export SMTP.rcptto.
* lib/net/smtp.rb: export SMTP.rcptto_list.
* lib/net/smtp.rb: export SMTP.data.
* lib/net/smtp.rb: export SMTP.quit.
Sat Aug 12 21:24:54 2006 Eric Hodel <drbrain@segment7.net>
* string.c (String#split): Describe grouping behavior. Patch by Jan
Svitok <jan.svitok at gmail.com>. [ruby-core:08603]
Sun Aug 13 21:24:54 2006 Tanaka Akira <akr@fsij.org>
* ext/socket/socket.c: ANSIfied. [ruby-core:08601]
Sat Aug 12 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in, bcc32/Makefile.sub, win32/Makefile.sub, win32/dir.h,
win32/win32.c, win32/win32.h: large file support for win32.
Fri Aug 11 21:24:54 2006 Eric Hodel <drbrain@segment7.net>
* lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#find_body): Make RDoc
ignore C function prototypes. Patch by Tilman Sauerbeck
<tilman at code-monkey.de>. [ruby-core:8574]
* lib/yaml/tag.rb: Replace nodoc with stopdoc so Module methods get
documented.
Wed Aug 9 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/net/smtp.rb (Net::SMTP::auth_cram_md5): use ord to retrieve
bytes from strings. a patch from WATANABE Tetsuya
<Tetsuya.WATANABE at nifty.com>. [ruby-dev:29240]
Tue Aug 8 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/irb/extend-command.rb (IRB::ExtendCommandBundle): pacify
RDoc. a patch from Eric Hodel <drbrain at segment7.net>.
[ruby-core:08522]
Tue Aug 8 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/resolv.rb (Resolv::DNS::Message::MessageDecoder::get_string):
affected by str[0] returns 1 char string. [ruby-dev:29223]
* lib/resolv.rb (Resolv::DNS::Message::MessageDecoder::get_labels):
ditto.
Tue Aug 8 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (arg): allow newlines before ternary colon. [ruby-dev:29189]
Mon Aug 7 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/bigdecimal/bigdecimal.c, ext/digest/rmd160/rmd160ossl.c,
ext/digest/sha1/sha1ossl.c, ext/readline/readline.c: move
inclusion of config.h to pacify AIX. a patch from Yutaka
Kanemoto <kinpoco at gmail.com>. [ruby-dev:29197]
Mon Aug 7 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/syck/syck.c (syck_move_tokens): should avoid negative
memmove. [ruby-list:42625]
Mon Aug 7 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* configure.in, common.mk: AIX link issue. a patch from Yutaka
Kanemoto <kinpoco at gmail.com>. [ruby-dev:29190]
* ext/socket/socket.c: AIX socket support. [ruby-dev:29190]
Mon Aug 7 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* dln.c, eval.c, gc.c, ruby.h: shut up AIX alloca warning.
a patch from Yutaka Kanemoto <kinpoco at gmail.com>.
[ruby-dev:29191]
Sun Aug 6 21:24:54 2006 Tadayoshi Funaba <tadf@dotrb.org>
* lib/date/format.rb (str[fp]time): %[EO]U didn't denote %U.
Sun Aug 6 21:24:54 2006 Tanaka Akira <akr@fsij.org>
* io.c (io_reopen): STDERR.reopen(open("/dev/tty", "w")) should not
clear FMODE_PREP in STDERR.
Sat Aug 5 21:24:54 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
* oniguruma.h: Version 4.2.2
* regint.h: ditto.
* regparse.h: ditto.
* regexec.c: ditto.
* regcomp.c ditto.
* regerror.c: ditto.
* regparse.c: ditto.
Sat Aug 5 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (top_local_setup): local_vars[-1] should point
ruby_scope itself to protect local_tbl from garbage collection.
[ruby-dev:29049]
Sat Aug 5 21:24:54 2006 Tadayoshi Funaba <tadf@dotrb.org>
* lib/date/format.rb (str[fp]time): "%\n" means "\n".
Fri Aug 4 21:24:54 2006 Eric Hodel <drbrain@segment7.net>
* lib: Clean up files for RDoc.
* lib/.document: Include most of the standard library in RDoc
generation.
* lib/rdoc/ri/ri_formatter.rb: Don't unescape HTML in HtmlFormatter.
Submitted by <ksruby at gmail.com>. [ruby-core:08392].
* lib/drb/ssl.rb: Close socket on SSLError [ruby-core:7197]
Fri Aug 4 21:24:54 2006 Keiju Ishitsuka <keiju@ruby-lang.org>
* lib/irb/{init.rb,ruby-lex.rb,slex.rb}: can't input '\c' for
[ruby-core: 7122]. and support for ruby1.8.X
Fri Aug 4 21:24:54 2006 James Edward Gray II <james@grayproductions.net>
* lib/date/format.rb (__strptime, strftime): allow multi-line patterns
in Date#strftime the same as Time#strftime accepts.
fixed: [ruby-core:08466]
Fri Aug 4 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* pack.c (pack_pack): check argument overrun for 'P'. based on a
patch by rucila <rucila at yahoo.cojp>. fixed: [ruby-dev:29182]
Fri Aug 4 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* sprintf.c (rb_str_format): a bug in %c type check.
Fri Aug 4 21:24:54 2006 Tanaka Akira <akr@fsij.org>
* io.c (io_reopen): STDERR.reopen(File.open("/dev/null", "w")) should
not fclose stderr.
Thu Aug 3 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* range.c (range_include): should always call Enumerable#include?
(not #===) for non numeric end points. [ruby-core:08477]
[ruby-core:08496]
Mon Jul 31 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (exit_handler): new function; release winsock and
environment work area.
* win32/win32.c (NTInitialize): setup exit_handler.
* win32/win32.c (StartSockets): use exit_handler.
* win32/win32.c (rb_w32_getenv): use GetEnvironmentStrings() instead
of GetEnvironmentVariable(), because the latter cannot distinguish
whether a null environment variable exists or not.
fixed: [ruby-talk:205123]
Mon Jul 31 21:24:54 2006 Tanaka Akira <akr@fsij.org>
* test/ruby/test_process.rb (TestProcess#test_rlimit_nofile):
setrlimit may fail with EINVAL.
reported by MIYAMUKO Katsuyuki. [ruby-dev:29174]
Mon Jul 31 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ruby.h: use ifdef (or defined) for macro constants that may or
may not be defined to shut up gcc's -Wundef warnings.
[ruby-core:08447]
Mon Jul 31 21:24:54 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
* lib/webrick/httprequest.rb (WEBrick::HTTPReuqest#parse_uri): improve
for the value of IPv6 address in the Host: header field.
Sun Jul 30 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_call0): trace call/return of method defined from block.
fixed: [ruby-core:08329]
* eval.c (rb_trap_eval): make the current thread runnable to deal with
exceptions which occurred within the trap. fixed: [ruby-dev:27729]
* lib/cgi/session.rb, lib/cgi/session/pstore.rb: suppress warnings.
fixed: [ruby-talk:204896]
Sat Jul 29 21:24:54 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/lib/multi-tk.rb: freeze ip_name for security reason.
Sat Jul 29 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/logger.rb: improves the amount of documentation that Rdoc
picks up when processing logger.rb by moving the require
statement back before the comment block. a patch from Hugh
Sasse <hgs at dmu.ac.uk>. [ruby-core:08422]
Fri Jul 28 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/curses/curses.c (NUM2CH, CH2FIX): use single char strings.
Fri Jul 28 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_call): fixed typo in cache look-up. [ruby-dev:29167]
Fri Jul 28 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_call): a bug in method cache look-up.
http://www.rubyist.net/~matz/20060720.html#c04
Fri Jul 28 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* sprintf.c (rb_f_sprintf): documentation update patch from Jacob
Fugal <lukfugl at gmail.com>. [ruby-core:08418]
Fri Jul 28 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* time.c (time_to_s): fixed typo. [ruby-dev:29162]
Fri Jul 28 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* math.c (domain_check): ANSI style function arguments
* math.c (math_log): too few argument to domain_check().
Thu Jul 27 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* math.c (domain_check): a new function to check domain error
explicitly for systems that return NaN like FreeBSD.
[ruby-core:07019]
* math.c (math_acos, math_asin, math_acosh, math_atanh, math_log,
math_log10, math_sqrt): use domain_check().
* math.c (math_sqrt): fix documentation flaw.
Thu Jul 27 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* time.c (time_to_s): fixed format mismatch.
Thu Jul 27 21:24:54 2006 WATANABE Hirofumi <eban@ruby-lang.org>
* time.c: need to declare time_utc_offset.
Thu Jul 27 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* io.c (io_close): always calls "close" method of the receiver.
[ruby-core:6911] [ruby-core:8112]
Thu Jul 27 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/openssl/ossl.h: move <ruby.h> inclusion point to shut up
Solaris compiler. [ruby-core:08114]
* time.c (time_to_s): use +0900 style timezone string for local time.
[ruby-dev:29143]
Wed Jul 26 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* configure.in: add support for as and ASFLAGS. [ruby-dev:29138]
Wed Jul 26 21:24:54 2006 Minero Aoki <aamine@loveruby.net>
* lib/net/http.rb (Net::HTTP#post, request_post, request): should
set Content-Type: x-www-form-urlencoded by default.
* lib/net/http.rb (Net::HTTPHeader#content_type): should return
nil when there's no Content-Type.
* lib/net/http.rb (Net::HTTPHeader#sub_type): should return nil
when there's no sub Content-Type (e.g. "Content-Type: text").
* lib/net/http.rb (Net::HTTPHeader#type_params): wrongly failed
when there's no Content-Type.
Wed Jul 26 21:24:54 2006 Minero Aoki <aamine@loveruby.net>
* ext/strscan/strscan.c (strscan_do_scan): always return nil if
p->curr exceeds string size.
Wed Jul 26 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (Init_eval): rename #invoke_method and
#invoke_functional_method to __send and __send! respectively.
* eval.c (remove_method): prohibit removing __send and __send!.
* eval.c (rb_undef): prohibit undef'ing __send and __send!.
* eval.c (rb_eval): prohibit redefining __send and __send!.
* lib/delegate.rb (Delegator): preserve __send.
Wed Jul 26 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/pty/pty.c (getDevice): retry once after GC on failure.
[ruby-core:08282]
Wed Jul 26 21:24:54 2006 Minero Aoki <aamine@loveruby.net>
* ext/strscan/strscan.c (strscan_do_scan):
StringScanner.new("").scan(//) should return "". [ruby-Bugs:4361]
Wed Jul 26 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* sprintf.c (rb_str_format): prepend ".." to %u for negative bignum,
but not "-". fixed: [ruby-core:08167]
Wed Jul 26 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_scan): add string modification check.
[ruby-core:7216]
Wed Jul 26 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/cgi.rb (CGI::QueryExtension::read_multipart): check
multipart boundary end. a patch from Fujioka <fuj at rabbix.jp>
[ruby-dev:28470]
Wed Jul 26 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in: suppress warnings by automake 1.8 or later.
Tue Jul 25 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* lib/mkmf.rb (configuration): typo.
Tue Jul 25 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* process.c (rb_proc_times): rename hz to hertz to avoid name
crash on AIX. [ruby-dev:29126]
Mon Jul 24 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (backtrace): skip frames successive on node and method name.
Mon Jul 24 21:24:54 2006 Tanaka Akira <akr@fsij.org>
* ext/readline/readline.c (readline_readline): rl_deprep_term_function
may be NULL with libedit. reported by Ryan Davis. [ruby-dev:29070]
Mon Jul 24 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_call0): revert last change. [ruby-dev:29112]
[ruby-core:08374]
Sun Jul 23 21:24:54 2006 Tanaka Akira <akr@fsij.org>
* test/socket/test_unix.rb: disabled on cygwin.
reported by Kouhei Yanagita. [ruby-dev:29080]
Fri Jul 21 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ruby.c (proc_options): script is never used while recursing.
Fri Jul 21 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_call0): include funcalled methods in caller list.
fixed: [ruby-core:08290]
Fri Jul 21 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* object.c (rb_cstr_to_dbl): "9_e8" should consider "_e8" as
trailing garbage so that it should return 9.0. [ruby-dev:29088]
Fri Jul 21 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/extmk.rb, lib/mkmf.rb (with_destdir): remove drive letter before
prepending destdir on DOSISH.
Fri Jul 21 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_call): try local method look-up first for fcall, then
normal method look-up. [ruby-talk:202564]
* eval.c (rb_get_method_body): save local method cache separately.
* eval.c (search_method): export info whether method is local or
not.
Thu Jul 20 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* object.c (rb_mod_attr): make Module#attr to be an alias to
attr_reader. [RCR#331]
Thu Jul 20 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ruby.h: export classes/modules to implement sandbox.
[ruby-core:08283]
Wed Jul 19 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_yield_0): should check args_args before lambda
argument check. [ruby-dev:29029]
Tue Jul 18 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* process.c (rb_f_system): shouldn't block SIGCHLD if it's not
exist.
Tue Jul 18 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* process.c (rb_f_system): block SIGCHLD during the process
execution, like glibc system(3) does. [ruby-talk:202361]
Tue Jul 18 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (open_ifs_socket): should not use plain malloc.
* win32/win32.c (rb_w32_opendir): should not use plain realloc.
Tue Jul 18 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* test/ruby/test_float.rb (TestFloat::test_strtod): update test to
conform strtod change.
Tue Jul 18 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (yield_under_i): argument should be passed in avalue
form. [ruby-dev:29044]
Tue Jul 18 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* pack.c (pack_unpack): propagate association array to copied
string. [ruby-core:08223]
* pack.c (pack_unpack): return referenced string itself if it has
same length as specified. a patch from <nobu at ruby-lang.org>
in [ruby-core:08225].
* pack.c (pack_pack): taint 'p' packed strings.
Tue Jul 18 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* intern.h (st_foreach_safe): fix prototype.
* node.h (NODE_LMASK): bigger than long on LLP64.
* missing/vsnprintf.c (BSD__uqtoa): new function to support LLP64.
all changes are derived from [ruby-dev:29045]
Tue Jul 18 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/webrick/httpserver.rb (WEBrick::HTTPServer::unmount): remove
inpect argument from sprintf. [ruby-dev:29039]
Tue Jul 18 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* object.c (rb_cstr_to_dbl): limit out-of-range message.
* util.c (ruby_strtod): return end pointer even if ERANGE occurred.
fixed: [ruby-dev:29041]
Mon Jul 18 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* util.c (ruby_strtod): stop at dot not followed by digits.
fixed: [ruby-dev:29035]
Tue Jul 18 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/extmk.rb: remove LIBRUBY_SO if static linked extensions exist.
Mon Jul 17 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (rb_cv_msvcrt): defaulted to msvcrt. Workaround for a
bug of cygwin 1.5.20.
Mon Jul 17 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/io/wait/wait.c (io_ready_p): protoize.
Mon Jul 17 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* pack.c (define_swapx): should not use plain malloc.
* ext/curses/curses.c (curses_getmouse): ditto.
Mon Jul 17 21:24:54 2006 WATANABE Hirofumi <eban@ruby-lang.org>
* configure.in: should use ac_cv_lib_dl_dlopen=no on MinGW.
Mon Jul 17 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* st.c: still need to include config.h on some platforms.
Sat Jul 15 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* st.c (malloc): use xmalloc/xcalloc instead of plain
malloc/calloc, to detect memory allocation failure. see
<http://www.nongnu.org/failmalloc/>.
Fri Jul 14 21:24:54 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/lib/tk.rb: add methods for new features of latest Tcl/Tk8.5.
* ext/tk/lib/tk/namespace.rb: ditto.
Fri Jul 14 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/monitor.rb: document patch from Hugh Sasse <hgs at dmu.ac.uk>.
[ruby-core:08205]
Fri Jul 14 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* array.c (rb_ary_pop): may cause realloc oscillation. a patch
from MORITA Naoyuki <mlgetter at kidou.sakura.ne.jp>.
[ruby-dev:29028]
Thu Jul 13 21:24:54 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/lib/tk/composite.rb: improve handling of the classname on the
option database for the widget class which includes TkComposite.
Thu Jul 13 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ruby.h (FIX2LONG): returns integer of size of VALUE.
[ruby-dev:29024]
* ruby.h (FIX2ULONG): ditto.
Wed Jul 12 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (f_args): allow post mandatory arguments after optional
arguments. [ruby-dev:29014]
* parse.y (new_args_gen): allow post_args without rest_args.
* eval.c (formal_assign): ditto.
* parse.y (new_args_gen): check post argument duplication.
Tue Jul 11 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ruby.h: export rb_cMethod. [ruby-talk:201259]
Tue Jul 11 21:24:54 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/lib/multi-tk.rb: remove restriction on the class of
pseudo-toplevel.
Tue Jul 11 21:24:54 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/lib/multi-tk.rb: security fix.
Tue Jul 11 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* string.c (rb_str_dump): need to extend len for \b.
Tue Jul 11 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* bignum.c (rb_int2big): use SIGNED_VALUE. [ruby-dev:29019]
* bignum.c (rb_int2inum, rb_uint2inum): use VALUE sized integer.
* bignum.c (rb_big2long, rb_big2ulong): ditto.
* numeric.c (rb_num2long, rb_num2ulong): ditto.
* numeric.c (check_int, check_uint): ditto.
* bignum.c (rb_quad_pack): typo fixed.
Tue Jul 11 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* bignum.c (bignorm): sizeof(long) may be smaller than
sizeof(VALUE). [ruby-dev:29013]
* ruby.h (FIXNUM_MAX): fixnum may be bigger than long.
* ruby.h (SIGNED_VALUE): signed integer of size of VALUE.
Mon Jul 10 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/soap/rpc/proxy.rb (Proxy::Operation::response_doc): remove
splat star from return statements.
* lib/soap/rpc/proxy.rb (Proxy::Operation::response_obj): retrieve
the first value from the result array if response has only one
value.
Mon Jul 10 21:24:54 2006 Shigeo Kobayashi <shigek@ruby-lang.org>
* ext/bigdecimal/bigdecimal.c: Allows '_' to appear within
digits. [ruby-dev:28872]
* ext/bigdecimal/lib/bigdecimal/util.rb: Bug in to_r reported by
[ruby-list:42533] fixed.
Mon Jul 10 21:24:54 2006 Tanaka Akira <akr@fsij.org>
* gc.c (gc_sweep): expand heap earlier.
reported by MORITA Naoyuki. [ruby-dev:28960]
Mon Jul 10 21:24:54 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/lib/tk/font.rb: sorry. mistaken to patch.
Mon Jul 10 21:24:54 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/tcltklib.c: make SEGV risk lower at exit.
* ext/tk/lib/tk.rb: ditto.
* ext/tk/lib/multi-tk.rb: fail to call function-style methods on slave
interpreters. The strategy (MultiTkIp_PseudoToplevel_Evaluable) to
fix the problem is a little tricky. You may have to take care of
conflicting with it.
* ext/tk/lib/tk.rb: a little change for the pseudo-toplevel strategy.
* ext/tk/lib/tk/font.rb: ditto.
* ext/tk/lib/tk/msgcat.rb: ditto.
* ext/tk/lib/tkextlib/itk/incr_tk.rb: ditto.
* ext/tk/sample/demos-en/widget: fail to call function-style methods
on sample scripts. To fix it, a strategy which similar to the way
on MultiTiIp is used. Please take care when re-write and re-run a
demo script on the Widget-Demo code viewer.
* ext/tk/sample/demos-jp/widget: ditto.
Mon Jul 10 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* sample/test.rb: update test suites.
* test/ruby/test_assignment.rb (TestAssignment::test_yield): ditto.
* test/ruby/test_iterator.rb (TestIterator::test_itertest): ditto.
Mon Jul 10 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_call): remove erroneously restored prot_tag->blkid
initialization. [ruby-dev:28997] [ruby-dev:29000]
Mon Jul 10 21:24:54 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* signal.c (install_nativethread_sighandler): commented out.
Mon Jul 10 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_clear_cache_for_remove): clear entries for included
module. fixed: [ruby-core:08180]
Mon Jul 10 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (proc_invoke): should not overwrite block information in
current frame. [ruby-dev:28957]
* eval.c (rb_yield_0): retrieve proper block object from the frame
record.
* eval.c (proc_alloc): return preserved block object if it's
available.
Mon Jul 10 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* st.h (st_data_t): use pointer sized integer for st_data_t.
[ruby-dev:28988]
Sun Jul 9 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (try_constant): fix for value 1 at cross compiling.
* lib/mkmf.rb (create_makefile): prevent substitution of macro
definition. fixed: http://www.yotabanana.com/lab/20060624.html#p02
Sun Jul 9 21:24:54 2006 Ryan Davis <ryand@zenspider.com>
* lib/rdoc/parsers/parse_f95.rb: massive overhaul from Yasuhiro
Morikawa including new file suffixes, function support, public
variables and constants, derived-types, defined operators and
assignments, namelists, and subroutine and function
arguments. Truly massive.
* lib/rdoc/diagram.rb: diagrams are now cached.
* lib/irb/completion.rb: fixed a crasher when completing against
an unnamed class/module.
* lib/rdoc/parsers/parse_c.rb: private comment (--/++) support in
C-file rdoc.
* lib/debug.rb: minor clarification in help.
* lib/pp.rb: minor clarification on exception.
Sun Jul 9 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (next_jump): deal with destination of next.
fixed: [ruby-core:08169]
Fri Jul 7 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* string.c (rb_str_ord): extract lower byte. fixed: [ruby-dev:28980]
* lib/jcode.rb (String#succ!): fix for 1.9. fixed: [ruby-dev:28979]
Fri Jul 7 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/Makefile.sub (config.h): define FUNC_STDCALL/FUNC_CDECL.
from [ruby-dev:28970].
Fri Jul 7 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* hash.c (rb_hash_default): should not call default procedure if
no key is given. [ruby-list:42541]
Thu Jul 6 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* process.c (rb_proc_times): use sysconf(_SC_CLK_TCK) value prior to
HZ and CLK_TCK. fixed: [ruby-talk:200293]
Thu Jul 6 21:24:54 2006 Minero Aoki <aamine@loveruby.net>
* ext/racc/cparse/cparse.c: sync with original code, rev 1.8.
* ext/racc/cparse/cparse.c: should mark CparseParams objects.
* lib/racc/parser.rb: sync with original code, rev 1.8.
* lib/racc/parser.rb: update coding style.
Wed Jul 5 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (block_param): should allow block argument after splat
and post splat args.
Wed Jul 5 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* test/ruby/test_lambda.rb (TestLambdaParameters::test_lambda_as_iterator):
-> style block no longer available. [ruby-dev:28958]
Tue Jul 4 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* ruby.c (proc_options): supress warning on DOSISH.
Tue Jul 4 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_call): should not set prot_tag->blkid since it would
never catch breaks at this level. [ruby-dev:28922]
Tue Jul 4 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* bignum.c: ruby 1.9 HEAD 64 bit warnings clean up from
<ville.mattila at stonesoft.com>. [ruby-core:08120]
Mon Jul 3 21:24:54 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/tcltklib.c (ip_make_menu_embeddable): help to make a menu
widget embeddable (pack, grid, and so on) like as a general widget.
However, an embeddable menu may require to be definied some event
bindings for general use.
* ext/tk/lib/tk/event.rb: [bug fix] Tk.callback_break and
Tk.callback_continue don't work on MultiTkIp.
* ext/tk/lib/multi-tk.rb: ditto.
* ext/tk/lib/tk.rb: lack of Tk.callback_return.
* ext/tk/lib/tk/menu.rb: improve creating clone menus.
Mon Jul 3 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/etc/extconf.rb (PW_UID2VAL, PW_GID2VAL): defaulted to conversion
from int, and sys/types.h needs to be included before grp.h.
fixed: [ruby-dev:28938]
Mon Jul 3 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (popen_exec): close file descriptors other than standard I/Os.
fixed: [ruby-dev:28924]
Mon Jul 3 21:24:54 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
* test/openssl/test_asn1.c: String#[]= doesn't accept Integer.
Mon Jul 3 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_inspect): encode \b (\010) for escape.
[ruby-dev:28927]
* string.c (rb_str_dump): ditto.
Sun Jul 2 21:24:54 2006 Minero Aoki <aamine@loveruby.net>
* ext/racc/cparse/cparse.c: sync with original code, rev 1.7.
* ext/racc/cparse/cparse.c: must require version.h to get
RUBY_VERSION_CODE.
Sun Jul 2 21:24:54 2006 Minero Aoki <aamine@loveruby.net>
* ext/racc/cparse/cparse.c: sync with original source code, rev
1.6.
* ext/racc/cparse/cparse.c: do not use rb_iterate to give a block
to the method, use rb_block_call instead. [ruby-dev:28445]
Sun Jul 2 21:24:54 2006 Tanaka Akira <akr@m17n.org>
* io.c (io_reopen): STDOUT.reopen(filename, "w+") didn't work.
(rb_io_reopen): STDOUT.reopen(File.open(filename, "w+")) didn't work.
Sat Jul 1 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (PUSH_FRAME): initialize frame->self. [ruby-dev:28911]
Sat Jul 1 21:24:54 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
* test/webrick/utils.rb: use Proc#yield instead of Proc#call.
[ruby-dev:28914]
Sat Jul 1 21:24:54 2006 Tanaka Akira <akr@m17n.org>
* test/socket/test_nonblock.rb: add timeout to send/receive
an empty UDP packet.
[ruby-dev:28820]
Fri Jun 30 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* configure.in: should test isinf for Solaris with GCC compiler.
a patch from <ville.mattila at stonesoft.com>. [ruby-core:07791]
* configure.in: -shared patch from Andrew Morrow
<andrew.c.morrow at gmail.com>. [ruby-core:08100]
Fri Jun 30 21:24:54 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
* lib/webrick/httputils.rb (WEBrick::HTTPUtils._escape): should
use String#ord to get ascii code from the one-character string.
[ruby-dev:28901]
Thu Jun 29 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* gc.c (gc_mark_children): a bug in NODE_BLOCK_PASS marking.
[ruby-dev:28908]
Thu Jun 29 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y: use ARGSPUSH instead of ARGSCAT to prevent too much
splat expansion.
* eval.c (when_check): need to handle ARGSPUSH as well.
* eval.c (block_orphan): lambda and proc from method are always
orphan.
* gc.c (gc_mark_children): proper marking for NODE_LAMBDA.
Thu Jun 29 21:24:54 2006 Tanaka Akira <akr@m17n.org>
* eval.c (SETUP_ARGS0): avoid GC problem.
[ruby-dev:28902]
Thu Jun 29 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/bigdecimal/bigdecimal.c (BigDecimal_version): fix patch
failure.
Thu Jun 29 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/bigdecimal/bigdecimal.c: add RDoc document. a patch from
mathew <meta at pobox.com>. [ruby-core:07050]
Wed Jun 28 21:24:54 2006 Eric Hodel <drbrain@segment7.net>
* lib/optparse.rb: RDoc patch from Robin Stocker <robin@nibor.org>
[ruby-core:08087]
Wed Jun 28 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* object.c (rb_cstr_to_dbl): underscores should appear only
between digits. [ruby-dev:28891]
Wed Jun 28 21:24:54 2006 Tanaka Akira <akr@m17n.org>
* test/socket/test_unix.rb: test_seqpacket_pair removed.
[ruby-dev:28846]
Wed Jun 28 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (when_check): arbitrary values are allowed after splats.
fixed: [ruby-dev:28879]
Wed Jun 28 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (primary): remove meaningless else-only case statement
syntax.
Wed Jun 28 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_eval): problem to handle else part. [ruby-dev:28873]
Wed Jun 28 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_eval): support splat in when expression list.
[ruby-dev:28822]
* eval.c (when_check): a new auxiliary function for case match.
* eval.c (when_cond): ditto.
Wed Jun 28 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* object.c (rb_cstr_to_dbl): should not skip '_' at the beginning
of a string. [ruby-dev:28830]
* bignum.c (rb_cstr_to_inum): ditto.
Tue Jun 27 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c: RDoc update for =~ method. a patch from Alex Young
<alex at blackkettle.org>. [ruby-core:08068]
Tue Jun 27 21:24:54 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/tcltklib.c: forgot to update TCLTKLIB_RELEASE_DATE.
* ext/tk/lib/tk.rb (tk_tcl2ruby): [bug fix] sometimes fail to convert
a tcl string to a ruby object if the tcl string includes "\n".
Tue Jun 27 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* io.c (pipe_open): backout unnecessary fix on 2006-06-26.
[ruby-dev:28865]
* eval.c (rb_yield_0): exact argument number check now done only
for lambda Proc.
* eval.c (rb_yield_0): add check for number of arguments, if
there's one lambda block parameter.
Tue Jun 27 21:24:54 2006 WATANABE Hirofumi <eban@ruby-lang.org>
* win32/win32.h: define isascii on MinGW for msvcrt compatibility.
* configure.in: set ac_cv_header_sys_time_h=no on MinGW
for msvcrt compatibility.
Tue Jun 27 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/etc/etc.c (setup_passwd, setup_group): allow bignum uid, gid and
so on. [ruby-talk:199102]
Tue Jun 27 21:24:54 2006 Tanaka Akira <akr@m17n.org>
* eval.c (rb_yield_0): avoid core dump. [ruby-dev:28840]
Mon Jun 26 21:24:54 2006 Eric Hodel <drbrain@segment7.net>
* lib/rdoc/ri: Add options to limit the ri search path.
Tue Jun 27 21:24:54 2006 Tanaka Akira <akr@m17n.org>
* ext/socket/socket.c (bsock_recv_nonblock): new method
BasicSocket#recv_nonblock.
(udp_recvfrom_nonblock): renamed from ip_recvfrom_nonblock.
IPSocket#recvfrom_nonblock is moved to UDPSocket#recvfrom_nonblock.
(unix_recvfrom_nonblock): removed.
UNIXSocket#recvfrom_nonblock is removed.
Tue Jun 27 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/ripper/eventids2.c (token_assoc): added tCHAR, which is not
under 256 now. fixed: [ruby-dev:28832]
Mon Jun 26 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (call_trace_func): no check for argument number of the
callback. fixed: [ruby-dev:28812]
Mon Jun 26 21:24:54 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/tcltklib.c (ip_delete): fix SEGV when a slave-ip is
deleted on callback.
Mon Jun 26 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/socket/socket.c (sock_accept): revert to avoid ambiguity of
argument evaluation order. [ruby-dev:28861]
* ext/socket/socket.c (sock_accept_nonblock): ditto.
Mon Jun 26 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* io.c (pipe_open): avoid closing uninitialized file descriptors.
a patch from <tommy at tmtm.org> [ruby-dev:28600]
Sun Jun 25 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* Makefile.in, mkconfig.rb: catch-up for latest autoconf.
Sun Jun 25 21:24:54 2006 Tanaka Akira <akr@m17n.org>
* parse.y (paren_args): wrap $2 by escape_Qundef because it may be
Qundef. [ruby-dev:28843]
Sun Jun 25 21:24:54 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
* ext/win32ole/win32ole.c(ole_invoke): support some kind of
method of word. [ruby-Bugs#3237]
* test/win32ole/test_word.rb: ditto.
Sat Jun 24 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y: replace terminal token names with more descriptive
name, i.e. kEND to keyword_end. [ruby-list:42477]
Sat Jun 24 21:24:54 2006 Tanaka Akira <akr@m17n.org>
* eval.c (rb_eval): use rb_ary_new2 instead of rb_ary_new4 to avoid
GC problem.
(rb_yield_values): use rb_ary_new2 instead of rb_ary_new4.
* array.c (rb_ary_new4): don't set len as n if contents is not
initialized. make it safe with GC.
[ruby-dev:28826]
Fri Jun 23 21:24:54 2006 Tanaka Akira <akr@m17n.org>
* ruby.h, lib/drb/drb.rb, lib/drb/invokemethod.rb: remove Values class.
[ruby-dev:28805]
Fri Jun 23 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_block_pass): removed.
* eval.c (rb_thread_start_1): use rb_proc_yield() instead of
rb_block_pass(). fixed: [ruby-dev:28794]
Thu Jun 22 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/net/http.rb (Net::HTTPResponse): duplicated error 501;
HTTPInternalServerError should be error 500. [ruby-core:08037]
Thu Jun 22 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* variable.c (rb_mod_name): returns nil for anonymous modules.
[ruby-talk:198440]
Thu Jun 22 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_aref): "abc"[3] should not return an empty
string but nil. [ruby-dev:28786]
Thu Jun 22 21:24:54 2006 Tanaka Akira <akr@m17n.org>
* ext/socket/socket.c (sock_s_socketpair): try GC only once.
[ruby-dev:28778]
Wed Jun 21 21:24:54 2006 Tadayoshi Funaba <tadf@dotrb.org>
* lib/date.rb (jd_to_commercial): now works fine even if in
mathn-ized context.
Wed Jun 21 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/socket/getaddrinfo.c (freeaddrinfo, get_name): fixed typo.
* ext/tk/tcltklib.c (tcl_eval, tcl_global_eval): ditto.
* ext/zlib/zlib.c (rscheck): constified.
Wed Jun 21 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/pp.rb (PP::PPMethods::seplist): should have preserved
original reference to the array. [ruby-dev:28747]
Wed Jun 21 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (block_param): do not use multiple assignment for a sole
block parameter. [ruby-dev:28710]
* eval.c (rb_yield_0): pass a raw yielded value to a sole block
parameter if a value is passed by yield.
* eval.c (proc_invoke): args may not be an array.
* eval.c (rb_proc_yield): pass original value without wrapping
it in an array.
Wed Jun 21 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (method_call): remove (fn)(args) style lambda
invocation, add fn.(args) instead.
Wed Jun 21 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/xmlrpc/create.rb (XMLRPC::Create::conv2value): merge Date
and Time processing. [ruby-core:08033]
Wed Jun 21 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c, file.c, etc.: code-cleanup patch from Stefan Huehner
<stefan at huehner.org>. [ruby-core:08029]
Wed Jun 21 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (reswords): modifier token is no longer returned in fname
state. fixed: [ruby-dev:28775]
Tue Jun 20 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/extmk.rb (parse_args): provisional catch-up for the recent changes.
* lib/optparse.rb (OptionParser::List#summarize, OptionParser#order!): ditto.
Tue Jun 20 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (proc_invoke): intercept break and return from lambda
Proc objects. [ruby-dev:28742]
* eval.c (proc_invoke): remove unnecessary YIELD_PROC_CALL flag.
* eval.c (YIELD_EXACT_ARGS): renamed from YIELD_LAMBDA_CALL, which
is no longer related to the behavior turned on by this flag.
* eval.c (return_jump): no need to care about PROT_YIELD.
* eval.c (break_jump): no jump to toplevel PROT_THREAD tag.
* eval.c (rb_yield_0): fix confusion between lambda (which is a
property of a proc) and pcall (which depends on whether it's
called via yield or call).
* eval.c (rb_thread_yield): no need to specify YIELD_LAMBDA_CALL.
* eval.c (rb_block_pass): update blkid in prot_tag.
Mon Jun 19 21:24:54 2006 NARUSE, Yui <naruse@ruby-lang.org>
* ext/nkf/lib/kconv.rb: remove default -m0 and fix document.
* ext/nkf/nkf-8/{nkf.c, config.h, utf8tbl.c, utf8tbl.h}:
imported nkf 2.0.7.
Mon Jun 19 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* sample/test.rb (proc_return3): return within non lambda block
should terminate surrounding method. [ruby-dev:28741]
Mon Jun 19 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/socket/socket.c (unix_sysaccept): typo fixed.
* ext/socket/socket.c (sock_connect): remove an unused local
variable tmpaddr.
Mon Jun 19 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/socket/socket.c (tcp_accept_nonblock): forgot to remove
abandoned hacks. [ruby-dev:28740]
Mon Jun 19 21:24:54 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/lib/multi-tk.rb: fix bug: initialize improper tables.
Sun Jun 18 21:24:54 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
* ext/win32ole/win32ole.c (fole_methods): The return value
of WIN32OLE#ole_methods should include PROPERTYPUTREF methods.
* ext/win32ole/win32ole.c (fole_put_methods): The return value
of WIN32OLE#ole_put_methods should include PROPERTYPUTREF methods.
* test/win32ole/test_ole_methods.rb: ditto.
* ext/win32ole/win32ole.c (ole_propertyput): support
PROPERTYPUTREF. [ruby-talk:183042]
* test/win32ole/test_propertyputref.rb : ditto.
Sat Jun 17 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (Init_eval): add aliases invoke_method and
invoke_functional_method corresponding send and funcall
respectively. [ruby-talk:197512]
* parse.y (parser_yylex): returns the most typical keyword token
on EXPR_FNAME. [ruby-core:7995]
* ext/socket/socket.c: protoize.
Sat Jun 17 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/mathn.rb (Integer::prime_division): raise ZeroDivisionError
on zeros. [ruby-dev:28739]
Sat Jun 17 21:24:54 2006 Tanaka Akira <akr@m17n.org>
* lib/pathname.rb (Kernel#Pathname): new method.
Sat Jun 17 21:24:54 2006 Tanaka Akira <akr@m17n.org>
* lib/pp.rb (Kernel#pretty_inspect): defined for pretty printed
string.
Fri Jun 16 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_proc_arity): get rid of segfault for mere splat.
* gc.c (gc_mark_children): NODE_BLOCK_PASS needs u3 to be marked.
Thu Jun 15 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (then): remove ':' from 'then' and 'do' rules.
Wed Jun 14 21:24:54 2006 Eric Hodel <drbrain@segment7.net>
* enum.c (enum_any): Documentation typo.
Wed Jun 14 21:24:54 2006 Eric Hodel <drbrain@segment7.net>
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser#warn): Don't print
warnings when -q is set.
Wed Jun 14 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* eval.c (rb_f_method_name, rb_f_callee_name): document typo.
Wed Jun 14 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* hash.c (env_aset): raise TypeError on nil with more descriptive
message. [ruby-core:07990]
Tue Jun 13 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/socket/socket.c (Init_socket): remove obsolete constants:
IPsocket, TCPsocket, SOCKSsocket, TCPserver, UDPsocket,
UNIXsocket, UNIXserver.
Tue Jun 13 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (formal_assign): post splat arguments should have had
higher priority than optional arguments, since they are
mandatory. [ruby-dev:28715]
* eval.c (VIS_MASK): broken. should be 15. [ruby-dev:28715]
* io.c (argf_getc): should return one-character string.
[ruby-dev:28715]
* io.c (rb_io_readchar): ditto.
Sun Jun 11 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* object.c (sym_call): disallow to call private methods.
* lib/optparse.rb (OptionParser::Arguable#getopts): pass self to the
parser.
Sun Jun 11 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.h (write): not need to define on bcc.
Sun Jun 11 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/optparse.rb (OptionParser#getopts): new methods.
Sun Jun 11 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* lib/rdoc/ri/ri_writer.rb: use String#ord.
Sun Jun 11 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* object.c (sym_to_proc): imported Symbol#to_proc from ActiveSupport.
Sat Jun 10 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/bigdecimal/lib/bigdecimal/newton.rb (Newton::nlsolve): typo
fixed: raize -> raise. [ruby-talk:196608]
Sat Jun 10 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_ord): new method.
* parse.y (rbracket): allow optional newline before closing
brackets.
Sat Jun 10 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* eval.c (rb_f_method_name, rb_f_callee_name): new functions.
new global method `__method__' and `__callee__'.
Sat Jun 10 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* lib/getoptlong.rb (GetoptLong#set_options): receive arguments
as Array.
* lib/irb/slex.rb: use Proc#yield.
* lib/rdoc/markup/simple_markup/inline.rb: follow the new behavior
of String#[].
* lib/rdoc/ri/ri_writer.rb: ditto.
Sat Jun 10 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* math.c (log2): may be a macro.
* parse.y (args, block_param, f_args): pass f_post_arg to #params.
* util.c (powersOf10): constified.
* ext/readline/readline.c: include extconf.h first.
* ext/ripper/eventids2.c: removed tLAMBDA_ARG.
* ext/tk/tcltklib.c (lib_fromUTF8_core): removed conflict.
* ext/tk/tkutil/tkutil.c (cbsubst_get_subst_arg): rb_id2name() is
defined as const now.
* ext/win32ole/win32ole.c (fole_missing): ditto.
* lib/mkmf.rb (create_makefile): force to create extconf header.
* lib/optparse.rb (order!): use Proc#yield.
Sat Jun 10 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* eval.c (CALLARGS): remove last semicolon. C90 compiler doesn't
allow any lines (even if they're empty) within variable
declarations.
Fri Jun 9 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* sprintf.c (rb_str_format): allow %c to print one character
string (e.g. ?x).
Thu Jun 8 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.[ch] (rb_w32_read, rb_w32_write): new functions.
use recv() and send() when fd is socket. fixed: [ruby-dev:28694]
Wed Jun 7 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/tempfile.rb (Tempfile::make_tmpname): put dot between
basename and pid. [ruby-talk:196272]
Wed Jun 7 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (do_block): remove -> style block.
* parse.y (parser_yylex): remove tLAMBDA_ARG.
Wed Jun 7 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (errmap): add some winsock errors.
Wed Jun 7 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_call0): binding for the return event hook should have
consistent scope. [ruby-core:07928]
Tue Jun 6 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (proc_invoke): return behavior should depend whether it
is surrounded by a lambda or a mere block.
Mon Jun 5 21:24:54 2006 Tanaka Akira <akr@m17n.org>
* ext/socket/socket.c (sock_s_unpack_sockaddr_in): reject
non-AF_INET/AF_INET6 sockaddr.
(sock_s_unpack_sockaddr_un): reject non-AF_UNIX sockaddr.
[ruby-dev:28691]
Sun Jun 4 21:24:54 2006 Tanaka Akira <akr@m17n.org>
* ext/socket/socket.c: fix sockaddr_un handling.
[ruby-dev:28677]
Sat Jun 3 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (formal_assign): handles post splat arguments.
* eval.c (rb_call0): ditto.
Sat Jun 3 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* st.c (strhash): use FNV-1a hash.
Fri Jun 2 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (parser_yylex): removed experimental ';;' terminator.
Fri Jun 2 21:24:54 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
* ext/openssl/extconf.rb: use create_header.
* ext/openssl/ossl.h, ext/openssl/openssl_missing.h:
include RUBY_EXTCONF_H.
Fri Jun 2 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (CLEANINGS): remove extconf.h by distclean if created.
Fri Jun 2 21:24:54 2006 Tanaka Akira <akr@m17n.org>
* ext/socket/socket.c (s_recvfrom): alen may be zero with UNIXSocket
too. (tested on NetBSD 3.0)
(s_recvfrom_nonblock): extracted from sock_recvfrom_nonblock.
(sock_recvfrom_nonblock): use s_recvfrom_nonblock.
(ip_recvfrom_nonblock): new method: IPSocket#recvfrom_nonblock
(unix_recvfrom_nonblock): new method: UNIXSocket#recvfrom_nonblock
(s_accept_nonblock): extracted from sock_accept_nonblock.
(sock_accept_nonblock): use s_accept_nonblock.
(tcp_accept_nonblock): new method: TCPServer#accept_nonblock
(unix_accept_nonblock): new method: UNIXServer#accept_nonblock
Thu Jun 1 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* win32/win32.c (rb_w32_cmdvector): backslashes inside single-quotes
no longer has special meanings. fixed: [ruby-list:42311]
Thu Jun 1 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_node_arity): should be aware of post splat arguments.
* eval.c (rb_proc_arity): ditto.
Thu Jun 1 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (rb_w32_getcwd): runtime's getcwd() will not success
if the length of the cwd is longer than MAX_PATH.
fixed [ruby-list:42335]
Thu Jun 1 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (f_args): syntax rule enhanced to support arguments
after the splat.
* parse.y (mlhs_basic): ditto for multiple assignments
* parse.y (block_param): ditto for block parameters.
* parse.y (f_post_arg): mandatory formal arguments after the splat
argument.
* parse.y (new_args_gen): generate nodes for mandatory formal
arguments after the splat argument.
* eval.c (rb_eval): dispatch mandatory formal arguments after the
splat argument.
Thu Jun 1 21:24:54 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (rb_w32_getcwd): set errno if not set.
fixed [ruby-list:42346]
Thu Jun 1 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (args): allow more than one splat in the argument list.
Wed May 31 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (method_call): allow aref [] to accept all kind of
method argument, including assocs, splat, and block argument.
* eval.c (SETUP_ARGS0): prepare block argument as well.
Tue May 30 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/mathn.rb (Integer): remove Integer#gcd2. [ruby-core:07931]
Mon May 29 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (error_line): print receivers true/false/nil specially.
* eval.c (rb_proc_yield): handles parameters in yield semantics.
* eval.c (nil_yield): gives LocalJumpError to denote no block
error.
* io.c (rb_io_getc): now takes one-character string.
Sat May 27 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (proc_invoke): save and restore block in the current frame.
fixed: [ruby-core:07833], [ruby-talk:191639]
Sat May 27 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/extmk.rb (extmake): remove extinit files if no statically linked
extensions.
Fri May 26 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_hash): use FNV-1a hash from Fowler/Noll/Vo
hashing algorithm.
Fri May 26 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ruby.h, lib/mkmf.rb (create_header): clear command line options for
macros moved to extconf.h.
* ext/extmk.rb (extract_makefile, extmk): made RUBY_EXTCONF_H and
EXTSTATIC permanent.
* ext/{dbm,digest/*,socket,zlib}/extconf.rb: used $defs and $INCFLAGS.
* {bcc32,win32,wince}/Makefile.sub (COMPILE_C, COMPILE_CXX): added
$(INCFLAGS).
* lib/mkmf.rb (configuration): add $defs unless extconf.h was created.
Thu May 25 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (pkg_config): particular config commands support.
* ext/extmk.rb: deal with $static set in extconf.rb.
* mkconfig.rb: merge multiple entries to an entry with multiple lines.
* lib/mkmf.rb: allow a series of commands to link.
* win32/Makefile.sub: embed manifests.
* win32/setup.mak: suffix OS name by runtime version.
Wed May 24 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (ac_install_sh): ignore dummy install-sh.
[ruby-talk:193876]
Wed May 24 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_aref): str[0] now returns 1 character string,
instead of a fixnum. [Ruby2]
* parse.y (parser_yylex): ?c now returns 1 character string,
instead of a fixnum. [Ruby2]
* string.c (rb_str_aset): no longer support fixnum insertion.
Wed May 24 21:24:54 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
* ext/openssl/lib/openssl/ssl.rb
(OpenSSL::SSL::SocketForwarder#setsockopt,getsockopt): typo fixed.
Mon May 22 21:24:54 2006 Tanaka Akira <akr@m17n.org>
* rubyio.h (rb_io_set_nonblock): declared.
* io.c (rb_io_set_nonblock): new function.
(io_getpartial): nonblocking read support.
(io_read_nonblock): new method: IO#read_nonblock.
(io_write_nonblock): new method: IO#write_nonblock.
* ext/socket/socket.c (s_accept): retry for EWOULDBLOCK.
revert [ruby-talk:113807].
(sock_connect_nonblock): new method: Socket#connect_nonblock.
(sock_accept_nonblock): new method: Socket#accept_nonblock.
(sock_recvfrom_nonblock): new method: Socket#recvfrom_nonblock.
[ruby-core:7917]
Mon May 22 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (umethod_bind): should not update original class.
[ruby-dev:28636]
Mon May 22 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (ev_const_get): should support constant access from
within instance_eval(). [ruby-dev:28327]
Sun May 21 21:24:54 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
* regexec.c: add STK_NULL_CHECK_END to IS_TO_VOID_TARGET().
[ruby-list:42234]
Thu May 18 21:24:54 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
* lib/webrick/config.rb (WEBrick::Config::HTTP): add new parameters,
:InputBufferSize and :OutputBufferSize.
* lib/webrick/utils.rb (WEBrick::Utils.timeout): add new timeout
method. this implementation is expected to be compatible with
timeout.rb and faster than timeout.rb.
* lib/webrick/httprequest.rb (WEBrick::HTTPRequest#_read_data):
Timeout.timeout is replaced by WEBrick::Utils.timeout.
* lib/webrick/httprequest.rb: WEBrick::HTTPRequest::BUFSIZE is
replaced by config[:InputBufferSize].
* lib/webrick/httpresposne.rb: WEBrick::HTTPResponse::BUFSIZE is
replaced by config[:OutputBufferSize].
* lib/webrick/server.rb: get rid of unnecessary require.
* test/webrick/test_utils.rb: test for WEBrick::Utils.timeout.
Thu May 18 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* time.c (time_timeval): should round for usec floating
number. [ruby-core:07896]
* time.c (time_add): ditto.
Thu May 18 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/extmk.rb, lib/mkmf.rb: use BUILD_FILE_SEPARATOR in Makefiles.
Wed May 17 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* dir.c (sys_warning): should not call a vararg function
rb_sys_warning() indirectly. [ruby-core:07886]
Tue May 16 21:24:54 2006 <sinara@blade.nagaokaut.ac.jp>
* numeric.c (flo_divmod): the first element of Float#divmod should
be an integer. [ruby-dev:28589]
* test/ruby/test_float.rb: add tests for divmod, div, modulo and remainder.
Tue May 16 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* re.c (rb_reg_initialize): should not allow modifying literal
regexps. frozen check moved from rb_reg_initialize_m as well.
Tue May 16 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* re.c (rb_reg_initialize): should not modify untainted objects in
safe levels higher than 3.
* re.c (rb_memcmp): type change from char* to const void*.
* dir.c (dir_close): should not close untainted dir stream.
* dir.c (GetDIR): add tainted/frozen check for each dir operation.
Mon May 15 21:24:54 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
* re.c (rb_reg_prepare_re): don't use onig_recompile().
Mon May 15 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_symbol_arg):
typo fixed. a patch from Florian Gross <florg at florg.net>.
Sat May 13 21:24:54 2006 Tanaka Akira <akr@m17n.org>
* lib/pp.rb (PP.mcall): new method.
(Struct#pretty_print): call Kernel#class and Struct#members even if
overridden.
(Struct#pretty_print_cycle): ditto.
[ruby-core:7865]
Fri May 12 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (EXEC_EVENT_HOOK): trace_func may remove itself from
event_hooks. no guarantee for arbitrary hook deletion.
[ruby-dev:28632]
Thu May 11 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* util.c (ruby_strtod): differ addition to minimize error.
[ruby-dev:28619]
Thu May 11 21:24:54 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
* ext/openssl/ossl_cipher.c (add_cipher_name_to_ary): should return
value. [ruby-dev:28627]
Thu May 11 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* util.c (ruby_strtod): should not raise ERANGE when the input
string does not have any digits. [ruby-dev:28629]
Wed May 10 21:24:54 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
* oniguruma.h: Version 4.0.3
* regexec.c: ditto.
Mon May 8 21:24:54 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
* ext/openssl/extconf.rb: add check for OBJ_NAME_do_all_sorted.
* ext/openssl/ossl_cipher.c (ossl_s_ciphers): new method
OpenSSL::Cipher.ciphers. it returns all the cipher names.
* ext/openssl/ossl_cipher.c (ossl_cipher_init): refine warning message.
* ext/openssl/lib/openssl/cipher.rb: reimplement without eval() and
add constants AES128, AES192, AES256. [ruby-dev:28610]
* ext/openssl/lib/openssl/digest.rb: reimplement without eval().
* test/openssl/test_cipher.rb, test_digest: fix about reimplemented
features.
* sample/openssl/cipher.rb: rewrite all.
Sun May 7 21:24:54 2006 Stephan Maka <stephan@spaceboyz.net>
* lib/resolv.rb (Resolv::DNS::Requester::ConnectedUDP#initialize):
Use AF_INET6 for nameservers containing colons.
Sat May 6 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (proc_invoke): should restore old ruby_frame->block.
thanks to ts <decoux at moulon.inra.fr>. [ruby-core:07833]
also fix [ruby-dev:28614] as well.
Sat May 6 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* signal.c (trap): sig should be less then NSIG. Coverity found
this bug. a patch from Kevin Tew <tewk at tewk.com>.
[ruby-core:07823]
Thu May 4 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* math.c (math_log2): add new method inspired by
[ruby-talk:191237].
* math.c (math_log): add optional base argument to Math::log().
[ruby-talk:191308]
Thu May 4 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/syck/emitter.c (syck_scan_scalar): avoid accessing
uninitialized array e
|