aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* lib/minitest/*.rb: Imported minitest 2.0.2 r6207ryan2011-02-196-31/+32
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb: partial revert of r30849. [ruby-core:32864]tenderlove2011-02-181-2/+4
| | | | | | | * test/testunit/test_rake_integration.rb: adding an integration test with the rake loader to prevent regressions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (FileUtils::remove_entry_secure): there is ashyouhei2011-02-181-4/+9
| | | | | | | | | | race condition in the case where the given path is a directory, and some other user can move that directory, and create a symlink while this method is executing. Reported by: Nicholas Jefferson <nicholas at pythonic.com.au> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb: revert r30863, because it causes too many noise.usa2011-02-141-14/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit::RequireFiles#non_options): skipnobu2011-02-131-2/+14
| | | | | | test suites failed to load instead of mere messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb (Date#===): [ruby-core:35127]tadf2011-02-122-5/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit::Options#process_args): alwaysnobu2011-02-121-3/+7
| | | | | | | | | | | | return options. * lib/test/unit.rb (Test::Unit::RequireFiles#non_options): return if any test case get loaded. * lib/test/unit.rb (Test::Unit::AutoRunner#initialize): do not add default directory if it is nil. * lib/test/unit.rb (Test::Unit::AutoRunner#process_args): return true if any test cases to run. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (assert_include): add alias.nobu2011-02-121-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit::AutoRunner#initialize): usenobu2011-02-121-2/+2
| | | | | | default_dir if no test case given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit::Runner): rename from Test::Unit::Mini.nobu2011-02-121-8/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit::GlobOption#non_options): run testsnobu2011-02-121-0/+1
| | | | | | under base directory if no argument given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bin/testrb, test/runner.rb, lib/test/unit.rb: improve backwardnobu2011-02-111-19/+56
| | | | | | compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (assert_no_match): alias fornobu2011-02-111-0/+1
| | | | | | backward compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/benchmark.rb (Benchmark#bmbm): use ensure clause instead ofnagachika2011-02-071-2/+2
| | | | | | Object#tap to restore STDOUT.sync. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTP#connect): support SNI (Server Nameakr2011-02-071-0/+2
| | | | | | | | Indication) for HTTPS. [ruby-dev:43164] http://stackoverflow.com/questions/4685736/openssl-server-name-indication-support-in-ruby git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Upgrade to RDoc 3.5.3. Fixes [Bug #4376]drbrain2011-02-075-17/+63
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):kosaki2011-02-051-3/+6
| | | | | | | | | revert r30796. r30797 and r30798 are an alternative fix. [ruby-dev:43174] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (assert_block): move fromnobu2011-02-051-0/+4
| | | | | | test/fileutils/fileasserts.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):kosaki2011-02-051-6/+3
| | | | | | | | msg can be passed nil. [Bug #4371] [ruby-dev:43174] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import RDoc 3.5.2drbrain2011-02-0510-272/+402
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (FileUtils::LowMethods): make low level methodsnobu2011-02-041-0/+8
| | | | | | | in NoWrite and DryRun to do nothing. [ruby-dev:43129] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Commit files I forgot to adddrbrain2011-02-021-0/+114
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import RDoc 3.5.1drbrain2011-02-0232-232/+758
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import rubygems 1.5.0 (released version @ 1fb59d0)ryan2011-02-0110-37/+90
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/benchmark.rb: fix benchmarck to work with current ruby.naruse2011-01-311-87/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | patched by Benoit Daloze [ruby-core:33846] [ruby-dev:43143] merged from https://github.com/eregon/ruby/commits/benchmark * lib/benchmark (Report#width): update documentation * lib/benchmark: document the return value of #benchmark and the :list attribute in Report * lib/benchmark (Tms#format): rename variables, use String#% instead of Kernel.format * lib/benchmark: remove undocumented Benchmark::times (an alias of Process::times used twice) * lib/benchmark (#benchmark): use label_width for the caption * lib/benchmark (Tms#initialize): rename variables * lib/benchmark: allow title to not be a String and call #to_s * lib/benchmark (Benchmark#bm): return an Array of the times with the labels * lib/benchmark: correct output for Benchmark#bmbm (remove the extra space) * lib/benchmark: add a few tests for Benchmark::Tms output * lib/benchmark: improve style (enumerators, ljust, unused vars) * lib/benchmark: add spec about output and return value * lib/benchmark: improve basic style and consistency no parenthesis for print and use interpolation instead of printf * lib/benchmark: remove unnecessary conversions and variables * lib/benchmark: correct indentation * lib/benchmark: rename the FMTSTR constant and variable to FORMAT * lib/benchmark: remove useless exception * test/benchmark: remove unused variable warnings git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/locale.rb (IRB::Locale::#search_file):yugui2011-01-311-1/+1
| | | | | | Gem might be undefined if --disable-gems. [ruby-core:34990] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import rubygems 1.5.0 (release candidate @ 09893d9)ryan2011-01-2818-73/+1216
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Importing rubygems @ c2d4131: Deal with platforms that have DLEXT2 == nil. ↵ryan2011-01-197-80/+160
| | | | | | Fixes RF#28867 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Finish removing code, (fixes sources command test).drbrain2011-01-191-6/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Always enable rubygems/custom_requiredrbrain2011-01-191-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Remove require of deleted file in RubyGems.drbrain2011-01-195-21/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import rubygems 1.5.0 (release candidate)ryan2011-01-1986-1743/+1511
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Reverting nobu's rubygems patch. It needs: 1) to have a test, 2) to be UTF8, ↵ryan2011-01-181-1/+5
| | | | | | and 3) to work on 1.8 (see Gem.read_binary). (It should also be submitted to the rubygems repo or tracker) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/comletion.rb: Irb tab completion support for XX::method forms.keiju2011-01-181-18/+31
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/logger.rb: added RDoc document for logging message escapenahi2011-01-181-2/+16
| | | | | | | by Hal Brodigan. See #3869 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/source_index.rb (Gem#load_specification): read innobu2011-01-171-5/+1
| | | | | | | binary mode to get rid of failures caused by mismatch between default internal encoding and encoding comments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (warnflags): add -Werror=implicit-function-declarationnobu2011-01-151-6/+11
| | | | | | | | | if available. * lib/mkmf.rb (init_mkmf): ignore warnings in mkmf tests. * test/mkmf/base.rb (setup, teardown): restore config values. * test/mkmf/test_flags.rb: split from test_find_executable.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: use bytesize for binary strings.naruse2011-01-141-2/+2
| | | | | | patched by Yoshimasa Niwa. [ruby-core:34222] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Reduced gem_prelude to just require rubygems. Reviewed by Evan Phoenixryan2011-01-141-19/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update comment.akr2011-01-121-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTP#connect): makes it timeout duringyugui2011-01-121-14/+20
| | | | | | | | | | | | | SSL handshake too. [ruby-core:34203] Patch by Marc Slemko. * test/net/http/test_http.rb (TestNetHTTP_v1_2#test_timeout_during_HTTP_session): test for [ruby-core:34203] * test/net/http/test_https.rb (TestNetHTTPS#test_timeout_during_SSL_handshake): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/locale.rb (IRB::Locale::LOCALE_NAME_RE):yugui2011-01-091-10/+8
| | | | | | | | some platoform has a locale without territory but with encoding. (#each_sub_locale): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (configuration): backref needs to capture.nobu2011-01-071-3/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): ignore rest from first dot fromusa2011-01-061-1/+1
| | | | | | | | TARGET to generate init function name. this is followup of r30464. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/protocol.rb (eof?): BufferedIO should proxy eof? to thetenderlove2011-01-061-0/+4
| | | | | | underlying IO object. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (configuration): fixing gsub when multiple error flagstenderlove2011-01-061-1/+3
| | | | | | are passed to GCC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTP#get): A header hash given should notknu2011-01-051-1/+3
| | | | | | be modified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/locale.rb (IRB::Locale#search_file): make it possibleyugui2011-01-051-42/+31
| | | | | | | | | | to load a localization from a gem. (IRB::Locale#lc_path): obsoleted because of the change of #search_file (IRB::Locale#each_localized_path): new private method, based on lc_path (IRB::Locale#find): follows the change of #search_file. (IRB::Locale#load): removed duplicate with #find. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (warnflags), lib/mkmf.rb (configuration): turnnobu2010-12-311-1/+5
| | | | | | | | warnings into errors only for bundled extensions. [ruby-core:33815] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Deprecate Rake::RDocTask in favor of RDoc::Taskdrbrain2010-12-281-206/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e