svn
1e7d74f39e
* 2010-02-16
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 23:52:11 +00:00
tenderlove
e5657a6584
* ext/dl/function.c: using ULONG2NUM to fix tests on i686.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 23:52:08 +00:00
akr
76678bb526
* io.c: check lseek error by errno. NetBSD 4.0.1 may return -1 as
...
a file position of tty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 14:37:52 +00:00
akr
9dbffb49fa
* lib/pstore.rb (PStore#initialize): initialize @thread_safe.
...
[ruby-core:27853]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 14:09:19 +00:00
akr
8fd5bf0758
* st.c (st_foreach): don't access ptr->hash after func call.
...
It may access freed area.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 13:45:52 +00:00
akr
8d532a8689
* ext/zlib/zlib.c (zlib_mem_alloc): suppress valgrind warnings.
...
http://www.zlib.net/zlib_faq.html#faq36
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 13:26:51 +00:00
akr
795b03c71c
* time.c (time_add): propagate fixed time offset.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 13:21:10 +00:00
naruse
3360a65ba7
fix previous commit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 09:03:33 +00:00
naruse
d9c31a6787
More generic regular exression for test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 09:00:34 +00:00
naruse
c0eb5bb6f2
* signal.c (USE_SIGALTSTACK): NetBSD can't use sigaltstack(2)
...
with pthread.
http://netbsd.gw.com/cgi-bin/man-cgi?sigaltstack++NetBSD-current
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 08:49:51 +00:00
svn
c3a51e3ce1
* 2010-02-15
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 04:13:47 +00:00
naruse
6b6a41d1e7
* array.c (rb_ary_push_m): use rb_ary_modify instead of
...
rb_ary_modify_check.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 04:13:43 +00:00
nobu
05270882ae
* marshal.c (r_object0): removed duplicated entry for regexp.
...
[ruby-dev:40416]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-14 03:54:47 +00:00
akr
47b8a0e7e4
avoid method redefinition.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-14 03:09:53 +00:00
akr
0fd75b46b7
add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-14 02:40:52 +00:00
nobu
27e492bec7
* marshal.c (r_object0): register regexp object before encoding
...
name. [ruby-dev:40414]
* re.c (rb_reg_alloc, rb_reg_init_str): split from rb_reg_new_str.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-13 19:45:35 +00:00
nobu
be0197054c
* re.c (match_aref): fixed indent.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-13 19:31:42 +00:00
matz
5d325e6a9e
* array.c (rb_ary_delete): RDoc update. a patch from Hugh Sasse.
...
[ruby-core:28128]
* array.c (rb_ary_compact_bang): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-13 08:08:19 +00:00
matz
c1ad9a5fd1
* marshal.c (id2encidx): duplicated entry for encoding name.
...
[ruby-dev:40388]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-13 06:03:06 +00:00
akr
2ce744032b
add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-13 04:30:18 +00:00
akr
d6fb854ecb
* lib/tempfile.rb (Tempfile::Remover): new class to replace
...
Tempfile.callback. port r24902 from Ruby 1.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-13 03:20:52 +00:00
svn
3f9bc1fd88
* 2010-02-13
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-12 16:18:54 +00:00
akr
3c529cf5f5
fix a test for Debian GNU/Linux squeeze (armel)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-12 16:18:52 +00:00
nobu
49f62d73b8
* vm.c (thread_free): fixed typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-12 08:55:24 +00:00
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