Commit graph

7022 commits

Author SHA1 Message Date
nagai
8a73532bd8 * ext/tk/lib/multi-tk.rb: supports new features of Tcl/Tk8.5a2
* ext/tk/lib/tk/clock.rb: ditto
* ext/tk/lib/tk/text.rb: ditto
* ext/tk/lib/tk/panedwindow.rb: ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-20 05:10:59 +00:00
gotoyuzo
fd71f860a1 * ext/openssl/lib/net/https.rb,protocols.rb,telnets.rb: delete
doc and code about SSLContext#{key_file,cert_file}.
  fixed: [ruby-dev:25243]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-20 03:49:16 +00:00
usa
870e8c03e4 * io.c (io_fwrite): workaround for MSVCRT's bug.
fixed: [ruby-core:03982]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-20 03:43:14 +00:00
nobu
78a75f90c0 * io.c (rb_io_eof): check if closed before clearerr().
fixed: [ruby-dev:25251]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-20 02:21:14 +00:00
eban
ab2faa4567 * 2004-12-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-20 01:30:27 +00:00
nobu
fbd922da76 * lib/cgi/session.rb (CGI::Session#initialize): empty session id was
used if request had no session key.  fixed: [ruby-core:03981]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-19 18:31:04 +00:00
nobu
14479cf73d * 2004-12-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-19 17:10:46 +00:00
kou
8aeb8712f8 * lib/rexml/encodings/SHIFT-JIS.rb: backported from CVS HEAD.
* lib/rexml/encodings/SHIFT_JIS.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-19 15:31:17 +00:00
nobu
0052b9172e * configure.in (disable-rpath): typo fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-19 08:29:13 +00:00
gotoyuzo
049c3927ff * ext/openssl/ossl_x509store.c
(ossl_x509store_set_time): add OpenSSL::X509::Store#time=.
  (ossl_x509stctx_set_time): add OpenSSL::X509::StoreContext#time=.

* test/openssl/ossl_x509store.rb: test certificate validity times.

* ext/openssl/ossl_x509name.c (ossl_x509name_to_s): add optional
  second argument to specify the output format (see also
  X509_NAME_print_ex).

* ext/openssl/ossl_x509name.c (ossl_x509name_init): new constants:
  OpenSSL::X509::Name::COMPAT, OpenSSL::X509::Name::RFC2253,
  OpenSSL::X509::ONELINE, OpenSSL::X509::MULTILINE.

* ext/openssl/lib/openssl/x509.rb (OpenSSL::X509::Name::RFC2253DN):
  new module to provide the parse for RFC2253 DN format.

* ext/openssl/lib/openssl/x509.rb (OpenSSL::X509::Name.parse_rfc2253):
  new method to parse RFC2253 DN format.

* test/openssl/ossl_x509name.rb: add tests about RFC2253 DN.

* text/openssl/ssl_server.rb: try to listen ports from 20443 to 20542
  while EADDRINUSE is raised.

* all changes in this entry are backport from 1.9.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-19 08:28:33 +00:00
nobu
80f52f38c7 * configure.in (enable_rpath): use rpath flag to embed the library
path into extensions on ELF environment.  [ruby-dev:25035]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-19 08:25:36 +00:00
nobu
32ea57aa2b * lib/test/unit.rb: use standalone runner for -e.
* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner#options): accept
  multiple -p and -x options.

* lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#recursive_collect):
  ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-19 02:01:59 +00:00
nobu
ceacc591b6 * 2004-12-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-18 07:38:33 +00:00
nobu
d62a7e712a * ext/zlib/zlib.c (rb_deflate_s_deflate, rb_inflate_s_inflate):
disallow interrupt by type conversion.  fixed: [ruby-dev:25226]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-18 07:37:01 +00:00
nahi
0a51f8636c * I confirmed that its length. :-)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-18 07:19:46 +00:00
nahi
b1dd44e2f3 * lib/webrick/httpauth.rb,
lib/webrick/httpauth/{basicauth.rb,digestauth.rb}: use
          pack/unpack-template char "m" instead of lib/base64.rb to do base64
          encoding/decoding.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-18 06:17:33 +00:00
