summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* * lib/cgi/core.rb (read_multipart): When path is not defined,mame2009-04-161-1/+7
| | | | | | | | define local_path as a method always returning nil instead of aliasing. This is because StringIO#path no longer exists. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (what_type?): fixed typo, and refined for member ofnobu2009-04-081-25/+51
| | | | | | | aggregation types. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (Logging.postpone): copy postponed output always.nobu2009-04-081-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (what_type?): fixed typo.nobu2009-04-081-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/completion.rb (IRB::InputCompletor::Operators): Addknu2009-04-032-11/+6
| | | | | | | | | | | | | | | | | overloadable negative operators. * lib/irb/ruby-lex.rb (RubyLex#lex_init): Support overloadable negative operators. * lib/irb/ruby-lex.rb (RubyLex#identify_identifier): Minus signs need to be escaped in regexp character class. * misc/ruby-mode.el (ruby-font-lock-keywords, ruby-parse-partial): Support overloadable negative operators. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/getoptlong.rb: remove unused udoc/usage from example.matz2009-04-021-1/+0
| | | | | | [ruby-core:23098] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): support for parallel make. anobu2009-04-011-1/+1
| | | | | | | patch from Takuto Matsuu at [ruby-dev:38220]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb (Pathname#relative_path_from): compares pathnobu2009-03-281-2/+9
| | | | | | | | components according to system default case-sensitiveness. [ruby-core:22829] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (link_command, cc_command, cpp_command): should notnobu2009-03-271-3/+0
| | | | | | | override extout defined in extmk.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (what_type?): checks more restrictively, andnobu2009-03-271-15/+31
| | | | | | | supports universal binary. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml/rubytypes.rb (String#is_binary_data?): TAB would benobu2009-03-262-10/+4
| | | | | | | | | | | | usually considered to be included in text data. * lib/rdoc/parser.rb (RDoc::Parser.binary?): blksize may be nil and is irrelevant to whether a file is binary. copied from above since TAB and newlines would be usually considered to be included in text data. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/ri/paths.rb (RDoc::RI::Paths): considersnobu2009-03-261-2/+9
| | | | | | | --program-prefix and --program-suffix. reapplied r19923. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_mWaitReadable): defined.akr2009-03-191-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (rb_mWaitWritable): defined. (io_getpartial): extend IO::WaitReadable on EWOULDBLOCK and EAGAIN. (rb_io_write_nonblock): extend IO::WaitWritable on EWOULDBLOCK and EAGAIN. * error.c (make_errno_exc): extracted from rb_sys_fail. (rb_mod_sys_fail): new function. * include/ruby/ruby.h (rb_mod_sys_fail): declared. (rb_mWaitReadable): declared. (rb_mWaitWritable): declared. * ext/socket/init.c (rsock_s_recvfrom_nonblock): extend IO::WaitReadable on EWOULDBLOCK and EAGAIN. (rsock_s_accept_nonblock): extend IO::WaitReadable on EWOULDBLOCK, EAGAIN, ECONNABORTED and EPROTO. * ext/socket/socket.c (sock_connect_nonblock): extend IO::WaitWritable on EINPROGRESS. * ext/socket/ancdata.c (bsock_sendmsg_internal): extend IO::WaitWritable on EWOULDBLOCK and EAGAIN. (bsock_recvmsg_internal): extend IO::WaitReadable on EWOULDBLOCK and EAGAIN. * ext/openssl/ossl_ssl.c (ossl_ssl_read_internal): raise SSLError extended by IO::WaitReadable/IO::WaitWritable on SSL_ERROR_WANT_READ/SSL_ERROR_WANT_WRITE. * ext/openssl/ossl.c (ossl_make_error): extracted from ossl_raise. (ossl_exc_new): new function. * ext/openssl/ossl.h (ossl_exc_new): declared. * lib/net/protocol.rb (rbuf_fill): rescue IO::WaitReadable and IO::WaitWritable. [ruby-core:22539], [ruby-dev:38140] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (RUBY_CHECK_SIZEOF): allows qualified name.nobu2009-03-191-6/+17
| | | | | | | | | | | | | | * configure.in (RUBY_REPLACE_TYPE): checks more strictly. * configure.in (struct stat.st_size, struct stat.st_blocks), (struct stat.st_ino): check for size. * lib/mkmf.rb (check_sizeof): allows qualified name. * file.c (rb_stat_ino, rb_stat_blocks): check by size. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/drb/drb.rb (open_server_inaddr_any): fixed multiple networkseki2009-03-171-9/+4
| | | | | | | | families problem. a patch from Charl Matthee at [ruby-core:21033]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb (Pathname#sub): set $~ in block.binding.akr2009-03-171-1/+15
| | | | | | | [ruby-dev:38173] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/installer.rb (Gem::Installer#shebang): fix for envnobu2009-03-151-18/+13
| | | | | | | shebang. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (CXX_EXT): checks for case-sensitive filesystem withnobu2009-03-141-10/+10
| | | | | | | FNM_SYSCASE rather than build_os. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (FileUtils#fu_get_gid): stringify groupmatz2009-03-131-0/+1
| | | | | | argument before making regexp match. [ruby-dev:38155] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rake: updated to rake code to rake-0.8.4 source code base.nobu2009-03-093-54/+123
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/installer.rb (Gem::Installer#initialize): env maynobu2009-03-091-16/+23
| | | | | | | | | | | not be under /usr/bin. * lib/rubygems/installer.rb (Gem::Installer#shebang): uses /bin/sh if shebang has any options, since env shebang trick does not work with options. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/securerandom.rb (SecureRandom.urlsafe_base64): add optionalakr2009-03-061-6/+13
| | | | | | | argument to add padding. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rake/loaders/makefile.rb (Rake::MakefileLoader#load): deals withnobu2009-03-061-9/+14
| | | | | | | escaped spaces. incorporated from rake 0.8.4. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rake/testtask.rb (Rake::TestTask#define): passes each libsnobu2009-03-061-2/+2
| | | | | | | as each arguments with expanded. incorporated from rake 0.8.4. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/digest/digest_adapter.rb: removed.nobu2009-03-064-60/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/**/*.rb: removed unnecessary shbang lines.nobu2009-03-0619-34/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {ext,lib,test}/**/*.rb: removed trailing spaces.nobu2009-03-06268-3565/+3565
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tmpdir.rb (Dir.tmpdir): not use USERPROFILE, and ignoresnobu2009-03-051-4/+3
| | | | | | | non-existent directory. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/thread.rb (SizedQueue#push): fix limit condition.mame2009-03-041-1/+1
| | | | | | | [ruby-dev:38135] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb: Some minor documentation fixes from Gregory Brown.jeg22009-03-031-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb: A patch from Madoka Yakamamoto to prevent an infinitejeg22009-03-031-3/+1
| | | | | | | | loop while reading some encodings. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/prime.rb (Prime::prime?): used to return a wrong answer.yugui2009-03-031-0/+2
| | | | | | | | [ruby-core:22646]. * test/test_prime.rb (test_prime?): test case for [ruby-core:22646]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake), lib/mkmf.rb (create_makefile): $objs andnobu2009-03-031-3/+2
| | | | | | | $srcs are always Array or nil now. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/securerandom.rb (SecureRandom.urlsafe_base64): delete padding.akr2009-03-021-3/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/common.rb (URI::Parser#escape): escaped string is asciinobu2009-03-021-2/+2
| | | | | | | | | | only. * lib/uri/common.rb (URI::Parser#unescape): converts bytewise. [ruby-dev:38005], [ruby-dev:38110] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merged a patch from Alessandro Di Maria in [ruby-core:22560].seki2009-03-011-10/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-03-011-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cfunc.c (rb_dlcfunc_call): fix for stdcall and missingnobu2009-03-011-2/+2
| | | | | | | | | | | | | | argument numbers. [ruby-core:22601] * ext/dl/dl.h (DLSTACK_PROTO0_): added. * ext/dl/mkcallback.rb (gencallback, gen_callback_file), (rb_dl_init_callbacks): omit stdcall functions unless supported. * lib/rubygems/config_file.rb (SHGetFolderPath): stdcall. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: suppress warnings of non-existing instance variableakr2009-02-281-1/+4
| | | | | | | access for SSL. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update doc (add Pathname#binread)kazu2009-02-271-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb: don't define assert_not_* if alreadyakr2009-02-271-2/+4
| | | | | | | overridden. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ostruct.rb (modifiable): check if really frozen.nobu2009-02-271-2/+4
| | | | | | | [ruby-core:22559] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (config.status): use un.rb as cp instead ofusa2009-02-251-1/+1
| | | | | | | | | | | cmd.exe's copy command. * lib/mkmf.rb (create_makefile): no longer need to convert path separator when copying file. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb (Pathname#foreachline): removed wronglymatz2009-02-231-6/+0
| | | | | | resurrected method. [ruby-dev:38065] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (mv): added description for the case ofnobu2009-02-231-1/+1
| | | | | | | different partitions. [ruby-talk:329072] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb (Pathname#binread): added. [ruby-dev:37952]matz2009-02-211-1/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tmpdir.rb (@@systmpdir): File.expand_path also joins paths.nobu2009-02-191-4/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): added phony targets.nobu2009-02-191-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): removes directories in the depthnobu2009-02-191-2/+1
| | | | | | | order. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): creates target directories beforenobu2009-02-191-2/+1
| | | | | | | copying. [ruby-core:21958] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e