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

3928 Коммитов

Автор SHA1 Сообщение Дата
aamine 5c3abcd043 catch all SystemCallErrors.
* lib/fileutils.rb (mkdir_p): catch all SystemCallErrors (mkdir("C:\") causes EACCESS on Windows 2000/NTFS).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-11 10:54:17 +00:00
aamine eb5a174119 * lib/fileutils.rb (mkdir_p): check if it is a directory after mkdir(2) instead of before mkdir(2), to avoid race condition. [ruby-talk:87730]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-11 10:15:54 +00:00
aamine eec8dd6737 * lib/fileutils.rb: def m( arg ) -> def m(arg).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-11 09:49:47 +00:00
eban 7a049ac594 2003-12-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-11 02:56:28 +00:00
nobu faab8f264d * configure.in (ieeefp.h), numeric.c: needed for finite() on
Solaris.  [ruby-core:01921]

* file.c (rb_stat_inspect): adjust format specifier.

* parse.c (arg_prepend): nodetype() is for debug use.

* ruby.h (ISASCII, etc): cast to int to get rid of warning.

* ruby.h (alloca.h): include even in GCC.  [ruby-core:01925]

* ext/bigdecimal/bigdecimal.c (GetVpValue): adjust format
  specifier.

* ext/bigdecimal/bigdecimal.c (BigDecimal_prec, BigDecimal_coerce,
  BigDecimal_divmod): use rb_assoc_new() to suppress memory usage.

* ext/bigdecimal/bigdecimal.c (BigDecimal_split): ditto.

* ext/dl/sym.c (rb_dlsym_guardcall): guard itself should be
  volatile.

* ext/iconv/iconv.c (iconv_convert): ensure actual parameter with
  format specifier.

* ext/pty/pty.c (MasterDevice, SlaveDevice, deviceNo): do not
  define unless used.

* ext/pty/pty.c (getDevice): get rid of warning.

* ext/socket/socket.c (port_str, sock_s_getaddrinfo,
  sock_s_getnameinfo): FIX2INT() now returns long.

* ext/socket/socket.c (init_inetsock_internal): uninitialized
  variable.

* ext/syck/rubyext.c (syck_parser_assign_io): add prototype.

* ext/syck/rubyext.c (rb_syck_mktime, yaml_org_handler): use
  ISDIGIT() instead of isdigit() to avoid warnings and for
  platforms which don't support non-ascii charater.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-11 02:39:59 +00:00
nobu c5d4ee4a39 * ext/stringio/stringio.c (strio_read): set EOF flag at short read.
[ruby-dev:22223], [ruby-dev:22224]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-10 10:29:00 +00:00
aamine 62b368dc4a * lib/erb.rb: new method ERB#filename(=). [ruby-dev:22208]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-10 09:07:52 +00:00
nobu ba18b0c6cb * ext/stringio/stringio.c (strio_read): do not set EOF flag when
requested length is zero.  [ruby-dev:22214]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-10 08:54:56 +00:00
matz f449c04a36 * io.c (read_all): should return given string even if data read is
empty.  [ruby-dev:22207]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-10 08:26:36 +00:00
nobu 6395c3b38d * ext/stringio/stringio.c (strio_read): adjust behavior at reading
beyond EOF to IO.  [ruby-dev:22205]

* test/ruby/ut_eof.rb (TestEOF::Seek): test behaviors at reading
  beyond EOF.

* test/ruby/test_file.rb, * test/stringio/test_stringio.rb:
  include TestEOF::Seek test case.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-10 08:16:14 +00:00
eban d6ce2b7b2b * ChangeLog: fix comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-10 07:56:07 +00:00
shugo 2a3f367151 * test/monitor/test_monitor.rb (test_cond): use Queue#deq
insteadof sleep.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-10 06:02:27 +00:00
usa e5d803e671 * ext/pty/pty.c (HAVE_SYS_IOCTL_H): already defined at config.h, so
use it.

* ext/pty/pty.c (establishShell): should close descriptors if fork
  failed. (ruby-bugs:PR#1211)  based on gotoyuzo's patch.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-10 05:50:12 +00:00
eban 3db654d88a 2003-12-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-10 04:00:11 +00:00
eban 79444dbdb9 * win32/win32.h: define execv() using do_aspawn().
* process.c (proc_exec_v): remove #ifdef's which stopped needing.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-10 04:00:07 +00:00
nagai edc03a2912 * overrided instance methods, which are private methods on the super
class, are changed to 'private'


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-09 14:38:15 +00:00
akira 8edab1a9b4 make case insensitive for host-part.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-09 11:07:36 +00:00
akr 1c09059ed8 ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-09 05:35:16 +00:00
akr 75b3b1901c add test for previous change to io.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-09 05:33:32 +00:00
akr 231f7cb95f io.c (rb_io_check_writable): don't call io_seek if EOF flag is set,
to avoid clearing EOF flag.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-09 05:12:52 +00:00
akr 39e04f4aa0 * io.c (rb_io_check_readable): Don't clear EOF flag by io_seek.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-09 03:50:02 +00:00
eban 92517eb4e3 2003-12-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-09 02:56:38 +00:00
ser 6c64ca5076 Added downcased shift-jis declarations. The old, all upper case declarations
are deprecated, but I need some Shift-JIS encoded documents to test against
before I remove them.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-09 02:43:05 +00:00
ser e6636fe890 * Added the lower-case Shift-JIS files to the manifest. The upper-case ones
should be deprecated, but I need a Shift-JIS encoded XML file to test
  against, first.
* Added support for maintaining external entity occurances in DTDs
* Deprecated the use of Document::DECLARATION.  The new default declaration
  can be gotten with XMLDecl::default()
* Refactored the encoding support code.  It should be more robust now,
  and fixes a few bugs.
* The XPath string() function now deals with Element nodes properly.
* Serialization with Output objects now works as would be expected.
* Various code cleanups, some reducing the number of warnings that Ruby 1.8.x
  produces with REXML.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-09 02:41:33 +00:00
nagai 31963249b9 * typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-09 00:49:23 +00:00
nagai 7bc53bf0f6 * new sample script
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-08 17:55:24 +00:00
ntalbott 1253665ec4 * lib/test/unit/assertions.rb: renamed #assert_raises to #assert_raise
and made the former call the latter. [ruby-core:01890]

	* test/testunit/test_assertions.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-08 15:58:41 +00:00
nahi af2dc00300 * lib/soap/rpc/standaloneServer.rb: add 'shutdown' and 'status'
methods as delegates to WEBrick.

        * test/soap/calc/{test_calc.rb,test_calc2.rb},
          test/soap/helloworld/test_helloworld.rb,
          test/wsdl/datetime/test_datetime.rb, test/wsdl/raa/test_raa.rb:
          follow the change.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-08 15:09:49 +00:00
nobu e67e930462 * lib/test/unit/autorunner.rb: remove dependency to a particular
runner.  [ruby-core:01901], [ruby-list:38869]

* lib/test/unit/ui/testrunnerutilities.rb: moved output level
  constants from Console.

* lib/test/unit/ui/console/testrunner.rb: ditto.

* lib/test/unit/ui/{fox,gtk,gtk2,tk}/testrunner.rb (initialize):
  accept output_level.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-08 13:48:14 +00:00
nobu 3fb4d657d8 * ext/syck/syck.c (syck_io_str_read): get rid of buffer overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-08 06:03:35 +00:00
aamine c3c0468f33 * lib/uri/common.rb: new method URI.regexp. [ruby-dev:22121]
* test/uri/test_common.rb: add test for URI.regexp.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-08 04:09:02 +00:00
aamine 3356550581 * lib/uri/common.rb: new method URI.regexp. [ruby-dev:22121]
* test/uri/test_common.rb: add test for URI.regexp.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-08 04:03:11 +00:00
eban 62848326c8 2003-12-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-08 03:48:31 +00:00
matz 64b15d9822 * pack.c: define swap16 and swap32 only if they are not
defined. OpenBSD defines these macros. [ruby-dev:22181]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-08 03:47:04 +00:00
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