summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* * lib/matrix (minor): Also handle negative arguments like Array#[]marcandre2009-10-241-5/+18
| | | | | | cf [ruby-core:23598] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb (Pathname::SAME_PATHS): FNM_SYSCASE is alwaysnobu2009-10-231-1/+1
| | | | | | | non-nil. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (FileUtils#fu_get_uid, fu_get_gid): Do notknu2009-10-221-8/+14
| | | | | | | | convert an integer back and forth. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb (transpose, inspect): Bug fixmarcandre2009-10-201-2/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb (empty): Improved rdocmarcandre2009-10-201-2/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httpauth/digestauth.rb: typo in exception message fixed.nahi2009-10-201-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/logger.rb: imported upstream version (logger/1.2.7) see #2238.nahi2009-10-201-42/+60
| | | | | | | | | | * do not raise an exception even if log writing failed. * do not raise ShiftingError if an aged file already exists. (no ShiftingError will be raised from 1.2.7, just warn() instead) * test/logger/test_logger.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Bug fix. See detail [ruby-core:23598].keiju2009-10-201-96/+119
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/element.rb (text=): false should be converted to string.marcandre2009-10-181-1/+1
| | | | | | A patch by Teruo Oshida [ruby-dev:38351] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb: do not require lib/delta.rb.tadf2009-10-182-8/+32
| | | | | | | | * lib/date/delta.rb: follows the above change. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_prime.rbyugui2009-10-181-19/+43
| | | | | | | | | | | | (TestPrime#test_eratosthenes_works_fine_after_timeout): test for [ruby-dev:39465]. * lib/prime.rb (Prime::EratosthenesSieve): fixed [ruby-dev:39465]. suppressed memory reallocation. constantified some magic numbers. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_method.c (basic_obj_respond_to): call #respond_to_missing?matz2009-10-171-1/+1
| | | | | | always with two arguments. [ruby-core:26090] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/delegate.rb (Delegator#respond_to_missing): warn only whenmatz2009-10-171-3/+5
| | | | | | specified method is a private. [ruby-dev:39498] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/delegate: rdoc typomarcandre2009-10-161-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/delegate.rb (Delegator#method_missing): remove backtracematz2009-10-161-1/+3
| | | | | | lines _until_ `method_missing'. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/delegate.rb (Delegator#freeze): #freeze should freeze selfmatz2009-10-161-0/+6
| | | | | | and the target at once. [ruby-core:26118] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/delegate.rb (Delegator#respond_to_missing): warn if optionalmatz2009-10-161-3/+5
| | | | | | | | | | include_private argument is not false. Delegator does (and should) not forward private methods. [ruby-core:26080] * lib/delegate.rb (Delegator#respond_to_missing): instead of redefining #respond_to?, use #respond_to_missing?. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb (CSV#raw_encoding): returns ASCII-8BIT when the ionaruse2009-10-161-1/+3
| | | | | | doesn't have encoding. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb (CSV#read_to_char): set encoding and verify datanaruse2009-10-151-9/+19
| | | | | | | | | | | which read from io before encode it to @encoding. * lib/csv.rb (CSV#raw_encoding): add to get @io's encoding. * lib/csv.rb (CSV#read_io): add to read string and set @io's encoding. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (login): use "anonymous@" as a default password.shugo2009-10-121-17/+1
| | | | | | | [ruby-dev:39451] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (retrlines): added a new block parameter.shugo2009-10-121-10/+6
| | | | | | | | * lib/net/ftp.rb (gettextfile): preserve missing end-of-line at end of files. [ruby-core:24590] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/context.rb (IRB::Context#irb_name): removed duplicatednobu2009-10-112-3/+1
| | | | | | | | | | attr_reader. [ruby-core:26047] * lib/irb/ruby-lex.rb (RubyLex#lex_int2): removed duplicated character class range. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/resolv.rb (Resolv::DNS::Requester::ConnectedUDP): disableakr2009-10-091-1/+3
| | | | | | | | reverse lookup. (Resolv::DNS::Requester::UnconnectedUDP): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/context.rb (IRB::Context#initialize):naruse2009-10-091-1/+2
| | | | | | remove warnings when $VERBOSE is set as true in .irbrc. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/telnet.rb (cmd): Pass FailEOF options: patch by Brian Candler ↵marcandre2009-10-081-2/+4
| | | | | | [ruby-core:22723] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/resolv.rb (Resolv::DNS.bind_random_port): bind to "::" for IPv6.akr2009-10-061-4/+5
| | | | | | | | | (Resolv::DNS::ConnectedUDP#initialize): specify is_ipv6 argument of bind_random_port. [ruby-core:25970] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/delegate.rb (Delegator::public_api): take snapshot ofmatz2009-10-061-1/+17
| | | | | | | | | | | | public method at the beginning time. * lib/delegate.rb (SimpleDelegator#initialize): use Delegator.public_api since public_method might be added after initialization. [ruby-dev:39383] * lib/delegate.rb (DelegateClass): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/cookie.rb: add default value to @@accept_charsetxibbar2009-10-042-0/+2
| | | | | | | if have not defined. [ruby-dev:38987] * lib/cgi/util.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems.rb (Gem::binary_mode): binary mode uses binarynobu2009-10-041-1/+1
| | | | | | | encoding. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/core.rb: fix command-line option ofxibbar2009-10-031-3/+12
| | | | | | non-interactive terminal. [ruby-core:23016] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rake/contrib: added. [ruby-core:25918]nobu2009-10-035-0/+305
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rake: updated to rake code to rake-0.8.7 source code base.nobu2009-10-025-72/+89
| | | | | | | | * lib/rake/loaders/makefile.rb (Rake::MakefileLoader#process_line): respace dependencies too. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (assert_equal): use Time#subsec if nsecakr2009-09-291-2/+10
| | | | | | | is not enough to distinguish arguments. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb (Kernel#pp): returns its arguments, like Kernel#p.mame2009-09-291-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/gauntlet_rubygems.rb: out of place.nobu2009-09-281-50/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb (PP:ObjectMixin#pretty_print): delegates has no inspectakr2009-09-271-2/+16
| | | | | | | method. [ruby-core:25804] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (transport_request): Handle timeout error by closing ↵marcandre2009-09-261-0/+4
| | | | | | socket if exception raised. [ruby-core:20976] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib: updated keywords.nobu2009-09-252-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fixed heredoc to play with emacs better. Added :startdoc: to fix broken rdoc ↵ryan2009-09-241-2/+3
| | | | | | processing git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mathn.rb (Bignum#**): Fixed bignum**fixnum that was broken when ↵marcandre2009-09-242-4/+4
| | | | | | | | requiring lib/mathn [ruby-core:25740] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/thread.rb (ConditionVariable#wait): add timeout argument.akr2009-09-231-2/+5
| | | | | | | [ruby-talk:346154] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/cookie.rb: fixed indent.nobu2009-09-201-33/+33
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/rdoc.rb (RDoc::RDoc#parse_files): don't branch bynobu2009-09-181-5/+2
| | | | | | | RUBY_VERSION. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/rdoc.rb (RDoc::RDoc#parse_files): emacs local variablesnobu2009-09-181-2/+2
| | | | | | | are delimited by a semicolon. supported Vim style. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (rm_f, rm_rf): FileUtils.rm can take an array.nobu2009-09-171-4/+4
| | | | | | | [ruby-dev:39345] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_header): open in binmode.nobu2009-09-171-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/parser/ruby.rb (RDoc::Parser::Ruby): parse also rdocnobu2009-09-171-1/+1
| | | | | | | | | files. * doc/re.rdoc: renamed from re.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb (Matrix#rank): Two bug fixes. One made ↵marcandre2009-09-161-2/+2
| | | | | | Matrix[[0,0],[0,0],[1,0]].rank raise a NoMethodError while the other one had Matrix[[0,1],[0,0],[1,0]].rank raise a TypeError. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Optimizationsmarcandre2009-09-161-46/+25
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb (Matrix#/): Fix obvious bugmarcandre2009-09-161-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e