Граф коммитов

20605 Коммитов

Автор SHA1 Сообщение Дата
nobu e4e9758aa5 * ext/extmk.rb (extract_makefile): follow the change of
install-rb-default line format at r28850, which causes second
  run to create dummy makefiles.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-07 08:18:42 +00:00
nobu c53664c84d .cvsignore: have not been used already. [Bug #3468]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-07 05:43:21 +00:00
naruse c260a0c70c * lib/mkmf.rb: change instance variable to global.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-07 05:19:29 +00:00
nobu a438fce7e3 * ext/pathname/pathname.c (path_sub_ext): don't clobber shared string.
[ruby-core:31640]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-07 04:59:27 +00:00
nobu fd0485acf7 * vm_eval.c (vm_call0): fix for VM_METHOD_TYPE_NOTIMPLEMENTED.
[ruby-dev:41953]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-07 04:33:33 +00:00
suke 93426cd6e8 * ext/win32ole/win32ole.c: fix checking version of GCC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-07 00:49:59 +00:00
akr d1893fe74d * ext/pathname/pathname.c (Init_pathname): fix number of arguments for
Pathname#chown.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-07 00:32:20 +00:00
akr 6bc65b35bd * test/ruby/envutil.rb (assert_normal_exit): use assert. fix
faildesc.

* test/pathname/test_pathname.rb (test_lchmod): test Pathname#lchmod
  using assert_normal_exit.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-07 00:29:52 +00:00
akr 261bb184c6 * ext/pathname/pathname.c (path_chown): Pathname#chown translated
from pathname.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-06 23:27:28 +00:00
svn a1d1c102d7 * 2010-08-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-06 17:09:34 +00:00
akr 9352485e47 * ext/pathname/pathname.c (path_lchmod): Pathname#lchmod translated
from pathname.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-06 17:09:31 +00:00
akr c4c4bff456 * ext/pathname/pathname.c (path_chmod): Pathname#chmod translated from
pathname.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-06 12:30:28 +00:00
nobu cba4d05785 * rational.c (nurat_div): divided by infinity should be zero.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-06 11:13:48 +00:00
nobu edd4332a38 * rational.c (nurat_div): divided by float zero should be
infinity.  [ruby-core:31626]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-06 11:12:35 +00:00
nobu 8aa6059dbf * file.c (realpath_rec): rb_str_modify depends on the length, so
resize instead.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-06 09:59:31 +00:00
nobu b4ba3ba641 * Makefile.in (clean-ext): fixed directories to be removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-06 09:56:22 +00:00
naruse 775188a0a2 * enc/depend: add space at the begginig of @ignore_error.
* lib/mkmf.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-06 08:44:33 +00:00
naruse f3372c22a6 * common.mk (clean): add prelude.c, config.log, and rbconfig.rb.
* common.mk (distclean): remove encdb.h, config.log, and rbconfig.rb.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-06 08:40:30 +00:00
naruse 2b071787d2 * Makefile.in: ignore error from RMDIRS.
* enc/depend: ditto.

* lib/mkmf.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-06 08:40:27 +00:00
svn f4c1540b96 * 2010-08-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 20:53:59 +00:00
akr dc2676a8a0 * ext/pathname/pathname.c (path_mtime): Pathname#mtime translated from
pathname.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 20:53:56 +00:00
akr 9bf69293e7 * ext/pathname/pathname.c (path_ctime): Pathname#ctime translated from
pathname.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 13:09:53 +00:00
mame 5ffe59faf8 * compile.c (NODE_ARGSCAT, NODE_ARGSPUSH): drop unused ARGSCAT
results when poped is true.  [ruby-dev:41933], [Bug #3658]
  This is retry of r28870 and r28873 which were reverted.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 12:32:02 +00:00
mame fa9d53d00f * compile.c (NODE_ARGSCAT, NODE_ARGSPUSH): revert r28870 and r28873
which involuntarily changed semantics of type conversion.
  I'll re-commit a correct patch.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 12:31:55 +00:00
nobu 600601c338 * compile.c (iseq_compile_each): to_a method should be called.
[Bug #3658]

* compile.c (iseq_compile_each): ditto for ARGSPUSH.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 11:30:50 +00:00
nobu 3a32ef53aa * README.EXT, README.EXT.ja (String functions): mention
rb_str_resize and rb_str_set_len.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 11:14:05 +00:00
nobu b80ddbf461 * string.c (rb_str_set_len): bail out when buffer overflowed
probably.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 11:00:18 +00:00
nobu 50b5049921 * compile.c (iseq_compile_each): drop unused ARGSCAT results.
fix [ruby-dev:41933], [Bug #3658]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 10:52:08 +00:00
nobu 5274f89201 * complex.c (nucomp_marshal_load): should check the argument.
[ruby-core:31622]

* rational.c (nurat_marshal_load): ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 09:36:16 +00:00
nobu 359d537878 * marshal.c (w_float): should not append a dot if no fractal part
exists.  [ruby-dev:41936]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 09:25:39 +00:00
matz b35f5db57e * parse.y (void_expr_gen): add 'possibly' to warning message.
[ruby-core:31611]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 08:18:32 +00:00
nobu 36992251c3 * dir.c (glob_make_pattern): fold continuous PLAINs to get rid of
snail at too deep path.  [ruby-dev:41871]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 07:57:26 +00:00
nobu 8965ed167d * string.c (rb_str_set_len): should fail to modify shared string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 07:42:47 +00:00
nobu 5425f8fe6e * ruby.c (ruby_init_loadpath_safe): ensure sopath to be modifiable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 05:12:50 +00:00
nobu ae82480705 * string.c (str_make_independent_expand): fix buffer overflow
while shrinking.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 03:39:19 +00:00
akr a2ebc53ec4 * file.c (realpath_rec): call rb_str_modify before rb_str_set_len.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-04 21:44:20 +00:00
svn eb84491119 * 2010-08-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-04 17:31:11 +00:00
mame 7eb5352e24 * string.c (rb_str_resize):: fix r28857 that failed to revert r28851.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-04 17:31:09 +00:00
nobu 5f13d888cf * string.c (rb_str_resize): reverted r28851. rb_str_resize cannot
work before the length is set.  [ruby-core:31615]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-04 11:08:28 +00:00
nobu 36044b0773 * string.c (rb_str_set_len): rb_str_modify cannot work before the
length is set, which is a precondition for rb_str_modify.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-04 10:37:05 +00:00
nobu 99d96a89ce * string.c (rb_str_resize): should copy the content properly. a
patch from Jeremy Evans at [ruby-core:31615].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-04 07:09:47 +00:00
usa c37b2ef8dc * lib/mkmf.rb (create_makefile): no need to create the directory
at each library file. this change makes making ext faster.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-04 06:52:18 +00:00
svn 71a3defd34 * 2010-08-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-03 21:25:47 +00:00
akr 88e78ac59b * ext/pathname/pathname.c (path_atime): Pathname#atime translated from
pathname.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-03 21:25:43 +00:00
akr 5e9c47c81d add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-03 14:35:34 +00:00
nobu a4c0f7dfae * random.c (Init_Random): add Random::DEFAULT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-03 12:16:06 +00:00
nobu b80d5f14df * hash.c (rb_check_hash_type): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-03 12:01:13 +00:00
nobu 292c39098d * bignum.c (rb_big_eq): never equal to infinity.
[ruby-core:31603]

* rational.c (nurat_div): hack for integral float divisor.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-03 11:30:19 +00:00
naruse b5dc2576cc * ext/mkext.rb: remove purelib, fixes a bug in r28440, r28441.
* spec/default.mspec: ditto.

* template/Doxyfile.tmpl: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-03 05:48:05 +00:00
usa 2fc40194d2 * lib/rdoc/ri/driver.rb (setup_pager): no need to check the existence
of pagers. the following code checks whether they are executable or
  not.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-03 05:22:51 +00:00