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

5886 Коммитов

Автор SHA1 Сообщение Дата
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
eban 41257b6d93 * 2005-01-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-01 04:52:23 +00:00
gotoyuzo 72f2ca1117 * ext/openssl/ossl_ns_spki.c (ossl_spki_set_challenge): should call
StringValue before GetSPKI. fixed: [ruby-dev:25359].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-31 19:24:11 +00:00
dave 0eaf4872a6 Fix problem in ri formatting if heading contains markup
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-31 05:12:37 +00:00
eban 07ca1240f2 * 2004-12-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-30 15:54:19 +00:00
akr b25095f6e4 * configure.in (HAVE_RLIM_T): removed because not used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-30 15:09:42 +00:00
akr 3b2de91dcf * rubyio.h: don't deprecate rb_read_check.
* io.c (STDIO_READ_DATA_PENDING): reverted from old READ_DATA_PENDING
  to check stdio read buffer.
  (rb_read_check): use STDIO_READ_DATA_PENDING.
  (rb_read_pending): ditto.
  (rb_getc): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-30 13:49:56 +00:00
eban b4466a1084 * 2004-12-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-30 09:57:06 +00:00
aamine 77a0c51545 * parse.y: eliminate unused members in struct parser_params. [ruby-dev:25258] (again)
* parse.y: make parser_new() static.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-29 20:41:04 +00:00
eban 4d81be859b * 2004-12-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-29 14:38:43 +00:00
eban 0730057b53 * ChangeLog: remove junk.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-29 14:38:32 +00:00
akr 7eeb5cac72 typo fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-29 13:47:43 +00:00
dave a35058f9f9 Update kilmer template to use sections
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-29 02:16:33 +00:00
nobu afd7aea857 * string.c (rb_str_justify): create buffer string after argument type
conversion.  fixed: [ruby-dev:25341]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-28 13:32:28 +00:00
usa ecb09c186e * ChangeLog: ML index
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-28 08:27:25 +00:00
usa b19d1e1d98 * lib/net/telnet.rb (preprocess): remove NULL unless binmode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-28 08:22:37 +00:00
nobu 32c09c2531 * ext/nkf/nkf-utf8/nkf.c (reinit): should initialize all static
variables.  fixed: [ruby-list:40445]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-28 06:49:04 +00:00
nobu 70a1eecdb9 * ext/nkf/nkf-utf8/nkf.c (reinit): should initialize all static
variables.  fixed: [ruby-list:40445]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-28 06:42:33 +00:00
nobu 1b9d66dfeb * ext/nkf/lib/kconv.rb (Kconv::RegexpEucjp): second byte is up to
0xfe.

* ext/nkf/lib/kconv.rb (Kconv#kconv): should handle UTF8 and UTF16
  properly.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-28 06:26:34 +00:00
nobu ccc05de1e5 * 2004-12-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-28 04:47:51 +00:00
nobu 83ef3cd8a6 * ext/zlib/zlib.c (rb_deflate_s_deflate, rb_inflate_s_inflate): ensure
freeing internal zstreams.  fixed: [ruby-dev:25309]

* ext/zlib/zlib.c (rb_deflate_init_copy): replace rb_deflate_clone.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-28 04:36:21 +00:00
nagai 53c584d35d * ext/tcltklib/tcltklib.c: fix SEGV bug when deleting Tk interp
* ext/tk/lib/multi-tk.rb: ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-27 11:04:21 +00:00
gotoyuzo 8768030bb6 * ext/openssl/ossl_x509name.c (Init_ossl_x509name): should use
rb_hash_new to get exactly a Hash. fix [ruby-dev:25325].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-27 07:55:56 +00:00
aamine 3cf02cc03e * test/fileutils/test_fileutils.rb (cp_r): tested wrong file name. [ruby-dev:25339]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-27 06:29:34 +00:00
aamine ea12b3eb53 * lib/fileutils.rb (mv): should raise error when moving a directory to the (empty) directory. [ruby-talk:124368]
* lib/fileutils.rb (mv): wrongly did not overwrite file on Win32 platforms.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-27 06:15:32 +00:00
usa 46df1a4c80 * 2004-12-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-27 05:39:50 +00:00
usa 13388ff264 * process.c (NUM2RLIM, RLIM2NUM): Without SIZEOF_RLIM_T is not error.
fixed: [ruby-dev:25346]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-27 05:39:27 +00:00
eban 85cd4d9c5d * 2004-12-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-26 14:27:51 +00:00
shugo 4394e19fdd * lib/net/imap.rb (Net::IMAP::PlainAuthenticator): added a new class
to support the PLAIN authentication mechanism. Thanks, Benjamin
  Stiglitz.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-26 07:26:15 +00:00