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

2860 Коммитов

Автор SHA1 Сообщение Дата
dave a1d3a8e861 Add explicit line breaks in method signatures for ri. Fixup some comments in object.c. Support changes comments for "in xxx.c"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-12 03:11:25 +00:00
dave b4d94277bb Add HTML formatter to ri
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-11 17:34:05 +00:00
nobu db4ec3c56a * env.h (ruby_frame, ruby_scope, ruby_in_eval, ruby_class,
ruby_dyna_vars): export.  [ruby-dev:22566]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-11 14:54:44 +00:00
matz 32ceec70be * ext/socket/socket.c (make_hostent): a bug in brace position.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-10 17:52:38 +00:00
matz b07337fcb3 * configure.in: install rdoc by default. if you do not want to
install rdoc, specify --disable-install-doc.

* eval.c (eval): need to add message delimiter. [ruby-dev:22561]

* defines.h (__NeXT__): Ensure that all standard S_IRUSR, S_IWGRP,
  S_IRWXO, etc. macros are defined since future code might require
  them (even though present code only requires a subset).

* defines.h (__NeXT__): Bug fix: WORDS_BIGENDIAN was not being set
  correctly on Rhapsody when -arch compiler flag was used (via
  configure's --enable-fat-binary option).

* ext/socket/socket.c (make_hostent): getaddrinfo(3) on BSD do not
  fill ai_canonname if serv is not supplied.  (ruby-bugs PR#1243)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-10 17:39:07 +00:00
dave 60c8435e1f ri now accepts options via RI environment variable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-10 17:10:19 +00:00
nobu 482b9c2ce7 * configure.in (LIBPATHFLAG, RPATHFLAG): enclose paths with single
quotes.  [ruby-dev:22564]

* lib/mkmf.rb (libpathflag): do not enclose with quotes always.

* {bcc32,win32,wince}/Makefile.sub (LIBPATHFLAG): quoted.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-10 14:01:50 +00:00
nobu 53157197d2 * dir.c (dir_inspect): new method, Dir#inspect. [ruby-dev:22562]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-10 13:46:21 +00:00
nahi f34ce620a7 * lib/test/unit/collector/dir.rb: do not ignore exceptions(LoadError
and SystemExitError) while loading a testcase.  smell of bug.

        * test/testunit/collector/test_dir.rb: add new test of the LoadError.

        * test/drb/{test_drbssl.rb,test_drbunix.rb}: do not define testcase if
          openssl is not installed.

        * test/testunit/collector/test_dir.rb: assert_raises -> assert_raise.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-09 04:26:05 +00:00
nobu 417a410892 * rubysig.h: <errno.h> is needed to use errno which may be a macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-09 02:52:19 +00:00
nobu bafe6d8504 * ext/extmk.rb (extmake): should not reduce necessary libraries.
[ruby-dev:22440]

* lib/mkmf.rb (merge_libs): merge libraries according to
  dependency.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-09 02:20:28 +00:00
nobu 6f69b2b00a * lib/mkmf.rb (libpathflag): use single quotes. [ruby-dev:22440]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-09 01:05:27 +00:00
eban 50fe8ab6aa * configure.in (RDOCTARGET): new macro. if you want to install
rdoc documentation, you need to run configure with
  --enable-install-doc.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-08 14:58:57 +00:00
gotoyuzo 54d29aaba9 * ext/openssl/ossl_pkey.c (ossl_pkey_to_der): removed; it returns
public key only.

* ext/openssl/ossl_pkey_dh.c (ossl_dh_to_der): new function for
  OpenSSL::PKey::DH#to_der.

* ext/openssl/ossl_pkey_dsa.c (ossl_dsa_to_der): new function for
  OpenSSL::PKey::DSA#to_der.

* ext/openssl/ossl_pkey_rsa.c (ossl_rsa_to_der): new function for
  OpenSSL::PKey::RSA#to_der.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-08 12:24:22 +00:00
nobu 0f3e58e707 * dir.c (glob_helper): should not recurse in exceptional status.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-08 09:25:32 +00:00
nahi d69d6b6c36 * test/wsdl/datetime/test_datetime.rb: fixed a stupid testcase which
dumps "E" at month-end.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-08 07:55:00 +00:00
eban 973c2ad00d * eval.c, object.c, process.c, re.c: don't use C++ style comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-08 02:21:28 +00:00
nobu a68aa547a1 * ext/syck/rubyext.c (yaml_org_handler): lazy-load Date for
static-ext.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-07 23:46:18 +00:00
nobu 44e22e8d78 * ext/extmk.rb: preserve order in Setup. [ruby-dev:22503]
* ext/extmk.rb: move dependent libraries just after depended
  libraries.

* ext/digest/*/extconf.rb: depend on digest.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-07 22:06:38 +00:00
gotoyuzo 250cfdc0aa * lib/webrick/cgi.rb (WEBrick::CGI#initialize): should create
@config[:Logger] if it was not given.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-07 19:37:36 +00:00
nobu debe0485f0 * dir.c (glob_helper): fix memory leak.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-07 13:28:15 +00:00
matz d5ffbb20e8 * eval.c (rb_mod_modfunc): should break if m has no super class.
[ruby-dev:22498]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-07 12:42:52 +00:00
gotoyuzo 16291a0db7 * sample/webrick/*: new files.
* MANIFEST: add sample/webrick/*


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-07 12:22:19 +00:00
aamine b33d3cfb41 * test/net/test_httpheader.rb: new file.
* MANIFEST: add test/net/test_httpheader.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-07 11:52:14 +00:00
aamine 7050611cf9 * lib/net/http.rb (HTTPHeader#content_length): should return nil unless header exists. [ruby-dev:22519]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-07 11:42:21 +00:00
nagai c24349e32d * ext/tk/lib/tk.rb: use epath for embedded windows of TkPanedWindow.
* ext/tk/lib/tktext.rb: use epath for embedded windows.
* ext/tk/lib/tkcanvas.rb: use epath for window items.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-07 05:28:53 +00:00
nahi cd97e6e333 * lib/soap/{attachment.rb,mimemessage.rb}: added from soap4r/1.5.2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-07 05:28:02 +00:00
dave 305cc5d2d9 Fix problem with agreesive name matching (see ChangeLog)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-07 04:05:25 +00:00
nahi 796ca6f201 * lib/debug.rb: revert command parse regexps. [ruby-list:39014] by
Shirai,Kaoru.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-07 03:42:00 +00:00
dave 0ea74ce4e7 Check for shebang line in file that would otherwise be treated as plain text
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-06 23:26:42 +00:00
nobu d231dc04d0 * io.c (fptr_finalize): should save errno just after failure.
[ruby-dev:22492]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-06 12:55:05 +00:00
nahi 77cb3aeba1 * lib/logger.rb(Logger#msg2str): no special treatment for the object
which responds to :to_str.

        * lib/logger.rb(LogDevice#initialize): remove type checking if the
          given object is a String.  Kernel.open handles it correctly.

        * test/logger/test_logger.rb: follow above change (ArgumentError ->
          TypeError.)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-06 11:55:08 +00:00
dave 96ff9b04c1 Split out ri display code and make pluggable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-06 05:59:31 +00:00
nahi 79c0e644a1 * test/inlinetest.rb, test/{test_generator.rb,test_ipaddr.rb,
test_pathname.rb,test_pp.rb,test_prettyprint.rb,test_set.rb,
          test_time.rb,test_tsort.rb: added.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-06 02:34:24 +00:00
nahi ff1b89a96d * import soap4r/1.5.2;
* lib/soap/{attachment.rb,baseData.rb,encodingstyle/soapHandler.rb}:
          introduce SOAPExternalReference class as a referenct to SOAPEnvelope
          external content.

        * lib/soap/{attachment.rb,mimemessage.rb}: great SwA (SOAP messages
          with Attachments) support code by Jamie Herre.

        * lib/soap/{element.rb,marshal.rb,parser.rb,processor.rb,
          streamHandler.rb,wsdlDriver.rb}: SwA support.

        * lib/soap/rpc/{cgistub.rb,driver.rb,element.rb,proxy.rb,router.rb,
          soaplet.rb}: SwA support and refactoring.

        * lib/soap/generator.rb, lib/soap/mapping/mapping.rb: follow
          SOAPReference#initialize signature change.

        * lib/soap/mapping/factory.rb: deleted unused methods.

        * lib/soap/mapping/rubytypeFactory.rb: do no ignore case while xsi:type
          string <-> Ruby class name matching.

        * lib/xsd/datatypes.rb: check the smallest positive non-zero
          single-precision float exactly instead of packing with "f".
          [ruby-talk:88822]

        * test/soap/test_basetype.rb, test/xsd/test_xsd.rb: use 1.402e-45, not
          1.4e-45.  1.4e-45 is smaller than 2 ** -149...

        * test/soap/test_basetype.rb, test/soap/marshal/test_marshal.rb,
          test/xsd/test_xsd.rb: use "(-1.0 / (1.0 / 0.0))" instead of "-0.0".

        * test/soap/test_streamhandler.rb: revert to the previous test that
          warns "basic_auth unsupported under net/http".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-06 02:20:51 +00:00
dave 1b31d09edd Add RDoc to build. Add --ri-system to RDoc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-05 21:48:16 +00:00
usa 573b35d45e * win32/dir.h, win32/win32.c: fix patch miss.
* win32/Makefile.sub: fix file dependency.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-05 16:01:54 +00:00
gsinclair 51826a7b81 * lib/logger.rb: enhanced documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-05 13:33:48 +00:00
matz caaac4db27 * dir.c: merge tuning from H.Yamamoto <ocean@m2.ccsnet.ne.jp>.
[ruby-dev:22486]

* pack.c (pack_unpack): unpack requires big endian offet (OFF16B
  and OFF32B).  The patch is from Minero Aoki in [ruby-dev:22489]

* pack.c (OFF16B): add big-endian offset again.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-05 10:01:54 +00:00
aamine 90d913613c * test/ruby/test_pack.rb: new test test_unpack_N.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-04 18:01:06 +00:00
usa d110f97055 * lib/mkmf.rb (create_makefile): remove duplicated object files
from $objs on DOSISH platforms.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-04 16:48:45 +00:00
matz 88fb246cc7 * rubysig.h (TRAP_END): preserve errno before switching context.
[ruby-core:02137]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-02 17:46:02 +00:00
matz 59dbfa3e4c * dir.c: merge tuning from H.Yamamoto <ocean@m2.ccsnet.ne.jp>.
[ruby-dev:22476]

* io.c (argf_eof): ARGF.eof? should not have any side effect.
  [ruby-dev:22469]

* io.c (argf_each_byte): should return self.  [ruby-dev:22465]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-02 16:21:26 +00:00
dave 88c127c19b Finish documenting internal stuff. See Changelog for other details
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-02 06:01:12 +00:00
nahi eee1377a60 * text format
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-01 15:47:52 +00:00
dave 831a294b0c Fix problem with ambiguous nested classes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-01 00:05:13 +00:00
gsinclair bd45695886 * lib/pathname.rb: Corrected small coding error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-31 06:09:22 +00:00
gsinclair 29b7f2efca * lib/pathname.rb: Completed documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-31 05:47:45 +00:00
dave f5b7214548 Make file in '// in sss.c' relative
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-31 02:24:10 +00:00
dave e9a7fd1c92 Fix problem with private alias to public method
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-31 02:21:07 +00:00
matz 2c87fffec4 * io.c (rb_f_readline): should raise EOFError at the end of
files.  [ruby-dev:22458]

* io.c (argf_read): should concatenate input files when length
  argument is nil. [ruby-dev:22450]

* io.c (argf_read): should update supplied string buffer (2nd
  argument) even when IO#read is called multiple times.

* io.c: should initialize lineno by zero. [ruby-dev:22460]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-30 19:29:56 +00:00
dave 349f4e7db7 Add RDoc for kernel functions, and tidy up
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-30 16:38:32 +00:00
dave 5b76f13a89 Fix problem when class and method names the same
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-30 03:33:35 +00:00
dave 1da4596b0f Fix parse problem with complex yields
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-29 23:38:09 +00:00
gsinclair db93a78e63 * lib/pathname.rb: Added documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-29 22:31:55 +00:00
aamine ef70baa40a * lib/net/http.rb (GenericRequest#initialize): check if path begins with '/'.
* lib/net/http.rb: def m( arg ) -> def m(arg)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-29 11:08:47 +00:00
dave d993e38f18 Add RDoc for Kernel global functions, tidy array and error
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-29 03:56:22 +00:00
dave a5a5ac6c92 Tidy array.c RDoc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-29 02:02:08 +00:00
dave 8d32798543 RDoc Struct and random
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-28 20:47:56 +00:00
gsinclair f42c729a2e * lib/optparse.rb: Improved documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-28 17:31:10 +00:00
usa d5005596bb forgot ML pointer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-28 17:27:42 +00:00
usa 923b55d35b * instruby.rb: fix install directory if destdir and compile_dir are
not in the same drive.

* ext/extmk.rb: ditto.

* win32/Makefile.sub, win32/README.win32, win32/configure.bat,
  win32/setup.mak: new configure scheme. use ``configure --prefix=dir''
  instead of ``nmake DESTDIR=dir install''.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-28 17:25:31 +00:00
dave bb2030498a RDoc comments for Proc, Method, and UnboundMethod
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-28 17:24:32 +00:00
dave a12c70cd2e Add RDoc comments to math.c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-28 15:44:07 +00:00
akr 745ce54b4a * ext/stringio/stringio.c (strio_sysread): StringIO.new.sysread didn't
raise EOFError.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-28 11:27:42 +00:00
dave 3c288b427d Add RDoc documentation for stuff in object.c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-28 06:33:07 +00:00
nahi 6dc12f6f74 * test/csv/test_csv.rb: generate bom.csv and mac.csv files on the fly.
[ruby-talk:88852]

        * test/csv/{bom.csv,mac.csv}: removed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-28 03:52:15 +00:00
dave 4c98749911 Thread/ThradGroup RDoc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-28 00:02:59 +00:00
dave 3f3c55f49c Fix quoting of method names in regexp
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-27 18:52:03 +00:00
dave 3009adaee2 Add support for rules in ri output
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-27 16:49:22 +00:00
dave 68d292236d Add "Document-method:" capability
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-27 16:39:44 +00:00
dave e554664426 Some Ruby source uses Init_xxx (lower case for the class name)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-27 15:50:03 +00:00
eban 9eca8a4a5f * configure.in: fix "test: too many arguments" error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-27 14:45:48 +00:00
dave 56a0049312 Add RDoc comments for Time
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-27 06:33:45 +00:00
dave d89650c8cf RDoc comments for Symbol
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-27 06:09:08 +00:00
dave 791f868395 Add RDoc comments
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-27 05:46:46 +00:00
matz 23f79ec282 * io.c (next_argv): warn always for stdin on inplace edit mode.
* io.c (read_all): need to check string value.

* io.c (argf_read): allow ARGF.read(nil).  [ruby-dev:22433]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-26 17:05:20 +00:00
matz b9a79bc020 * io.c (rb_f_backquote): need not to check nil result.
[ruby-core:02078]

* io.c (rb_io_getline): should return nil on eof, even when nil rs is
  specified. [ruby-core:02077]

* pack.c (pack_pack): add sign check for 'i', and 'l'.
  [ruby-dev:22427]

* bignum.c (rb_quad_pack): add range check for 'quad int'.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-26 15:34:33 +00:00
nobu ab0c37d0cf * configure.in: check if getcontext and setcontext are available.
* eval.c: use presence of getcontext/setcontext.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-26 09:34:03 +00:00
akr 88947c09c4 lib/pathname.rb (PathnameTest#test_plus): add 2 assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-26 07:42:35 +00:00
aamine 16bcd53d21 * test/ruby/test_pack.rb: new test test_pack_N.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-26 05:05:37 +00:00
usa f573bcd129 * MANIFEST: add vms/config.h and remove vms/config.h_in.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-26 01:59:42 +00:00
akiyoshi 67331f2497 [VMS] "rfm=stmlf" is specified for open() and fopen().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-26 01:47:12 +00:00
usa 3e16f5a3f0 * string.c (rb_str_update): don't return any value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-25 13:30:39 +00:00
matz f7d46c8860 * string.c (rb_str_update): call rb_str_modify().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-25 08:49:20 +00:00
nobu daef2a1df2 * eval.c (search_required): search actual file name once when no
extension specified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 20:08:12 +00:00
matz cecdab3bf0 * configure.in: check for nanosleep, -lrt if required.
[ruby-core:02059]

* eval.c (thread_timer): use select(2) if nanosleep(2) is not
  available.

* eval.c: check __stub_getcontext for glibc on some platforms.
  [ruby-list:38984]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 19:38:15 +00:00
matz 65d37c6cc5 * stable version 1.8.1 released.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 15:19:11 +00:00
nahi dc7549c0b0 * test/soap/test_basetype.rb, test/soap/marshal/test_marshal.rb
test/xsd/test_xsd.rb: use "(-1.0 / (1.0 / 0.0))" instead of "-0.0"
          to express -0.0.  [ruby-talk:88786]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 14:53:17 +00:00
akr 8b279c0ddb * lib/tsort.rb (test_orphaned_break): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 14:31:41 +00:00
nagai 8855456929 * ext/tk/sample/tkmulticolumnlist.rb: new sample
* ext/tk/sample/tkmultilistframe.rb: bug fix


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 11:57:21 +00:00
eban 42da260543 * configure.in (LDSHARED): Fixed typographical error in assignment of
LDSHARED for Rhapsody which caused linking of extension modules to
  fail.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 11:54:12 +00:00
matz e9e100aa48 * eval.c (catch_timer): do not call rb_thread_schedule() inside to
avoid pthread_mutex_lock() deadlock.  interrupts to system calls
  are detected by TRAP_END via EINTR error.

* eval.c (thread_timer): do not post signal unless it is
  absolutely necessary.

* rubysig.h (TRAP_END): add CHECK_INTS to switch thread.

* regex.c (re_compile_pattern): check if nextp is smaller than
  pend.  [ruby-dev:22372]

* eval.c (umethod_bind): remove method overridden check.
  [ruby-dev:22366]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 08:47:36 +00:00
gotoyuzo 932075e82e * ext/openssl/ossl_ssl.c (ossl_ssl_read): should check for error
status by SSL_get_error().

* ext/openssl/ossl_ssl.c (ossl_ssl_write): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 07:29:40 +00:00
nobu 6fe8d987ce * ext/stringio/stringio.c (strio_read): clear the buffer argument
when returning nil.  [ruby-dev:22363]

* test/ruby/ut_eof.rb (TestEOF::test_eof_0, TestEOF::test_eof_1):
  add buffer argument tests.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 05:23:32 +00:00
nobu 73d77c8f57 * lib/test/unit/assertions.rb: Modules are allowed to rescue.
* lib/test/unit/autorunner.rb: show output_level in order.

* lib/test/unit/collector/dir.rb: get rid of successive same
  directories in load path.

* test/testunit/test_assertions.rb (test_assert_nothing_raised,
  test_assert_raise): test for modules.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 05:08:04 +00:00
shugo e34f7ef3cc * lib/net/imap.rb (authenticate): remove "\n" from base64 encoded
strings.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 04:44:25 +00:00
nobu 52975bb7a7 * test/fileutils/test_fileutils.rb: should not create any
files or directories in current directory.  [ruby-talk:88724]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 02:26:44 +00:00
nobu c2b63d249f * ext/stringio/stringio.c (strio_read): never return nil at
unlimited read.  [ruby-dev:22334]

* ext/stringio/stringio.c (strio_read): support second
  argument.  [ruby-dev:22350]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 01:29:57 +00:00
nobu 170f4e21d3 * parse.y (arg): should return 0 after error. [ruby-dev:22360]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 00:38:53 +00:00
matz 0a4fc3d71b * io.c (read_all): do not return nil at the end of file.
[ruby-dev:22334]

* io.c (argf_read): do not depend on nil at eof behavior of
  IO#read().

* eval.c (rb_thread_join): dup exception before re-raising it.

* io.c (rb_io_eof): call clearerr() to prevent side effect.  this
  patch is supplied by Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>.
  [ruby-dev:22234]

* pack.c (OFF16): get offset for big endian machines.

* pack.c (pack_pack): use OFF16 instead of OFF16B.
  [ruby-dev:22344]

* pack.c (pack_unpack): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-23 19:53:45 +00:00
gsinclair fd4a3ee4ac * lib/optparse.rb: incomplete RDoc documentation added in place of
existing RD comments.  Tabs converted to spaces.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-23 13:27:42 +00:00
nahi 619587e205 * test/soap/test_streamhandler.rb (test_basic_auth): removed.
soap4r + basic_auth is not officially supported in ruby/1.8.1 even
          though soap4r + basic_auth + http-access2 should run fine.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-23 10:47:01 +00:00
nobu 163a6e81b2 * io.c (rb_io_ungetc): raise an exception at unread stream to
avoid unspecified behavior.  [ruby-dev:22330]

* test/ruby/test_system.rb (test_syntax): glob relatively from
  __FILE__.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-23 10:43:04 +00:00
matz dbc5af97c7 * pack.c (pack_pack): remove unnecessary negative value check.
[ruby-dev:22329]

* io.c (rb_io_ungetc): need fflush before ungetc if write buffer
  is filled. [ruby-dev:22330]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-23 10:02:17 +00:00
usa d5ae9837ff * bcc32/Makefile.sub (config.h): bcc has finite(). [ruby-list:38940]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-23 08:29:54 +00:00
nahi d83e21d15d * lib/rexml/encodings/US-ASCII.rb: typo. [ruby-talk:88650]
* test/ruby/test_system.rb: num of asserts depended on running dir.

        * test/xsd/test_noencoding.rb: rexml + without iconv/uconv cannot
          handle euc-jp.  install iconv, uconv or xmlscan.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-23 07:13:59 +00:00
akira 4bb0fd231e * lib/uri/generic.rb (URI::Generic::check_userinfo,
URI::Generic::check_user, URI::Generic::check_password): tests
  conflicts/depends with other components closely.

* test/uri/test_generic.rb (TestGeneric::test_set_component):
  added tets.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-23 05:17:00 +00:00
nahi 53ebcbf733 * test/xsd/test_noencoding.rb: rescue Errno::EINVAL and do not test.
"euc-jp" might not be in supported encoding name list.
          [ruby-talk:88650]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-23 02:12:10 +00:00
gotoyuzo 4a663be97e * lib/webrick/cgi.rb (CGI): add support for mod_ruby.
* lib/webrick/cgi.rb (CGI::Socket): add check for existence of
  OpenSSL module in all HTTPS related methods.

* lib/webrick/cgi.rb (CGI::Socket#cipher): should create similar
  value to OpenSSL::SSLSocket#cipher.

* lib/webrick/httpresponse.rb (HTTPResponse#setup_header): should
  set "connection: close" if @keep_alive is false.

* lib/webrick/https.rb (HTTPrequest#meta_vars): add supprt for
  SSL_PROTOCOL, SSL_CIPHER_USEKEYSIZE and SSL_CIPHER_ALGKEYSIZE.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-22 21:13:06 +00:00
akira 6bcf78e40d * lib/uri/generic.rb (URI::Generic::check_opaque): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-22 14:01:07 +00:00
nobu 54524ed8f0 * ext/iconv/iconv.c (map_charset): always ensure code is a String.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-22 12:59:28 +00:00
nobu 65fed5dad3 * class.c (rb_mod_init_copy): always copy singleton class.
[ruby-dev:22325]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-22 12:15:34 +00:00
akira 88695fc0ea * lib/uri/generic.rb (URI::Generic#route_from): accepts urls which
has no host-part.

* test/uri/test_generic.rb (TestGeneric::test_route): added a test.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-22 11:49:20 +00:00
nobu 3fdd33b70c * lib/cgi.rb: reduce eval.
* lib/cgi.rb (CGI::QueryExtension::read_multipart): alias path to
  local_path.  [ruby-list:38883]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-22 11:38:48 +00:00
nahi d7ff8a6469 * test/soap/test_property.rb: remove duplicated test method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-22 11:11:29 +00:00
matz 1c09bfad5c * eval.c (rb_with_disable_interrupt): use ENABLE_INTS instead of
ALLOW_INTS which may switch context.  [ruby-dev:22319]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-22 09:37:13 +00:00
usa d0133e413d * bcc32/Makefile.sub, win32/Makefile.sub (config.h): remove
HAVE_ISINF definition to follow previous commits of missing.h
  and win32/win32.h.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-22 09:26:24 +00:00
nobu 748b699d1b * configure.in (ac_cv_func_setitimer): moved from defines.h
* defines.h, rubysig.h, signal.c: removed macro handling which
  should be done in configure.

* configure.in (intrinsics.h): check if present.

* ruby.h: include intrinsics.h if available.

* bignum.c, marshal.c: include ieeefp.h if available.

* missing.h (isinf): define as a macro if finite() and isnan()
  are available.  [ruby-core:02032]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-22 08:23:55 +00:00
eban 25b6ac95f2 * configure.in (mingw): set isnan, finite and isinf to yes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-22 08:09:14 +00:00
nahi b1d80f310f * lib/soap/property.rb: passing block by reference.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-22 04:41:35 +00:00
matz a7b3a42850 * ext/syck/emitter.c (syck_emitter_write): str bigger than
e->bufsize causes buffer overflow.  [ruby-dev:22307]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-21 15:38:01 +00:00
nobu 7c34e359a1 * class.c (rb_check_inheritable): new function. [ruby-dev:22316]
* intern.h: add prototype.

* eval.c (superclass): use rb_check_inheritable().

* object.c (rb_class_initialize): check argument validity.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-21 08:29:06 +00:00
akr 3e67076db0 lib/pathname.rb (Pathname#+): re-implemented to resolve ".." in
beginning of the argument.
(Pathname#join): concatenate from the last argument.
(Pathname#parent): just use Pathname#+.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-21 07:28:59 +00:00
matz 6228cbe5ef dln.c: remove last second typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-20 16:59:09 +00:00
matz e91e9e7bbf * eval.c (rb_with_disable_interrupt): prohibit thread context
switch during proc execution.  [ruby-dev:21899]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-20 15:45:15 +00:00
nagai bb4f36de3a * forgot to add a changelog entry
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-20 15:18:27 +00:00
gotoyuzo a679f1861f * lib/webrick/httprequest.rb (HTTPRequest#meta_vars): refine regexp.
* lib/webrick/cgi.rb (CGI#start): NPH scripts return status line
  instead of Status: header field.

* lib/webrick/cgi.rb (CGI::Socket): refine some coditions.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-20 13:01:33 +00:00
nobu 07507fe37a * lib/optparse.rb (OptionParser::Completion::complete): wrong
Regexp for word boundary.  pointed out by Gavin Sinclair.

* lib/optparse.rb (OptionParser::make_switch): [no-] prefix was
  missing.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-20 07:07:19 +00:00
nobu d4e661b4ad * lib/yaml.rb (YAML::YAML): adjust Marshal version.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-20 02:40:15 +00:00
gotoyuzo 1702e82e02 * lib/webrick/cgi.rb: add file. (yet another CGI library)
* MANIFEST: add lib/webrick/cgi.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-19 18:01:26 +00:00
matz e6f473c3a0 * misc/ruby-mode.el (ruby-calculate-indent): proper indentation
inside of parentheses.  [ruby-dev:22308]

* hash.c (delete_if_i): do not use ST_DELETE for thread safety.
  [ruby-dev:21899]  (not fully solved)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-19 17:29:09 +00:00
gotoyuzo a4874e20ae * lib/webrick/httprequest.rb (meta_vers): should not set
HTTP_CONTENT_TYPE and HTTP_CONTENT_LENGTH.

* lib/webrick/https.rb (HTTPRequest#parse): should check presence
  of cert() method to detect SSLSocket.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-19 14:31:24 +00:00
nahi c1e9ce9ca6 * lib/soap/property.rb (SOAP::Property#load): new method for loading
property value into existing property tree.

        * test/soap/test_property.rb: add test.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-19 13:59:27 +00:00
akira a15cdb7512 * lib/runit/cui/testrunner.rb (RUNIT::CUI::TestRunner::run):
should use Test::Unit::UI::{PROGRESS_ONLY,VERBOSE}.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-19 10:24:24 +00:00
nagai 687cb91127 * ext/tk/sample/tkmultilistbox.rb: bug fix
* ext/tk/sample/tkmultilistframe.rb: new sample script


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-19 08:38:01 +00:00
gotoyuzo f75aff0139 * lib/webrick/httputils.rb (parse_form_data): should return an
empty Hash if the body is empty.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-18 19:08:11 +00:00
usa b3b5b5e6b6 * eval.c (stack_extend): ignore inline optimization on VC7.
* win32/Makefile.sub (OS, RT): can override.

* win32/Makefile.sub (LDFLAGS): ditto. shouldn't use pdb:none
  option. based on Tietew's patch [ruby-dev:22289]

* lib/mkmf.rb (create_makefile): should remove deffile if it's
  made by miniruby. based on nobu's patch.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-18 12:48:43 +00:00
nobu 77ffc8bf3f * dir.c (fnmatch): unlike find_dirsep(), rb_path_next() never
return NULL.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-18 07:38:48 +00:00
eban 60f87fe599 * lib/ipaddr.rb (IPSocket::getaddress): merge usa's patch.
[ruby-dev:21678]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-18 06:38:30 +00:00
matz e78cb14774 * lib/cgi.rb (CGI::QueryExtension::Value::[]): should work like
String#[] if more than one arguments are specified.

* lib/delegate.rb: avoid using common instance name as "@obj".

* lib/cgi.rb (CGI::QueryExtension::Value): Value is no longer
  subclass of String, but DelegateClass(String).

* ext/curses/extconf.rb: restore function check for init_color.
  [ruby-list:38905]

* Makefile.in: need to specify $(MAINLIBS) for the miniruby
  generation rule.

* configure.in: better FreeBSD -lc_r support.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-17 06:38:18 +00:00
aamine 6ef31af2d1 introduce some new methods
* ext/strscan/strscan.c: new method StringScanner#beginning_of_line? (alias #bol?)
* ext/strscan/strscan.c: new method StringScanner#concat and #<<.
* ext/strscan/strscan.c: StringScanner#new(str) does not duplicate nor freeze STR (allow destructive modification).
* test/strscan/test_stringscanner.rb: test new methods above.
* test/strscan/test_stringscanner.rb: test destructive string modification.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-16 15:18:11 +00:00
akr ff9f067f89 * lib/pp.rb: don't use local variable `pp'.
* lib/prettyprint.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-16 12:22:15 +00:00
nagai dcd30a1236 * condition bug of if statement on {pack,grid}_propagate methods
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-16 04:27:15 +00:00
why b75b9455ac * lib/yaml/rubytypes.rb: comments in strings. [ruby-talk:88012]
* test/yaml/test_yaml.rb: add test.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-15 18:17:43 +00:00
nobu ee72d97e99 * eval.c (catch_timer): check rb_thread_crtical in main native
thread.

* eval.c (thread_timer): just sends signals periodically, to
  prevent main native thread from receiving them in critical
  section.  [ruby-core:01959]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-15 16:14:49 +00:00
nobu 5fd915fc83 * file.c: renamed and externalized rb_path_next,
rb_path_skip_prefix, rb_path_last_separator, rb_path_end.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-15 04:32:23 +00:00
nobu 52f81e0ce7 commit miss
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-15 04:11:34 +00:00
nobu 12b5b81a97 * dir.c (check_dirname): check string safety and remove extraneous
trailing directory separators.  [ruby-dev:22279]

* file.c: extern rb_path_next, rb_path_skip_prefix,
  rb_path_last_separator, rb_path_end.

* intern.h: prototypes for rb_path_next, rb_path_skip_prefix,
  rb_path_last_separator, rb_path_end.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-15 04:07:03 +00:00
usa 8e43498222 * ext/openssl/ossl_pkcs12.c (ossl_pkcs12_initialize): first argument
of rb_protect should take an argument of VALUE.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-15 00:30:12 +00:00