2001-02-28
2 lines of code changed in:
* string.c (rb_str_delete_bang): delete! should take at least 1
argument.
* ruby.c (load_file): add rb_gc() after loading to avoid
extraordinary memory growth.
* dir.c (rb_glob_helper): "./foo" should match "foo", not "./foo".
* eval.c (ev_const_get): retrieve Object's constant if no current
class is available (e.g. defining singleton class for Fixnums).
* eval.c (ev_const_defined): check Object's constant if no current
class is available (e.g. defining singleton class for Fixnums).
* time.c (time_timeval): negative time interval shoule not be
allowed.
* eval.c (proc_call): ignore block to `call' always, despite of
being orphan or not.
* eval.c (rb_yield_0): should check based on rb_block_given_p()
and rb_f_block_given_p().
* configure.in (frame-address): --enable-frame-address to allow
__builtin_frame_address() to be used.
* eval.c (stack_length): use __builtin_frame_address() based on
the macro USE_BUILTIN_FRAME_ADDRESS.
* gc.c (rb_gc): ditto.
* gc.c (Init_stack): ditto.
59 lines of code changed in:
2001-02-27
2 lines of code changed in:
* time.c (time_timeval): negative time interval shoule not be
allowed.
* eval.c (proc_call): ignore block to `call' always, despite of
being orphan or not.
33 lines of code changed in:
* eval.c (proc_call): should not modify ruby_block->frame.iter
based on ruby_frame->iter altered by PUSH_ITER().
* eval.c (rb_thread_fd_close): should save current context before
raising exception.
* io.c (set_stdin): preserve original stdin.
* io.c (set_outfile): preserve original stdout/stderr.
88 lines of code changed in:
Mon Feb 26 05:27:52 2001 Wakou Aoyama <wakou@fsinet.or.jp>
* lib/net/telnet.rb: #telnetmode(), #binmode(): bug fix.
thanks to nobu.nakada@nifty.ne.jp.
24 lines of code changed in:
Mon Feb 26 04:55:50 2001 Wakou Aoyama <wakou@fsinet.or.jp>
* lib/cgi.rb: CGI#form(): bug fix.
thanks to MoonWolf <moonwolf@moonwolf.com>.
* lib/cgi.rb: CGI#rfc1123_date(): improvement.
thanks to Tomoyasu Akita <genzo-@dm4lab.to>.
* lib/cgi.rb: CGI#header(): improvement for mod_ruby.
thanks to Shugo Maeda <shugo@ruby-lang.org>.
42 lines of code changed in:
* file.c (rb_file_s_rename): avoid Cygwin's bug.
10 lines of code changed in:
* win32/win32.c (myrename): fix error handling.
7 lines of code changed in:
aamine
* lib/net/http.rb: always close connection on request without body.
* lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: change copyright.
164 lines of code changed in:
aamine
* lib/net/protocol.rb: clear read buffer after reopen.
* lib/net/protocol.rb: refactoring.
* lib/net/http.rb: split module HTTPHeader from HTTPResponse.
227 lines of code changed in:
* process.c: add W* macro if not available.
23 lines of code changed in:
* configure.in: add check for negative time_t for gmtime(3).
* time.c (time_new_internal): no positive check if gmtime(3) can
handle negative time_t.
* time.c (time_timeval): ditto.
* bignum.c (rb_big2long): should not raise RangeError for Bignum
LONG_MIN value.
65 lines of code changed in:
* string.c (rb_str_substr): "a"[1,2] should return ""; need
rubicon upgrade.
84 lines of code changed in:
2001-02-19
2 lines of code changed in:
* eval.c (secure_visibility): visibility check for untainted modules.
* signal.c (sigpipe): sighandler which does nothing.
* signal.c (trap): set sigpipe function for SIGPIPE.
* signal.c (Init_signal): default SIGPIPE handler should be
sigpipe function.
* array.c (rb_ary_subseq): wrong boundary check.
* parse.y (cond0): integer literal in condition should not be
compared to lineno ($.).
90 lines of code changed in:
2001-02-18
2 lines of code changed in:
* ext/curses/extconf.rb: add dir_config.
quote> * missing/flock.c: use fcntl(2) instead of lockf(2).
60 lines of code changed in:
aamine
* lib/net/http.rb: Response#range_length was not debugged.
16 lines of code changed in:
* win32/win32.c: fasten file I/O on mswin32/mingw32.
* win32/win32.h: ditto.
* rubysig.h: ditto.
210 lines of code changed in:
* io.c (set_outfile): f should be the FILE* from the assigning value.
* ext/socket/socket.c (tcp_s_open): should not give default value
to local_host.
* time.c (time_s_times): move to Process::times.
* file.c (rb_file_s_lchmod): new method File::lchmod.
* file.c (rb_file_s_lchown): new method File::lchown.
173 lines of code changed in:
2001-02-15
2 lines of code changed in:
* process.c (proc_waitall): new method based on a patch from Brian
Fundakowski Feldman <green@green.dyndns.org>.
* process.c (last_status_set): objectify $? value (Process::Status).
266 lines of code changed in:
* lib/cgi/session.rb (close): fixed reversed condition.
5 lines of code changed in:
2001-02-14
2 lines of code changed in:
* lib/net/imap.rb: supports unknown resp_text_code.
10 lines of code changed in:
* dir.c (dir_s_glob): supprt backslash escape of metacharacters
and delimiters.
* dir.c (remove_backslases): remove backslashes from path before
calling stat(2).
* dir.c (dir_s_glob): call rb_yield directly (via push_pattern) if
block is given to the method.
* dir.c (push_pattern): do not call rb_ary_push; yield directly.
* eval.c (blk_copy_prev): reduced ALLOC_N too much.
* eval.c (frame_dup): ditto.
98 lines of code changed in:
* dir.c (lstat): should use rb_sys_stat if lstat(2) is not
available.
16 lines of code changed in:
gdbm typo
1 lines of code changed in:
2001-02-13
2 lines of code changed in:
* io.c (rb_io_ctl): do not call ioctl/fcntl for f2, if f and f2
have same fileno.
* eval.c (rb_load): raise LocaJumpError if unexpected local jumps
appear during load.
* ext/socket/socket.c (bsock_close_read): don't call rb_thread_fd_close();
it's supposed to be called by io_io_close().
* ext/socket/socket.c (bsock_close_read): do not modify f and f2.
* ext/socket/socket.c (bsock_close_write): ditto.
* ext/socket/socket.c (sock_new): avoid dup(2) on sockets.
* parse.y (primary): preserve and clear in_single and in_def using
stack to prevent nested method errors in singleton class bodies.
429 lines of code changed in:
* configure.in: add ac_cv_func_getpgrp_void=yes on DJGPP.
4 lines of code changed in:
* eval.c (stack_length): use __builtin_frame_address() only if
GCC and i386 CPU.
* gc.c (rb_gc, Init_stack): ditto.
50 lines of code changed in:
* win32/win32.c (win32_stat): replace stat for enable when pathname
ends with '/' or '\' for mswin32 on Win9X / Win2k.
* win32/win32.h: ditto.
* ruby.h: ditto.
* dir.c (rb_glob_helper): ditto.
* file.c (rb_stat, rb_file_s_stat, eaccess, check3rdbyte): ditto.
46 lines of code changed in:
ruby.c (ruby_init_loadpath): convert '\' to '/'
before finding executable file path.
19 lines of code changed in:
2001-02-08
2 lines of code changed in:
lib/mkmf.rb (create_makefile): add srcdir.
9 lines of code changed in:
* parse.y (parse_quotedwords): %w should allow parenthesis escape.
* parse.y (parse_qstring): %q should allow terminator escape.
* re.c (rb_reg_options): new method to give an option values.
* parse.y (cond0): disable special treating of integer literal in
conditional unless option -e is supplied. changes current
behavior. experimental.
* parse.y (cond0): give warning for string/integer literals and
dot operators in conditionals unless option -e is supplied.
* re.c (rb_reg_equal): all option flags should be same to be equal.
* error.c (Init_Exception): make Interrupt a subclass of
SignalException.
196 lines of code changed in:
aamine
* lib/net/http.rb: join HTTPReadResponse into HTTPResponse again.
* lib/net/http.rb: move http_version() from HTTPRequest to HTTPResponse.
* lib/net/protocol.rb: refactoring.
72 lines of code changed in:
aamine
* lib/net/http.rb: split HTTPResponse into HTTPReadResponse module.
* lib/net/protocol.rb: add Net::net_private.
* lib/net/protocol.rb: Socket#reopen takes arg, open_timeout.
79 lines of code changed in:
aamine
* lib/net/http.rb: Proxy did not work.
2 lines of code changed in:
aamine
* lib/net/http.rb: call on_connect() on re-opening socket.
* lib/net/pop.rb: also POP3 can use APOP auth.
17 lines of code changed in:
aamine
* lib/net/http.rb: add HTTP#request.
* lib/net/http.rb: take HTTP 1.0 server into account (incomplete).
* lib/net/protocol.rb: timeout for open/read.
* lib/net/protocol.rb: add Protocol#on_connect,on_disconnect.
339 lines of code changed in:
* array.c (rb_ary_sort_bang): returns self, even if its length is
less than 2.
* eval.c (POP_VARS): propagate DVAR_DONT_RECYCLE, if
SCOPE_DONT_RECYCLE of ruby_scope is set.
159 lines of code changed in: