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

2391 Коммитов

Автор SHA1 Сообщение Дата
nahi 3f4d04564b * lib/soap/mapping/factory.rb: mark marshalled basetype objects when
@allow_original_mapping is true.  multi-referencing basetype node is
  prohibited in SOAP/1.1 encoding but soap4r's original ruby object mapping
  requires basetype to be marked to detect self referencing loop.
  e.g. o = 1; o.instance_eval { @iv = o }  soap4r's original mapping is only
  used through soap/marshal API.

* test/soap/marshal/test_marshal.rb: add tests for self referencing immutable
  objects.

* test/soap/calc/test_calc_cgi.rb: fix test name.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-31 16:50:27 +00:00
uema2 e6775cc193 * wince/string_wce.c (strrchr): should decrement pointer.
* wince/Makefile.sub: correct a range of isdigit().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-31 13:36:19 +00:00
eban 0dfe20d3d4 * configure.in, lib/mkmf.rb: add RPATHFLAG for NetBSD. [ruby-dev:21791]
* bcc32/Makefile.sub, win32/Makefile.sub, win32/Makefile.sub: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-31 03:58:21 +00:00
usa 35e098c1b1 * wince/Makefile.sub, win32/Makefile.sub (.y.c): allow white spaces
at the beginning of line to remove by sed. (ruby-bugs-ja PR#580)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-30 16:40:29 +00:00
matz 394738639e 031031
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-30 16:33:32 +00:00
seki 2c2b30dde4 * lib/drb/drb.rb: add DRbArray
* lib/drb/invokemethod.rb: fix Hash#each problem. [ruby-dev:21773]

      * lib/drb/unix.rb: add LoadError. [ruby-dev:21743]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-30 14:46:06 +00:00
nahi 7eb52a8cd5 * lib/soap/generator.rb: better XML pretty printing.
* lib/soap/encodingstyle/soapHandler.rb: remove unnecessary namespace
  assignment in the element which has "encodingStyle" attribute, and add
  necessary namespace assignment for "arrayType" attribute.

* test/soap/calc/test_calc_cgi.rb: take over $DEBUG to ruby process through CGI.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-30 14:25:21 +00:00
why 1a4c78d7c1 * ext/syck/yaml2byte.c: HASH const too long. Thanks, matz.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-30 13:59:40 +00:00
eban bddde75eb0 ChangeLog: typo fiix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-30 13:38:53 +00:00
knu 6350cbb1b2 * ext/syck/MANIFEST: Add yamlbyte.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-30 10:15:05 +00:00
matz 1a8ccefafc * io.c (READ_DATA_BUFFERED): new macro to detect whether stdio
buffer filled.

* io.c (rb_io_fptr_cleanup): move path deallocation to
  rb_io_fptr_finalize (finalizer called by GC).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-30 09:36:41 +00:00
matz cf22db8d69 * parse.y (logop): left may be NULL. [ruby-talk:84539]
* eval.c (rb_eval): NODE_CASE nd_head may be NULL.

* eval.c (rb_eval): remove never occurred NODE_WHEN branch.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-30 04:37:50 +00:00
nahi 22b8cc47eb * lib/test/unit/autorunner.rb: make fox runners work.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-30 01:17:40 +00:00
usa f1ab0d3cab * process.c (rb_f_system): fixed lack of security check before
calling do_spawn() on win32. [ruby-talk:84555]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-30 00:34:30 +00:00
matz 525336fcc9 * eval.c (proc_invoke): single array value to normal Proc#call
(i.e. not via lambda call), should be treated just like yield.
  [ruby-dev:21726]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-29 17:47:24 +00:00
gotoyuzo 2e0b6e28ad * ext/openssl/lib/openssl/buffering.rb (Buffering#initialize):
add new method to inherit @sync from @io.sync.

* ext/openssl/lib/net/protocols.rb (SSLIO#ssl_connect): no need to
  set sync flag explicitly.

* ext/openssl/ossl_ssl.c (ossl_sslctx_initialize): call super.

* ext/openssl/ossl_ssl.c (ossl_sslctx_setup): set extra chain
  certificates in @extra_chain_cert.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-29 17:27:59 +00:00
nahi 2d6b30ee57 * test/drb/drbtest.rb: use rbconfig.rb to make the path of ruby interpreter to
exec, instead of test/ruby/envutil.rb,


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-29 13:06:12 +00:00
usa ef7845ad24 * ext/tcltklib/tcltklib.c (CONST84): define CONST84 when it is not
defined and TCL_MAJOR_VERSION >= 8.

* ext/tcltklib/tcltklib.c (VwaitVarProc, WaitVariableProc,
  rb_threadVwaitProc): use CONST84 instead of CONST.

* ext/tcltklib/tcltklib.c (ip_rbTkWaitCommand,
  ip_rb_threadTkWaitCommand): use CONST84 always.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-29 11:03:54 +00:00
akr a5c350aaba * re.c (rb_reg_s_union, Init_Regexp): new method `Regexp.union'.
* lib/pathname.rb (realpath): examine Dir.pwd because it may have
  symlinks.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-29 08:31:43 +00:00
matz 8bf300f149 * eval.c (rb_longjmp): must not disturb original jump.
[ruby-dev:21733]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-29 08:21:11 +00:00
matz 27ff072349 * eval.c (Init_Proc): taint preallocated exception object
sysstack_error. [ruby-talk:84534]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-29 06:53:48 +00:00
matz 91d2e58f1d * parse.y (ret_args): node may be NULL. [ruby-talk:84530]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-29 02:30:08 +00:00
usa 70b6fce162 * ext/tcltklib/tcltklib.c (VwaitVarProc, ip_rbVwaitObjCmd,
WaitVariableProc, WaitVisibilityProc, WaitWindowProc,
  ip_rbTkWaitObjCmd, ip_rbTkWaitCommand, rb_threadVwaitProc,
  rb_threadWaitVisibilityProc, rb_threadWaitWindowProc,
  ip_rb_threadVwaitObjCmd, ip_rb_threadTkWaitObjCmd): prototype;
  avoid VC++ warnings.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-28 06:23:47 +00:00
matz a1096ba77c * parse.y (new_yield): remove magic argument rule; "yield [1,2]"
should yield single array of two elements, not two values.
  [ruby-dev:21726]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-28 02:27:06 +00:00
nobu ed5208d851 * eval.c (rb_longjmp): ignore reentering error while warning.
[ruby-dev:21730]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-27 10:19:57 +00:00
nagai 8f2e14aa3a bug fix on Win : hang-up when calling 'exit' in the Tk callback
procedure. [ruby-list:38656]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-26 15:25:58 +00:00
matz b6beb8d943 * eval.c (rb_method_missing): protect exception from within
"inspect".  (ruby-bugs PR#1204)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-25 00:36:56 +00:00
matz befb570536 * hash.c (rb_hash_each): Hash#each should yield single value.
[ruby-talk:84420]

* hash.c (env_each): ditto for ENV.each.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-24 14:31:14 +00:00
gotoyuzo f493f61f73 * lib/webrick/server.rb (GenericServer#start): should rescue
IOError from IO::accept. [ruby-dev:21692]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-23 11:29:29 +00:00
nobu d74e7e6837 * eval.c (ruby_cleanup): initialize stack bottom for embedding.
[ruby-dev:21686]

* ext/dl/extconf.rb: move list of files to clean from DEPEND file,
  to get rid of macro redefinitions.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-23 08:59:42 +00:00
nobu 443ddb0969 * parse.y: integrate operations for stack_type. [ruby-dev:21681]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-23 04:44:04 +00:00
nahi 00ac002f79 * test/soap/calc/*, test/soap/helloworld/*: set logging threshold to ERROR.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-22 15:43:10 +00:00
nobu f136a3225e * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#collect_file):
ignore tests which raised LoadError.

* test/drb/drbtest.rb, test/ruby/test_beginendblock.rb,
  test/ruby/test_system.rb: avoid requiring same file twice.

* test/drb/test_drbssl.rb, test/drb/test_drbunix.rb: should not use
  ARGV unless invoked directly.  do not create test cases unless
  required libraries are available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-22 03:53:41 +00:00
matz 903f98a643 * eval.c (ruby_cleanup): should not ignore exit_value in END
execution. [ruby-dev:21670]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-21 17:38:37 +00:00
matz 06d9340f2e * eval.c (ruby_cleanup): call finalizers and exit procs before
terminating threads.

* eval.c (ruby_cleanup): preserve ruby_errinfo before ruby_finalize_0().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-21 14:42:15 +00:00
nobu 8af34b7b33 * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#collect_file):
prepend the directory of target file to the load path.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-21 06:57:14 +00:00
usa 9292a6254e * win32/win32.c (do_spawn, do_aspawn): should return child's exit
status to parent.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-21 06:23:51 +00:00
usa d820362c50 * win32/win32.c (do_spawn, do_aspawn): should wait child process even
if callded with P_OVERLAY.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-21 06:10:12 +00:00
nahi 208ff30c07 * test/soap/calc/*, test/soap/helloworld/*: catch the exception from test
server thread and recover.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-20 15:37:11 +00:00
seki bc867112ec import drb/runit/*.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-20 15:24:00 +00:00
nobu d6153337f6 * eval.c (rb_eval): set current node after arguments evaluation.
[ruby-dev:21632]

* eval.c (rb_yield_0): set current node and keep it at local jump.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-20 14:55:50 +00:00
nobu 28f2a1da54 * eval.c (rb_thread_cleanup): keep thread group for main thread.
[ruby-dev:21644]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-20 13:01:21 +00:00
nobu 229c37a6da * eval.c (rb_catch): backout.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-20 09:28:13 +00:00
matz 6eb98c5ebe * eval.c (PUSH_FRAME): generate unique number to be TAG_JUMP()
destination.

* eval.c (localjump_destination): use unique number in ruby_frame
  for localjump destination.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-20 08:33:49 +00:00
nobu 8405551e6d * test/ruby/test_signal.rb (test_signal): restore old trap.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-20 02:31:47 +00:00
matz e75c34c2e9 * gc.c (gc_sweep): loosen page free condition to avoid add_heap()
race condition. [ruby-dev:21633]

* gc.c (gc_sweep): do not update malloc_limit when malloc_increase
  is smaller than malloc_limit.

* ext/socket/socket.c (make_hostent): h_aliases may be NULL.
  (ruby-bugs PR#1195)

* ext/socket/socket.c (sock_s_gethostbyaddr): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-20 02:06:42 +00:00
usa 0014687097 * lib/debug.rb (debug_command): remove debug print.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-20 00:46:01 +00:00
akr 2768ca8b90 * lib/pathname.rb (foreachline, dir_foreach): add obsolete warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-19 04:14:40 +00:00
nahi cf73166d47 * test/soap/calc/*, test/soap/helloworkd/*: changed port# of test server.
(17171)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-18 15:21:18 +00:00
eban df8b1ad9e8 * missing/acosh.c (DBL_MANT_DIG): typo fix(ifdef -> ifndef).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-18 14:04:18 +00:00