nobu
4c766e1713
* include/ruby/intern.h (rb_str_new2, rb_tainted_str_new2,
...
rb_usascii_str_new2): use inline versions only for constant
literals.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-28 12:15:55 +00:00
nobu
54b64e2096
* include/ruby/intern.h (rb_str_new2, rb_tainted_str_new2,
...
rb_usascii_str_new2): use inline versions for gcc 4 or lator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-28 11:50:38 +00:00
akr
1318dff1a8
add a test for [ruby-dev:34958].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-28 05:15:25 +00:00
akr
c8ab5d2dd9
* test/rubygems/test_gem.rb (test_self_path_APPLE_GEM_HOME): don't use
...
fixed /tmp/apple_gem_home directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-28 04:13:08 +00:00
suke
dd02419760
* ext/win32ole/win32ole.c : check String encoding when
...
converting String to VT_BSTR in OLE.
* test/win32ole/test_win32ole.rb : ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-27 23:43:57 +00:00
svn
d080d174f5
2008-06-28
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-27 16:10:51 +00:00
akr
6e90749f80
* time.c: fix rounding negative float.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-27 16:10:46 +00:00
akr
e509574dea
fix the last entry.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-27 12:59:00 +00:00
akr
dfbf04166a
* gc.c: __size__ removed. use the length of __members__ instead.
...
(num_members): new function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-27 12:56:45 +00:00
nobu
4bcf877beb
* test/inlinetest.rb (InlineTest.in_progname): workaround for frozen
...
$0. [ruby-dev:35261]
* lib/test/unit/ui/console/testrunner.rb (TestRunner#finished): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-27 12:19:11 +00:00
matz
8f03e4d2c5
* parse.y (primary): empty not should call '!' on nil.
...
cf [ruby-dev:35227]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-27 09:35:53 +00:00
kazu
f0bb63782a
* lib/erb.rb: adjust line number for magic comment.
...
* test/erb/test_erb.rb: add tests for def_method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-27 08:48:24 +00:00
nobu
7a6cafc88e
* vm.c (vm_eval_body): if thrown exception is frozen, reraise it to
...
create a new instance.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-27 05:25:54 +00:00
nobu
f1d4745627
* include/ruby/intern.h (rb_str_new2, rb_tainted_str_new2,
...
rb_usascii_str_new2): use with-length versions with strlen to
optimize strlen, if optimized.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-27 04:29:29 +00:00
nobu
2983df49d5
* include/ruby/intern.h (rb_str_new2, rb_tainted_str_new2,
...
rb_usascii_str_new2): use with-length versions with strlen to
optimize strlen.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-27 04:18:54 +00:00
nobu
73567dc103
* lib/un.rb (mkmf): new command to create makefile.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-27 03:29:00 +00:00
nobu
3d5cfe9a32
* lib/un.rb (wait_writable): added help message.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-27 02:06:08 +00:00
ko1
285066dd0b
* configure.in: need a ",".
...
* process.c (rb_fork): check CANNOT_FORK_WITH_PTHREAD macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-26 21:53:40 +00:00
ko1
d4cddaaa4c
* vm_eval.c (vm_call_super): fix to call method_missing.
...
[ruby-core:15719], [ruby-core:17340]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-26 21:52:44 +00:00
svn
d7a87286a7
2008-06-27
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-26 15:00:31 +00:00
nobu
de15273702
* ruby.c (set_arg0, ruby_prog_init): freeze $0. a patch from Keita
...
Yamaguchi <keita.yamaguchi at gmail.com>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-26 15:00:16 +00:00
mame
478d1da7fa
* string.c (rb_str_index_m, rb_str_rindex_m, rb_str_include): fix
...
rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-26 14:58:59 +00:00
matz
94dc6bdd7a
ChangeLog: need address tweak
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-26 08:47:30 +00:00
matz
4524572f79
* variable.c (rb_f_trace_var): should not be allowed at safe level 4.
...
a patch from Keita Yamaguchi <keita.yamaguchi@gmail.com>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-26 08:44:59 +00:00
drbrain
8b424513fd
Upgrade to RubyGems 1.2.0 r1824. Incorporates [ruby-core:17353].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-26 02:06:00 +00:00
svn
dbf3fb3d8e
2008-06-26
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-25 15:49:21 +00:00
matz
d8c930dd06
* parse.y (primary): not operand might be empty. [ruby-dev:35227]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-25 15:49:17 +00:00
matz
89080e0254
* parse.y (primary): make functional-style not operator to act
...
like function. see <http://d.hatena.ne.jp/ku-ma-me/20080624/p1 >.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-25 12:55:47 +00:00
nobu
d02ef8342c
* array.c (rb_ary_fill): not depend on unspecified behavior at integer
...
overflow. reported by Vincenzo Iozzo <snagg AT openssl.it>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-25 06:28:53 +00:00
naruse
f94c46a745
* lib/erb.rb (ERB::Compiler:Buffer#new): push magic comment first.
...
* lib/erb.rb (ERB::Compiler#compile): fix for broken input.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-25 04:44:32 +00:00
naruse
30e263fc07
* lib/erb.rb (ERB::Compiler#compile): magic comment needs LF.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-25 03:10:57 +00:00
naruse
8eb4988a03
* lib/erb.rb (ERB::Compiler#compile): output magic comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-25 00:33:11 +00:00
mame
f32f40cc49
* vm_eval.c (eval_string_with_cref): preserve parse_in_eval even if
...
exception raised.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-24 13:16:44 +00:00
suke
238738f314
* ext/win32ole/win32ole.c(ole_invoke): fix memory leak.
...
[ruby-bugs-20792]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-24 13:11:21 +00:00
nobu
ac531a8aa8
* configure.in (rb_cv_fork_with_pthread): check after check for
...
pthread library, and define the macro when checked only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-24 08:20:42 +00:00
usa
a0e7746d78
* ext/io/wait/extconf.rb: check sys/socket.h for cygwin.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-24 08:05:06 +00:00
usa
404dda9716
* io.c (io_reopen): remove cygwin handling because it seems to be for
...
C's stdio.
fixed [ruby-dev:35183]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-24 07:54:05 +00:00
usa
5bf133eb50
* test/ruby/test_process.rb (test_exec_wordsplit): on win32, exec'ed process is not child but grandchild.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-24 02:37:51 +00:00
usa
d3a0ef8198
* include/ruby/win32.h, win32/win32.c (rb_w32_getppid): now support
...
getppid() on win32 (but only Win2k or later).
* process.c (get_ppid): remove win32 special logic.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-24 02:14:00 +00:00
usa
b6cab6e8f1
* test_process.rb (test_popen_fork): skip test if fork is not implemented.
...
* test_process.rb (test_getpriority): skip test if Process::PRIO_USER is not
defined.
* test_process.rb (test_setpriority): cannot rescue exceptions which raise in
assert_nothing_raised. check Process:PRIO_USER before test to skip instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-24 01:26:54 +00:00
usa
1a13281ab7
* ext/socket/socket.c (init_sock): socket is binmode on platforms
...
which support binmode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-24 00:41:38 +00:00
mame
59e103794e
* compile.c (iseq_build_from_ary): initialize arg_opts, a patch from
...
Adam Strzelecki <ono@java.pl> in [ruby-core:17220].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-23 15:23:12 +00:00
svn
a1c3a776e8
2008-06-24
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-23 15:12:38 +00:00
wanabe
266a84c904
* compile.c (iseq_build_from_ary): fix expression to obtain
...
iseq->local_size and iseq->local_table_size. [ruby-dev:35205]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-23 15:12:29 +00:00
svn
6b20b1e464
2008-06-23
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-23 03:36:29 +00:00
matz
473acf0a31
* lib/mathn.rb (Rational::power2): removed incomplete method.
...
see [ruby-dev:35195]. [ruby-core:17293]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-23 03:36:25 +00:00
nobu
3f1f29037d
* ext/readline/extconf.rb (have_readline_func): readline on Mac OS X
...
needs headers to detect some functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-22 05:16:30 +00:00
nobu
fa57f78b9b
* object.c (rb_class_superclass): rdoc improvement, a patch from
...
Gaston Ramos <ramos.gaston AT gmail.com> in [ruby-core:17371].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-22 00:51:17 +00:00
shyouhei
3381bd94d1
* README.EXT: translated README.EXT.ja
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-22 00:24:45 +00:00
usa
275c6951cc
* ChangeLog: add reporter.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-21 16:12:00 +00:00