aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* * lib/uri/common.rb: Have URI() and URI.join accept URI objects in additionmarcandre2010-07-211-9/+20
| | | | | | to strings. [ruby-core:30960] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Be sure to load the custom require even if --disable-rubygems was usedevan2010-07-201-3/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Pull rubygem's custom require into gem_preludeevan2010-07-202-12/+18
| | | | | | | | This solves the gem loading issue by never touching $LOAD_PATH in gem_prelude and instead loading all of rubygems more quickly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (FileUtils::Entry_#copy): check file namenobu2010-07-201-1/+12
| | | | | | spearator boundary. [ruby-core:31360] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (MiniTest::Unit#process_args): refactored.nobu2010-07-171-59/+116
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pathname/lib/pathname.rb: moved from lib/pathname.rb.akr2010-07-171-1053/+0
| | | | | | | | | | | | require pathname.so. * ext/pathname/pathname.c: new file to define empty Pathname class. * ext/pathname/extconf.rb: new file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb: MiniTest::Unit is different class fromnobu2010-07-171-3/+40
| | | | | | Test::Unit, and install runner before loading test/minitest. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb, bin/testrb, test/runner.rb: revert r28655, whichmame2010-07-161-32/+4
| | | | | | broke test-all. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit.setup_argv): run tests only whennobu2010-07-161-4/+32
| | | | | | | | | any tests have not run. * bin/testrb, test/runner.rb: use Test::Unit.start. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/markup/attribute_manager.rb: fixing ri output when specialtenderlove2010-07-141-2/+2
| | | | | | | characters are inside html tags. Thanks Tomo Kazahaya! [Bug #3512] * test/rdoc/test_attribute_manager.rb: corresponding test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (setup_argv): convert to using optparse, addingtenderlove2010-07-141-12/+21
| | | | | | --help and -I. [ruby-core:30154] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb: Fix unused variable warnings.marcandre2010-07-119-21/+17
| | | | | | | | | | | | | | | | | | | | | | Patch by Run Paint [ruby-core:30991] * lib/date.rb: ditto * lib/debug.rb: ditto * lib/drb/drb.rb: ditto * lib/drb/invokemethod.rb: ditto * lib/irb/ruby-lex.rb: ditto * lib/irb/slex.rb: ditto * lib/logger.rb: ditto * lib/pathname.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gem_prelude.rb: provide workaround for gem activation. Currently,mame2010-07-071-4/+16
| | | | | | | | | | gem activation does not work by default. Now it can be worked around by requiring "rubygems" first. [ruby-core:29486] a patch from Evan Phoenix in [ruby-core:31096]. * lib/rubygems.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix doc again.akr2010-07-021-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix doc.akr2010-07-021-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb: Improving documentation.jeg22010-07-011-0/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/ri/driver.rb (RDoc::RI::Driver#formatter): should use bsmame2010-06-271-3/+3
| | | | | | format when stdout is piped. [ruby-core:30734] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/require_paths_builder.rb (write_require_paths_file_if_needed):nobu2010-06-271-9/+5
| | | | | | | | no reason that bin directory should be included in $LOAD_PATH. it is for executable files, but not libraries. [ruby-core:25936] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb: Fixing a bug that prevented CSV from parsingjeg22010-06-251-2/+8
| | | | | | | | all multi-line fields correctly. Patch by Rob Biedenham. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/un.rb (setup): fix of word splitting. [ruby-dev:41723]nobu2010-06-241-2/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/un.rb (setup): fix of word splitting. [ruby-dev:41723]nobu2010-06-241-2/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Clean warnings: unused variables.naruse2010-06-233-10/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb: Fix warningmarcandre2010-06-221-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/delegate.rb: Forward #trust, #untrust, #taint and #untaintmarcandre2010-06-221-4/+37
| | | | | | to both the delegator and __getobj__ [ruby-core:26138] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb.rb: remove double exclamation marks. a patch from Diegomatz2010-06-191-4/+4
| | | | | | Viola. [ruby-core:30589] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httpservlet/filehandler.rbmame2010-06-171-2/+6
| | | | | | | (prevent_directory_traversal): apply filesystem encoding to path only during calling File.expand_path. [ruby-dev:41423] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* raise DRbConnError instead of ArgumentError if too many arguments.seki2010-06-141-1/+1
| | | | | | | [ruby-dev:41481] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/delegate.rb: Delegate !=, eql? and hash [ruby-core:26139]marcandre2010-06-121-2/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/install_update_options.rbmame2010-06-111-3/+2
| | | | | | | | | (Gem::InstallUpdateOptions#add_install_update_options): deprecate --test option which has not worked. [ruby-core:21714] * test/rubygems/test_gem_command_manager.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert r28200.naruse2010-06-102-33/+9
| | | | | | | It caused many failures on test-all and following is SEGV. ./ruby -e 'require %!#{"foo/" * 10000}foo!' git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gem_prelude.rb: load full rubygems at LoadError for activationnobu2010-06-072-9/+33
| | | | | | | check. [ruby-core:29486] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb (eql?, ==, minor): Fix bugs when comparing/returningmarcandre2010-06-051-3/+5
| | | | | | some empty matrices. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: trivial optimizationsmarcandre2010-06-051-20/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Clarification of what '*' matches. Patch by John Wells <john.wells at ↵drbrain2010-06-041-5/+0
| | | | | | greatworx.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: adding support to rfc5789 patch verb.naruse2010-06-011-10/+32
| | | | | | | | | | | | | | Added a Net::HTTP::Patch class which expects a message body and response body. It recycles the post method into a patch one, that will send the encoded representation to the server. Summarizing, a new class has been created, the post method extracted into send_entity, including a new argument, which defines which class to use (Post or Patch) and finally a patch method was created. [ruby-core:30426] Patched by Guilherme Silveira <guilherme.silveira AT caelum.com.br> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/resolv.rb (Resolv::DNS::Requester#request): rescue ECONNRESETakr2010-05-311-1/+2
| | | | | | | for Windows. reported by U.Nakamura. [ruby-dev:41477] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/delegate: Delegator: combine (public|protected) methods withmarcandre2010-05-301-4/+34
| | | | | | | | those of the delegated object. [ruby-core:27224] DelegateClass: combine (public|protected) instance methods with those of the delegated superclass. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/set.rb (keep_if, select!): New methods [ruby-core:29749]marcandre2010-05-301-0/+25
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tempfile.rb (Tempfile#unlink): leave @data. Assigning nil tomame2010-05-301-1/+1
| | | | | | | @data caused double closing error of the same IO in finalizer. a patch from Simon Nicholls. [ruby-core:29395] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/generator/template/darkfish/classpage.rhtml:naruse2010-05-291-1/+1
| | | | | | fix encoding value of XML declaration. [ruby-dev:41452] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/rdoc.rb (RDoc#read_file_contents): take care of BOM.nobu2010-05-291-3/+5
| | | | | | | [ruby-dev:41452] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (STRING_OR_FAILED_FORMAT.%): nodoc.nobu2010-05-291-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/resolv.rb (Resolv::DNS::Requester#request): rescue ECONNREFUSED.akr2010-05-291-1/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (checking_for): ignore toplevel.nobu2010-05-281-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/lib/openssl/x509-internal.rb, lib/forwardable.rb,nobu2010-05-235-5/+5
| | | | | | | | | lib/irb/cmd/fork.rb, lib/mutex_m.rb, lib/shell/process-controller.rb, lib/sync.rb, object.c: suppress warnings patched by Benoit Daloze at [ruby-core:30366]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (disconnect): closes the socket of a Net::IMAPshugo2010-05-191-1/+5
| | | | | | object only when it is not closed. [ruby-dev:41350] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb (determinant): Trivial optimization (thanks to Benoit Daloze)marcandre2010-05-171-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (FileUtils::Entry_#entries): returns pathname inusa2010-05-171-1/+3
| | | | | | | | UTF-8 on Windows to allow FileUtils accessing all pathnames internally. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/generator/ri.rb (generate): should load existing cacheusa2010-05-121-0/+2
| | | | | | | before generating it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/mailto.rb: clean up regexp [ruby-core:29894]marcandre2010-05-111-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e