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

3822 Коммитов

Автор SHA1 Сообщение Дата
nahi d268bf305e * lib/soap/encodingstyle/soapHandler.rb: refactoring - Simplifying
Conditional Expressions.

        * lib/wsdl/soap/definitions.rb: refactoring - Move Method.

        * test/xsd/{test_noencoding.rb,noencoding.xml}: new files.  test for
          encoding unspecified XML file parsing.

        * test/wsdl/{test_fault.rb,map,datetime}: new files.  test of
          SOAPFault, dateTime and Apache's Map.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-30 04:33:02 +00:00
nobu 165d101eed 2003-11-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-30 00:39:37 +00:00
nobu a503181049 * string.c (rb_str_update): get rid of SEGV at just allocated String.
[ruby-core:01812]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-30 00:35:28 +00:00
matz 5eaf7e5816 * gc.c (gc_mark): explicitly check mark recursion levels, instead
of unreliable stack length.

* file.c (path_check_1): honor sticky bits always.
  [ruby-talk:86273]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-28 14:23:33 +00:00
seki daa1423dea fix TupleSpaceProxy#read, read_all
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-28 13:51:31 +00:00
eban 6ccd46b7b2 ChangeLog: FreeBSD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-28 12:47:28 +00:00
eban f56d1d8777 * test/fileutils/test_fileutils.rb (test_ln_s): should be a file, not
a directory.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-28 12:46:36 +00:00
nobu f2fdd59898 * test/ruby/test_env.rb (test_has_value, test_index): condition for
aboves.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-28 10:38:00 +00:00
nobu f284f6a41b * hash.c (env_has_value, env_index): must match exactly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-28 10:28:21 +00:00
usa 275d6a5775 * test/ruby/test_env.rb: add tests for ENV.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-28 09:00:48 +00:00
seki ff6169dfd5 lib/drb/drb.rb (DRbMessage#load): rescue Errno::* and raise DRbConnError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-28 08:53:41 +00:00
seki b20531b334 re-raise DRbConnError
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-28 08:30:01 +00:00
seki a1a2b66e0d rescue SystemCallError
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-28 07:45:27 +00:00
akr 40cb49fce8 previous change refined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-28 07:04:52 +00:00
akr 7754869905 * lib/pathname.rb (Pathname#realpath): obsolete the force_absolute
argument.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-28 06:43:51 +00:00
nahi 42bca643c3 * lib/soap/streamHandler.rb: drop unused http parameters.
* lib/soap/encodingstyle/soapHandler.rb, lib/soap/mapping/factory.rb,
  lib/soap/mapping/mapping.rb, lib/soap/mapping/registry.rb,
  lib/wsdl/soap/complexType.rb: ApacheSOAP's map support was broken under WSDL
  dynanic client environment.  fixed.

* test/wsdl/raa/*: add tests.

* lib/xsd/datatypes.rb: dateTime precision bug fix (at least, I hope.)  bug of
  soap4r.  XSDDateTimeImple.to_time passed a Float to Time.local/Time.gm as an
  usec, and NUM2LONG(rb_num2long for Float) causes rounding error.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-28 05:53:16 +00:00
nobu a017b0cc8a * test/ruby/test_proc.rb (test_arity): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-27 19:45:17 +00:00
nobu 4148ae45cf * eval.c (method_arity): used wrong Proc object. [ruby-talk:86504]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-27 19:15:29 +00:00
eban 1d1111067f 2003-11-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-27 15:49:49 +00:00
nobu e788706235 * eval.c (rb_f_exit), process.c (rb_f_exit_bang): use VALUEs not but
TYPEs.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-27 15:47:33 +00:00
nobu 99fb5f4871 * eval.c (rb_f_exit), process.c (rb_f_exit_bang): treat true as
success, false as failure.  [ruby-dev:22067]

* eval.c (rb_f_abort, rb_thread_switch), process.c (rb_f_system): use
  ANSI macro instead of hard coded value.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-27 15:34:53 +00:00
knu 868d5ba485 * eval.c, gc.c: FreeBSD/ia64 currently does not have a way for a
process to get the base address for the RSE backing store, so
  hardcode it for the moment.
  [submitted by: Marcel Moolenaar <marcel@FreeBSD.org>]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-27 13:08:27 +00:00
eban 66598727ef win32/win32.c (rb_win32_stat): add "." to buf1 only if it has a drive letter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-27 09:13:50 +00:00
nagai 1dd762d181 * ext/tk/lib/tkafter.rb: bug fix on TkTimer#cancel_on_exception=(mode).
TkTimer#wait recieves the exception of the callback.
  The exception is kept on @return_value.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-27 08:39:33 +00:00
eban 2d24928b42 2003-11-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-27 08:00:28 +00:00
eban 4539512afc * win32/win32.c (rb_w32_stat): remove _fullpath() for NUL: device.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-27 08:00:23 +00:00
eban f3e1738d9c * test/fileutils/test_fileutils.rb: should take the existing symbolic
link for OpenBSD.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-26 06:42:52 +00:00
eban f5aa21c395 2003-11-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-26 02:02:45 +00:00
why bab2e6cfdf * ext/syck/token.c: removed YYTOKTMP references which
were causing buffer overflows on large block scalars,
  comments, quoted scalars and plain scalars.

* ext/syck/rubyext.c: dynamic changing of buffer size.

* ext/syck/syck.h: default buffer size of 4k.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-25 19:51:38 +00:00
gotoyuzo 3d0d2d5ff1 * lib/webrick/httpresponse.rb: add HTTPResponse#keep_alive=.
* lib/webrick/httpserver.rb (HTTPServer#run): should pass the
  request's keep_alive flag to the response.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-25 16:02:45 +00:00
usa 8408fc1585 add reference to ruby-dev.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-25 12:45:55 +00:00
usa 2a9719235d * defines.h (ENV_IGNORECASE): should define when DOSISH without
human68k.

* hash.c (env_has_value, env_index): don't ignore case of value.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-25 12:44:26 +00:00
aamine 7e42e5c01b * test/fileutils/test_fileutils.rb: do test in more deep directory.
* test/fileutils/test_nowrite.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-25 11:02:30 +00:00
akr 54e444d834 fix previous change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-25 10:04:37 +00:00
akr 922dc8265f * lib/open-uri.rb (URI::Generic#find_proxy): ENV case sensitivity test
refined.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-25 09:56:49 +00:00
aamine 0452420e4c * test/fileutils/test_fileutils.rb: chdir Dir.tmpdir before each test. [ruby-dev:22045]
* test/fileutils/test_nowrite.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-25 09:13:58 +00:00
akr a3388b68b7 * lib/open-uri.rb (URI::Generic#find_proxy): use http_proxy under CGI
if the environment variable is case sensitive.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-25 08:53:42 +00:00
nahi f1d89b24da * test/wsdl/multiplefault.wsdl, test/wsdl/test_multiplefault.rb: removed. this
test requires extra libraries in soap4r/1.5.*.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-25 07:44:41 +00:00
nahi 6a09e1d966 * lib/soap/**/*.rb, lib/wsdl/**/*.rb, lib/xsd/**/*.rb: changed license; GPL2 -> Ruby's.
* lib/soap/rpc/driver.rb, lib/soap/wsdlDriver.rb, lib/soap/streamHandler.rb: add interface to streamhandler.

* lib/soap/marshal.rb: raise error if parse fails.

* lib/soap/netHttpClient.rb: add https support.  Patched by Oliver M. Bolzer.

* lib/soap/netHttpClient.rb: dump HTTP response message body by itself.

* lib/soap/rpc/driver.rb, lib/soap/rpc/proxy.rb, lib/soap/wsdlDriver.rb: add driver#mandatorycharset interface to foce using charset for parsing response from buggy server.

* lib/soap/encodingstyle/soapHandler.rb: support Apache Axis's half typed multi-ref array.

* lib/soap/mapping/factory.rb, lib/soap/mapping/registry.rb: map SOAPStruct which has multi-accessors which name are the same, to an array.

* lib/soap/rpc/element.rb: fixed illegal parameter order.

* lib/soap/rpc/element.rb: element name of response message could have the name other than 'return'.

* lib/wsdl/operation.rb, lib/wsdl/operationBinding.rb, lib/wsdl/soap/classDefCreator.rb, lib/wsdl/soap/methodDefCreator.rb, lib/wsdl/soap/methodDefCreatorSupport.rb: WSDL/1.1 allows plural fault definition in a operation. [ruby-talk:84948]

* test/wsdl/multiplefault.wsdl, test/wsdl/test_multiplefault.rb: add test for above fix.

* lib/wsdl/soap/complexType.rb: support WSDL array definition with maxOccures="unbound".

* lib/xsd/charset.rb: use cp932 under emx.  Patched by Siena. / SHINAGAWA, Norihide in [ruby-dev:21972]

* lib/xsd/xmlparser/parser.rb: set @charset nil by default.  Nil means 'follow encoding declaration in XML'.

* sample/soap/digraph.rb, sample/wsdl/amazon/wsdlDriver.rb, sample/wsdl/googleSearch/sampleClient.rb, sample/wsdl/googleSearch/wsdlDriver.rb, test/wsdl/test_emptycomplextype.rb, test/wsdl/marshal/test_wsdlmarshal.rb, test/xsd/test_xmlschemaparser.rb: use File.open(...) { |f| f.read } instead of File.open(...).read. [ruby-dev:21964]

* test/wsdl/emptycomplextype.wsdl, test/wsdl/test_emptycomplextype.rb: simplify the test case.

* test/wsdl/axisArray/*: add tests for axis's array encoding.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-25 07:31:33 +00:00
eban ec373c3e1c * ruby.h: don't treat Cygwin as Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-25 07:17:14 +00:00
nagai 13bc8622a0 * ext/tcltklib/README.1st: edit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-25 06:45:39 +00:00
nagai ab8e998216 * configure.in: change default value of --enable-pthread (default: no)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-25 06:26:38 +00:00
akr 21ef0b6b1c add document that pathname.rb supports only Unix style pathnames.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-25 05:00:06 +00:00
nobu 7a400f1589 2003-11-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-24 23:23:01 +00:00
nobu 637f612247 * parse.y (primary): allow newlines just before right argument
parenthesis.  (ruby-bugs:PR#1221)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-24 22:31:19 +00:00
akr 6eaa5f2b05 * lib/open-uri.rb (OpenURI.open_loop, URI::HTTP#proxy_open): use
catch/throw for redirection instead of exception.
  (OpenURI.open_loop, OpenURI.redirectable?): restrict redirection.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-24 14:36:18 +00:00
akr 087a8db4d2 * lib/open-uri.rb (URI::Generic#find_proxy): use CGI_HTTP_PROXY
instead of HTTP_PROXY in the CGI environment.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-24 11:01:57 +00:00
eban 9421725f53 * ext/etc/extconf.rb: check for pw_passwd in struct passwd and
gr_passwd in struct group for DJGPP.

* ext/etc/etc.c: ditto.

* ext/Setup.dj: support for curses, etc, zlib.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-24 10:42:17 +00:00
akr 483ac56440 * lib/open-uri.rb: validate option names.
:content_length_proc and :progress_proc option implemented.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-24 08:02:36 +00:00
usa f14589947e 2003-11-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-24 05:54:38 +00:00