aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* * lib/mkmf.rb: get rid of nil.to_s.nobu2006-09-031-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/soap/generator.rb (SOAP::SOAPGenerator#encode_tag): do not dumpnahi2006-09-021-7/+13
| | | | | | | | XML attribute which value is nil. value "" and nil both were dumped as 'attr="value"'. [ruby-dev:29395] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb (CSV::IOReader#initialize): use String#[](pos, len)nahi2006-09-021-1/+1
| | | | | | | | instead of String#[](idx) to check utf BOM. follows String#[](idx) behavior change of 1.9. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/ruby-lex.rb (RubyLex::getc): should not push nil intomatz2006-09-011-1/+1
| | | | | | | | reading buffer (@readed). reported in <http://jarp.does.notwork.org/diary/200608c.html#200608311>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (configuration): follow nil.to_s.nobu2006-08-311-2/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/Win32API/Win32API.c (Win32API_initialize): use RSTRING_PTR andusa2006-08-311-1/+1
| | | | | | | | | | | | | | | RSTRING_LEN. * ext/tk/stubs.c, ext/tk/tcltklib.c, ext/tk/tkutil/tkutil.c: ditto. * ext/win32ole/win32ole.c (ole_val2olevariantdata): ditto. * lib/mkmf.rb (create_makefile): follow nil.to_s. * win32/resource.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_Integer): Integer(nil) should raise TypeError.matz2006-08-301-1/+1
| | | | | | | | | | | | [ruby-talk:210205] * object.c (nil_to_s): no longer returns empty string but "nil". [ruby-talk:210205] * lib/mkmf.rb: avoid COMMON_HEADERS being nil. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::handle_method):matz2006-08-301-1/+2
| | | | | | | | rdoc documents C module methods as instance methods. a patch in [ruby-core:08536]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Include attributiondrbrain2006-08-272-2/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated based on date2 3.8.2.tadf2006-08-253-533/+1093
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/source.rb (REXML::IOSource#initialize): encoding have tonobu2006-08-222-5/+5
| | | | | | | be set with the accessor. fixed: [ruby-list:42737] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: parameter `to_addrs' might be an Array, .flatten is ↵aamine2006-08-221-1/+1
| | | | | | required. [ruby-dev:29316] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi.rb (CGI::out): specify -m0 to disable MIME decode. amatz2006-08-171-4/+4
| | | | | | | patch from Fujioka <fuj at rabbix.jp>. [ruby-dev:29284] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: added rdoc by Daniel Berger. [ruby-core:08177]nobu2006-08-171-4/+118
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: support SMTP/SSL. Thanks Kazuhiro NISHIYAMA.aamine2006-08-151-157/+268
| | | | | | | | | | | | | | | | | | | | | | | | | | * lib/net/smtp.rb: new method SMTP.use_ssl? * lib/net/smtp.rb: new method SMTP.enable_ssl. * lib/net/smtp.rb: new method SMTP.disable_ssl. * lib/net/smtp.rb: new method SMTP.default_ssl_port. * lib/net/smtp.rb: new method SMTP.default_tls_port. * lib/net/smtp.rb: now SMTP#enable_tls accepts a SSLContext object, instead of a verity and cert. [FEATURE CHANGE] * lib/net/smtp.rb: new method SMTP.ssl_context. * lib/net/smtp.rb: new method SMTP.default_ssl_context. * lib/net/smtp.rb: export SMTP.authenticate. * lib/net/smtp.rb: export SMTP.auth_plain. * lib/net/smtp.rb: export SMTP.auth_login. * lib/net/smtp.rb: export SMTP.auth_cram_md5. * lib/net/smtp.rb: export SMTP.starttls. * lib/net/smtp.rb: export SMTP.helo. * lib/net/smtp.rb: export SMTP.ehlo. * lib/net/smtp.rb: export SMTP.mailfrom. * lib/net/smtp.rb: export SMTP.rcptto. * lib/net/smtp.rb: export SMTP.rcptto_list. * lib/net/smtp.rb: export SMTP.data. * lib/net/smtp.rb: export SMTP.quit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Make RDoc ignore C function prototypes by Tilman Sauerbeck [ruby-core:8574].drbrain2006-08-111-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Replace nodoc with stopdoc so Module methods get documented.drbrain2006-08-111-1/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb (Net::SMTP::auth_cram_md5): use ord to retrievematz2006-08-091-2/+4
| | | | | | | | bytes from strings. a patch from WATANABE Tetsuya <Tetsuya.WATANABE at nifty.com>. [ruby-dev:29240] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/extend-command.rb (IRB::ExtendCommandBundle): pacifymatz2006-08-081-5/+5
| | | | | | | | RDoc. a patch from Eric Hodel <drbrain at segment7.net>. [ruby-core:08522] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/resolv.rb (Resolv::DNS::Message::MessageDecoder::get_string):matz2006-08-081-2/+3
| | | | | | | | | | affected by str[0] returns 1 char string. [ruby-dev:29223] * lib/resolv.rb (Resolv::DNS::Message::MessageDecoder::get_labels): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* reverttadf2006-08-071-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb: specify maximum number of digits to parsematz2006-08-071-4/+4
| | | | | | | | "200608007". %Y(4), %y(2), %m(2), %d(2). [ruby-core:8484] [experimental] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* %[EO]U didn't denote %U.tadf2006-08-061-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* "%\n" means "\n".tadf2006-08-051-4/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Remove tabs from Finalizer RDocdrbrain2006-08-041-12/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* RDoc for #run= and #run?drbrain2006-08-041-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Move Example so RDoc picks it up.drbrain2006-08-041-23/+22
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Include more documentation.drbrain2006-08-041-3/+56
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Leave HTML escaped for HtmlFormatter.drbrain2006-08-041-3/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Don't document test or sample directories.drbrain2006-08-041-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Close the socket on SSLError. [ruby-core:7198]drbrain2006-08-041-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Documentation cleanup.drbrain2006-08-0434-314/+327
| | | | | | | | | | Includes patches by Hugh Sasse: * ping.rb * weakref.rb * mailread.rb git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/{init.rb,ruby-lex.rb,slex.rb}: can't input '\c' forkeiju2006-08-043-24/+38
| | | | | | | [ruby-core: 7122]. and support for ruby1.8.X git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (__strptime, strftime): allow multi-line patternsnobu2006-08-041-2/+2
| | | | | | | | in Date#strftime the same as Time#strftime accepts. fixed: [ruby-core:08466] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/logger.rb: improves the amount of documentation that Rdocmatz2006-07-313-7/+22
| | | | | | | | | picks up when processing logger.rb by moving the require statement back before the comment block. a patch from Hugh Sasse <hgs at dmu.ac.uk>. [ruby-core:08422] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httprequest.rb (WEBrick::HTTPReuqest#parse_uri): improvegotoyuzo2006-07-311-1/+2
| | | | | | | for the value of IPv6 address in the Host: header field. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/session.rb, lib/cgi/session/pstore.rb: suppress warnings.nobu2006-07-302-23/+10
| | | | | | | fixed: [ruby-talk:204896] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* small document fixaamine2006-07-261-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTP#post, request_post, request): should set ↵aamine2006-07-261-12/+43
| | | | | | | | | | | Content-Type: x-www-form-urlencoded by default. * lib/net/http.rb (Net::HTTPHeader#content_type): should return nil when there's no Content-Type. * lib/net/http.rb (Net::HTTPHeader#sub_type): should return nil when there's no sub Content-Type (e.g. "Content-Type: text"). * lib/net/http.rb (Net::HTTPHeader#type_params): wrongly failed when there's no Content-Type. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (Init_eval): rename #invoke_method andmatz2006-07-261-4/+4
| | | | | | | | | | | | | | | #invoke_functional_method to __send and __send! respectively. * eval.c (remove_method): prohibit removing __send and __send!. * eval.c (rb_undef): prohibit undef'ing __send and __send!. * eval.c (rb_eval): prohibit redefining __send and __send!. * lib/delegate.rb (Delegator): preserve __send. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi.rb (CGI::QueryExtension::read_multipart): checkmatz2006-07-261-0/+3
| | | | | | | | multipart boundary end. a patch from Fujioka <fuj at rabbix.jp> [ruby-dev:28470] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (configuration): typo.usa2006-07-251-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb, lib/mkmf.rb (with_destdir): remove drive letter beforenobu2006-07-211-5/+6
| | | | | | | prepending destdir on DOSISH. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_call): try local method look-up first for fcall, thenmatz2006-07-201-272/+0
| | | | | | | | | | | | normal method look-up. [ruby-talk:202564] * eval.c (rb_get_method_body): save local method cache separately. * eval.c (search_method): export info whether method is local or not. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_mod_attr): make Module#attr to be an alias tomatz2006-07-2011-33/+25
| | | | | | | | | | attr_reader. [RCR#331] * ruby.h: export classes/modules to implement sandbox. [ruby-core:08283] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/completion.rb: support for completion of numerickeiju2006-07-191-4/+20
| | | | | | | number. [ruby-dev: 29038] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* patch was misapplied. fixed. sorryryan2006-07-181-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httpserver.rb (WEBrick::HTTPServer::unmount): removematz2006-07-181-1/+1
| | | | | | | inpect argument from sprintf. [ruby-dev:29039] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* RD to RDoc conversion by Hugh Sasse.drbrain2006-07-172-125/+109
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add monitor.rbdrbrain2006-07-131-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e