svn
0d10b77403
* 2010-02-12
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 17:38:09 +00:00
knu
e1d9adcc84
Fri Feb 12 02:27:39 2010 Akinori MUSHA <knu@iDaemons.org>
...
* lib/set.rb (Set#initialize, Set#replace, Set#merge)
(Set#subtract, Set#&): Fix duck type tests. [ruby-core:28078]
* lib/set.rb (Set#initialize, Set#replace, Set#merge)
(Set#subtract, Set#&): Try #each if #each_entry fails.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 17:38:05 +00:00
akr
36ff32040e
fix rdoc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 13:59:34 +00:00
akr
1ad8521d44
update rdoc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 13:30:55 +00:00
akr
c09bcd351a
* io.c (rb_io_oflags_modestr): return "r" for O_RDONLY|O_APPEND.
...
[ruby-dev:40379]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 11:45:22 +00:00
kazu
e95a439c6d
* missing/alloca.c: s/RUBY_LIB/RUBY_LIB_PREFIX/ [ruby-dev:40395]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 10:20:43 +00:00
nobu
485c571bf1
* vm.c (vm_exec): reset thread state before restarting vm loop
...
from catch scope. [ruby-core:28129], [ruby-core:28143]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 08:52:16 +00:00
akr
aeed74a61a
fix a typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 07:31:03 +00:00
nobu
87fb6fbcc9
* marshal.c (r_object0): replace non-1.8 escapes directly.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 05:43:19 +00:00
nobu
50bf2e550a
* marshal.c (r_object0): read sequentially since marshal source
...
may not be possible to rewind. [ruby-dev:40386]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 05:37:43 +00:00
akr
d61a305270
describe the reporter.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 01:31:49 +00:00
akr
d3004ccff3
* lib/resolv.rb: fix [ruby-core:28144].
...
(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/trunk@26637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 01:29:38 +00:00
svn
9f782768ab
* 2010-02-11
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-10 16:46:43 +00:00
mame
e79ad682da
* vm.c (vm_exec): temporarily revert r26628, which causes SEGV when
...
executing rubyspec.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-10 16:46:39 +00:00
nobu
f3f43cdbee
* array.c (rb_ary_push_m, rb_ary_unshift_m, rb_ary_aset),
...
(rb_ary_insert, rb_ary_replace, rb_ary_concat),
(rb_ary_uniq_bang, rb_ary_flatten_bang): check if frozen after
wrong number of arguments but before TypeError.
[ruby-core:28140]
* hash.c (rb_hash_replace): ditto.
* string.c (rb_str_replace): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-10 07:31:06 +00:00
svn
6942afef5f
* 2010-02-10
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-09 19:06:43 +00:00
nobu
09205cf2c3
* vm.c (vm_exec): reset thread state before starting vm loop.
...
[ruby-core:28129]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-09 19:06:39 +00:00
mame
520053232e
* ext/bigdecimal/bigdecimal.c (BigDecimal_divide): fix precision too.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-09 14:49:41 +00:00
mame
03ad923cdd
* ext/bigdecimal/bigdecimal.c (BigDecimal_DoDivmod): fix precision.
...
[ruby-core:17472][ruby-dev:35372][ruby-dev:40105][ruby-dev:40358]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-09 14:30:30 +00:00
mame
b4f90b236c
* io.c (READ_CHECK): do not select fd before reading, that had made
...
TCPServer#gets stuck. [ruby-dev:40317]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-09 13:27:04 +00:00
mame
f2bd994409
* lib/rexml/text.rb (REXML::Text#initialize): REXML::Text.new checks
...
raw text for illegal characters without entity check, for the sake
of 1.8 compatibility. This had caused rubyspec error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-09 12:30:31 +00:00
svn
b3b3223e58
* 2010-02-09
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-08 15:08:19 +00:00
matz
bba5e1126b
* io.c (rb_io_getline_fast): wrong calculation of new position
...
from rb_str_coderange_scan_restartable(). [ruby-core:28103]
* io.c (read_all): ditto.
* sprintf.c (rb_str_format): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-08 15:08:15 +00:00
akr
7e833da5fe
* ext/socket/socket.c (socket_s_ip_address_list): obtain the scope_id
...
of IPv6 link local address on OpenSolaris.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-08 12:08:45 +00:00
matz
a7926befe0
* object.c (rb_obj_clone): call initialize_clone hook method to
...
call initialize_copy.
* object.c (rb_obj_dup): call initialize_dup hook.
* lib/delegate.rb (Delegator#initialize_clone): use new hook to
implement deep copy. [ruby-dev:40242]
* lib/delegate.rb (Delegator#initialize_dup): ditto.
* test/test_delegate.rb (TestDelegateClass#test_copy_frozen): add
a test to ensure #clone copies frozen status.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-08 07:43:54 +00:00
nobu
26051e1d06
* dmyversion.c: empty load path in miniruby.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-08 07:28:00 +00:00
nobu
ecc775772a
* common.mk (COMPILE_PRELUDE): rbconfig is loaded on demand.
...
* tool/eval.rb, win32/{mkexports,resource}.rb: miniruby no longer
contains "." in $:.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-08 07:23:13 +00:00
svn
922f3d0bed
* 2010-02-08
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-08 01:32:48 +00:00
matz
41ec00e019
* configure.in: check pthread_attr_getstack to prevent obsolete
...
warning for pthread_attr_getstackaddr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-08 01:32:43 +00:00
akr
fe0598ac82
* sample/test.rb: sort files for syntax validataion.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-07 14:13:19 +00:00
akr
dd4537ad99
* bootstraptest/runner.rb: sort test files.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-07 14:09:43 +00:00
naruse
bd0a3dfd65
* test/dl/test_handle.rb (test_NEXT): fix for BSD.
...
Linux and Darwin's RTLD_NEXT searchs second occurrence of the function.
But FreeBSD and NetBSD's RTLD_NEXT searchs in libraries loaded after dl.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-07 10:29:39 +00:00
akr
666409ba50
* lib/rake.rb (Rake::FileList::ARRAY_METHODS): fix test failure by <=>
...
definition at Kernel.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-07 03:55:21 +00:00
akr
fcd2fb4e87
* math.c (math_lgamma): initialize sign because
...
lgamma(NaN) doesn't set the sign in OpenSolaris.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06 18:02:59 +00:00
shugo
b09eabd430
* class.c (rb_class_init_copy): raise a TypeError if the argument is
...
BasicObject. [ruby-core:27060]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06 15:26:34 +00:00
svn
141179186b
* 2010-02-07
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06 15:26:24 +00:00
shugo
0381cec507
* lib/net/ftp.rb (initialize): set @sock to a NullSocket instance to
...
raise FTPConnectionError when not connected. [ruby-dev:40258]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06 15:26:20 +00:00
shugo
e432a4c423
added a ChangeLog entry.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06 14:26:19 +00:00
shugo
5fe1f62633
ext/curses/view2.rb: replaced with Hugh Sasse's version.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06 14:26:07 +00:00
shugo
3b21e88faa
test/net/imap/test_imap_response_parser.rb: fixed test_resp_text_code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06 14:11:21 +00:00
shugo
d724d5e771
* test/net/imap/test_imap_response_parser.rb (test_resp_text_code): added a test
...
for [ruby-core:27913].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06 14:09:13 +00:00
shugo
b44070175a
added a ChangeLog entry.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06 13:57:23 +00:00
shugo
69c3348b79
* lib/net/imap.rb (receive_responses): does not hang when an unexpected BYE
...
response received. fixed [ruby-core:27944]. Thanks, Bob Potter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06 13:57:10 +00:00
shugo
bc885aeae6
added a ChangeLog entry.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06 12:32:12 +00:00
shugo
237c2211e6
* test/net/imap/test_imap.rb (test_exception_during_idle): use timeout.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06 12:31:59 +00:00
shugo
332e8fe51f
* lib/monitor.rb (wait): supported timeout.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06 12:31:52 +00:00
akr
cef8a996be
fix a test.
...
OpenSolaris cannot remove the current directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06 11:47:00 +00:00
mame
cd2a49f3c7
* tool/compile_prelude.rb: fix require path.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06 10:36:32 +00:00
nobu
a6569ad637
* lib/delegate.rb (Delegator#method_missing),
...
(Delegator.delegating_block): don't hide backtrace from
__getobj__ and reduced exception messages when $DEBUG.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06 03:02:40 +00:00
nobu
26b8c0890f
* test/test_delegate.rb (TestDelegateClass::IV#initialize): should
...
set delegation target.
* test/test_delegate.rb (TestDelegateClass#test_copy_frozen):
clone of frozen delegator also should be frozen.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06 02:41:04 +00:00