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

16637 Коммитов

Автор SHA1 Сообщение Дата
mame bded3bb726 * array.c (rb_ary_flatten): flatten(0) works as Array#dup.
[ruby-core:23168]

* test/ruby/test_array.rb: add a test for above.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-15 11:47:54 +00:00
naruse 31c1883a54 * dir.c (fnmatch_helper): use rb_enc_precise_mbclen and
fail if bytes are invalid. [ruby-dev:38307]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-15 03:00:31 +00:00
nobu 205c4b490c * dir.c (bracket): if same in bytes, path is matching.
[ruby-dev:38305]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-14 09:11:29 +00:00
nobu 946fe69932 * sprintf.c (rb_str_format): scan coderange incrementally.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-13 08:21:41 +00:00
naruse b2ac99dfa3 * sprintf.c (rb_str_format): optimize previous commit.
[ruby-list:45954]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-13 02:40:20 +00:00
naruse 87335c3e2f * sprintf.c (rb_str_format): check encoding compatibility only on
real parts.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-13 02:00:30 +00:00
nobu 207becd942 * dir.c (bracket, fnmatch_helper): compare bytewise first, to get
rid of invalid byte sequence.  [ruby-dev:38303]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-12 10:54:59 +00:00
nobu 633479795e * ChangeLog: typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-11 00:04:54 +00:00
nobu 6e785b17b6 * configure.in (Makefile): phoeny ruby target needs empty command.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-10 23:45:59 +00:00
nobu 4ab8fb1a01 * common.mk (up): updates timestamp file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-10 02:32:15 +00:00
nobu 5c53294189 * configure.in (Makefile): info-program needs common.mk.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-09 19:54:10 +00:00
nobu 3a60f6efdc * configure.in (RUBY_INSTALL_NAME): use --program-transform-name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-09 18:46:59 +00:00
nobu 8191f129b5 * instruby.rb, mkconfig.rb: deal with --program-transform-name
better.  now supports s, y commands and single addressing.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-09 18:01:26 +00:00
svn 7bce595970 * 2009-04-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-09 14:59:58 +00:00
akr 07aede586f * configure.in: don't override the rule for ruby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-09 14:59:51 +00:00
mame a5596dc6a3 * string.c (rb_str_dump): buffer length plus one byte for null
terminator.  [ruby-dev:38294]

* test/ruby/test_m17n.rb (test_str_dump): add a test for above.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-08 13:05:07 +00:00
nobu 6387c5dc8c * string.c (rb_str_rstrip_bang): should not sign-expand non-ascii.
[ruby-core:23158]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-08 11:08:18 +00:00
nobu c9ad044dfb * test/ruby/test_string.rb (test_chop, test_chop!): tests for [ruby-core:23155].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-08 10:48:52 +00:00
naruse 8b95a0df1b * string.c (rb_str_chop_bang): reset coderange. [ruby-core:23155]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-08 08:31:25 +00:00
nobu a6fa5855a8 * lib/mkmf.rb (what_type?): fixed typo, and refined for member of
aggregation types.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-08 05:00:07 +00:00
nobu 64be577b53 * lib/mkmf.rb (Logging.postpone): copy postponed output always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-08 04:57:59 +00:00
nobu 0b05fc5a85 * lib/mkmf.rb (what_type?): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-08 02:46:28 +00:00
nobu 34f01201f9 * configure.in (LIBRUBY_SO): removed redundant additional version
numbers.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-08 00:46:00 +00:00
nobu d9921b1de6 * common.mk (info): shows configured names.
* configure.in (Makefile): works even if RUBY_INSTALL_NAME
  contains macro.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-07 04:35:24 +00:00
