summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* * lib/test/unit.rb: do not run tests if $! is set.ntalbott2003-11-182-2/+2
| | | | | | | | * lib/test/unit/assertionfailederror.rb: extend StandardError instead Exception (irb catches the former but not the latter). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (fu_same?): temporal fix for windows.aamine2003-11-181-2/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (fu_same?): check by inode instead of path name, to ↵aamine2003-11-181-29/+3
| | | | | | | | | detect two hard links pointing to the same content. * test/fileutils.rb: did not create correctly looped symlinks. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (fu_each_src_dest): raise if src==dest. [ruby-talk:85344] ↵aamine2003-11-181-18/+57
| | | | | | | | | | | | | | | | | | [ruby-core:01699] * lib/fileutils.rb: use Object#is_a? instead of Class#=== to allow e.g. remote objects for receivers. * lib/fileutils.rb: FileTest -> File. * lib/fileutils.rb: put parentheses for arguments of File.xxxx? * test/fileutils/test_fileutils.rb (test_cp): test "cp a a". * test/fileutils/test_fileutils.rb (test_mv): test "mv a a". * test/fileutils/test_fileutils.rb (test_ln): test "ln a a". * test/fileutils/test_fileutils.rb (test_ln_s): test "ln_s a a". * test/fileutils/test_fileutils.rb (test_install): test "install a a". * test/fileutils/fileasserts.rb: new method assert_symlink. * test/fileutils/fileasserts.rb: assert_is_directory -> assert_directory. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* class XMLRPC::Client:mneumann2003-11-171-0/+35
| | | | | | | | | | | | | | * added attr_accessor :http_header_extra that can be used to add extra lines in HTTP header. * added attr_accessor :cookie - shortcut for setting/getting cookies * added attr_accressor :http_last_response that holds the last HTTP response. Usefull when needed to extract information from HTTP header (e.g. cookies, keep alive...) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::Completion::complete): allow leastnobu2003-11-171-4/+11
| | | | | | | common completion for three or more candidates. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/autorunner.rb (keyword_display): sort keywords.nobu2003-11-171-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/ui/tk/testrunner.rb,nobu2003-11-174-35/+538
| | | | | | | | | | lib/test/unit/ui/gtk/testrunner.rb: run GUI main loop in sub thread. * lib/test/unit/ui/gtk2/testrunner.rb: imported from rough. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/protocol.rb: logging response body. [experimental] [ruby-list:38800]aamine2003-11-161-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/thread.rb (Thread.exclusive): wrap method definition ingsinclair2003-11-161-10/+12
| | | | | | | class Thread to enable rdoc to process. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (set_debug_output): last commit was wrong.aamine2003-11-161-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (set_debug_output): warn if method is called after #start. ↵aamine2003-11-161-0/+1
| | | | | | [ruby-dev:38798] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI.open_loop, OpenURI::HTTP#proxy_open):akr2003-11-151-17/+19
| | | | | | | | refactored to support options. (Buffer): maintain size by this class. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* inconsistency of the arguments for respond_to? in previous change is fixed.akr2003-11-131-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (Kernel[#.]open): hard coded URI schemes removed.akr2003-11-131-8/+19
| | | | | | | [ruby-ext:02251] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/ui/tk/testrunner.rb: use grid and panedwindow (if available)nagai2003-11-131-12/+46
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI.open_uri): use File::RDONLY.akr2003-11-131-1/+1
| | | | | | | reported by Take_tk <ggb03124@nifty.ne.jp>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::Completion#complete): prior shorternobu2003-11-131-13/+19
| | | | | | | name to containing longer name. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (assert_throws, assert_nothing_thrown):nobu2003-11-122-8/+11
| | | | | | | | | | uncaught throw in sub thread raises ThreadError. * lib/test/unit/ui/tk/testrunner.rb (setup_ui): "expand" is not necessary. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/monitor.rb: refactored. Thanks, Gennady Bystritsky.shugo2003-11-121-88/+82
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/ui/testrunnermediator.rb: should require 'test/unit'.ntalbott2003-11-111-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/ui/gtk/testrunner.rb: added a rescue clause to handlentalbott2003-11-111-1/+3
| | | | | | | the case when the requested font is not available. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (appendline): file may not end with newline. a bug ifmatz2003-11-111-1/+0
| | | | | | | READ_DATA_PENDING_PTR is defined. [ruby-talk:84925] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fixed CDATA parsing for XMLScanParser and REXMLStreamParsermneumann2003-11-111-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/monitor.rb (wait): return true on signal/broadcastfalse andshugo2003-11-101-0/+2
| | | | | | | false on timeout. Thanks Gennady Bystritsky. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 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