Граф коммитов

6064 Коммитов

Автор SHA1 Сообщение Дата
nobu 54198fca16 * io.c (remain_size): use buffered data instead of unreading to avoid
inconsistency of text mode.  fixed: [ruby-dev:25446]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-11 11:59:00 +00:00
usa 0be6a1f5c8 * 2005-01-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-11 00:50:15 +00:00
ocean ff57fbf2a6 * numeric.c (Init_Numeric): turn off floating point exceptions
on bcc32. "1e300".to_f had crashed by overflow.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-11 00:46:35 +00:00
nobu 60e9c4e62a * variable.c (rb_autoload): hide internal data from ruby level.
fixed: [ruby-dev:25373]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-10 14:07:53 +00:00
gotoyuzo 083475a1f3 * test/webrick/utils.rb: resuce LoadError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-10 07:58:55 +00:00
eban 3a1ee90cbe * 2005-01-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-10 07:30:32 +00:00
gotoyuzo a9a02401a8 * lib/webrick/cgi.rb (WEBrick::CGI::Socket#request_line): should
escape SCRIPT_NAME and PATH_INFO before being parsed as a URI.

* lib/webrick/httputils.rb (WEBrick::HTTPUtils#escape_path): add
  new method to escape URI path component.

* lib/webrick/ssl.rb (WEBrick::Config::SSL): the default value
  of :SSLEnable is false.

* test/webrick/{test_cgi.rb,webrick.cgi}: new file.

* test/webrick/utils.rb: require "webrick/https.h".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-10 06:29:58 +00:00
nobu c744d6f62d * io.c (rb_f_select): IO list could be altered. [ruby-dev:25312]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-09 05:12:29 +00:00
gotoyuzo 7011bf1523 * test/webrick/test_server.rb (test_daemon): delete an assertion
which has possibility to fail by race condition.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-08 19:09:12 +00:00
eban 1630a8294a * 2005-01-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-08 18:24:54 +00:00
aamine b2625d914e * test/fileutils/test_fileutils.rb (test_copy_entry): copy_entry copies only file type, not mtime. [ruby-dev:25383]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-08 18:23:24 +00:00
akr 16b5ba2707 update readpartial document.
don't try read timeout on Windows.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-08 18:18:36 +00:00
akr 563a79c756 fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-08 07:40:41 +00:00
eban 39f2da6896 * 2005-01-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-08 05:08:12 +00:00
why b237383984 * lib/yaml.rb: Kernel#y requires an argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-07 19:38:21 +00:00
akr 8d03779d75 add ML ref. [ruby-dev:25426]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-07 14:04:53 +00:00
akr ea06d92507 * random.c (rand_init): use ALLOC_N instead of ALLOCA_N
by TAMURA Takashi.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-07 14:04:30 +00:00
gotoyuzo 36c839f233 * lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#proxy_service):
should delete trailing LF from the result of pack("m*").

* lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#proxy_connect):
  - should delete trailing LF from the result of pack("m*").
  - clear Request-Line not to send the sesponse by HTTPServer#run.

* lib/webrick/httputils (WEBrick::HTTPUtils.parse_qvalues):
  refine regexp (and change the name of a local variable).

* lib/webrick/server.rb (WEBrick::Daemon.start): prepared stdio
  don't allow changing its mode.

* test/webrick/*, sample/webrick/httpproxy.rb: add new files.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-07 11:05:22 +00:00
nobu fe1019c665 * 2005-01-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-07 09:25:33 +00:00
akr db4cb5545b * gc.c (mark_locations_array): avoid core dump with -O3.
[ruby-dev:25424]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-07 09:08:19 +00:00
usa d35f410761 * ext/zlib/zlib.c (zstream_end): should return value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-06 11:29:58 +00:00
ocean 753f4e97a2 set ML number
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-06 11:19:38 +00:00
ocean 160bfa5bef * win32/win32.c (rb_w32_close): didn't close socket handle.
* win32/win32.c (rb_w32_open_osfhandle): bcc32's _open_osfhandle
  never set EMFILE.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-06 11:05:31 +00:00
ocean 8531657741 * random.c (random_seed): O_NONBLOCK isn't defined on some
platforms. [ruby-dev:25417]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-06 08:24:04 +00:00
akr a12ac9b17d * lib/time.rb: recognize +00:00 and GMT as a localtime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-06 04:48:31 +00:00
dave 2c32f0f918 Allow for colons in DOS file names
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-05 23:02:50 +00:00
eban e5c787463e * 2005-01-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-05 15:08:54 +00:00
seki 1125ba5fd4 use MockClock.sleep instead of Kernel.sleep [ruby-dev:25387]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-05 15:03:04 +00:00
akr 8728b3fde4 * random.c (limited_big_rand): didn't work if SIZEOF_BDIGITS == 2.
[ruby-dev:25408]

* random.c (random_seed): refined.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-05 11:31:41 +00:00
ocean 09736c1621 * parse.y (BITSTACK_POP): workaround for bcc32 compiler's bug.
shift assignment operator '>>=' for __int64 in struct may
  generate collapsed code. [ruby-dev:25342]

* win32/win32.[ch]: failed to compile on bcc32 (and probably wince)
  [ruby-dev:25306]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-05 08:00:50 +00:00
nobu 5e51e94304 * eval.c (rb_thread_initialize): Thread objects cannot be initialized
again.  fixed: [ruby-core:04067]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-05 03:50:04 +00:00
eban 3be3c95ca0 * 2005-01-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-04 17:48:00 +00:00
akr 943e67ef97 * random.c (init_by_array): imported from mt19937ar-cok.tgz.
(genrand_int32): ditto.
  (genrand_real): replaced with genrand_res53 in mt19937ar-cok.
  (rand_init): support bignum for longer seed.
  (random_seed): generate longer seed.
  (make_mask): new function.
  (limited_rand): ditto.
  (limited_big_rand): ditto.
  (rb_f_rand): call limited_rand and limited_big_rand.
  [ruby-dev:25403]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-04 17:38:39 +00:00
eban e8bab0762a * 2005-01-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-04 12:35:09 +00:00
seki 940aa83194 use DRbService.ext_service. reduce sleep
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-04 12:25:45 +00:00
akr 1b27958bfb * random.c (random_seed): don't use /dev/urandom if it is not character device.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-03 05:13:18 +00:00
nobu f0041381da * 2005-01-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-03 02:55:45 +00:00
akr e5abd52ab2 * random.c (random_seed): use /dev/urandom if available.
[ruby-dev:25392]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-03 02:41:03 +00:00
seki 5ef141e3e9 move TestDRbReusePort to new file [ruby-dev:25238]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-03 02:07:37 +00:00
gotoyuzo 239d44a19c * missed in last commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-02 22:48:59 +00:00
gotoyuzo 97102f6596 * lib/webrick/httpauth/htpasswd.rb (WEBrick::Htpasswd#reload):
raise NotImplementedError if password is encrypted by digest
  algorithms. This patch is contributed by sheepman. [ruby-list:40467]

* lib/webrick/httpauth/digestauth.rb
  (WEBrick::HTTPAuth::DigestAuth#_authenticate): fix digest calculation.
  This patch is contributed by sheepman. [ruby-list:40482]

* lib/webrick/{httpauth.rb,httpauth/basicauth.rb,httpproxy.rb}: use
  pack/unpack-template char "m" instead of lib/base64.rb to do base64
  encoding/decoding. fixed: [ruby-dev:25336]

* test/webrick/test_httpauth.rb: new file.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-02 22:31:13 +00:00
seki a8c92267b1 add lazy stop_service
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-02 06:46:38 +00:00
seki 60f289bf26 add lazy stop_service
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-02 06:46:37 +00:00
eban 3ba5337dfa * 2005-01-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-01 16:34:02 +00:00
seki b7e70f0497 add method DRbService.ext_service
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-01 16:20:35 +00:00
akr 571aa4db39 * io.c (argf_readpartial): new method ARGF.readpartial.
(io_getpartial): extracted from io_readpartial.
  (io_readpartial): call io_getpartial.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-01 11:25:43 +00:00
aamine 8af8ebfb92 update copyright year
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-01 08:59:48 +00:00
aamine 94402f983f * lib/net/http.rb (each_capitalized): should join header field value. This patch is contributed sheepman [ruby-list:40478]
* test/net/http/test_httpheader.rb: test it.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-01 08:45:50 +00:00
aamine 6a95ae2a79 forgot to add items
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-01 07:32:15 +00:00
aamine 0a4a9dbaea * lib/fileutils.rb (copy_stream): use read/write instead of sysread/syswrite, which allows duck typing. [ruby-dev:25369]
* lib/fileutils.rb (copy_stream): does NOT support nonblocking IO. [ruby-dev:25370]
* test/fileutils/test_fileutils.rb: test copy_entry, copy_file, copy_stream.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-01 07:22:04 +00:00