summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* * test/logger/test_logger.rb: unlinking file before close causes problem undernahi2003-10-011-2/+2
| | | | | | | | | | | | | | | | | | win32 box. * lib/xsd/datatypes.rb(XSDFloat, XSDDouble): add +/- sign explicitly when stringified and embedded into XML instance. Ruby's sprintf may format -0.0 as "0.0" (no minus sign) depending on underlying C sprintf implementation. * test/xsd/test_xsd.rb, test/soap/test_basetype.rb: follow above change. * test/soap/calc/*: give httpd config param "CGIInterpreter". "/usr/bin/env ruby" thing does not work under non-Unix boxes. * ChangeLog: corrected wrong DoW of my log entries... git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (finish): revert to 1.93.aamine2003-09-293-9/+34
| | | | | | | | | | | | * lib/net/pop.rb (finish): revert to 1.60. * lib/net/smtp.rb (finish): revert to 1.67. * lib/net/http.rb (do_start): ensure to close socket if failed to start session. * lib/net/pop.rb (do_start): ditto. * lib/net/smtp.rb (do_start): ditto. * lib/net/smtp.rb: SMTP#started? wrongly returned false always. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (finish): does not raise IOError even if !started?, to ↵aamine2003-09-293-12/+5
| | | | | | | | | | allow duplicated #finish call. * lib/net/pop.rb (finish): ditto. * lib/net/smtp.rb (finish): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/logger.rb: check if the given logdevice object respond_to :write andnahi2003-09-292-2/+2
| | | | | | | | | | | | :close, not is_a? IO. duck duck. * test/logger/test_logger.rb: self IO.pipe reading/writing may be locked by the flood. use tempfile. * lib/wsdl/xmlSchema/data.rb: wrong constant reference. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_thread_atfork): wrong format specifier.matz2003-09-291-1/+1
| | | | | | | | | [ruby-dev:21428] * process.c (pst_inspect): better description. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/utils.rb (Utils::su): use setgid and setuid togotoyuzo2003-09-281-8/+8
| | | | | | | | set real and effective IDs. and setup group access list by initgroups. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * forgot to add this file in the previous commit.nahi2003-09-281-8/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/soap/rpc/cgistub.rb: make logging severity threshold higher.nahi2003-09-272-10/+11
| | | | | | | | | | * lib/soap/rpc/standaloneServer.rb: defer WEBrick server start to give a change to reset logging severity threshold. * test/soap/calc/test_*, test/soap/helloworld/test_helloworld.rb: run silent. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/resolv-replace.rb: 1.8 compliance. [ruby-talk:82946]nobu2003-09-261-11/+20
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/README: lib/wsdl is an implementation of WSDL/1.1, not WSDL/1.2.nahi2003-09-261-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * defines.h (flush_register_windows): use volatile only for gcc onnobu2003-09-261-3/+2
| | | | | | | | | | Solaris. [ruby-dev:21403] * lib/mkmf.rb (xsystem): use system directly to honor shell meta charaters. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/README: updated.nahi2003-09-251-1/+19
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ostruct.rb: Added OpenStruct#==.ntalbott2003-09-251-0/+8
| | | | | | | * test/ostruct/test_ostruct.rb: Added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/soap/* (29 files): SOAP4R added.nahi2003-09-2483-0/+12305
| | | | | | | | | | | | | | | | | | | * lib/wsdl/* (42 files): WSDL4R added. * lib/xsd/* (12 files): XSD4R added. * test/soap/* (16 files): added. * test/wsdl/* (2 files): added. * test/xsd/* (3 files): added. * sample/soap/* (27 files): added. * sample/wsdl/* (13 files): added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httpservlet/cgihandler.rb: conform to mswin32.gotoyuzo2003-09-231-2/+4
| | | | | | | [ruby-talk:82735], [ruby-talk:82748], [ruby-talk:82818] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/logger.rb: add Logger#<<(msg) for writing msg without any formatting.nahi2003-09-231-0/+18
| | | | | | | * test/logger/test_logger.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/logger.rb: typo fixed.nahi2003-09-201-5/+8
| | | | | | | * test/logger/test_logger.rb: new file. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Minor documentation improvementsgsinclair2003-09-191-2/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Improved documentationgsinclair2003-09-191-22/+36
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Converted RD to RDoc (Lyle Johnson) and improved documentation.gsinclair2003-09-191-460/+423
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/testunit/*: Added.ntalbott2003-09-193-24/+180
| | | | | | | | | | | | | | | | * lib/test/unit.rb: Documentation update. * lib/test/unit/ui/console/testrunner.rb (TestRunner#initialize): Ditto. * lib/test/unit.rb: Factored out an ObjectSpace collector. * lib/test/unit/collector/objectspace.rb: Ditto. * sample/testunit/*: Added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Small documentation correctiongsinclair2003-09-191-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/log.rb (BasicLog#log): get rid of as ineffectualgotoyuzo2003-09-181-5/+3
| | | | | | | | | condition. * lib/webrick/log.rb (BasicLog#format): add "\n" to message. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (proc_invoke): should update "result" for orphans.matz2003-09-181-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/pathname.rb: update document.akr2003-09-181-3/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/logger.rb: Comment fix. I don't like inline documentation... Hard tonahi2003-09-181-2/+2
| | | | | | | maintain, doesn't go together with refactoring. [defensively] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/logger.rb: new file. Logger, formerly called devel-logger ornahi2003-09-181-0/+574
| | | | | | | | | Devel::Logger. * sample/logger/*: new file. samples of logger.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regex.c (re_compile_pattern): should not translate charactermatz2003-09-161-3/+6
| | | | | | | class range edge. [ruby-list:38393] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb: add extra pamameter to specify row(record) separater character.nahi2003-09-151-55/+69
| | | | | | | | | | | | | | | To parse Mac's CR separated CSV, do like this. CSV.open("mac.csv", "r", ?,,?\r) { |row| p row.to_a } The 3rd parameter in this example ?, is for column separater and the 4th ?\r is for row separater. Row separater is nil by default. Nil separater means "\r\n" or "\n". * test/csv/test_csv.rb: add tests for above feature. * test/csv/mac.csv: added. Sample CR separated CSV file. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big_and): convert argument using 'to_int'.matz2003-09-122-3/+6
| | | | | | | | | | | | | | | * bignum.c (rb_big_or): ditto. * bignum.c (rb_big_xor): ditto. * eval.c (rb_f_require): allow "require" on $SAFE>0, if feature name is not tainted. * lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser::stream): Supports StringIO. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added documentation in RDoc format.wew2003-09-121-38/+799
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Took out useless @matched_item variable; some small refactoring.dblack2003-09-111-18/+18
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* meta_vars should be String.gotoyuzo2003-09-081-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httpserver.rb (HTTPServer#access_log): add "\n" togotoyuzo2003-09-082-2/+5
| | | | | | | | | the message. * lib/webrick/log.rb (BasicLog#log): add "\n" only if needed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb, lib/optparse/version.rb: search also allnobu2003-09-082-6/+21
| | | | | | | capital versions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/accesslog.rb (AccessLog::setup_params): use req.portgotoyuzo2003-09-087-14/+15
| | | | | | | | | | | | | | | | | | | | instead of config[:Port] or req.request_uri.port. * lib/webrick/httprequest.rb (HTTPRequest#meta_vars): ditto. * lib/webrick/httpservlet/filehandler.rb (FileHandler#dir_list): ditto. * lib/webrick/config.rb: :Listen option never be used. * lib/webrick/server.rb (GenericServer#initialize): don't use :Listen option and add warning message. * lib/webrick/log.rb (BasicLog#<<): shortcut of log(INFO, ...). * lib/webrick/httpserver.rb (HTTPServer#accesslog): use << for logging. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser#order, #permute, #parse): allow annobu2003-09-051-2/+15
| | | | | | | | | | array as argument. * test/ruby/test_*.rb: moved invariants to left side in assert_equal, and use assert_nil, assert_raises and so on. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (have_library, find_library): configure by librarynobu2003-09-051-2/+5
| | | | | | | | | | | | | name. * win32/win32.c (isInternalCmd): distinguish command.com and cmd.exe. * win32/win32.c (make_cmdvector): a character just after wildcard was ignored. [ruby-core:01518] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (--version): fix assignment/reference order.nobu2003-09-053-6/+19
| | | | | | | | | | | | | | * lib/optparse.rb (OptionParser#help): new; OptionParser#to_s may be deprecated in future. * lib/optparse/version.rb (OptionParser#show_version): hide Object. * test/runner.rb: fix optparse usage. * test/runner.rb: glob all testsuits if no tests given. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: cosmetic improvements to documentationgsinclair2003-08-312-316/+318
| | | | | | | * lib/net/imap.rb: ditto git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb: --version takes an optional argument; "all" or a list of ↵nobu2003-08-312-4/+54
| | | | | | package names. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* yyyy/mm is not an acceptable format.tadf2003-08-312-4/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add documentation in RDoc format.wew2003-08-291-1/+46
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add documentation in RDoc format.wew2003-08-291-4/+278
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb (check_response): AUTH CRAM-MD5 returns 334 response. ↵aamine2003-08-271-1/+1
| | | | | | [ruby-list:38279] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ostruct.rb (OpenStruct::method_missing): prohibit modifyingmatz2003-08-261-0/+3
| | | | | | | frozen OpenStruct. [ruby-talk:80214] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_tmpsrc): add the hook for source.nobu2003-08-261-43/+55
| | | | | | | [ruby-list:38122] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added RDoc documentation.wew2003-08-231-5/+764
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/ruby-lex.rb: bug fix for "foo" !~ /bar/. [ruby-talk:79942]keiju2003-08-231-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (inject_i): use rb_yield_values.matz2003-08-222-5/+11
| | | | | | | | | | | * enum.c (each_with_index_i): ditto. * eval.c (rb_yield_splat): new function to call "yield *values". * string.c (rb_str_scan): use rb_yield_splat(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e