akr
140fad80c9
2006-08-04
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-03 16:30:50 +00:00
akr
a5be27e2cf
* io.c (io_reopen): STDERR.reopen(File.open("/dev/null", "w")) should
...
not fclose stderr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-03 16:30:46 +00:00
matz
bba7dd4630
2006-08-03
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-03 06:21:07 +00:00
matz
0d15c66aaf
* range.c (range_include): should always call Enumerable#include?
...
(not #===) for non numeric end points. [ruby-core:08477]
[ruby-core:08496]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-03 06:21:03 +00:00
usa
800c7ad39b
* ChangeLog: typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-31 08:32:22 +00:00
usa
2982c52892
* 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.
exit handler.
* win32/win32.c (rb_w32_getenv): use GetEnvironmentStrings() instead
of GetEnvironmentVariable(), because the latter cannot distinguish
wheather a null environment variable exists or not.
fixed: [ruby-talk:205123]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-31 07:58:34 +00:00
akr
ed2c204a2f
* test/ruby/test_process.rb (TestProcess#test_rlimit_nofile):
...
setrlimit may fail with EINVAL.
reported by MIYAMUKO Katsuyuki. [ruby-dev:29174]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-31 07:18:43 +00:00
matz
ec85d62a07
* 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]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-31 06:34:10 +00:00
matz
4c86e4a580
* 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]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-31 06:31:38 +00:00
gotoyuzo
ddc38a6abb
* lib/webrick/httprequest.rb (WEBrick::HTTPReuqest#parse_uri): improve
...
for the value of IPv6 address in the Host: header field.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-31 04:39:45 +00:00
gotoyuzo
b3e961b32b
2006-07-31
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-31 04:39:39 +00:00
nobu
799a6bc67b
* eval.c (rb_call0): trace call/return of method defined from block.
...
fixed: [ruby-core:08329]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-30 14:27:01 +00:00
nobu
d28d1a2e0a
* lib/cgi/session.rb, lib/cgi/session/pstore.rb: suppress warnings.
...
fixed: [ruby-talk:204896]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-30 14:06:50 +00:00
nobu
eafe72d8cf
2006-07-30
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-30 13:30:23 +00:00
nobu
782d8df4f5
* eval.c (rb_trap_eval): make the current thread runnable to deal with
...
exceptions which occurred within the trap. fixed: [ruby-dev:27729]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-30 13:30:19 +00:00
nagai
567ded6073
* ext/tk/lib/multi-tk.rb: freeze ip_name for security reason.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-28 21:14:30 +00:00
nagai
2a0b4cc13c
2006-07-29
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-28 21:14:26 +00:00
nobu
dab5f82b81
* ext/curses/curses.c (NUM2CH, CH2FIX): use single char strings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-28 08:18:22 +00:00
matz
35526b1b00
* eval.c (rb_call): fixed typo in cache look-up. [ruby-dev:29167]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-28 05:10:03 +00:00
matz
94f9fc2b6e
* eval.c (rb_call): a bug in method cache look-up.
...
http://www.rubyist.net/~matz/20060720.html#c04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-28 01:43:10 +00:00
matz
ae832cfa66
* sprintf.c (rb_f_sprintf): documentation update patch from Jacob
...
Fugal <lukfugl at gmail.com>. [ruby-core:08418]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-28 01:23:55 +00:00
matz
9121d687c5
* time.c (time_to_s): fixed typo. [ruby-dev:29162]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-28 00:47:26 +00:00
matz
f0dff3c677
* math.c (domain_check): ANSI style function arguments
...
* math.c (math_log): too few argument to domain_check().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-27 15:29:30 +00:00
matz
793a952bc6
2006-07-28
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-27 15:26:17 +00:00
matz
21f5f47287
* 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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-27 15:26:14 +00:00
nobu
41005d43a8
* time.c (time_to_s): fixed format mismatch.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-27 13:23:18 +00:00
eban
a78b09b110
* time.c: need to declare time_utc_offset.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-27 09:14:38 +00:00
matz
10496cefeb
* io.c (io_close): always calls "close" method of the receiver.
...
[ruby-core:6911] [ruby-core:8112]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-27 08:25:18 +00:00
matz
b0283eed43
* 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]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-27 07:48:04 +00:00
matz
b6151bcebe
2006-07-27
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-27 00:15:10 +00:00
matz
e8ed635174
* time.c (time_to_s): generate RFC822 style date string.
...
[ruby-dev:29143]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-27 00:15:07 +00:00
matz
d09827ad50
* configure.in: add support for as and ASFLAGS. [ruby-dev:29138]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-26 13:28:17 +00:00
aamine
1c499989ee
small document fix
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-26 13:27:18 +00:00
aamine
429c03eb2a
merge test cases with Ruby 1.8
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-26 13:23:40 +00:00
aamine
e1173b2c78
* 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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-26 13:00:26 +00:00
aamine
c9500ee8d9
* ext/strscan/strscan.c (strscan_do_scan): always return nil if p->curr exceeds string size.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-26 09:41:08 +00:00
matz
c0a8089044
* 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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-26 09:40:05 +00:00
nobu
0cd59e5b59
* ext/pty/pty.c (getDevice): retry once after GC on failure.
...
[ruby-core:08282]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-26 09:15:31 +00:00
aamine
544789bd79
* ext/strscan/strscan.c (strscan_do_scan): StringScanner.new("").scan(//) should return "". [ruby-Bugs:4361]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-26 08:44:57 +00:00
nobu
79c5eb1af3
* sprintf.c (rb_str_format): prepend ".." to %u for negative bignum,
...
but not "-". fixed: [ruby-core:08167]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-26 08:28:57 +00:00
matz
69be57eb57
* string.c (rb_str_scan): add string modification check.
...
[ruby-core:7216]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-26 07:43:16 +00:00
matz
b8034ca54f
* lib/cgi.rb (CGI::QueryExtension::read_multipart): check
...
multipart boundary end. a patch from Fujioka <fuj at rabbix.jp>
[ruby-dev:28470]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-26 07:09:32 +00:00
nobu
790b03ca00
2006-07-26
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-25 16:04:38 +00:00
nobu
d485f6e7d0
* configure.in: suppress warnings by automake 1.8 or later.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-25 16:04:35 +00:00
usa
c0eb19d91a
* lib/mkmf.rb (configuration): typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-25 05:50:45 +00:00
matz
9118351374
2006-07-25
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-25 04:58:18 +00:00
matz
cb657243da
* process.c (rb_proc_times): rename hz to hertz to avoid name
...
crash on AIX. [ruby-dev:29126]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-25 04:58:15 +00:00
nobu
c0e5d45a1e
* eval.c (backtrace): porting miss.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-24 14:53:42 +00:00
nobu
2e7a8bf228
* eval.c (backtrace): skip frames successive on node and method name.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-24 13:04:39 +00:00
akr
b8d19fa683
don't compare struct sockaddr directly.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-24 07:21:45 +00:00