use private_methods and protected_methods instead of respond_to? to check
method visibility. [ruby-dev:26616]
56 lines of code changed in:
2005-08-01
4 lines of code changed in:
2005-07-30
3 lines of code changed in:
add WIN32OLE_TYPE#ole_typelib, WIN32OLE_TYPE#implemented_ole_types.
169 lines of code changed in:
* lib/irb/context.rb: fix `irb --readline` option. [ruby-dev:40955]
19 lines of code changed in:
2005-07-29
3 lines of code changed in:
* eval.c (rb_yield_0): push yielded node instead of yielding.
fixed: [yarv-dev:549]
5 lines of code changed in:
* eval.c (rb_call0): fix calling zsuper from a method with anonymous
rest argument. [ruby-dev:26639]
8 lines of code changed in:
* parse.y (rb_parser_end_seen_p): exclude from ripper.
<http://moonrock.jp/~don/d/200507.html#d28_t2>
* sprintf.c (clearerr): remove standard macro before re-definition.
<http://moonrock.jp/~don/d/200507.html#d28_t3>
21 lines of code changed in:
* ext/tk/stubs.c: When --enable-tcltk-stubs, the initialize
routine creates a Tcl/Tk interpreter and deletes it. However,
init cost of Tk's MainWindow is not so small. And that makes it
impossible to use libraries written with Tcl functions only on
an environment without a graphical display. This changes support
delaying initalization of Tk_Stubs until the script needs Tk.
* ext/tk/stubs.h: New file. Define prototypes and return codes of
functions on stubs.c.
* ext/tk/tcltklib.c: Support delaying initalization of Tk_Stubs
until the script needs Tk.
* ext/tk/tcltklib.c: Show friendly error messages for errors on
initialization.
* ext/tk/tcltklib.c: Avoid SEGV on ip_finalize() when ruby is
exiting and $DEBUG is true. (Not fix. If you know the reason of
why, please fix it.)
* ext/tk/tkutil/tkutil.c (ary2list, ary2list2): bug fix on handling
of encoding.
* ext/tk/lib/multi-tk.rb: MultiTkIp#eval_string and bg_eval_string
don't work propery.
* ext/tk/lib/tk.rb: Forget extending Tk::Encoding module to Tk.
* ext/tk/lib/tk/variable.rb: TkVarAccess fails to initialize the
object for an element of a Tcl's array variable.
836 lines of code changed in:
* parse.y (f_larglist): allow block argument in lambda parameter
list without parenthesis.
13 lines of code changed in:
* hash.c (each_i): typo fixed. [ruby-dev:26622]
5 lines of code changed in:
* parse.y (f_arg): better argument name duplication check
* parse.y (new_args_gen): factored out name duplication check for
optional and rest arguments.
* parse.y (new_bv_gen): allow shadowing outer local variables;
warning remains.
89 lines of code changed in:
2005-07-28
3 lines of code changed in:
* parse.y (f_larglist): allow bv_decl at the end of lambda
argument list. [EXPERIMENTAL]
* parse.y (new_bv_gen): allow local variable shadowing, with
warning in verbose mode.
* ext/socket/socket.c (ruby_connect): break immediately if a
socket is non-blocking. [ruby-talk:111654]
67 lines of code changed in:
* gc.c (obj_free): make message formant consistent with one from
gc_mark(). [ruby-talk:149668]
* sprintf.c (quad_t): prepare quad_t as well. [ruby-talk:149668]
23 lines of code changed in:
* sample/rss/tdiary_plugin: removed. because the plugin
is imported in the tDiary plugin packages.
5 lines of code changed in:
* lib/fileutils.rb (cd): follow :noop option change. (This patch is contributed by Doug Kearns)
6 lines of code changed in:
2005-07-27
3 lines of code changed in:
* parse.y (lambda): Perl6 style -> lambda expression. [NEW]
[VERY EXPERIMENTAL]
* gc.c (id2ref): must not assign pointers to long int. use
LONG_LONG instead if SIZEOF_LONG < SIZEOF_VOIDP.
[ruby-talk:149645]
* ruby.h: use LONG_LONG to simplify the change.
[ruby-talk:149645]
* dir.c (dir_each): rewinddir(3) before iteration.
[ruby-talk:149628]
* eval.c (rb_f_throw): replace all '0x%lx' by '%p'.
[ruby-talk:149553]
* missing/vsnprintf.c (BSD_vfprintf): '%p' need to handle 64bit
size pointer. [ruby-talk:149553]
315 lines of code changed in:
* ext/tk/sample/tkextlib/tile/demo.rb: fixed typo.
5 lines of code changed in:
* ext/ripper/lib/ripper/sexp.rb: new method Ripper.sexp_raw.
* ext/ripper/lib/ripper/sexp.rb (Ripper.sexp): returns more readable tree.
52 lines of code changed in:
* lib/net/http.rb: merge a patch contributed by Daniel Berger, with some modification. (RubyForge #2128)
25 lines of code changed in:
* sprintf.c (rb_sprintf): fixed typo.
1 lines of code changed in:
* ruby.h: support LLP64 model. [ruby-talk:149524]
19 lines of code changed in:
* ext/openssl/openssl_missin.c: include <openssl/engine.h> before
<openssl/x509_vfy.h> to avoid compilation error of mswin32.
suggested by NAKAMURA Usaku.
10 lines of code changed in:
2005-07-26
3 lines of code changed in:
* win32/win32.[ch]: (rb_w32_vsnprintf, rb_w32_snprintf): removed.
4 lines of code changed in:
* {bcc32,win32,wince}/Makefile.sub: moved CPPFLAGS only for ruby
source to XCFLAGS.
8 lines of code changed in:
* common.mk: Borland MAKE doesn't look for file names which have paths
from VPATH. fixed: [ruby-dev:26604]
* ruby.h (NORETURN, DEPRECATED): moved just after config.h.
* {win32,wince}/Makefile.sub: vsnprintf() is in missing now.
17 lines of code changed in:
* bignum.c (rb_big_eq): reduce isnan(). [ruby-dev:26600]
* numeric.c (flo_eq, flo_gt, flo_ge, flo_lt, flo_le): ditto.
17 lines of code changed in:
* ext/tk/lib/multi-tk.rb: fix en-bugged part in the last commit.
12 lines of code changed in:
2005-07-25
3 lines of code changed in:
* ext/openssl/ossl_engine.c (ossl_engine_s_load): should check
OPENSSL_NO_STATIC_ENGINE.
8 lines of code changed in:
* eval.c (rb_fd_select): the all three fd_sets must be long enough for
select. fixed: [ruby-talk:149059]
30 lines of code changed in:
* sprintf.c (rb_vsprintf, rb_sprintf): new functions return new String,
using missing/vsnprintf.c. [ruby-dev:26580]
* missing/vsnprintf.c: made the output changeable.
200 lines of code changed in:
2005-07-23
3 lines of code changed in:
* lib/rss/rss.rb: moved copyright description to lib/rss.rb.
* lib/rss.rb: added for convenience.
* sample/rss/re_read.rb: added #to_s sample.
* sample/rss/blend.rb: use 'require "rss"' instead of 'require "rss/*"'.
* sample/rss/list_description.rb: ditto.
* sample/rss/rss_recent.rb: ditto.
* sample/rss/tdiary-plugin/rss-recent.rb: ditto.
* sample/rss/tdiary-plugin/rss-recent.rb: 0.0.6 -> 0.0.7.
103 lines of code changed in:
* lib/rss/parser.rb (RSS::Parser#initialize): accept HTTP/FTP
URI and local file path too.
* test/rss/test_parser.rb (RSS::TestParser#test_parse): test
for the above.
64 lines of code changed in:
* ext/tk/tkutil/tkutil.c (tk_conv_args): forget to revert
thread_critical and gc_disable when raise ArgumentError.
* ext/tk/lib/remote-tk.rb: RemoteTkIp doesn't need to include TkUtil.
* ext/tk/tcltklib.c: add TclTkIp#has_mainwindow? method.
* ext/tk/lib/tk.rb: add Tk.has_mainwindow? method.
* ext/tk/lib/multi-tk.rb: add MultiTkIp#has_mainwindow? method.
* ext/tk/lib/remote-tk.rb: add RemoteTkIp#has_mainwindow? method.
* ext/tk/lib/multi-tk.rb: slave IP fail to exit itself when $SAFE==4.
* ext/tk/lib/multi-tk.rb: remove constants from MultiTkIp module to
avoid access from external.
* ext/tk/lib/multi-tk.rb: check_root flag is ignored on slave IPs'
mainloop.
* ext/tk/lib/multi-tk.rb: hang-up Tk.mainloop called on a slave IP
with $SAFE==4.
* ext/tk/lib/multi-tk.rb: MultiTkIp#bg_eval_proc doesn't work
properly.
* ext/tk/lib/multi-tk.rb: add MultiTkIp#set_cb_error(proc) and
cb_error(exc) to log errors at callbacks on safe slave IPs.
* ext/tk/lib/multi-tk.rb: fail to get an available slave IP object
when call Tk.mainloop in the block which is given to new_* method,
because cannot finish initialize while the root widget is alive.
* ext/tk/lib/multi-tk.rb: fail to control a slave IP when Tk.mainloop
runs on the IP.
222 lines of code changed in:
* ext/nkf/nkf-utf8/{nkf.c,utf8tbl.c,config.h}:
import 1.76
[ruby-dev:26592] nkf constification
821 lines of code changed in:
2005-07-22
3 lines of code changed in:
* io.c (S_ISREG): need to define S_ISREG before it is used first.
8 lines of code changed in:
fix previous commit.
don't use S_ISDIR.
2 lines of code changed in:
* io.c (wsplit_p): patch for the environment where
fcntl(F_GETFL, O_NONBLOCK) is not supported. in that case,
set FMODE_WSPLIT without fcntl check. [ruby-dev:26566]
12 lines of code changed in:
* io.c (rb_io_ctl): update FMODE_WSPLIT_INITIALIZED and FMODE_WSPLIT
by F_SETFL.
15 lines of code changed in:
* variable.c (rb_class_path): need to adjust snprintf() len for
teminating NUL. [ruby-dev:26581]
* error.c (syserr_initialize): don't use str before StringValue()
check. [ruby-dev:26579]
23 lines of code changed in:
* ext/socket/socket.c: sorry, BeOS also uses HAVE_CLOSESOCKET,
so reverted.
* ext/socket/extconf.rb: should not define HAVE_CLOSESOCKET
on windows.
13 lines of code changed in:
no message
2 lines of code changed in:
* ext/socket/socket.c: should not undef close on win32.
it's defined to rb_w32_close, otherwise handle leaks.
[ruby-Bugs-2131]
6 lines of code changed in:
2005-07-20
3 lines of code changed in:
* error.c (syserr_initialize): add 1 byte for snprintf() size for
NUL at the end. [ruby-dev:26574]
7 lines of code changed in:
* error.c (syserr_initialize): need to allocate an additional byte
for NUL at the end. [ruby-dev:26574]
7 lines of code changed in:
* signal.c (trap): remove sigexit(); handle "EXIT" via sig_exec().
[ruby-dev:26440]
* io.c (rb_io_inspect): replace sprintf() with "%s" format all
over the place by snprintf() to avoid integer overflow.
50 lines of code changed in:
* ext/tk/lib/tk.rb: forgot to update RELEASE_DATE
1 lines of code changed in:
* ext/tk/tcltklib.c: rbtk_eventloop_depth is used as int.
* ext/tk/tcltklib.c: rbtk_pending_exception is tested with
NIL_P, so should assign Qnil instead of 0 (Qfalse).
* ext/tk/tcltklib.c (ip_invoke_real): fixed memory leak when
ip is deleted.
18 lines of code changed in:
* ext/tk/lib/tk/variable.rb: For symmetry, add TkVariable#string. It
returns a string even if the default value type of the TkVariable
object is not "string".
7 lines of code changed in:
2005-07-19
3 lines of code changed in:
* eval.c (rb_call0): make the pointer to NODE volatile
instead of NODE itself.
6 lines of code changed in:
* eval.c (rb_call0): make body volatile to avoid possible optimization
problem.
[ruby-dev:26195]
8 lines of code changed in:
* ext/io/wait/wait.c: wrong backport from trunk, and compile error on
platforms fd_set is not a bit set. fixed: [ruby-dev:26562]
24 lines of code changed in:
* rubyio.h (FMODE_WSPLIT, FMODE_WSPLIT_INITIALIZED): new constant.
* io.c (wsplit_p): new function.
(io_fflush): split writing data by PIPE_BUF if wsplit_p is true in
multi-threaded mode.
(io_fwrite): ditto.
47 lines of code changed in:
* ext/nkf/nkf-utf8/nkf.c: import nkf.c 1.73
fix: TestKconv 1F
34 lines of code changed in:
2005-07-18
3 lines of code changed in:
* ext/io/wait/extconf.rb, ext/io/wait/wait.c: Win32 platforms support.
22 lines of code changed in:
2005-07-17
3 lines of code changed in:
* enumerator.c (Init_Enumerator): wrong argument specs.
[ruby-core:05481]
7 lines of code changed in:
* win32/win32.[hc]: constified socket functions. [ruby-dev:26553]
33 lines of code changed in:
document fix [ruby-dev:26516] (patch from Kazuhiro NISHIYAMA)
3 lines of code changed in:
* 2005-07-16
3 lines of code changed in:
* ext/.document: enabled documents in stringio.
1 lines of code changed in:
* lib/rdoc/parsers/parse_c.rb (handle_class_module): handle a
module enclosed in a built-in module. fixed: [ruby-talk:148239]
* lib/rdoc/parsers/parse_c.rb (find_body): allow macros as methods.
* lib/rdoc/parsers/parse_c.rb (find_call_seq): allow :nodoc: modifier
in C. [ruby-core:04572]
49 lines of code changed in:
* enumerator.c (Init_Enumerator): use an internal directly.
4 lines of code changed in:
* test/ruby/test_env.rb (setup, teardown): do not depend on the behavior setting nil.
4 lines of code changed in:
* lib/webrick/server.rb (WEBrick::GenericServer#accept_client):
sockets should be non-blocking mode. [ruby-dev:26405]
* lib/webrick/utils.rb (WEBrick::Utils.set_non_blocking): new method.
16 lines of code changed in:
* enum.c (enum_member): Enumerable#member? is not an iterator.
0 lines of code changed in:
* common.mk (OBJS): added enumerator.c.
1 lines of code changed in:
* enum.c (enumeratorize): create new enumerator for current method if
no block is given.
* enumerator.c: moved from ext/enumerator.
484 lines of code changed in:
2005-07-15
3 lines of code changed in:
reordered just for diffing.
16 lines of code changed in:
* win32/win32.c (rb_w32_strerror): should return correct message
for ENAMETOOLONG and ENOTEMPTY. (bcc32) [ruby-dev:26533]
* win32/win32.c (rb_w32_strerror): stripped CR LF on the tail.
(bcc32) [ruby-dev:26533]
27 lines of code changed in:
2005-07-14
3 lines of code changed in:
* LEGAL (ext/nkf/nkf-utf8): updated from nkf1.7 to nkf-utf8.
11 lines of code changed in:
* parse.y: remove static variables. [ruby-dev:26530]
101 lines of code changed in:
add ML number
1 lines of code changed in:
* win32/win32.c (rb_w32_mkdir): should set EEXIST (not EACCES)
if file or directory already exists. (bcc32)
* win32/win32.c (rb_w32_rmdir): should set ENOTDIR (not EINVAL)
if it is not directory. (bcc32, win32)
* win32/win32.c (rb_w32_rmdir, rb_w32_unlink): restore
FILE_ATTRIBUTE_READONLY flag on function failure.
34 lines of code changed in:
* ext/tk/tcltklib.c: TclTkLib.do_one_event doesn't work.
* ext/tk/lib/tk.rb: Tk.thread_update is available.
24 lines of code changed in:
2005-07-13
3 lines of code changed in:
* lib/mkmf.rb: keep curdir unexpanded.
9 lines of code changed in:
2005-07-12
3 lines of code changed in:
* eval.c, intern.h (rb_proc_call, rb_obj_method, rb_method_call):
export.
* ext/enumerator/enumerator.c (enumerator_with_index): [EXPERIMENTAL]
added a new method Enumerator#with_index. [ruby-talk:147728]
172 lines of code changed in:
* regparse.c (fetch_escaped_value): mask values following \c in
regexp. fixed: [ruby-dev:26500]
8 lines of code changed in:
* lib/xmlrpc/server.rb (XMLRPC::Server): Switch from GServer over to
WEBrick. This makes file lib/xmlrpc/httpserver.rb obsolete (at least it is
no further used by the XML-RPC library).
49 lines of code changed in:
* lib/webrick/cgi.rb (WEBrick::CGI::Socket#request_line):
mistook to merge the patch of [ruby-dev:26235] at
revision 1.11.
8 lines of code changed in:
* lib/pathname.rb (Pathname#unlink): try Dir.unlink first to
avoid unlink a directory by root.
cf. [ruby-dev:26237]
8 lines of code changed in:
2005-07-11
3 lines of code changed in:
* lib/debug.rb (debug_command): added a deficient format specifier.
fixed: [ruby-core:05419]
9 lines of code changed in:
2005-07-10
3 lines of code changed in:
2005-07-09
3 lines of code changed in:
convert dispid in Ruby and C by INT2NUM and NUM2INT.
24 lines of code changed in:
* win32/win32.c (StartSockets): iSockOpt is no longer used.
1 lines of code changed in:
* lib/rss/rss.rb (RSS::VERSION): 0.1.4 -> 0.1.5.
* test/rss/test_version.rb (RSS::TestVersion#test_version):
ditto.
* lib/rss/0.9.rb (RSS::Rss::Channel::Item::Category):
domain attribute of <category> is optional. Thanks to
Chris Lee <clee@kde.org>.
* test/rss/test_parser.rb (RSS::TestParser#test_category20):
adjusted test case.
30 lines of code changed in:
2005-07-08
3 lines of code changed in:
* object.c (rb_obj_pattern_match): now returns nil.
[ruby-core:05391]
* sample/svr.rb: service can be stopped by ill-behaved client; use
tsvr.rb instead.
* missing/erf.c: original erf.c by prof. Okumura is confirmed to
be public domain. reverted BSD implementation.
94 lines of code changed in:
* win32/win32.c (open_ifs_socket): new function.
* win32/win32.c (StartSockets, rb_w32_socket): use open_ifs_socket()
instead of socket().
all changes are derived from [ruby-core:5388].
62 lines of code changed in:
* ext/nkf/lib/kconv.rb: fix typo.
1 lines of code changed in:
* ext/nkf/nkf-utf8/{nkf.c,utf8tbl.c,config.h}:
imported nkf.c 1.70 (support UTF-8-MAC)
* ext/nkf/lib/kconv.rb: add :utf8mac and :internalunicode
1118 lines of code changed in:
2005-07-06
3 lines of code changed in:
* instruby.rb: expand source library path.
7 lines of code changed in:
* eval.c (rb_thread_save_context): must not switch contexts during
re-allocating stack. fixed: [ruby-core:05219]
7 lines of code changed in:
* array.c (sort_2): get rid of yet another bcc's bug.
fixed: [ruby-core:05152]
12 lines of code changed in:
* ext/tk/tkutil/tkutil.c: fix typo.
6 lines of code changed in:
* ext/tk/tcltklib.c: bug fix on treating Unicode strings.
* ext/tk/tcltklib.c: add methods to treat encoding mode.
* ext/tk/MANUAL_tcltklib.eng: add description of TclTkLib#encoding,
encoding_system, and so on.
* ext/tk/MANUAL_tcltklib.eucj: ditto.
* ext/tk/tkutil/tkutil.c: fail to create a Tcl's list string from
an array including multiple kind of encoded strings.
* ext/tk/lib/tk.rb: ditto.
* ext/tk/lib/multi-tk.rb: 2nd arg of _{to|from}UTF8 is omissible.
* ext/tk/lib/remote-tk.rb: ditto.
* ext/tk/lib/tk.rb: override TclTkLib#encoding and encoding= to
use TkCore::INTERP.encoding and encoding=.
* ext/tk/lib/tk.rb: when "require 'tk'" and $KCODE=='NONE', check
DEFAULT_TK_ENCODING to decide Ruby/Tk's system encoding mode.
* ext/tk/lib/tk/encodedstr.rb: check both of Tk.encoding and
Tk.encoding_system. Tk.encoding has higher priority.
* ext/tk/lib/tk/optiondb.rb: ditto.
* ext/tk/lib/tk/spinbox.rb: ditto.
* ext/tk/lib/tk/validation.rb: ditto.
* ext/tk/lib/tk/namespace.rb: arguemnts for TclTkIp#_merge_tklist
should be UTF-8 strings.
375 lines of code changed in:
2005-07-05
3 lines of code changed in:
* lib/set.rb: test change to follow revision 1.28. (duck typing?)
6 lines of code changed in:
* test/{dbm,gdbm,sdbm}/test_{dbm,gdbm,sdbm}.rb: skip some tests
which using fork on fork-less platforms.
38 lines of code changed in:
2005-07-04
3 lines of code changed in:
test
0 lines of code changed in:
test
0 lines of code changed in:
cosmetic.
1 lines of code changed in:
* test/wsdl/document/test_rpc.rb: compare formatted time string of
Time objects instead of comparing Time objects itself to avoid
unintended conflict of usec part. [ruby-dev:26220]
11 lines of code changed in:
avoid some race condition
6 lines of code changed in:
2005-07-03
3 lines of code changed in:
doc fix.
1 lines of code changed in:
use CMSG_LEN.
2 lines of code changed in:
* ext/socket/socket.c (unix_send_io, unix_recv_io): support x86-64 and
IA64.
48 lines of code changed in:
* 2005-07-02
3 lines of code changed in:
fix indent.
1 lines of code changed in:
* defines.h (FLUSH_REGISTER_WINDOWS): defined for IA64.
(flush_register_windows): declare flush_register_windows.
* eval.c (flush_register_windows): new function.
* ruby.h (NOINLINE): move up to be effective in defines.h.
27 lines of code changed in:
* configure.in: check select_large_fdset.
* eval.c: use select_large_fdset to support large file descriptors
on Solaris. [ruby-dev:26404]
18 lines of code changed in:
* bignum.c (rb_big_neg): may be accessing bogus pointer value.
11 lines of code changed in:
* ChangeLog: typo.
1 lines of code changed in:
* missing/erf.c: need to include some headers for some platforms.
* win32/win32.c (copysign, scalb): define for compatibility with
other platforms. [ruby-dev:26430]
17 lines of code changed in:
* missing/crypt.c: modified to make it compilable on platforms
other than BSD. [ruby-dev:26430]
* missing/erf.c: ditto. code from <exp.c> merged.
122 lines of code changed in:
* lib/open-uri.rb (OpenURI.open_http): refine post_connection_check
call.
13 lines of code changed in:
* missing/crypt.c: replaced with 4.4BSD version.
* missing/erf.c: ditto.
* missing/vsnprintf.c: removed the third provision from the old
BSD license. [ruby-core:05177]
1288 lines of code changed in: