tadf
c7e236efc1
* bignum.c (rb_cstr_to_inum): changed an error message.
...
* complex.c (string_to_c_strict): ditto.
* rational.c (string_to_r_strict): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 14:26:16 +00:00
matz
ad00464489
* pack.c (pack_pack): template f should not accept non float
...
values. [ruby-dev:37656]
* object.c (rb_to_float): new function to type check floats.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 13:40:33 +00:00
matz
6bbd76a732
* random.c (rb_f_rand): type check simplified. strings are no
...
longer allowed for argument. [ruby-dev:37655]
* test/ruby/test_rand.rb (TestRand::o.to_int): need override
to_int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 13:29:12 +00:00
yugui
db86fef72f
* ext/dl/test/test_base.rb: add x86_64-linux's case again. #932
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 12:39:31 +00:00
tadf
292d6ee99f
* numeric.c: Infinity.numerator returns self. [experimental]
...
* numeric.c: Infinity.denominator returns 1. [experimental]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 12:23:55 +00:00
yugui
e12b44e375
* man/ri.1: new manpage.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 12:14:25 +00:00
tadf
5d7f9f1721
arrangement
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 11:57:06 +00:00
tadf
d7b873a108
* rational.c: floor, ceil, truncate and round accept an extra
...
argument like Float#round. [experimental]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 11:50:10 +00:00
yugui
25c96543cc
* Makefile.in (distclean-local): removes Doxyfile and
...
run.gdb at distclean'ing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 09:26:50 +00:00
yugui
bbd1a18aaf
* bin/erb: accepts options in more flexible styles.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 09:26:42 +00:00
yugui
af91b42354
* lib/erb.rb (ERB): m17n of ERB. adds rdoc.
...
fixes #712 . c.f. [ruby-dev:37516].
* lib/erb.rb (ERB::Compiler#compile): recognizes magic comments.
returns a pair of compiled script and its script encoding.
* lib/erb.rb (ERB#set_eoutvar): make generated scripts return a
string in correct encoding.
* lib/erb.rb (ERB#def_method): use Kernel#eval for encoding-awareness
of the evaluated string.
* bin/erb.rb (ERB::Main.run): adds -E and -U options.
String is no longer Enumerable.
* man/erb.1: new manapage.
* test/erb/test_erb_m17n.rb: new test case for m17n features.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 09:26:34 +00:00
matz
d33298e524
* ext/io/wait/wait.c (io_nread): returns number of bytes available
...
for read. response to feature request #936 in [ruby-core:20917].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 09:07:20 +00:00
matz
95327358ce
* ext/io/wait/wait.c (io_ready_p): updated to follow RDoc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 09:01:38 +00:00
matz
527cc92793
* ext/socket/socket.c (s_recvfrom_nonblock): revert r21162.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 08:14:35 +00:00
matz
445b6d5d01
* ext/socket/socket.c (s_recvfrom_nonblock): fixed awesome typo.
...
sorry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 07:50:07 +00:00
ko1
272a3aa6a2
* vm.c (vm_set_eval_stack, vm_set_main_stack, vm_set_top_stack):
...
check stack overflow. [ruby-dev:37646]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 07:44:56 +00:00
matz
6dd1910a3d
* ext/socket/socket.c (s_recvfrom_nonblock): default maxlen to be
...
65536. suggested by akr in [ruby-core:20918]. response to
feature request #936 in [ruby-core:20917].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 07:32:56 +00:00
yugui
7be399c567
merges r21134 from ruby_1_9_1 into trunk.
...
* test/rubygems/test_gem_command.rb
(test_add_option_overlapping_common_and_local_options):
follows r21066.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 06:18:14 +00:00
yugui
69b2c8cc44
* Makefile.in (ext-clean): ext-clean always fails.
...
* ext/dl/ripper/extconf.rb: adds y.output into the clean list.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 05:51:31 +00:00
ko1
b2ad49565f
* thread.c (rb_mutex_trylock): return false if Mutex owned
...
by current thread. [ruby-core:20943]
* thread.c (rb_mutex_lock): check dead lock (recursive lock) here.
* test/ruby/test_thread.rb: add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 03:03:09 +00:00
naruse
a928613a31
revert previous changes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 02:56:23 +00:00
naruse
1ebed6c614
* file.c (rb_get_path): move encoding conversion of file path
...
from rb_scan_open_args.
* io.c (rb_scan_open_args): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 02:01:02 +00:00
matz
1487d9743b
* cont.c: small RDoc fix mentioned from <radek.bulat at gmail.com>
...
in [ruby-core:20921].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-28 22:16:19 +00:00
ko1
813d983154
add ML index ([ruby-dev:37634]).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-28 18:53:33 +00:00
ko1
ec5283e691
* ruby.c (process_options): set th->base_block only while
...
it is needed.
* ruby.c (require_libraries): clear th->base_block before
require libraries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-28 18:45:24 +00:00
svn
f5189c3f14
* 2008-12-29
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-28 16:10:02 +00:00
akr
8cc42bc701
add a test for OpenSSL::SSL::SSLSocket#read_nonblock.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-28 16:09:59 +00:00
yugui
8ff550534e
* ChangeLog: adds the author name of a patch.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-28 13:26:27 +00:00
naruse
6e658ea392
* test/ext/dl/test_base.rb : add BSD's case.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-28 12:42:39 +00:00
yugui
f6cc65ae48
* ext/dl/lib/dl/import.rb (DL::Importer#sizeof): follows
...
a feature change in 1.9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-28 12:13:32 +00:00
yugui
28001c849d
* ext/dl/lib/dl/import.rb (DL::Importer#extern): adds filename and
...
line number to module_eval'ing for readability of backtrace.
(DL::Importer#bind): ditto.
* ext/dl/lib/dl/struct.rb (DL::CStructBuilder#create): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-28 12:13:24 +00:00
nobu
00cb692395
* win32/Makefile.sub (config.h): do not use snprintf/vsnprintf in
...
msvcrt.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-28 10:11:07 +00:00
nobu
08b4f9138c
* test/ruby/test_sprintf.rb (test_invalid): suppress warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-28 09:51:18 +00:00
nobu
ca65828014
* sprintf.c: not force to override snprintf/vsnprintf.
...
[ruby-core:20824]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-28 09:40:04 +00:00
naruse
faa2987d54
* test/rubygems/test_ext_configure_builder.rb (test_self_build_fail):
...
Extends pattern for FreeBSD's error message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-28 08:24:35 +00:00
takano32
0c0e31175a
* commit ChangeLog
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-28 08:11:01 +00:00
takano32
0781d24aaa
Sun Dec 28 17:10:13 2008 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
...
* ext/dl/test/test_dl2.rb: modify strncpy, strcpy, qsort, types.
Bug #633 [ruby-core:19289]
* ext/dl/test/test_base.rb: /lib/libc.so is x86_64 binary in x86_64 architecture.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-28 08:10:20 +00:00
takano32
04b672f34b
* ext/dl/test/test_base.rb: use libc.dylib when the platform is darwin.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-28 03:58:02 +00:00
mame
b66af67f21
* thread.c (mutex_free, mutex_unlock): add qualifiers.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-28 03:25:31 +00:00
mame
0e41458700
* thread.c (mutex_free): GC thread (main thread) has failed to unlock
...
a mutex that is locked by another thread, which makes the mutex
dangling in keeping_mutexes and causes [BUG] or stuck finally.
Now unlocking is performed as locking thread.
* thread.c (mutex_unlock, rb_mutex_unlock, rb_mutex_unlock_all):
mutex_unlock receives a thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-28 01:39:18 +00:00
ryan
1cbf898172
Imported minitest 1.3.1 r4505.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-27 20:51:23 +00:00
svn
4985bfdc9f
* 2008-12-28
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-27 15:44:55 +00:00
akr
9216dd7e32
* runruby.rb: refactored to modify ENV as once.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-27 15:44:51 +00:00
nobu
0c835afac0
* test/rdoc/test_rdoc_info_formatting.rb (setup, teadown): uses
...
mktmpdir and removes it alfter the test.
* test/cgi/test_cgi_session.rb (setup, teadown): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-27 13:41:04 +00:00
takano32
f0f281c1c1
* ext/dl/test/test_base.rb: use lib64 when the architecture is x86_64.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-27 12:48:20 +00:00
usa
39c2cf2c81
* win32/win32.c (rb_w32_argv_size): if an argument is empty, it's size
...
is 2, not 0, because it will be converted to "".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-27 11:28:18 +00:00
mame
d5108ed277
* add Doxyfile to svn:ignore.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-27 11:10:55 +00:00
nobu
a94adfa245
* process.c (after_exec): needs to reset before restart timer
...
thread.
* thread.c (thread_start_func_2): stops timer thread if forked in
the new thread. [ruby-core:19385]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-27 10:40:57 +00:00
nobu
b5d2750bbc
* thread.c (rb_thread_atfork, rb_thread_atfork_before_exec): DRY.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-27 10:30:04 +00:00
matz
10af217ff3
* vm_eval.c (rb_f_loop): return enumerator if no block given.
...
[ruby-list:45747]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-27 09:28:26 +00:00