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

5214 Коммитов

Автор SHA1 Сообщение Дата
shugo 73a6f9af6c * lib/cgi/session.rb (CGI::Session::FileStore#initialize): do not
use a session id as a filename.
* lib/cgi/session/pstore.rb (CGI::Session::PStore#initialize): ditto.
* lib/cgi/session/pstore.rb (CGI::Session::PStore#initialize): use
  Dir::tmpdir.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-24 07:59:50 +00:00
shugo b9b4a769f1 * lib/cgi/session.rb (CGI::Session::FileStore#initialize): untaint
session id after check.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-24 05:35:12 +00:00
usa 99439f54ea 2004-08-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-24 00:41:55 +00:00
gotoyuzo ef5ce7029d * ext/openssl/ossl_x509attr.c (ossl_x509attr_initialize): d2i
functions may replace the pointer indicated by the first argument.

* ext/openssl/ossl_x509ext.c (ossl_x509ext_initialize): ditto.

* ext/openssl/ossl_x509name.c (ossl_x509name_initialize): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-23 23:59:44 +00:00
usa b1ba6aebf9 2004-08-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-23 03:45:12 +00:00
usa 30c0611f97 * lib/resolv.rb (Config.default_config_hash): when multiple domains
are set, Win32::Resolv.get_resolv_info returns Array.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-23 03:44:32 +00:00
gotoyuzo 7b505316a4 * ext/openssl/ossl_ssl.c (ossl_ssl_read):
- should return an empty string if specified length to read is 0.
  - should check for pending data and wait for fd before reading.
  - call underlying IO's sysread if SSL session is not started.
  [ruby-dev:24072], [ruby-dev:24075]

* ext/openssl/ossl_ssl.c (ossl_ssl_write):
  - call underlying IO's syswrite if SSL session is not started.

* ext/openssl/ossl_ssl.c (ossl_ssl_pending): new method
  OpenSSL::SSL#pending.

* ext/openssl/lib/openssl/buffering.rb: should not use select.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-22 07:28:45 +00:00
eban b21ef0f47a 2004-08-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-21 16:21:32 +00:00
gotoyuzo 0263ace6fb * lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#proxy_connect):
should call :ProxyContentHandler before finishing CONNECT.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-21 16:16:18 +00:00
eban e5602e48dc 2004-08-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-21 09:33:47 +00:00
nobu 7e28ad63ff * ext/tcltklib/extconf.rb (find_tcl, find_tk): find stub library.
* lib/mkmf.rb (arg_config, with_config): deal with '-' and '_'
  uniformly.  [ruby-dev:24118]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-20 21:42:21 +00:00
usa 34fff376ff * io.c (rb_io_check_writable): no need to check read buffer if
already changed to write mode.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-20 08:30:43 +00:00
eban 6a04a2c7d8 2004-08-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-20 03:50:39 +00:00
katsu 47778e27f9 * ext/zlib/zlib.c: GzipReader#ungetc caused crc error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-20 03:19:09 +00:00
nagai c59f1e6c90 * ext/tk/lib/tk.rb: Fail to treat a hash value of 'font' option.
* ext/tk/lib/tk.rb: bindinfo cannot return '%' substiturion infomation.
* ext/tk/lib/menu.rb: typo bug.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-19 07:43:54 +00:00
matz d73fa69935 * dir.c (free_dir): fix memory leak. reported by yamamoto
madoka.

* eval.c (bind_eval): new method. [RCR 251]

* string.c (rb_str_clear): new method. [ruby-dev:24104]

* io.c (rb_io_reopen): should clear allocated OpenFile.  pointed
  out by Guy Decoux. [ruby-core:03288]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-19 07:33:15 +00:00
usa 4c57b2b499 * wince/Makefile.sub (LIBS): need to link ceshell library for SH*
functions on mswince.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-19 00:34:54 +00:00
usa 66b6366e1c * configure.in, win32/Makefile.sub (LIBS): need to link shell32
library for SH* functions on mswin32 and mingw32.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-19 00:24:43 +00:00
usa 6c5ba93713 2004-08-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-19 00:11:12 +00:00
why 8c7a37f643 * lib/yaml/rubytypes.rb: whoops. bad require for 'yaml/compat'. sorry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-18 20:44:54 +00:00
why 5e07e55204 * lib/yaml/baseemitter.rb: folding now handles double-quoted strings,
fixed problem with extra line feeds at end of folding, whitespace
  opening scalar blocks.

* lib/yaml/rubytypes.rb: subtelties in handling strings with
  non-printable characters and odd whitespace patterns.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-18 20:42:09 +00:00
aamine b79d77197f * lib/net/protocol.rb (rbuf_fill): OpenSSL::SSLSocket has its own buffer, select(2) might not work. [ruby-dev:24072]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-18 14:44:41 +00:00
eban 1d1ad956cb * ext/tcltklib/stubs.c (ruby_tcltk_stubs): need to call
Tcl_FindExecutable() for Tcl/Tk 8.4.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-18 08:14:54 +00:00
eban 8d906bd08e 2004-08-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-18 04:06:22 +00:00
nobu 4937f8cf34 * eval.c (rb_obj_instance_eval): evaluates under special singleton
classes as for special constants.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-18 03:53:50 +00:00
nobu c41cefd492 * win32/win32.c (init_env): initialize HOME and USER environment
variables unless set.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-18 02:22:59 +00:00
matz 67232b2151 * io.c (rb_io_reopen): should clear allocated OpenFile. pointed
out by Guy Decoux. [ruby-core:03288]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-17 09:02:40 +00:00
ocean 4af25f5813 2004-08-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-17 01:42:32 +00:00
ocean 00b363cd94 Sorry, this might not be typo... "memoize" came from Schema?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-17 01:39:25 +00:00
dave 86e8e8a2f5 Get RDoc::usage playing better with OptionParser
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-16 16:41:21 +00:00
akr 4339612a14 check constants (Fcntl::F_SETFL, Fcntl::F_GETFL and Fcntl::O_NONBLOCK)
instead of trapping NotImplementedError.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-16 05:07:49 +00:00
akr e2e305605d rescue NotImplementedError by fcntl.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-16 05:01:26 +00:00
eban 65a2518a1e 2004-08-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-15 10:07:12 +00:00
eban 8460e4adee * rdoc/markup/simple_markup/to_flow.rb: typo fix(CGI -> cgi).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-15 10:07:08 +00:00
ocean 5667fa237c 2004-08-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-14 04:00:48 +00:00
dave dbc9856067 Add Ri environment variable support
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-13 18:43:21 +00:00
dave 3319ea129e Add "usage" interface
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-13 17:52:52 +00:00
dave 690face91a Commit miss
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-13 17:50:11 +00:00
why 6bf86382c0 * ext/syck/token.c: re2c no longer compiled with bit vectors. caused
problems for non-ascii characters. [ruby-core:03280]
* ext/syck/implicit.c: ditto.
* ext/syck/bytecode.c: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-13 16:14:23 +00:00
eban c6a58f8725 2004-08-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-13 05:11:57 +00:00
gotoyuzo abca1cb92e for [ruby-cvs:12466]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-13 04:15:27 +00:00
gotoyuzo d85b9c8925 * lib/webrick/httputils.rb (WEBrick::HTTPUtils.parse_range_header):
fix regex for range-spec.

* lib/webrick/httpservlet/filehandler.rb
  (WEBrick::HTTPServlet::DefaultFileHandler#make_partial_content):
  multipart/byteranges response was broken.

* lib/xmlrpc/server.rb: refine example code.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-13 04:11:30 +00:00
eban a7b6d90e48 MANIFEST: add test/ruby/test_readpartial.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-12 14:17:58 +00:00
usa 8783ed5ab0 2004-08-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-12 01:56:47 +00:00
usa 564538541e * rubyio.h (rb_eof_error): should mark as NORETURN.
* win32/win32.c (make_cmdvector): adjust escaped successive
  double-quote handling.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-12 01:56:25 +00:00
akr 0e104131b8 add test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-11 16:59:31 +00:00
akr 8f8de7782e * io.c (read_buffered_data): extracted from rb_io_fread.
(io_readpartial): new method IO#readpartial.
  [ruby-dev:24055]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-11 16:57:14 +00:00
eban 9492165db2 2004-08-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-11 08:22:14 +00:00
eban 39516ae717 * configure.in (RPATHFLAG): stop setting RPATHFLAG on Interix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-11 08:21:39 +00:00
ocean 1a79a3139a no message
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-09 14:00:58 +00:00