aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* * lib/optparse.rb (Regexp): fix incorrect options when casting tonobu2012-01-161-1/+2
| | | | | | | | a Regexp, and suppress encoding option warnings. https://github.com/ruby/ruby/pull/82 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/shellwords.rb (Shellwords#shellescape): shellescape() nowknu2012-01-121-2/+12
| | | | | | | | | | stringifies the given object using to_s. * lib/shellwords.rb (Shellwords#shelljoin): shelljoin() accepts non-string objects in the given array, each of which is stringified using to_s. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/shellwords.rb: Fix rdoc markups.knu2012-01-121-17/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/shellwords.rb (Shellwords#shellsplit): Fix a bug whereknu2012-01-121-1/+1
| | | | | | | consecutive backslashes in double quotes are all removed except the one at the tail. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: fix r33904 and revert r33905. initialize globalnobu2012-01-121-76/+66
| | | | | | | | variables with init_mkmf before initializing constants. [ruby-dev:45124] [Bug #5879] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: verbose-mode can use by RM, RMDIRS, etc.kazu2012-01-111-13/+13
| | | | | | (e.g. make V=1 realclean) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tempfile.rb (Tempfile#_close): clear @tempfile and @data[1] evennagachika2012-01-091-4/+7
| | | | | | | | when an exception is raised at @tempfile.close. [ruby-dev:45113] * lib/tempfile.rb (Tempfile#unlink): fix a typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/common.rb (URI::Parser#initialize_regexp):naruse2012-01-051-10/+10
| | | | | | use \A \z instead of ^ $. [Bug #5843] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/parsers/baseparser.rb: use private instead of _xxxkou2012-01-031-2/+3
| | | | | | | | method name. This is Ruby code not Python code. refs #5696 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/parsers/baseparser.rb: rexml BaseParser usesayumin2012-01-031-13/+9
| | | | | | | instance_eval unnecessarily on listener add. patch from Charles Nutter. [Bug #5696] [ruby-core:41437] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/securerandom.rb (random_bytes): use IO#read instead ofakr2012-01-021-1/+1
| | | | | | | | IO#readpartial to make the intent more clear. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/parallel.rb: use pack("m0") instead ofkazu2012-01-022-5/+5
| | | | | | | pack("m").gsub("\n",""). * lib/test/unit.rb (Test::Unit::Runner::Worker#run): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit::Runner::Worker#run): usekazu2012-01-021-1/+1
| | | | | | File.basename with suffix instead of gsub. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit::Runner#_run_parallel): find maykazu2012-01-021-1/+2
| | | | | | return nil and nil can not dup. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/shellwords.rb (Shellwords#shellescape): Drop the //n flagknu2012-01-011-3/+9
| | | | | | | that only causes warnings with no real effect. [Bug #5637] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb (symmetric?): Trivial optimizationmarcandre2011-12-301-2/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit::Runner::Worker#_run_parallels): fixnagachika2011-12-291-1/+3
| | | | | | | premature exit when all workers' status are :ready or :prepare. [ruby-dev:45061] [Bug #5822] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (FileUtils::Entry_#entries): use utility methodnobu2011-12-281-1/+1
| | | | | | | instead of typoed regexp. [ruby-core:41829] [Bug #5817] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Worker#close): "closing IO if IO is closed"sorah2011-12-271-1/+1
| | | | | | should be "closing IO if IO isn't closed" git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb: Avoid zombie processes on "--separate" optionsorah2011-12-261-1/+4
| | | | | | added at r34121. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (_run_parallel):sorah2011-12-252-8/+35
| | | | | | | | | | | New option "--separate" for test/unit; when running tests with this option, a job process will be restarted after one testcase has done. This means all testcases will run with separated process. * lib/test/unit/parallel.rb: Fix for above. Now parallel.rb puts "ready!" for first ready, "ready" for afters. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tempfile.rb (Tempfile#initialize): warn if a block is given.akr2011-12-231-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Cosmetic changes of lib/pstore.rb. Patch by Masaki Matsushita. See #5248.nahi2011-12-201-17/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * PStore content update perf optimization. Patch by Masaki Matsushita.nahi2011-12-201-29/+5
| | | | | | | | | | | | | | | | | | | | | See #5248. * lib/pstore.rb (save_data): * Delete inadequate Marshal check. * Deferred file truncation: when writing the new content, truncate the saved file to the data size after writing the data, instead of truncating whole bytes before writing data. * Deferred MD5 calculation: when comparing MD5 hash to check the content modification, calculate MD5 hash of new data iif the content length is differ from the old one. * Compare content size with String#bytesize instead of String#size. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updating documentation linktenderlove2011-12-181-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update doc.akr2011-12-171-5/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk,Makefile.in,win32/Makefile.sub (ECHO1): move platformusa2011-12-141-3/+1
| | | | | | | | | | specific hack from common.mk to Makefile.in (and win32/Makefile.sub). [Bug #5711] * lib/mkmf.rb: we can generate Makefile as we like. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httpresponse.rb (setup_header): 1xx responsestenderlove2011-12-121-1/+1
| | | | | | | | are allowed to have Keep-Alive connections. * test/webrick/test_httpresponse.rb: corresponding test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httpresponse.rb (setup_header): 204 and 304 responsestenderlove2011-12-121-1/+1
| | | | | | | | are allowed to have a Keep-Alive connection. [ruby-core:41581] * test/webrick/test_httpresponse.rb: corresponding test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: includes the sequence number of UID in a errorshugo2011-12-111-3/+3
| | | | | | | message. suggested by art lussos. [ruby-core:41413] [Feature #5692] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tempfile.rb: don't use lock directory. [ruby-dev:39197]akr2011-12-041-24/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a typo.akr2011-12-041-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tempfile.rb (Tempfile::MAX_TRY): remove unused constant.akr2011-12-041-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb: fix rdoc.ktsj2011-12-041-3/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/delegate.rb (Delegator#methods): Kernel#methods receivesnaruse2011-12-041-2/+2
| | | | | | zero or one argument. [ruby-core:37118] [Bug #4882] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in (CFLAGS): append ARCH_FLAG.nobu2011-12-021-2/+2
| | | | | | * configure.in (ARCH_FLAG): exclude from CFLAGS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (MakeMakefile#try_func): fix broken patch at r33834.nobu2011-12-011-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix r33904.naruse2011-11-301-0/+2
| | | | | | | | | It breaks following tests if RUBYOPT=-w * test_class_build(TestGemExtExtConfBuilder) * test_class_build_rbconfig_make_prog(TestGemExtExtConfBuilder) * test_class_build_env_make(TestGemExtExtConfBuilder) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: Use MakeMakefile's rm_f to avoid conflict with Rake ordrbrain2011-11-301-1818/+1856
| | | | | | | | FileUtils. * test/ruby/test_module.rb: Hide MakeMakefile's inclusion in Object git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/encoding.rb (RDoc::Encoding.read_file): fixup newline charsusa2011-11-301-0/+1
| | | | | | | | | | | | | on Windows. see https://github.com/rdoc/rdoc/issues/87 * test/rdoc/test_rdoc_markup_pre_process.rb (TestRDocMarkupPreProcess#test_include_file, TestRDocMarkupPreProcess#test_include_file_encoding_incompatible): follow above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Don't break tests.naruse2011-11-291-1919/+1856
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: Fix indentations of constants at end of module.drbrain2011-11-291-39/+66
| | | | | | | Document some constants. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: Wrap comments to 78 columns and clean up formatting.drbrain2011-11-281-183/+206
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: Wrap mkmf.rb in module MakeMakefile to clean up Objectdrbrain2011-11-281-1804/+1817
| | | | | | | | | documentation. [Ruby 1.9 - Feature #5658] * ext/extmk.rb: Use MakeMakefile::CONFIG instead of Object::CONFIG * test/mkmf/base.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix typo in r33849.naruse2011-11-261-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTP::SSL_IVNAMES): rerefix 33701.naruse2011-11-261-8/+19
| | | | | | | SSL_ATTRIBUTES stores names for set_params, they are symbol. SSL_IVNAMES stores instance variable names. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTP.get_response): enable use_sslnaruse2011-11-261-2/+4
| | | | | | | | | if given URI object is https. patched by Mark Ferlatte [ruby-core:40665] [Bug #5545] * lib/net/http.rb (Net::HTTP.post_form): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTP::SSL_ATTRIBUTES): refix 33701.naruse2011-11-261-14/+13
| | | | | | store instance variable symbol names. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: get rid of warnings of mkmf.rb if -Wmissing-declarationskosaki2011-11-241-6/+11
| | | | | | | and/or -Wold-style-definition warnings if specified. Patch by Nikolai Weibull. Thank you! [Bug #5459] [ruby-core:40200] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use proc to delay making exception_details.naruse2011-11-221-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e