summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* * lib/pathname.rb (Pathname#descend): Pathname.new("./a/b/c").descendakr2005-09-031-18/+29
| | | | | | | | didn't yield "." (Pathname#ascend): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib: do not use __send__ to access private methods. [ruby-dev:26935]nobu2005-09-0214-40/+44
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/debug.rb: no need to restart at exit.nahi2005-08-301-3/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (xsystem, xpopen): no longer expand by Config.nobu2005-08-301-18/+18
| | | | | | | | | | * lib/mkmf.rb (link_command, cc_command, cpp_command): expand variables at once, and quote hdrdir. fixed: [ruby-core:05680] * lib/mkmf.rb (libpathflag): quote paths. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb: bug fix. [ruby-dev: 26920]keiju2005-08-301-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/drb/ssl.rb (SSLConfig#accept) sorry, self[:verbose] is inner class's ↵ocean2005-08-301-1/+1
| | | | | | | | | method. so reverted... git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/drb/ssl.rb (SSLConfig#accept) fixed "Undefined method verbose"ocean2005-08-301-1/+1
| | | | | | | [ruby-Bugs:1701] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/usage.rb: supress warning.ocean2005-08-291-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/usage.rb: improper exceptions. [ruby-dev:26870]ocean2005-08-291-15/+22
| | | | | | | | * lib/rdoc/usage.rb: support the case when non-ruby code exists before shebang. (this is needed when ri.bat is executed on windows) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb: make IRB -I option that is same befavior for ruby.keiju2005-08-291-7/+6
| | | | | | | | | | [ruby-dev:26872] * lib/irb/locale.rb: support to print help message when OS locale is ja_JP.utf-8. [ruby-dev:26872] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb (Pathname#descend): new method.akr2005-08-281-0/+96
| | | | | | | (Pathname#ascend): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb: require 'date/format' instead of 'parsedate'.akr2005-08-281-12/+27
| | | | | | | | | (Time.parse): extract fractional seconds using Date._parse. (Time.strptime): extract fractional seconds using Date._strptime. [ruby-talk:153859] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb: make IRB -I option that is same befavior for ruby.keiju2005-08-262-1/+13
| | | | | | | | | | [ruby-dev:26872] * lib/irb/locale.rb: support to print help message when OS locale is ja_JP.utf-8. [ruby-dev:26872] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Lovely RDOC patches from mathew (metaATpoboxDOTcom) on URI/* and getoptlong.rbryan2005-08-247-40/+171
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/wsdl/xmlSchema/importer.rb (WSDL::XMLSchema::Importer#fetch): addnahi2005-08-201-1/+7
| | | | | | | | a workaround for importing an WSDL whose path begins with drive letter. [ruby-dev:26242] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/logger.rb (write, shift_log?, shift_log): file shifting racenahi2005-08-201-65/+64
| | | | | | | | | condition bug fixed. [ruby-dev:26764] * test/logger/test_logger.rb: tests. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb (Time.apply_offset): fix a problem with last day ofakr2005-08-191-1/+7
| | | | | | | month. reported by Lucas Nussbaum. [ruby-talk:152866] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* doc fixaamine2005-08-131-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (remove_entry_secure): forgot final chdir.aamine2005-08-131-11/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (remove_entry_secure): uses chdir(2) and check if current ↵aamine2005-08-131-42/+42
| | | | | | directory is correct. [ruby-dev:26100] [ruby-dev:26226] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (fix_equal, fix_cmp, fix_gt, fix_ge, fix_lt, fix_le):matz2005-08-122-48/+39
| | | | | | | | | | | reduce coercing when a method knows about a operand type. [ruby-dev:26789] * lib/delegate.rb: simplifies Delegator classes; SimpleDelegator now uses method_missing for all methods. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/1.0.rb (RSS::RDF::Channel#setup_maker_attributes):kou2005-08-114-13/+15
| | | | | | | | | | | | | | | | | | | | | | | | removed self. * lib/rss/maker/base.rb (RSS::Maker::ItemsBase#<=>): use #date instead of @date. (RSS::Maker::Base::self.def_array_element): added #size. * lib/rss/maker/1.0.rb (RSS::Maker::RSS10::Channel#to_rss, RSS::Maker::RSS10::Items::Item#to_rss): cleared dc_dates set upped by using #date. * lib/rss/maker/dublincore.rb (RSS::Maker::ChannelBase, RSS::Maker::ItemsBase::ItemBase): fixed opposite alias. * test/rss/test_setup_maker_1.0.rb (RSS::TestSetupMaker10::test_setup_maker_items_sort): added some tests for RSS::Maker::ItemsBase#do_sort. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httpproxy.rb (HTTPProxyServer#intialize),gotoyuzo2005-08-076-6/+7
| | | | | | | | | | | | | | lib/webrick/httpserver.rb (HTTPServer#intialize), lib/webrick/httpservlet/cgihandler.rb (CGIHandler#initialize), lib/webrick/httpservlet/erbhandler.rb (ERBHandler#initialize), lib/webrick/httpservlet/filehandler.rb(DefaultFileHandler#initialize): super (called with no arguments) takes default value of optional arguments. [ruby-dev:26743] * lib/webrick/httputils.rb: add a media-type "text/html" for .xhtml. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 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/trunk@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/trunk@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/trunk@8872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/context.rb: fix `irb --readline` option. [ruby-dev:40955]keiju2005-07-291-4/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (cd): follow :noop option change. (This patch is ↵aamine2005-07-271-1/+1
| | | | | | contributed by Doug Kearns) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: merge a patch contributed by Daniel Berger, with some ↵aamine2005-07-261-42/+20
| | | | | | modification. (RubyForge #2128) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb: moved copyright description to lib/rss.rb.kou2005-07-222-7/+16
| | | | | | | | | | | | | | | | * 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/trunk@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/trunk@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/trunk@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/trunk@8774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/server.rb (WEBrick::GenericServer#accept_client):gotoyuzo2005-07-142-0/+9
| | | | | | | | | sockets should be non-blocking mode. [ruby-dev:26405] * lib/webrick/utils.rb (WEBrick::Utils.set_non_blocking): new method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8767 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/trunk@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/trunk@8747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/cgi.rb (WEBrick::CGI::Socket#request_line):gotoyuzo2005-07-101-2/+2
| | | | | | | | mistook to merge the patch of [ruby-dev:26235] at revision 1.11. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8744 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/trunk@8743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/debug.rb (debug_command): added a deficient format specifier.nobu2005-07-101-2/+2
| | | | | | | fixed: [ruby-core:05419] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@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/trunk@8734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/set.rb: test change to follow revision 1.28. (duck typing?)ocean2005-07-041-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* cosmetic.nahi2005-07-031-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* doc fix.akr2005-07-021-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8705 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/trunk@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/trunk@8684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/ruby-lex.rb (RubyLex::identify_number): alternative implementskeiju2005-06-301-8/+15
| | | | | | | for [ruby-dev:26410]. And support a numeric form of 0d99999. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@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/trunk@8680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_eval): pre-evaluate argument for unambiguousmatz2005-06-302-9/+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/trunk@8676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTP#connect, Net::HTTP#request): shouldgotoyuzo2005-06-301-6/+10
| | | | | | | | | | | not send proxy username and password to origin servers. [ruby-dev:25673] * lib/net/http.rb (Net::HTTP::ProxyDelta#edit_path): should not send HTTPS scheme URL to origine servers. [ruby-dev:25689] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8674 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/trunk@8666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e