summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2003-12-04* lib/monitor.rb: use Object#__send__ instead of Object#send.shugo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-04 * lib/soap/streamHandler.rb: support latest released version ofnahi
http-access2. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-04 * lib/soap/soap.rb: add SOAP::Env module for environment repositorynahi
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* lib/net/http.rb: update hyperlink to the Japanese document.aamine
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-04* lib/webrick/server.rb (GenericServer#start): should rescuegotoyuzo
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-03* lib/pathname.rb (Pathname#link, Pathname#symlink): obsoleted.akr
(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* io.c (argf_read): should not terminate on empty string; waitmatz
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-03Implicitly define classes in 'class <<ClassName' if we haven't come across ↵dave
them before git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-03correct fcntl parameerseki
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-03Missing filedave
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-03* ext/extmk.rb (MTIMES): let makefiles depend to mkmf.rb.nobu
* 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-02* lib/net/http.rb: wrote the warning about HTTP_PROXY environment variable.aamine
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-02* lib/test/unit/ui/gtk2 (Test::Unit::UI::GTK2#start_ui): remove debug statement.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-02* bin/testrb: new test runner. [ruby-core:01845]nobu
* 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-01 * lib/test/unit/assertions.rb: fixed #assert_no_match message.ntalbott
* test/testunit/test_assertions.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-01Allow string as argument to alias_methoddave
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-01Add RDocdave
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-01Add RDoc to listdave
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-01* lib/fileutils.rb (fu_each_src_dest0): call #to_str to allow Pathname for ↵aamine
arguments. [ruby-core:01795] * test/fileutils/test_fileutils.rb: does much strict test on "same" files detecting. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-30* lib/mkmf.rb (TRY_LINK, link_command): added support for DLDFLAGSeban
and ARCH_FLAG. [ruby-dev:22085] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-30* lib/mkfm.rb (configuration): add ARCH_FLAG to DLDFLAGS.eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-30* configure.in: keep ARCH_FLAG separate. export ARCH_FLAG.eban
[ruby-core:01819] * Makefile.in: add ARCH_FLAG to CFLAGS. * Makefile.in: add @CPPFLAGS@ to CPPFLAGS. * lib/mkmf.rb (link_command, cc_command): use ARCH_FLAG. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-30* configure.in: do not override CCDLDFLAGS, LDFLAGS, XLDFLAGS,eban
DLDFLAGS and LDSHARED. * configure.in: XCFLAGS for compiling ruby itself. ARCH_FLAG is reflected in CFLAGS. * lib/mkmf.rb: ditto. do not import XCFLAGS from config.status. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-30 * lib/soap/encodingstyle/soapHandler.rb: refactoring - Simplifyingnahi
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-28* gc.c (gc_mark): explicitly check mark recursion levels, insteadmatz
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-28fix TupleSpaceProxy#read, read_allseki
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-28re-raise DRbConnErrorseki
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-28rescue SystemCallErrorseki
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-28previous change refined.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-28* lib/pathname.rb (Pathname#realpath): obsolete the force_absoluteakr
argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-28* lib/soap/streamHandler.rb: drop unused http parameters.nahi
* 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-27* eval.c (rb_f_exit), process.c (rb_f_exit_bang): treat true asnobu
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-25* lib/webrick/httpresponse.rb: add HTTPResponse#keep_alive=.gotoyuzo
* 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-25fix previous change.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-25* lib/open-uri.rb (URI::Generic#find_proxy): ENV case sensitivity testakr
refined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-25* lib/open-uri.rb (URI::Generic#find_proxy): use http_proxy under CGIakr
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* lib/soap/**/*.rb, lib/wsdl/**/*.rb, lib/xsd/**/*.rb: changed license; GPL2 ↵nahi
-> 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-25add document that pathname.rb supports only Unix style pathnames.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-24* lib/open-uri.rb (OpenURI.open_loop, URI::HTTP#proxy_open): useakr
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* lib/open-uri.rb (URI::Generic#find_proxy): use CGI_HTTP_PROXYakr
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* lib/open-uri.rb: validate option names.akr
: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-22* lib/fileutils.rb (have_st_ino?): djgpp has valid st_ino.aamine
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-22* gc.c (Init_stack): stack region is far smaller than usual ifmatz
pthread is used. * marshal.c (w_extended): singleton methods should not be checked when dumping via marshal_dump() or _dump(). [ruby-talk:85909] * file.c (getcwdofdrv): avoid using getcwd() directly, use my_getcwd() instead. * merged NeXT, OpenStep, Rhapsody ports patch from Eric Sunshine <sunshine@sunshineco.com>. [ruby-core:01596] * marshal.c (w_object): LINK check earlier than anything else, i.e. do not dump TYPE_IVAR for already dumped objects. (ruby-bugs PR#1220) * eval.c (rb_eval): call "inherited" only when a new class is generated; not on reopening. * eval.c (eval): prepend error position in evaluating string to * configure.in: revived NextStep, OpenStep, and Rhapsody ports which had become unbuildable; enhanced --enable-fat-binary option so that it accepts a list of desired architectures (rather than assuming a fixed list), or defaults to a platform-appropriate list if user does not provide an explicit list; made the default list of architectures for MAB (fat binary) more comprehensive; now uses -fno-common even when building the interpreter (in addition to using it for extensions), thus allowing the interpreter to be embedded into a plugin module of an external project (in addition to allowing embedding directly into an application); added checks for <netinet/in_systm.h> (needed by `socket' extension) and getcwd(); now ensures that -I/usr/local/include is employed when extensions' extconf.rb scripts invoke have_header() since extension checks on NextStep and OpenStep will fail without it if the desired resource resides in the /usr/local tree; fixed formatting of --help message. * Makefile.in: $(LIBRUBY_A) rule now deletes the archive before invoking $(AR) since `ar' on Apple/NeXT can not "update" MAB archives (see configure's --enable-fat-binary option); added rule for new missing/getcwd.c. * defines.h: fixed endian handling during MAB build (see configure's --enable-fat-binary option) to ensure that all portions of the project see the correct WORDS_BIGENDIAN value (some extension modules were getting the wrong endian setting); added missing constants GETPGRP_VOID, WNOHANG, WUNTRACED, X_OK, and type pid_t for NextStep and OpenStep; removed unnecessary and problematic HAVE_SYS_WAIT_H define in NeXT section. * dir.c: do not allow NAMLEN() macro to trust dirent::d_namlen on NextStep since, on some installations, this value always resolves uselessly to zero. * dln.c: added error reporting to NextStep extension loader since the previous behavior of failing silently was not useful; now ensures that NSLINKMODULE_OPTION_BINDNOW compatibility constant is defined for OpenStep and Rhapsody; no longer includes <mach-o/dyld.h> twice on Rhapsody since this header lacks multiple-include protection, which resulted in "redefinition" compilation errors. * main.c: also create hard reference to objc_msgSend() on NeXT platforms (in addition to Apple platforms). * lib/mkmf.rb: now exports XCFLAGS from configure script to extension makefiles so that extensions can be built MAB (see configure's --enable-fat-binary option); also utilize XCFLAGS in cc_command() (but not cpp_command() because MAB flags are incompatible with direct invocation of `cpp'). * ext/curses/extconf.rb: now additionally checks for presence of these curses functions which are not present on NextStep or Openstep: bkgd(), bkgdset(), color(), curs(), getbkgd(), init(), scrl(), set(), setscrreg(), wattroff(), wattron(), wattrset(), wbkgd(), wbkgdset(), wscrl(), wsetscrreg() * ext/curses/curses.c: added appropriate #ifdef's for additional set of curses functions now checked by extconf.rb; fixed curses_bkgd() and window_bkgd() to correctly return boolean result rather than numeric result; fixed window_getbkgd() to correctly signal an error by returning nil rather than -1. * ext/etc/etc.c: setup_passwd() and setup_group() now check for null pointers before invoking rb_tainted_str_new2() upon fields extracted from `struct passwd' and `struct group' since null pointers in some fields are common on NextStep/OpenStep (especially so for the `pw_comment' field) and rb_tainted_str_new2() throws an exception when it receives a null pointer. * ext/pty/pty.c: include "util.h" for strdup()/ruby_strdup() for platforms such as NextStep and OpenStep which lack strdup(). * ext/socket/getaddrinfo.c: cast first argument of getservbyname(), gethostbyaddr(), and gethostbyname() from (const char*) to non-const (char*) for older platforms such as NextStep and OpenStep. * ext/socket/socket.c: include "util.h" for strdup()/ruby_strdup() for platforms such as NextStep and OpenStep which lack strdup(); include <netinet/in_systm.h> if present for NextStep and OpenStep; cast first argument of gethostbyaddr() and getservbyname() from (const char*) to non-const (char*) for older platforms. * ext/syslog/syslog.c: include "util.h" for strdup()/ruby_strdup() for platforms such as NextStep and OpenStep which lack strdup(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-21 * lib/test/unit/util/backtracefilter.rb: fixed a bug that occurredntalbott
when an exception had no backtrace. * test/testunit/util/test_backtracefilter.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-20 * lib/test/unit/assertions.rb: use #__send__ instead of #send.ntalbott
* lib/test/unit/testcase.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-20* lib/fileutils.rb (have_st_ino?): emx (OS/2 with EMX) does not have st_ino ↵aamine
(always 0). [ruby-dev:21972] * lib/fileutils.rb (rename_cannot_overwrite_file?): emx does not allow overwriting files by rename(2). * test/fileutils/test_fileutils.rb: windows? -> have_drive_letter?, have_file_perm? git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-19* lib/net/http.rb (to_ary): print more friendly warning message.aamine
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-19* lib/fileutils.rb (fu_same?): add djgpp and wince.aamine
* lib/fileutils.rb (cannot_overwrite?): add wince. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-19* lib/fileutils.rb (cannot_overwrite_file?, have_st_ino?): bccwin32usa
is same as mswin32. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-18 * lib/test/unit.rb: do not run tests if $! is set.ntalbott
* lib/test/unit/assertionfailederror.rb: extend StandardError instead Exception (irb catches the former but not the latter). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e