matz
b85f286833
* lib/webrick/config.rb (WEBrick::Config): typo fixed. a patch
...
from Sho Hashimoto in [ruby-dev:39835].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-19 08:01:19 +00:00
marcandre
fad1e8c761
* lib/matrix.rb (each2,collect2,map2): Fix enumerator [ruby-core:27225]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-19 02:07:00 +00:00
marcandre
a88cc058f0
* lib/set.rb: Add checks that passed argument is Enumerable. [ruby-core:23844]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-19 00:29:54 +00:00
nobu
6547a2bcbb
* lib/un.rb (httpd): try to convert port number to integer.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-16 07:58:01 +00:00
akr
9ab779aad1
* lib/find.rb (Find.find): rescue more exceptions which is possible to
...
occur by other process change the directory tree.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-15 15:54:34 +00:00
nobu
0d9340f223
* lib/find.rb (Find.find): get rid of race condition.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-15 00:06:36 +00:00
akr
779aba2d01
* lib/find.rb (Find.find): rescue only ENOENT and EACCES for lstat.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-14 13:34:09 +00:00
akr
92e9bf7a59
* lib/find.rb (Find.find): narrow rescue region.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-14 12:50:13 +00:00
nobu
cc744ef9b8
* lib/find.rb (Find.find): removed already unnecessary code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-14 00:20:56 +00:00
akr
c48a4c2936
* lib/find.rb (Find.find): sort directory entries. [ruby-dev:39847]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-13 14:48:54 +00:00
nobu
9689308994
* lib/un.rb (httpd): easy WEBrick HTTP server.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-10 05:19:11 +00:00
nobu
ed5d5c5829
* lib/rubygems: update to 1.3.5.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-08 07:19:09 +00:00
nobu
6c0f2b097e
* lib/rubygems/defaults.rb (Gem::default_dir): removed a clause
...
doing nothing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-08 07:16:49 +00:00
akr
5e795ef8f6
* lib/find.rb (Find.find): reduce stat system call.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-06 14:17:33 +00:00
akr
89214aac7a
fix indent.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-06 09:01:50 +00:00
naruse
604f01f2b8
* lib/webrick/httpservlet/filehandler.rb: escape filename of index.
...
[ruby-dev:37768]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-06 07:04:50 +00:00
nobu
b271ca8c62
* lib/irb/extend-command.rb (def_extend_command): fixed argument
...
number for negative arity.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-05 01:18:28 +00:00
nobu
7b5ea0ec2f
* configure.in, win32/Makefile.sub (EXECUTABLE_EXTS): moved from
...
dln.c:dln_find_1().
* lib/mkmf.rb (def find_executable0): use EXECUTABLE_EXTS, not
only EXEEXT. [ruby-core:26821]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-30 07:54:26 +00:00
tenderlove
197eea3404
* lib/rexml/formatters/default.rb (write_attribute): fix an
...
exception when printing a document when duplicate namespaced
attributes exist. Thanks, Alexey Froloff [ruby-core:2389]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-28 21:40:59 +00:00
akr
3f664b30fc
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-26 14:32:15 +00:00
akr
54370de9f4
* strftime.c: %Y format a year with 4 digits at least.
...
* lib/time.rb: format a year with 4 digits at least.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-24 11:34:45 +00:00
shugo
64e6f141fa
* lib/net/ftp.rb (putbinaryfile): use APPE for resume.
...
Thanks, Tomoyuki Chikanaga.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-19 14:21:05 +00:00
shugo
718ceb5476
* lib/net/imap.rb (flag_list): untaint strings to intern in the safe
...
level 1.
* lib/net/imap.rb (max_flag_count=): new methods to set the max
number of flags interned to symbols.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-19 13:56:23 +00:00
ryan
ca7b32630c
Rolled out last change
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-16 04:02:20 +00:00
ryan
36ed53ff93
Minor cleanup to improve hash use
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-16 03:01:59 +00:00
xibbar
5de99652bd
* lib/cgi/util.rb (CGI::pretty): fix the overflow bug
...
if stripped string.[ruby-dev:37975]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-12 15:48:46 +00:00
xibbar
64486dfd8e
* lib/cgi/core.rb (read_from_cmdline): this code is better.
...
[ruby-core:25991]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-12 14:19:53 +00:00
xibbar
bed9e8e297
* lib/net/telnet.rb: don't use simple delegate.
...
because SimpleDelegate behavior changed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-12 14:03:03 +00:00
nobu
55179696b2
* lib/tempfile.rb (Tempfile#initialize): option hash may not be
...
given. [ruby-core:26681]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-11 21:42:40 +00:00
nobu
d9eae80011
* lib/tempfile.rb (Tempfile#initialize): merge mode option.
...
* lib/tmpdir.rb (Dir::Tmpname#create): splat options.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-11 10:17:36 +00:00
akr
4319b48ab6
* lib/pp.rb (PP::ObjectMixin#pretty_print): use to_s regardless of
...
instance variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-07 12:05:38 +00:00
nobu
32acedd286
* lib/mkmf.rb (create_header): split the line by tabs.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-06 08:13:47 +00:00
akr
02a15031b1
fix a typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-05 13:14:52 +00:00
nahi
a28cd28c04
* lib/net/http.rb (Net::HTTPResponse#each_response_header):
...
cosmetic: '?\ ' -> '?\s'
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-31 08:18:32 +00:00
nahi
d1cb4a5ba7
* lib/net/http.rb (Net::HTTPResponse#each_response_header):
...
accept multiline message header of HTTP response. see #1796 .
cf. RFC 2616 '4.2 Message Header'.
* test/net/http/test_httpresponse.rb: added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-30 13:09:03 +00:00
shugo
91c84cda9b
* lib/net/ftp.rb (Net::FTP#initialize): sets @binary to true.
...
* lib/net/ftp.rb (Net::FTP#binary=): sends a TYPE command only when
logged in. [ruby-dev:39548]
* lib/net/ftp.rb (Net::FTP#send_type_command): new private method
which sends an appropriate TYPE command according to the value of
@binary.
* lib/net/ftp.rb (Net::FTP#login): calls send_type_command instead
of binary=.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-28 04:09:20 +00:00
naruse
249569fd8e
* lib/net/ftp.rb (Net::FTP#initialize): @sock = nil.
...
* lib/net/ftp.rb (Net::FTP#binary=): send command only when
socket is open. [ruby-dev:39548]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-27 13:50:42 +00:00
shugo
613a324f61
* lib/net/ftp.rb (getbinaryfile, list): call to_s to convert
...
a Pathname instance into a string. [ruby-core:26237]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-27 06:47:41 +00:00
marcandre
c038e9003c
* lib/matrix.rb (**): Optimization (up to 45% faster)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-24 20:55:40 +00:00
matz
51f033f853
* object.c (rb_obj_cmp): defines Object#<=>. [ruby-core:24063]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-24 16:48:05 +00:00
marcandre
66ed25f633
* lib/matrix (transpose): bug fix for Matrix.empty(0,42).t
...
cf [ruby-core:23598]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-24 06:05:10 +00:00
marcandre
90d244aded
* lib/matrix (column): handle negative arguments. cf [ruby-core:23598]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-24 06:04:56 +00:00
marcandre
e5af8e940b
* lib/matrix (minor): Also handle negative arguments like Array#[]
...
cf [ruby-core:23598]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-24 06:04:41 +00:00
nobu
d645c25a7f
* lib/pathname.rb (Pathname::SAME_PATHS): FNM_SYSCASE is always
...
non-nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-23 00:13:02 +00:00
knu
da54a4589a
* lib/fileutils.rb (FileUtils#fu_get_uid, fu_get_gid): Do not
...
convert an integer back and forth.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-22 08:51:40 +00:00
marcandre
86a81951b1
* lib/matrix.rb (transpose, inspect): Bug fix
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-20 19:01:44 +00:00
marcandre
439a1e64d1
* lib/matrix.rb (empty): Improved rdoc
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-20 19:01:31 +00:00
nahi
9cf0cf92f2
* lib/webrick/httpauth/digestauth.rb: typo in exception message fixed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-20 15:17:37 +00:00
nahi
8906bf2c1b
* lib/logger.rb: imported upstream version (logger/1.2.7) see #2238 .
...
* do not raise an exception even if log writing failed.
* do not raise ShiftingError if an aged file already exists.
(no ShiftingError will be raised from 1.2.7, just warn() instead)
* test/logger/test_logger.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-20 15:08:38 +00:00
keiju
9eebf6bf48
* lib/matrix.rb: Bug fix. See detail [ruby-core:23598].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-20 13:35:15 +00:00