aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* * lib/net/ftp.rb (read_timeout=, open_timeout=): supported timeout.shugo2012-03-311-8/+72
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/task.rb: suppress overriding deprecated class warning.nobu2012-03-291-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (terminal_width, del_status_line, put_status):nobu2012-03-292-16/+38
| | | | | | | extract as methods. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (parse227, parse228, parse229): don't use $~.shugo2012-03-261-8/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (parse227, parse228, parse229): don't use localshugo2012-03-261-4/+4
| | | | | | | variables defined by named capture for other Ruby implementations such as Rubinius. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (parse_pasv_port): refactored.shugo2012-03-261-2/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (parse227, parse228, parse229): refactored.shugo2012-03-261-42/+29
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* TRY_LINK needs EXEEXTnobu2012-03-221-1/+1
| | | | | | * lib/mkmf.rb (TRY_LINK): need EXEEXT for cross-compiling. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* workaround for mingwnobu2012-03-221-3/+6
| | | | | | | | * lib/mkmf.rb (try_link0, try_compile, try_cpp): check if the target file get created actually. workaround for the case that the exit status of a cygwin program seems lost on mingw. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove conftest filesnobu2012-03-221-4/+8
| | | | | | * lib/mkmf.rb (try_constant): remove conftest files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_thread: test_condvar_wait_not_owner duplicates test_condvar_nolocknobu2012-03-201-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/profiler.rb: support calling singleton methods ofktsj2012-03-181-3/+11
| | | | | | an instance of BasicObject. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (initialize): raise Net::IMAP::Error when theshugo2012-03-161-0/+4
| | | | | | | connection is closed without a greeting response. [ruby-core:40938] [Bug #5616] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (rfc822_text): ignore [] after RFC822.shugo2012-03-161-0/+5
| | | | | | [ruby-core:40945] [Bug #5620] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Bug #5350nobu2012-03-131-38/+10
| | | | | | | * gc.c: add ObjectSpace::WeakMap. [ruby-dev:44565][Bug #5350] * lib/weakref.rb: use WeakMap instead of _id2ref. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tmpdir.rb (Dir::tmpdir): test the current directory suitable forakr2012-03-121-4/+7
| | | | | | | temporary directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (fu_have_symlink?): specify TypeError for rescueakr2012-03-121-1/+1
| | | | | | | clause. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tmpdir.rb: update document for changingakr2012-03-111-2/+3
| | | | | | | | | | FileUtils.remove_entry_secure to FileUtils.remove_entry. * NEWS: add incompatiblity note for lib/tmpdir.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tmpdir.rb (Dir.tmpdir): should not use world-writable butnobu2012-03-111-2/+7
| | | | | | | non-sticky directory. * lib/tmpdir.rb (Dir.mktmpdir): check the parent directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb: remove tailing spaces.nobu2012-03-111-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb: Put error message into STDERR if failed to lanchsorah2012-03-112-23/+38
| | | | | | | | | worker (job) process. [ruby-dev:44802] [Bug #5577] * lib/test/unit/parallel.rb: If failed to increment_io, exit with code 2. [ruby-dev:44802] [Bug #5577] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb (module XMLRPC): fix typo.nagachika2012-03-071-1/+1
| | | | | | | * test/xmlrpc/test_client.rb (test_async_call): add test for XMLRPC::Client#call_async to check above fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use factory method for constructing Net::HTTP objectstenderlove2012-03-061-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/parser.rb: support i8 types. Thanks Stas Kelvich!tenderlove2012-03-061-5/+5
| | | | | | | | [ruby-core:29246] [Feature #3090] * test/xmlrpc/test_client.rb: supporting test git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb: assume servers that do not send a Content-Typetenderlove2012-03-061-1/+3
| | | | | | | | | header are sending 'text/xml'. Thanks Nathan Leavitt! [ruby-core:41204] [Bug #5660] * test/xmlrpc/test_client.rb: supporting test git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb: switch net/http post2 calls to moderntenderlove2012-03-051-3/+7
| | | | | | `request_post` methods. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove another call to Net::HTTP.version_1_2tenderlove2012-03-031-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb (initialize): net/http defaults to 1_2 in 1.8+,tenderlove2012-03-031-1/+0
| | | | | | so we can safely remove the call to enable it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb (new2): use URI for uri parsing.tenderlove2012-03-021-15/+14
| | | | | | | * test/xmlrpc/test_client.rb: test that query params are passed to the client constructor. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb (new2): raises an ArgumentError on badtenderlove2012-03-021-2/+2
| | | | | | | arguments. * test/xmlrpc/test_client.rb: tests for bad uris git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb (new2): fix custom port specification when antenderlove2012-03-021-1/+7
| | | | | | | SSL uri is used. * test/xmlrpc/test_client.rb: tests for XMLRPC::Client.new2 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb (Time#xmlschema): use strftime specifiers instead ofnobu2012-02-281-13/+5
| | | | | | | fractional exponential calcuation which yields undesirable result. [ruby-core:42997][Bug #6100] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/protocol.rb: Add OpenTimeout subclass of Timeout::Errordrbrain2012-02-285-14/+15
| | | | | | | | | | | * lib/net/pop.rb: Modernize Timeout usage. Patch by Eric Wong. Use Net::OpenTimeout instead of Timeout::Error. [Bug #5765] * lib/net/http.rb: ditto * lib/net/smtp.rb: ditto * lib/net/telnet.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: Retry HTTP requests for additional network errors.drbrain2012-02-281-9/+19
| | | | | | | | | Introduce OpenTimeout subclass of Timeout::Error. [Bug #6001] * test/net/http/test_http.rb: Reduce timeout to 0.01s for faster test * test/net/http/test_https.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (try_cppflags, try_cflags, try_ldflags): replace thenobu2012-02-271-0/+18
| | | | | | | target flags if the given flag is accepted. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit::Runner#puke): skips with nonobu2012-02-271-0/+1
| | | | | | | messages should be trivial. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb: use chomp(?/) instead of sub to optimize and avoidnaruse2012-02-251-4/+4
| | | | | | to regexping invalid string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: Fix documentation.ayumin2012-02-241-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTP#transport_request): Fix infinite loopdrbrain2012-02-241-23/+25
| | | | | | | | | upon EOFError or Errno::ECONNRESET where count is reset to 0. * test/net/http/test_http.rb (class TestNetHTTPKeepAlive): Test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Clean whitespacedrbrain2012-02-231-18/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/profiler.rb: Add Profiler documentation by Gonzalo Rodriguez.drbrain2012-02-231-0/+59
| | | | | | | [Bug #5816] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ostruct.rb (delete_field): Bug fix so previous value is returned.marcandre2012-02-221-1/+1
| | | | | | | | Patch by Nick Recobra [Bug #6063] * test/ostruct/test_ostruct.rb: Test for above git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (setup_options): add option "--retry" as oppositesorah2012-02-221-3/+9
| | | | | | for "--no-retry" git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (setup_options): add option "--show-skip" tosorah2012-02-221-0/+4
| | | | | | cancel "--hide-skip" (-q) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb: revert a line modified accidentally at r34669.shirosaki2012-02-201-1/+1
| | | | | | | This fixes mingw test errors in TestDir_M17N. [ruby-core:42728] [Feature #4970] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb: refactored FileUtil methods to use thetenderlove2012-02-171-190/+189
| | | | | | | | | `define_command` API. Patch from 7rans <transfire@gmail.com> * test/fileutils/test_dryrun.rb: corresponding test refactoring * test/fileutils/test_nowrite.rb: ditto * test/fileutils/test_verbose.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_header): log the content of header.nobu2012-02-171-3/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/abbrev.rb (Array#abbrev): add missing '"' in documentation.kazu2012-02-151-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ostruct.rb: Create getters and setters after dup.marcandre2012-02-151-0/+1
| | | | | | [Bug #6028] [rubyspecs:0380bcc] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ostruct.rb: Simplify and fix rdoc.marcandre2012-02-151-15/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e