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

3894 Коммитов

Автор SHA1 Сообщение Дата
akr 4baa7a3f0f add iconv.rb and config.charset.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-07 15:47:17 +00:00
akr d2041c1a79 sort aliases.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-07 11:55:11 +00:00
eban 27c6e0dd07 2003-12-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-07 11:41:21 +00:00
akr c4d502c931 * ext/iconv/iconv.c (map_charset): make case sensitive.
ext/iconv/charset_alias.rb (charset_alias): don't ignore
  config.charset's information.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-07 11:39:29 +00:00
dave e735472d1f Support inline source in Kilmer template
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-07 02:54:38 +00:00
gotoyuzo 7cc4f065fa no need to care SSL_ERROR_NONE and SSL_ERROR_WANT_X509_LOOKUP.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-06 14:33:52 +00:00
gotoyuzo 70daacc533 * ext/openssl/ossl_ssl.c (ossl_start_ssl): new function to wrap
SSL_connect and SSL_accept; if SSL_connect (or SSL_accept) returned
  but not finished the handshake process, we should retry it.

* ext/openssl/ossl_ssl.c (ossl_ssl_connect): call ossl_start_ssl.

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

* ext/openssl/ossl_ssl.c (ossl_ssl_read): allow signal traps.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-06 13:59:31 +00:00
eban a971d184ce * io.c (flush_before_seek): flush before seek on any platform.
* configure.in: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-06 12:48:51 +00:00
eban 73da604dcc 2003-12-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-06 12:44:01 +00:00
nahi 2e2ef81934 * lib/soap/soap.rb(SOAP::Env.getenv): allow upcase environment variable
as well as downcase one.

        * lib/soap/netHttpClient.rb(SOAP::NetHttpClient#proxy=): check URI.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-06 08:26:15 +00:00
nobu 6ffd5fe37e typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-05 14:24:19 +00:00
nobu 33f0b0ae0b * lib/test/unit/assertions.rb (Test::Unit::Assertions::assert_raises,
Test::Unit::Assertions::assert_nothing_raised): use the last
  argument as message unless non-class object.

* test/testunit/test_assertions.rb (test_assert_raises): test for
  multiple exception list.  [ruby-core:01891]

* test/testunit/test_assertions.rb (test_assert_nothing_raised): test
  for non-exception classes.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-05 14:22:36 +00:00
nahi 1ed39b7392 * lib/soap/netHttpClient.rb: proxy support did not work. fixed.
* lib/soap/property.rb: add class methods for loading property from
          stream/file/propertyfile.  propertyfile is a file which is located at
          somedir in $:.

        * lib/soap/soap.rb, lib/soap/wsdlDriver.rb, lib/soap/rpc/driver.rb,
          lib/wsdl/importer.rb: load property from propertyfile 'soap/property'
          e.g. /usr/local/lib/ruby/site_ruby/1.8/soap/property.

        * test/soap/test_property.rb, test/soap/test_streamhandler.rb: new file.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-05 13:26:26 +00:00
matz 3be09a4f4f * eval.c (rb_exec_end_proc): maintain tmp_end_procs.
[ruby-dev:22154]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-05 08:27:19 +00:00
matz aabecebd69 * eval.c (rb_exec_end_proc): should not clear end_procs and
ephemeral_end_procs before execution. [ruby-dev:22144]

* eval.c (rb_obj_extend): call Module#extended hook after
  extended_object.  [ruby-list:38866]

* object.c (Init_Object): Module#extended defined.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-05 05:54:00 +00:00
akr 491b450f93 * test/ruby/test_pipe.rb: use IO.pipe instead of IO.popen.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-05 04:18:37 +00:00
nobu 47dfa853ef MANIFEST: add files.
test/ruby/test_pipe.rb
test/ruby/ut_eof.rb


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-05 02:59:22 +00:00
nobu 7fbf13f7f2 * ext/stringio/stringio.c (strio_read): follow IO#read.
* test/ruby/ut_eof.rb, test/ruby/test_file.rb, test/ruby/test_pipe.rb,
  test/stringio/test_stringio.rb: add EOF test.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-05 02:54:48 +00:00
nobu e3ed269193 2003-12-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-05 02:06:27 +00:00
matz 7e6cecb769 * dln.c (aix_loaderror): should not use member named 'errno' which
might be a macro (e.g. on AIX).

* io.c (read_all): do not depend on lseek position.
  [ruby-dev:22026]

* eval.c (rb_eval): preserve $! value when retry happens in the
  rescue clause.  [ruby-talk:86697]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-04 21:57:35 +00:00
nobu 01d06638b9 * lib/test/unit/assertions.rb (Test::Unit::Assertions::assert_raises):
allow multiple exception list.  [ruby-core:01884]

* lib/test/unit/assertions.rb (Test::Unit::Assertions::assert_nothing_raised):
  check whether arguments are subclass of Exception.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-04 17:49:39 +00:00
dave e78a9cdcdb Try to give nicer error messages on internal failures
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-04 15:10:38 +00:00
nobu 9c40644850 * lib/drb/drb.rb (DRb::DRbMessage::send_request, send_reply):
should rescue errors and re-raise DRbConnError on write too.
  [ruby-dev:22132]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-04 12:50:13 +00:00
nobu 05f6ee2183 * parse.y (exc_list): allow expanding list. [ruby-dev:22134]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-04 07:41:20 +00:00
aamine 8c95664355 * test/fileutils/test_fileutils.rb (test_cp): test if the error is kind of SystemCallError. It is needless details that which errno is set on each systems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-04 05:09:47 +00:00
nobu b6e4f347dc mail address consistency.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-04 04:35:26 +00:00
shugo 7072d8279d * lib/monitor.rb: use Object#__send__ instead of Object#send.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-04 04:25:10 +00:00
nahi 541df88924 * lib/soap/streamHandler.rb: support latest released version of
http-access2.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-04 04:19:12 +00:00
nahi 20fa0df5cd * lib/soap/soap.rb: add SOAP::Env module for environment repository
such as HTTP_PROXY.

        * lib/soap/property.rb: property implementation.

        * lib/soap/streamHandler.rb, lib/soap/wsdlDriver.rb,
          lib/soap/rpc/driver.rb: use soap/property.rb.

        * lib/wsdl/importer.rb, lib/soap/wsdlDriver.rb, lib/soap/rpc/driver.rb:
          use SOAP::Env.

        * lib/soap/netHttpClient.rb: add basic_auth, ssl_config, and cookie
          management interface, but ignored for now.

        * lib/xsd/charset.rb: add XSD::Charset.encoding= interface to set
          wiredump charset explicitly.  it was fixed to 'utf-8' when iconv or
          uconv module was found.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-04 04:05:51 +00:00
nobu b28a2a1ad6 2003-12-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-04 01:53:14 +00:00
usa 4eaf7b1186 * ext/dl/sym.c (rb_dlsym_guardcall): __declspec(noinline) is VC7
feature.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-04 01:45:07 +00:00
aamine ad592fa016 * lib/net/http.rb: update hyperlink to the Japanese document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-04 01:27:39 +00:00
gotoyuzo f4ddca17e0 [ruby-core:01881]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-04 00:26:15 +00:00
gotoyuzo 7d6e215393 * ext/openssl/ossl_asn1.c (asn1time_to_time): should check that
the underlying value of ASN1_TIME isn't NULL.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-04 00:21:31 +00:00
gotoyuzo 8e1714488a * lib/webrick/server.rb (GenericServer#start): should rescue
Exception to avoid unexpected aborting. [ruby-core:01853]

* lib/webrick/server.rb (GenericServer#start_thread): should check
  that peeraddr isn't nil before printing.

* lib/webrick/httpresponse.rb (HTTPResponse#start_thread): should
  rescue Exception to avoid unexpected aborting of thread.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-04 00:12:14 +00:00
akr dc9603bd5c * lib/pathname.rb (Pathname#link, Pathname#symlink): obsoleted.
(Pathname#make_link, Pathname#make_symlink): new method.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-03 18:51:23 +00:00
matz 4f5976cbb8 * io.c (argf_read): should not terminate on empty string; wait
until real EOF.  [ruby-dev:21969]

* io.c (argf_read): should adjust length to read, when length is
  specified and read spans command line argument files.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-03 17:30:09 +00:00
dave ad27a14136 Implicitly define classes in 'class <<ClassName' if we haven't come across them before
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-03 14:40:44 +00:00
seki 3d9ba0390c correct fcntl parameer
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-03 10:40:27 +00:00
matz 2f4c13b0f0 * configure.in (AC_PROG_YACC): AC_DEFINE(OLD_YACC) if Yacc is found
instead of Bison or byacc.

* parse.y: If OLD_YACC is defined, ensure that YYMAXDEPTH is at least
  10000 (Bison's default) since some old versions of Yacc define it as
  low as 150 by default, which is too low for Ruby to parse some files,
  such as date/format.rb.  Among other issues, the parse problem causes
  "make test" to fail.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-03 07:55:54 +00:00
nobu 73bc1204e4 MANIFEST: add lib/rdoc/dot/dot.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-03 04:55:57 +00:00
nagai a7c382223c * 'format'==>'Kernel.format' (avoid override trouble)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-03 04:55:07 +00:00
nobu e3bab670fc * Makefile.in (lex.c): try gperf first, and copy from the source
directory if failed.  [ruby-dev:22123]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-03 04:28:14 +00:00
dave 835e16733d Missing file
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-03 04:20:22 +00:00
eban 2fa85831df 2003-12-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-03 04:03:01 +00:00
nobu b1fd732b4f * ext/extmk.rb (MTIMES): let makefiles depend to mkmf.rb.
* lib/mkmf.rb (configuration): DLDFLAGS was duplicated.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-03 02:36:48 +00:00
nobu c772f4906a fixed method name
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-02 23:29:02 +00:00
aamine 44cc15a9a8 * lib/net/http.rb: wrote the warning about HTTP_PROXY environment variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-02 14:18:49 +00:00
nobu 953b293f2b * lib/test/unit/ui/gtk2 (Test::Unit::UI::GTK2#start_ui): remove debug statement.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-02 12:41:01 +00:00
nobu 086745b7d6 * bin/testrb: new test runner. [ruby-core:01845]
* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner.run,
  Test::Unit::AutoRunner#initialize): take test list to run.

* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::RUNNERS,
  Test::Unit::AutoRunner#run): should not exit inside a library, just
  return the result instead.

* lib/test/unit.rb: ditto.

* test/runner.rb: exit with the test result.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-02 12:31:44 +00:00