summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* * lib/mkmf.rb (create_makefile): need to convert path separetorusa2005-08-051-1/+11
| | | | | | | before invoking install command. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ping.rb (Ping.pingecho): should rescue StandardError.gotoyuzo2005-08-011-1/+1
| | | | | | | [ruby-dev:26677] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use private_methods and protected_methods instead of respond_to? to checkseki2005-07-311-13/+12
| | | | | | | method visibility. [ruby-dev:26616] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/context.rb: fix `irb --readline` option. [ruby-list:40955]keiju2005-07-311-4/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)2005-07-221-0/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb: moved copyright description to lib/rss.rb.kou2005-07-221-7/+0
| | | | | | | | | | | | | | | | * lib/rss.rb: added for convenience. * sample/rss/re_read.rb: added #to_s sample. * sample/rss/blend.rb: use 'require "rss"' instead of 'require "rss/*"'. * sample/rss/list_description.rb: ditto. * sample/rss/rss_recent.rb: ditto. * sample/rss/tdiary-plugin/rss-recent.rb: ditto. * sample/rss/tdiary-plugin/rss-recent.rb: 0.0.6 -> 0.0.7. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/parser.rb (RSS::Parser#initialize): accept HTTP/FTPkou2005-07-221-1/+31
| | | | | | | | | | URI and local file path too. * test/rss/test_parser.rb (RSS::TestParser#test_parse): test for the above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* document fix [ruby-dev:26516] (patch from Kazuhiro NISHIYAMA)ocean2005-07-161-4/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/parsers/parse_c.rb (handle_class_module): handle anobu2005-07-151-15/+39
| | | | | | | | | | | | module enclosed in a built-in module. fixed: [ruby-talk:148239] * lib/rdoc/parsers/parse_c.rb (find_body): allow macros as methods. * lib/rdoc/parsers/parse_c.rb (find_call_seq): allow :nodoc: modifier in C. [ruby-core:04572] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/server.rb (WEBrick::GenericServer#accept_client):gotoyuzo2005-07-143-1/+15
| | | | | | | | | | | | | sockets should be non-blocking mode. [ruby-dev:26405] * lib/webrick/utils.rb (WEBrick::Utils.set_non_blocking): new method. * lib/webrick/httprequest.rb (WEBrick::HTTPRequest#read_chunked): should call sock.read repeatedly until the preferred size data is obtained. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: keep curdir unexpanded.nobu2005-07-121-2/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/server.rb (XMLRPC::Server): Switch from GServer over tomneumann2005-07-101-96/+43
| | | | | | | | WEBrick. This makes file lib/xmlrpc/httpserver.rb obsolete (at least it is no further used by the XML-RPC library). git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/cgi.rb (WEBrick::CGI::Socket#request_line):gotoyuzo2005-07-101-2/+2
| | | | | | | | mistook in merging the patch of [ruby-dev:26235] at revision 1.4.2.6. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb (Pathname#unlink): try Dir.unlink first toakr2005-07-101-2/+2
| | | | | | | | avoid unlink a directory by root. cf. [ruby-dev:26237] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/debug.rb (debug_command): added a deficient format specifier.nobu2005-07-101-1/+1
| | | | | | | fixed: [ruby-core:05419] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb (RSS::VERSION): 0.1.4 -> 0.1.5.kou2005-07-082-3/+3
| | | | | | | | | | | | | | | * test/rss/test_version.rb (RSS::TestVersion#test_version): ditto. * lib/rss/0.9.rb (RSS::Rss::Channel::Item::Category): domain attribute of <category> is optional. Thanks to Chris Lee <clee@kde.org>. * test/rss/test_parser.rb (RSS::TestParser#test_category20): adjusted test case. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* doc fix.akr2005-07-021-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI.open_http): refine post_connection_checkakr2005-07-011-3/+8
| | | | | | | call. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/delegate.rb (Delegator::respond_to): respond_to? must checkmatz2005-06-301-0/+9
| | | | | | | destination object. [ruby-talk:146894] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/ruby-lex.rb (RubyLex::identify_number): alternative implementskeiju2005-06-301-8/+14
| | | | | | | for [ruby-dev:26410]. And support a numeric form of 0d99999. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/ruby-lex.rb (RubyLex::identify_number): should not treatmatz2005-06-301-2/+3
| | | | | | | plain zero as an octal number. [ruby-dev:26410] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_eval): pre-evaluate argument for unambiguousmatz2005-06-302-0/+9
| | | | | | | | | | | | | | evaluation order. [ruby-dev:26383] * lib/delegate.rb (Delegator::method_missing): forward unknown method to the destination. suggested by <christophe.poucet@gmail.com>. [ruby-talk:146776] * process.c (detach_process_watcher): terminate process watcher thread right after rb_waitpid() succeed. [ruby-talk:146430] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httputils.rb (WEBrick::HTTPUtils.parse_query): shouldgotoyuzo2005-06-251-0/+1
| | | | | | | discard if key=val pair is empty. patch from Gary Wright. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/*, test/xmlrpc/*: backported changes from HEAD into 1.8mneumann2005-06-246-60/+88
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/common.rb, lib/uri/generic.rb: fixed typo in documents andakira2005-06-242-19/+19
| | | | | | | replaced some existent domain name with "example.com". git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fixed typo in the example of URI.extract.akira2005-06-231-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb (Time.parse): fix previous leap seconds support.akr2005-06-171-25/+123
| | | | | | | | (Time.rfc2822): ditto. (Time.xmlschema): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add tests for leapseconds on an environment without leapseconds support.akr2005-06-161-28/+21
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb (Time.parse): "Fri Jan 1 08:59:60 +0900 1999" wasakr2005-06-161-4/+50
| | | | | | | | | | parsed as "Fri Jan 01 09:00:00 JST 1999" even on an environment which supports leap seconds. (Time.rfc2822): ditto. (Time.xmlschema): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (sigexit): call rb_thread_signal_exit() instead ofmatz2005-06-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | rb_exit(). [ruby-dev:26347] * eval.c (rb_thread_signal_exit): a new function to exit on main thread. * eval.c (rb_thread_switch): exit status should be retrieved from ruby_errinfo. * eval.c (rb_f_exit): ensure exit(0) should call exit(EXIT_SUCCESS). * missing/mkdir.c: remove. [ruby-core:05177] * lib/delegate.rb (SimpleDelegator::__setobj__): need check for recursive delegation. [ruby-core:04940] * misc/ruby-mode.el (ruby-expr-beg): fix looking point drift. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (get2comp): calculate proper 2's complement formatz2005-06-081-2/+2
| | | | | | | | | | | | | | | | negative numbers. a bug in normalizing negative numbers reported from Honda Hiroki <hhonda@ipflex.com>. * ext/socket/socket.c (ruby_getaddrinfo__aix): merged a patch from KUBO Takehiro <kubo@jiubao.org> to support AIX. [ruby-list:40832] * lib/yaml/rubytypes.rb (Array::to_yaml): merged a patch from Tilman Sauerbeck <tilman@code-monkey.de>. [ruby-core:05055] * lib/yaml/rubytypes.rb (Hash::to_yaml): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (curses_insertln): merged a patch frommatz2005-06-071-0/+3
| | | | | | | | | | TAKAHASHI Tamotsu <ttakah@lapis.plala.or.jp>. [ruby-ext:02305] * lib/irb/init.rb (IRB::IRB.rc_file_generators): more flexible IRB.rc_file_generators. [ruby-core:05163] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/thread.rb: RDoc documentation from Eric Hodelmatz2005-06-071-20/+84
| | | | | | | <drbrain@segment7.net> added. [ruby-core:05148] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): add .SUFFIXES from depend file.nobu2005-06-071-2/+9
| | | | | | | fixed: [ruby-dev:26294] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for [ruby-dev:26127].akr2005-05-291-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/cgi.rb (WEBrick::CGI::Socket#request_line):gotoyuzo2005-05-271-5/+7
| | | | | | | | ENV["REQUEST_URI"] is better to get correct Request-URI than ENV["SCRIPT_NAME"] + ENV["PATH_INFO"]. [ruby-dev:26235] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: use the semicolon as the path separatoreban2005-05-271-5/+9
| | | | | | | in the environment of MSYS. fixed: [ruby-dev:26232] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/input-method.rb: do not use Readline::HISTORY.pop.shugo2005-05-251-2/+2
| | | | | | | (backported from HEAD) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI::Meta::RE_QUOTED_STRING): a content ofakr2005-05-251-1/+1
| | | | | | | quoted-string should be zero or more characters. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/getopts.rb: should warn only if verbose mode.eban2005-05-241-1/+1
| | | | | | | fixed: [ruby-dev:26201] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/{soap,wsdl,xsd}, test/{soap,wsdl,xsd}: imported soap4r/1.5.4.nahi2005-05-2273-1737/+2911
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | == SOAP client and server == === for both client side and server side === * improved document/literal service support. style(rpc,document)/use(encoding, literal) combination are all supported. for the detail about combination, see test/soap/test_style.rb. * let WSDLEncodedRegistry#soap2obj map SOAP/OM to Ruby according to WSDL as well as obj2soap. closes #70. * let SOAP::Mapping::Object handle XML attribute for doc/lit service. you can set/get XML attribute via accessor methods which as a name 'xmlattr_' prefixed (<foo name="bar"/> -> Foo#xmlattr_name). === client side === * WSDLDriver capitalized name operation bug fixed. from 1.5.3-ruby1.8.2, operation which has capitalized name (such as KeywordSearchRequest in AWS) is defined as a method having uncapitalized name. (converted with GenSupport.safemethodname to handle operation name 'foo-bar'). it introduced serious incompatibility; in the past, it was defined as a capitalized. define capitalized method as well under that circumstance. * added new factory interface 'WSDLDriverFactory#create_rpc_driver' to create RPC::Driver, not WSDLDriver (RPC::Driver and WSDLDriver are merged). 'WSDLDriverFactory#create_driver' still creates WSDLDriver for compatibility but it warns that the method is deprecated. please use create_rpc_driver instead of create_driver. * allow to use an URI object as an endpoint_url even with net/http, not http-access2. === server side === * added mod_ruby support to SOAP::CGIStub. rename a CGI script server.cgi to server.rb and let mod_ruby's RubyHandler handles the script. CGIStub detects if it's running under mod_ruby environment or not. * added fcgi support to SOAP::CGIStub. see the sample at sample/soap/calc/server.fcgi. (almost same as server.cgi but has fcgi handler at the bottom.) * allow to return a SOAPFault object to respond customized SOAP fault. * added the interface 'generate_explicit_type' for server side (CGIStub, HTTPServer). call 'self.generate_explicit_type = true' if you want to return simplified XML even if it's rpc/encoded service. == WSDL == === WSDL definition === * improved XML Schema support such as extension, restriction, simpleType, complexType + simpleContent, ref, length, import, include. * reduced "unknown element/attribute" warnings (warn only 1 time for each QName). * importing XSD file at schemaLocation with xsd:import. === code generation from WSDL === * generator crashed when there's '-' in defined element/attribute name. * added ApacheMap WSDL definition. * sample/{soap,wsdl}: removed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)2005-05-2210-0/+735
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/encodings/SHIFT-JIS.rb: encoding and decoding wereocean2005-05-191-2/+2
| | | | | | | swapped. [ruby-core:4772] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Cross-ported the REXML changes from HEAD to the 1.8 branch.ser2005-05-1923-1043/+1339
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)2005-05-191-0/+33
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): shouldgotoyuzo2005-05-171-1/+1
| | | | | | | break the loop if the socket reached to EOF. [ruby-talk:142285] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb (Pathname#unlink): use SystemCallError instead ofakr2005-05-151-1/+1
| | | | | | | | Errno::EISDIR because EISDIR is not portable. [ruby-core:5001] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use raise(exception) [ruby-dev:26164]seki2005-05-151-1/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb (Pathname#unlink): unlink a symlink to a directoryakr2005-05-151-3/+3
| | | | | | | was failed. [ruby-core:4992] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* restored @progressocean2005-05-141-2/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e