nobu 99b38e10f7 * configure.in (LIBRUBY_DLDFLAGS): compatibility version is
ruby_version.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-07 04:14:34 +00:00
nobu 4b4dc16feb * configure.in (RUBY_REPLACE_TYPE): defines type modifier prefix
for printf.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-07 04:10:21 +00:00
nobu 04d1fc84b4 * configure.in (RUBY_DEFINT): use AC_INCLUDES_DEFAULT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-06 17:47:33 +00:00
nobu c30f5e82a7 * configure.in (RUBY_DEFINT): should pass includes to
AC_CHECK_SIZEOF and RUBY_CHECK_SIZEOF.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-06 17:27:50 +00:00
nobu 254446f555 * configure.in (CFLAGS, CXXFLAGS): need ARCH_FLAG for universal
binary.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-06 17:25:28 +00:00
nobu 8ebd0d4320 * numeric.c (flo_to_s): reduce fragments if no precision lost.
c.f. [ruby-core:23075]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-06 16:08:23 +00:00
nobu aa75b002de * configure.in (CFLAGS, CXXFLAGS): override with $cflags and
$cxxflags if not given.  [ruby-core:23130]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-06 14:16:10 +00:00
nobu d456f0aabe * configure.in (CFLAGS, CXXFLAGS): use orignal values if given.
[ruby-core:23130]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-06 11:16:15 +00:00
nobu 228d3e46a3 * file.c (utime_failed): refined the error message for EINVAL on
DOSISH platforms, where it may fail depending on filesystems.
  see [ruby-dev:38277].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-06 10:26:20 +00:00
nobu a3a88c6bcd * file.c (sys_fail2, rb_file_s_readlink, BUFCHECK, rmext),
(rb_file_s_basename): get rid of overflow.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-06 07:38:52 +00:00
nobu 1b71f8a53b * numeric.c (int_chr): checsk overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-06 06:11:57 +00:00
nobu 090dc8fd54 * test/stringio/test_stringio.rb (test_path): StringIO#path is no
longer defined.  [ruby-dev:38254]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-06 01:49:48 +00:00
nobu aaec30f96a * ext/stringio/stringio.c (strio_path): removed. [ruby-dev:38254]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-06 01:47:15 +00:00
nobu 03dbd024ee * include/ruby/intern.h (rb_fd_resize): does nothing on Win32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-05 09:02:57 +00:00
nobu a3e7e369bc * include/ruby/intern.h (Init_stack): moved.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-05 08:59:02 +00:00
nobu 08e5b6de32 * include/ruby/intern.h (RB_NUM_COERCE_FUNCS_NEED_OPID): macro to
check compatibility.  [ruby-dev:38162]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-04 08:05:17 +00:00
nobu c2b381c5c0 * mkconfig.rb (sitearch): default to arch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-03 22:38:54 +00:00
knu ae846f9fb8 * lib/irb/completion.rb (IRB::InputCompletor::Operators): Add
overloadable negative operators.

* lib/irb/ruby-lex.rb (RubyLex#lex_init): Support overloadable
  negative operators.

* lib/irb/ruby-lex.rb (RubyLex#identify_identifier): Minus signs
  need to be escaped in regexp character class.

* misc/ruby-mode.el (ruby-font-lock-keywords, ruby-parse-partial):
  Support overloadable negative operators.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-03 05:04:02 +00:00
nobu 2b7279ba5f * ext/extmk.rb: quotes arguments with spaces always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-03 03:45:58 +00:00
matz 12bbcbb363 * lib/getoptlong.rb: remove unused udoc/usage from example.
[ruby-core:23098]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-02 05:52:06 +00:00
nobu b6e82baca5 * win32/Makefile.sub (config.h): updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-01 22:42:29 +00:00
akr 3158c0f651 * configure.in (rb_cv_fork_with_pthread): fail if the child process
fail.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-01 11:40:38 +00:00
nobu 72c161bb55 * lib/mkmf.rb (create_makefile): support for parallel make. a
patch from Takuto Matsuu at [ruby-dev:38220].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-01 10:46:48 +00:00
nobu 48d18d3783 * configure.in (LIBRUBY_LDSHARED): use $(CC) instead of cc.
a patch from Wataru Kimura at [ruby-dev:38225].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-01 10:39:27 +00:00
nobu 6941189b94 * vm_dump.c (rb_vm_bugreport): should not #include inside a
function, since headers may have declarations.
  c.f. [ruby-core:23095]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-01 09:53:52 +00:00
nobu af9459a469 * mkconfig.rb: ignores version numbers in config.status. replaces
all $$s in program_transform_name.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-01 09:44:56 +00:00