summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2012-12-02Make an internal block of Generator return nil instead of self.knu
* lib/generator.rb (Generator#initialize): Make an internal block return nil instead of self. [Bug #7493] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@38145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-18[ruby-dev:45650]nobu
* lib/mkmf.rb (MakeMakefile#configuration): keep space at end of OUTFLAG and COUTFLAG. [ruby-dev:45650] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@35698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-06merge revision(s) 34908:nobu
* lib/yaml/rubytypes.rb (Exception.yaml_new): fix bug that causes YAML serialization problem for Exception. Exception#initialize doesn't use visible instance variable for the exception message, so call the method with the message. patched by Jingwen Owen Ou <jingweno AT gmail.com>. http://github.com/ruby/ruby/pull/41 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@34919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-01* lib/webrick/utils.rb: fix fcntl call.akr
* lib/drb/unix.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@33611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-29* lib/securerandom.rb: call OpenSSL::Random.seed at the akr
SecureRandom.random_bytes call. based on the patch by Masahiro Tomita. [ruby-dev:44270] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-17Backport r24500; fixes #2556.knu
* lib/date.rb (complete_frags): Monday must be suitable for %W's default day. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-13* lib/securerandom.rb (SecureRandom.random_bytes): modify PRNG stateakr
to prevent random number sequence repeatation at forked child process which has same pid. reported by Eric Wong. [ruby-core:35765] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-09reedit previous committadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@31969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-09 * lib/date.rb: zone_to_diff in this version is just class method.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@31965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-09 * lib/date.rb (time_to_day_fraction): accepts flonum without Float#to_r.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@31963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-15* lib/uri/generic.rb (#route_from_path): Fix a bug whereknu
URI('http://h/b/').route_to('http://h/b') wrongly returned './' (should be '../b'). [Bug #4476] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@31578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-15* lib/fileutils.rb (FileUtils#touch): Fix corrupted output.knu
ref [ruby-dev:43401] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@31575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-18merge revision(s) 30896:shyouhei
* lib/fileutils.rb (FileUtils::remove_entry_secure): there is a 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/branches/ruby_1_8@30905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-23merge revision(s) 27388:27390:shyouhei
* lib/resolv.rb (Resolv::IPv4::Regex): make it only accept 0 to 255. [ruby-core:29501] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@30302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-03* lib/mkmf.rb (check_sizeof): should return integer always.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@30068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-18* lib/net/http.rb (transport_request): @socket may be nil.naruse
patched by Egbert Eich [ruby-core:32829] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@29524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-01* lib/rdoc/ri/ri_paths.rb (RI::Paths): use RbConfig instead ofnobu
obsolete and deprecated Config. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@29383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-24* lib/pathname.rb (relative_path_from): backport r23093 and r25440usa
from ruby_1_9_2. [ruby-core:32415] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@29333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-27* lib/net/imap.rb (initialize): sets sync_close to true.shugo
Thanks, Hiroshi NAKAMURA. [ruby-core:31753] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@29111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-16merge revision(s) 28997:shyouhei
* lib/webrick/httpresponse.rb (WEBrick::HTTPResponse#set_error): Fix for possible cross-site scripting (CVE-2010-0541). Found by Apple, reported by Hideki Yamane. Patch by Hirokazu Nishio <nishio.hirokazu AT gmail.com>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@29002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-10merge revision(s) 28945:naruse
* lib/webrick/httprequest.rb (WEBrick::HTTPRequest::parse_uri): rollup leading slashes. [ruby-core:31657] patched by Jamison Wilde NOTE: //authority/path is valid relative URI both RFC2396 and RFC3986. So when give a relative URI-like string to URI lib, users must care leading slashes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@28949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-07* mkconfig.rb, lib/rbconfig/obsolete.rb: warn obsolete andnobu
deprecated Config. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@28900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-29 * lib/webrick/ssl.rb (WEBrick::Utils.create_self_signed_cert): wronglynahi
created dummy SSL certificate with version == 3 (no such version) and serial == 0 (must be >0). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@28784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-25* lib/fileutils.rb (FileUtils#rmdir): Backport -p (parents). Thisknu
fixes "make clean". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@28436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-14raise DRbConnError instead of ArgumentError if too many arguments.seki
[ruby-dev:41481] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@28317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-05* lib/matrix.rb: Matrix library copied from 1.9. It is now identicalmarcandre
except for methods dealing with Complex numbers which are absent. [ruby-core:26268] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@28168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-28* lib/mkmf.rb (checking_for): ignore toplevel.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@28047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08* lib/net/imap.rb: backported exception handling from trunk.shugo
[ruby-core:29745] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-02* lib/cgi.rb (CGI::NEEDS_BINMODE): check if O_BINARY is defined.nobu
[ruby-core:29922] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-01* lib/cgi.rb (CGI::NEEDS_BINMODE): check if O_BINARY value insteadnobu
of fragile check by platform name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-01* lib/mkmf.rb (dir_config): should not modify argument arraysnobu
themselves. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-29* lib/thwait.rb (ThreadsWait#join): refined rdoc again.nobu
[ruby-core:29863] [ruby-dev:41092] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-29* lib/thwait.rb (ThreadsWait#join): refined rdoc. [ruby-core:29863]nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-27* lib/net/smtp.rb (Net::SMTP#rcptto_list): fixed typo.nobu
[ruby-core:29809] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-25* lib/net/imap.rb (fetch_internal): do not quote message data itemshugo
names. Thanks, Eric Hodel. [ruby-core:23508] Conflicts: ChangeLog git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-25* lib/net/imap (encode_utf7): encode & properly. Thanks, Kengoshugo
Matsuyama. [ruby-dev:38063] backported from trunk. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-19 * lib/fileutils.rb (FileUtils::cp_r): dup needed here; options areshyouhei
destroyed otherwise. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-19* lib/timeout.rb (Timeout#timeout): propagate errors to thenobu
caller. [ruby-dev:41010]' git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16* lib/net/smtp.rb (Net::SMTP#rcptto_list): continue when at leastnobu
one RCPT is accepted. based on a patch from Kero van Gelder at [ruby-core:26190]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16* {ext,lib,test}/**/*.rb: removed trailing spaces.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-22 * lib/date.rb (Date#>>): fixed. [ruby-core:28011]tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-20* lib: fixed typo. a patch by Sho Hashimoto in [ruby-dev:40716].nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-28* lib/open3.rb (Open3#popen3): ignore trap and at_exit also whennobu
exec failed. [ruby-dev:30181] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-28* lib/open3.rb (Open3#popen3): use Thread.detach instead ofnobu
double-fork, so that the exit status can be obtained. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-24* lib/resolv.rb: fix [ruby-core:28320] reported by Paul Clegg.akr
(Resolv::DNS::Requester#request): raise ResolvTimeout consistently for timeout. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11* lib/resolv.rb: fix [ruby-core:28144].akr
(Resolv::DNS#make_requester): pass nameserver_port to UnconnectedUDP.new. (Resolv::DNS.bind_random_port): change the is_ipv6 argument to bind_host. (Resolv::DNS::Requester#initialize): change instance variable to store multiple sockets. (Resolv::DNS::Requester#request): pass readable sockets to recv_reply. (Resolv::DNS::Requester#close): close all sockets. (Resolv::DNS::Requester::UnconnectedUDP#initialize): allocate a socket for each address family of name servers. (Resolv::DNS::Requester::UnconnectedUDP#recv_reply): read from the passwd readable socket. (Resolv::DNS::Requester::UnconnectedUDP#sender): use appropriate socket for the target nameserver. (Resolv::DNS::Requester::ConnectedUDP): follow the instance variable change. (Resolv::DNS::Requester::TCP#sender): ditto. (Resolv::DNS::Config#nameserver_port): new method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11* lib/resolv.rb: support :nameserver_port option. backport r26230akr
and r26357 from 1.9. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-05* random.c (fill_random_seed): don't use O_NOFOLLOW becauseakr
/dev/urandom is a symlink in OpenSolaris. * lib/securerandom.rb (SecureRandom.random_bytes: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-05* ext/rational/rational.c: Added to provide a fast implementationknu
of Fixnum#gcd (and maybe some others in the future) in C. The base code was submitted by Kurt Stephens. [Feature #2561] * ext/rational/lib/rational.rb: Moved from lib/rational.rb. Make overall code optimization; submitted by Kurt Stephens. [Feature #2561] * test/rational/test_rational.rb, test/rational/test_rational2.rb: Add tests for Rational, ported from trunk. * test/rational/test_fixnum_gcd.rb: Add a test for Integer#gcd. Case values are only provided for i386 and amd64 at the moment; submitted by Kurt Stephens. [Feature #2561] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-03* lib/net/http.rb (Net::HTTP#request): close @socket only afternobu
started. [ruby-core:28028] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e