matz
125514995c * dir.c (dir_open_dir): new function. [ruby-dev:25242]
* hash.c (Init_Hash): remove custom "hash" and "eql?".

* lib/set.rb (Set::eql): wrong definition.  [ruby-dev:25207]

* object.c (rb_obj_id_obsolete): warn always.

* eval.c (rb_enable_super): ditto.

* lib/set.rb (Set#==): [ruby-dev:25206]

* lib/pstore.rb (PStore#transaction): Use the empty content when a
  file is not found.  [ruby-dev:24561]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-18 02:07:31 +00:00
shugo
7836e8ade3 * test/readline/test_readline.rb: fix for BSD. Thanks, GOTOU Yuuzou.
fixed: [ruby-dev:25218]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-17 15:18:03 +00:00
usa
397b34ad86 * 2004-12-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-17 09:17:33 +00:00
nagai
ab65368c28 * ext/tk/lib/tk.rb: fix bug on setting up system encoding
* ext/tk/lib/tk/event.rb: fix error on require process
* ext/tk/lib/font.rb: fix abnormal termination error on Windows
* ext/tk/lib/tk/virtevent.rb: TkVirtualEvent::PreDefVirtEvent.new()
  accepts event-sequence arguments
* ext/tk/lib/text.rb: fail to dump embedded images
* ext/tk/lib/text.rb: tag_nextrange and tag_prevrange returns wrong
  types of values
* ext/tk/lib/texttag.rb: nextrange and prevrange returns wrong types of values
* ext/tk/lib/text.rb: add TkText::IndexModMethods module and
  TkText::IndexString class to treat text index modifiers
* ext/tk/lib/texttag.rb: use TkText::IndexModMethods module
* ext/tk/lib/textmark.rb: ditto
* ext/tk/lib/textimage.rb: ditto
* ext/tk/lib/textwindow.rb: ditto
* ext/tk/lib/textimage.rb: wrong gravity of text mark for embedded image
* ext/tk/lib/textwindow.rb: wrong gravity of text mark for embedded window


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-17 07:31:51 +00:00
akiyoshi
93291de5aa Add private initialization routine for VMS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-17 05:03:33 +00:00
nobu
ac619b9205 * lib/cgi/session.rb (CGI::Session#initialize): control adding
session_id hidden fields.  fixed: [ruby-talk:123850]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-17 04:34:39 +00:00
seki
06df6d6696 backported from CVS_HEAD
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-16 14:31:55 +00:00
nobu
574697efc3 * test/io/nonblock/test_flush.rb (TestIONonblock#test_flush): ignore read result.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-16 11:43:45 +00:00
gotoyuzo
1b492b7b28 * lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): should wait
for reading request till data arrive. [ruby-talk:121068]

* lib/webrick/server.rb (WEBrick::GenericServer#start_thread):
  should log about all accepted socket. [ruby-core:03962]

* lib/webrick/accesslog.rb (WEBrick::AccessLog#setup_params):
  "%%" and "%u" are supported. [webricken:135]

* lib/webrick/httpservlet/filehandler.rb
  (WEBrick::HTTPServlet::FileHandler#check_filename):
  :NondisclosureName is acceptable if it is Enumerable.

* lib/webrick/config.rb (WEBrick::Config::FileHandler):
  default value of :NondisclosureName is [".ht*", "*~"].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-16 09:46:00 +00:00
gotoyuzo
d238fd1322 * ext/openssl/ossl.c (ossl_raise): refine message format.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-16 09:39:54 +00:00
nagai
832b1e88f5 * ext/tk/sample/demos-en/widget: modify version check for supporting features
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-16 07:32:01 +00:00
nagai
ba008adb33 * ChangeLog: forgot to commit
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-16 07:14:49 +00:00
nagai
805bd6fb8c * ext/tk/lib/tk/bindtag.rb: bug fix [ruby-talk: 123667]
* ext/tk/lib/tk/timer.rb: accept :idle for the interval argument
* ext/tk/lib/tk.rb: add TkComm._callback_entry?()
* ext/tk/lib/multi-tk.rb: add MultiTkIp.cb_entry_class
* ext/tk/lib/tk/canvas.rb: use TkComm._callback_entry?()
* ext/tk/lib/tk/canvastag.rb: ditto
* ext/tk/lib/tk/dialog.rb: ditto
* ext/tk/lib/tk/optiondb.rb: ditto
* ext/tk/lib/tk/text.rb: ditto
* ext/tk/lib/tk/texttag.rb: ditto
* ext/tk/lib/tk/textwindow.rb: ditto
* ext/tk/lib/tk/timer.rb: ditto
* ext/tk/lib/tk/validation.rb: ditto
* ext/tk/lib/tkextlib/*: ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-16 07:13:14 +00:00
usa
23565f4a48 * 2004-12-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-16 00:40:23 +00:00
aamine
2c4693357e * lib/net/http.rb (basic_encode): return value of pack('m') may include multiple CR/LFs. Backported from main trunk (rev 1.112). [ruby-dev:25212]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-15 18:14:54 +00:00
shugo
25bfdcb390 * ext/curses/curses.c (window_subwin): call NUM2INT() before
GetWINDOW(). (backported from CVS HEAD)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-15 09:57:05 +00:00
usa
8dac052af4 * win32/win32.[ch] (rb_w32_isatty): new function to replace MSVCRT's
isatty because it never sets errno. (backported from CVS HEAD)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-15 08:05:10 +00:00
gotoyuzo
db82a3315b * ext/openssl/ossl_x509name.c (ossl_x509name_to_a): avoid SEGV
(rollback the previous commit).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-15 06:46:19 +00:00
usa
6f3923f29e * win32/win32.c (rb_w32_fdisset): check whether the handle is valid.
fixed: [ruby-core:03959]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-15 05:31:32 +00:00
usa
4785d53be1 * win32/win32.c (rb_w32_fdisset): rollback previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-15 04:07:53 +00:00
usa
9ccc9cfaf3 * win32/win32.c (rb_w32_fdisset): check whether fd is socket.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-15 02:06:26 +00:00
eban
83413f0304 * 2004-12-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-15 01:57:58 +00:00
matz
d89b8333c5 * ext/openssl/ossl_digest.c (ossl_digest_initialize): [ruby-dev:25198]
* lib/cgi/session.rb (CGI::Session::initialize): generate new
  session if given session_id does not exist.  [ruby-list:40368]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-15 01:54:40 +00:00
ttate
9d24a847b8 devided the method DL::Types#encode_type into three methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-14 12:43:41 +00:00
usa
9cd4987614 * win32/win32.c (rb_w32_close): need to reset osfhnd().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-14 08:10:32 +00:00
eban
51696be74e * 2004-12-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-14 05:31:45 +00:00
gotoyuzo
08dc317502 * ext/openssl/ossl.c (ossl_raise): avoid buffer overrun. [ruby-dev:25187]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-14 05:05:17 +00:00
akr
293534986f * gc.c (stack_end_address): new function to obtain stack end address.
stack_end_address calls __builtin_frame_address(0) to obtain the
  frame pointer of a stack frame of stack_end_address.  The address
  is the stack pointer of the caller's stack frame.
  (SET_STACK_END): use stack_end_address.
  This makes the conservative garbage collector to scan a stack frame
  of the garbage_collect function itself.  This is required because
  callee-save registers may be stored in the frame.
  [ruby-dev:25158]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-13 09:58:12 +00:00
eban
9b04f5880e * 2004-12-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-13 04:11:46 +00:00
akr
24056dbf4d * lib/pathname.rb (cleanpath_aggressive): make it private.
(cleanpath_conservative): ditto.
  Suggested by Daniel Berger.  [ruby-core:3914]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-12 16:04:31 +00:00
eban
fce66ceec5 * 2004-12-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-12 13:47:06 +00:00
seki
6f00a0a682 backported from CVS_HEAD
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-12 11:07:29 +00:00
dave
1a33c544b7 Don't show r/w accessor flags if none were specified for custom attributes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-12 01:37:24 +00:00
dave
975fc745b3 Never exclude files given on command line
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-12 01:16:19 +00:00