summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* * lib/test/unit/assertions.rb: un-deprecated #assert_not_nil tontalbott2003-11-081-2/+1
| | | | | | | | | | maintain symmetry with #assert_nil. Also added better output for #assert_kind_of. * test/testunit/tc_assertions.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/wsdl/raa/*: add new testcase for WSDL loading, parsing and reading.nahi2003-11-086-9/+39
| | | | | | | | | | | | | | | | * test/soap/marshal/*: backport from soap4r/1.5.1. all differences are for ruby/1.6. * lib/soap/*: backport from soap4r/1.5.1. all differences are for ruby/1.6. * lib/wsdl/data.rb, lib/wsdl/xmlSchema/data.rb: move definition of ArrayTypeAttrName from ::WSDL::XMLSchema::* to ::WSDL::*. [ruby-talk:84813] * lib/wsdl/soap/definitions.rb: element name typo in custom exception struct definition which is needed for wsdlDriver; camelCase -> underscore_name. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* (Pathname#parent): if self is `.', return `..'.akr2003-11-071-11/+44
| | | | | | | | | | | (Pathname#children): if self is `.', don't prepend self for a pathname in a result. (Pathname#join): re-implemented using Pathname#+. (Pathname#find): if self is `.', remove `./' prefix of yielding pathname. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Minor documentation fix.wew2003-11-071-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/pathname.rb (Pathname#+): if self or the argument is `.', return another.akr2003-11-071-0/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb (Pathname#+): return the argument if self is `.'.akr2003-11-071-2/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_load): allow interrupt during loaded programmatz2003-11-064-6/+240
| | | | | | | | | | | | | | evaluation. [ruby-dev:21834] * hash.c (rb_hash_fetch): always warn if default argument and a block are supplied at the same time. [ruby-dev:21842] * hash.c (env_fetch): ditto. * array.c (rb_ary_fetch): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::Completion#complete): default not tonobu2003-11-061-2/+12
| | | | | | | ignore case on completion. [ruby-talk:84726] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::Switch::PlacedArgument::parse):nobu2003-11-051-1/+1
| | | | | | | | | do not remove next argument if empty value is placed. * test/optparse: added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/ui/gtk/testrunner.rb: typo.nobu2003-11-051-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/monitor.rb: revert to the previous revision.shugo2003-11-051-20/+13
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/https.rb (HTTPRequest#parse): set @client_cert_chain.gotoyuzo2003-11-041-0/+6
| | | | | | | | | | | * lib/webrick/https.rb (HTTPRequest#meta_vars): create SSL_CLIENT_CERT_CHAIN_n from @client_cert_chain. * ext/openssl/ossl_ssl.c (ossl_ssl_get_peer_cert_chain): return nil if no cert-chain was given. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/racc/parser.rb: synchronize with Racc 1.4.4.aamine2003-11-031-135/+116
| | | | | | | | * ext/racc/cparse/cparse.c: ditto. * ext/racc/cparse/cparse.c (parse_main): should abort when the length of LR state stack <=1, not ==0. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/ssl.rb: new option :SSLExtraChainCert.gotoyuzo2003-11-011-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/soap/mapping/factory.rb: mark marshalled basetype objects whennahi2003-10-311-1/+4
| | | | | | | | | | | | | | | | @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: http://svn.ruby-lang.org/repos/ruby/trunk@4881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in, lib/mkmf.rb: add RPATHFLAG for NetBSD. [ruby-dev:21791]eban2003-10-311-1/+4
| | | | | | | * bcc32/Makefile.sub, win32/Makefile.sub, win32/Makefile.sub: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* RD -> RDoc contributed by Lyle Johnsongsinclair2003-10-301-182/+175
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add DRbArray, and change yield. [ruby-dev:21773]seki2003-10-303-0/+33
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/soap/generator.rb: better XML pretty printing.nahi2003-10-302-8/+11
| | | | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@4871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (READ_DATA_BUFFERED): new macro to detect whether stdiomatz2003-10-301-2/+3
| | | | | | | | | | buffer filled. * io.c (rb_io_fptr_cleanup): move path deallocation to rb_io_fptr_finalize (finalizer called by GC). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/autorunner.rb: make fox runners work.nahi2003-10-301-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (proc_invoke): single array value to normal Proc#callmatz2003-10-292-4/+3
| | | | | | | | (i.e. not via lambda call), should be treated just like yield. [ruby-dev:21726] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_s_union, Init_Regexp): new method `Regexp.union'.akr2003-10-291-32/+36
| | | | | | | | * lib/pathname.rb (realpath): examine Dir.pwd because it may have symlinks. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (Init_Proc): taint preallocated exception objectmatz2003-10-291-1/+1
| | | | | | | sysstack_error. [ruby-talk:84534] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (ret_args): node may be NULL. [ruby-talk:84530]matz2003-10-291-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (rb_hash_each): Hash#each should yield single value.matz2003-10-241-1/+1
| | | | | | | | | [ruby-talk:84420] * hash.c (env_each): ditto for ENV.each. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/server.rb (GenericServer#start): should rescuegotoyuzo2003-10-231-1/+1
| | | | | | | IOError from IO::accept. [ruby-dev:21692] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#collect_file):nobu2003-10-221-0/+1
| | | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@4830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#collect_file):nobu2003-10-211-0/+4
| | | | | | | prepend the directory of target file to the load path. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/debug.rb (debug_command): remove debug print.usa2003-10-201-1/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb (foreachline, dir_foreach): add obsolete warning.akr2003-10-191-9/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/generator.rb: Add rdoc documentation.knu2003-10-171-4/+80
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Reword and fix Overview.knu2003-10-171-6/+5
| | | | | | | It is not necessary to require 'test/unit/ui/console/testrunner'. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* consistent parentheses in assignment RHS.matz2003-10-1618-31/+31
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/debug.rb (DEBUGGER__::Context::debug_command): do not callmatz2003-10-161-4/+6
| | | | | | | debug_silent_eval() when $1 is not set. (ruby-bugs PR#1194) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/soap/netHttpClient.rb: use URI::HTTP#request_uri instead ofnahi2003-10-151-2/+2
| | | | | | | instance_eval('path_query'). [ruby-list:38575] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi.rb (CGI::Cookie): tiny typo fix.matz2003-10-151-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (w_object): dump extended modules as well.matz2003-10-153-2/+3
| | | | | | | | | | | | * marshal.c (r_object0): TYPE_USRMARSHAL should restore extended modules before invoking marshal_load. these two fixes are done by Masatoshi Seki <m_seki@mva.biglobe.ne.jp>. * parse.y (yylex): argument parentheses preceded by spaces should be warned; not error. [ruby-talk:84103] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/generator.rb: A new library which converts an internalknu2003-10-142-0/+367
| | | | | | | | | | iterator to an external iterator. * lib/abbrev.rb: A new library which creates an abbreviation table from a list. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/soap/baseData.rb: Introduce SOAPType as the common ancestor ofnahi2003-10-1416-351/+511
| | | | | | | | | | | | | | | | | | | | | | | SOAPBasetype and SOAPCompoundtype. * lib/soap/generator.rb, lib/soap/element.rb, lib/soap/encodingstyle/*: Encoding methods signature change. Pass SOAPGenerator as a parameter. * lib/soap/mapping/*, test/soap/marshal/test_marshal.rb: Refactoring for better marshalling/unmarshalling support. Now I think SOAP marshaller supports all kind of object graph which is supported by Ruby's original marshaller. Of course there could be bugs as always. Find it. :-) * lib/soap/rpc/standaloneServer.rb: Set severity threshould to INFO. DEBUG is too noisy. * lib/xsd/datatypes.rb: DateTime#of is obsoleted. Use DateTime#offset. * test/wsdl/emptycomplextype.wsdl, test/xsd/xmlschema.xml: Avoid useless warning. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb (realpath): make ELOOP check bit more robust.akr2003-10-131-9/+39
| | | | | | | | (children): prepend self by default. (chroot): obsoleted. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (str_new4): should not preserve FL_TAINT status in thematz2003-10-131-1/+1
| | | | | | | | | | | | | | | | | internal shared string. [ruby-dev:21601] * string.c (rb_str_new4): ditto. * eval.c: use EXIT_SUCCESS and EXIT_FAILURE for exit values. * process.c: ditto. [ruby-dev:38521] * lib/debug.rb (debug_command): should enter emacs mode when assigned any value to the environment variable "EMACS". On Meadow, (getenv "EMACS") is "meadow". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/quickpath.rb (REXML::QuickPath::match):eban2003-10-111-1/+1
| | | | | | | escape '[' to avoid warning. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix previous change.akr2003-10-111-1/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb (realpath): check existence of the file.akr2003-10-111-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb (realpath): re-implemented.akr2003-10-111-54/+32
| | | | | | | (realpath_root?, realpath_rec): removed git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb (realpath_rec): fix handling of symlink to absoluteakr2003-10-111-6/+8
| | | | | | | path. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/monitor.rb: handle exceptions correctly. Thanks, Gennadyshugo2003-10-111-13/+20
| | | | | | | Bystritsky. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Forgot to update the MANIFEST, WRT the removal of files from theser2003-10-101-2/+1
| | | | | | | | rexml/encodings directory * Missed a regexp speed optimization in rexml/parsers/baseparser.rb git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Changes to the encoding mechanism. If iconv is found, it is used firstser2003-10-1023-222/+183
| | | | | | | | | | | | | | | | for encoding changes. This should be the case on all 1.8 installations. When it isn't found (<1.6), the native REXML encoding mechanism is used. This cleaned out some files, and tightened up the code a bit; and iconv should be faster than the pure Ruby code. * Changed deprecated assert_not_nil to assert throughout the tests. * Parse exceptions are a little more verbose, and extend RuntimeError. * Bug fixes to XPathParser * The Light API is still shifting, like the sands of the desert. * Fixed a new Ruby 1.8.0 warning, added some speed optimizations, and tightened error reporting in the base parser git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e