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

8535 Коммитов

Автор SHA1 Сообщение Дата
drbrain 3443bacdc8 Update constant comments to provide values for RDoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-31 21:15:44 +00:00
drbrain 4e6f681b40 Allow RDoc comment to give friendly value for rb_define_const.
Patch by Daniel Berger <djberg96 at gmail.com>, [ruby-patches-7499].

Fix whitespace handling in constant comments.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-31 21:13:27 +00:00
ko1 a3e1b1ce7e * Merge YARV
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-31 15:02:22 +00:00
drbrain 3e7566d8fb Fix Array#reject, was working like Array#reject\!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-31 07:24:56 +00:00
tadf dcf4a0a1f6 removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-30 15:49:29 +00:00
eban b58aef095a * 2006-12-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-30 15:36:41 +00:00
tadf 7290b6925c updated based on date2 4.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-30 15:27:01 +00:00
matz 5ba0254777 * enum.c (enum_each_with_index): reuse array for yield parameters.
* enum.c (enum_min, enum_max): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-29 19:49:23 +00:00
matz 873b2f9fe3 * enum.c (enum_inject): reuse array for yield parameters.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-29 19:27:27 +00:00
matz 465fa424f0 * array.c (ary_iter_check): should check modification (size
change) during iteration.

* array.c (rb_ary_initialize, rb_ary_shift, rb_ary_unshift,
  rb_ary_splice, rb_ary_reverse, rb_ary_sort, rb_ary_delete,
  rb_ary_delete_at, rb_ary_reject_bang, rb_ary_replace,
  rb_ary_clear, rb_ary_fill, rb_ary_uniq_bang, rb_ary_compact,
  rb_ary_shuffle): add iteration check.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-29 19:25:11 +00:00
matz 424f8ec44f * ext/stringio/stringio.c (strio_gets): accepts limit argument.
* ext/stringio/stringio.c (strio_readline, strio_each,
  strio_readlines): ditto.

* ext/stringio/stringio.c (strio_getline): add limit capability.

* io.c (rb_io_gets_m): accepts limit argument.  [ruby-talk:231563]

* io.c (rb_io_readline, rb_io_readlines, rb_io_each_line, argf_getline):
  ditto.

* io.c (appendline): add limit capability.

* io.c (rb_io_getline_fast, rb_io_getline): ditto.

* io.c (rb_io_getline): small refactoring for DRY.

* io.c (rb_io_s_foreach, rb_io_s_readlines): small refactoring.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-29 19:21:50 +00:00
eban 0d2e0eb6cb * 2006-12-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-28 06:36:14 +00:00
matz 703532aa1c * lib/cgi.rb (CGI::Cookie::initialize): use Array() again.
[ruby-core:09781]


* object.c (rb_Array): returns 1-element array if the argument
  does not have to_ary nor to_a.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-28 06:34:02 +00:00
eban a77bb6b7a7 * 2006-12-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-27 12:25:09 +00:00
suke c6defdfa80 remove WIN32OLE::PROPERTY class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-27 12:00:54 +00:00
suke 0aa4340d81 The argument of Shell.NameSpace should not be file path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-26 12:09:57 +00:00
eban a17e7d92a2 * 2006-12-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-26 06:37:14 +00:00
aamine 618b9c5fec * ext/bigdecimal/bigdecimal.c: remove useless method BigDecimal#!=. [ruby-dev:30050]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-25 21:14:25 +00:00
usa 219fafd4d2 * 2006-12-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-22 00:13:57 +00:00
matz 2126364501 * string.c (rb_str_ord): typo fixed. reported from Kornelius
Kalnbach <murphy@rubychan.de>.  [ruby-core:09621]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-21 16:47:01 +00:00
matz 2b38c2e0fb * string.c (rb_str_slice_bang): rdoc description bug fixed.
[ruby-core:09754]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-21 16:41:17 +00:00
matz 3d519d2d60 * lib/cgi.rb (CGI::Cookie::initialize): option["value"] may or may
not be string.  [ruby-core:09750]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-21 16:36:31 +00:00
nobu eb7b81158a * instruby.rb, mkconfig.rb, rubytest.rb, bcc32/mkexports.rb, win32/{resource,mkexports}.rb: set executable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-21 15:38:39 +00:00
usa 17a6c41e43 * {djgpp,bcc32,wince,win32}/*.bat: set svn properties for DOSISH batch files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-21 06:59:03 +00:00
matz 5bcb3797cb version.h update
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-20 04:04:54 +00:00
ko1 21db43bfe7 * Convert CVS repository to Subversion repository.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-20 03:56:25 +00:00
matz 51172af82b * lib/cgi.rb (CGI::Cookie::initialize): Array(string) no longer
works.  [ruby-core:09738]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-17 23:37:49 +00:00
matz 3fe6595026 2006-12-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-17 23:37:45 +00:00
nobu 66c4ad19cf * ChangeLog: typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-15 13:39:12 +00:00
nobu d63cf3fa2a * lib/mkmf.rb (create_makefile): remove static library before update,
to get rid of sludge of Borland tlib.exe.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-14 15:20:14 +00:00
nobu 4409259c93 * win32/Makefile.sub (COMPILE_RULES): latter rule has higher priority.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-14 15:07:53 +00:00
nobu a6563ee8c7 2006-12-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-14 15:07:49 +00:00
matz 460d84633f * ext/readline/readline.c: NetBSD editline does not have
rl_username_completion_function() and rl_completion_matches().
  a patch from Takahiro Kambe <taca at back-street.net>.
  [ruby-dev:30008]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-14 09:41:37 +00:00
matz c89e82837f * lib/irb/locale.rb (IRB::Locale::puts): typo fixed. a patch from
NAKAMURA Usaku <usa@ruby-lang.org>.  [ruby-dev:30012]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-14 09:27:36 +00:00
matz 1275a05824 2006-12-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-14 09:27:32 +00:00
nobu aea5a17fc4 * lib/optparse.rb (Switch#parse_arg, Switch#conv_arg): splat failures.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-12 14:34:26 +00:00
nobu 2b38044b26 2006-12-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-12 14:34:22 +00:00
knu 33b2ccf041 * ext/digest/sha2/lib/sha2.rb: Moved one level up from under
the superfluous subdirectory digest/.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-11 02:59:43 +00:00
matz 5ea3e44fa2 * variable.c (rb_define_const): typo fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-11 02:49:37 +00:00
matz d3b50bf9dc 2006-12-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-11 00:45:35 +00:00
matz f70c171f8c * string.c (rb_str_aset): index double decode problem.
[ruby-core:09695]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-11 00:45:32 +00:00
nobu a7784d0048 * eval.c (ruby_cleanup): keep the exception till after END blocks.
[ruby-core:09675]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-09 12:40:17 +00:00
matz 2bd4f109f4 instead of File.exists?. a patch from Yutaka Kanemoto
<kinpoco at gmail.com> in [ruby-dev:30000].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-09 02:31:08 +00:00
matz 6a37ae2f9d * lib/irb/locale.rb (IRB::Locale::search_file): ues File.exist?
instead of File.exists?.  [ruby-dev:30000]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-09 02:26:19 +00:00
matz d88c0d1c93 2006-12-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-09 02:26:06 +00:00
usa f1b36f2997 * lib/optparse.rb: cannot put :nodoc: before method definition.
put after it.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-08 09:13:04 +00:00
usa 1636105e74 * bin/rdoc: ues File.exist? instead of File.exists.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-08 08:01:06 +00:00
matz 7c96418526 * object.c (Init_Object): new method Dir.exist?(path).
[ruby-core:09663]

* file.c (Init_File): remove File.exists?; use File.exist?
  instead.

* file.c: rename functions to test_* to rb_file_*_p.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-07 15:18:14 +00:00
matz dc859c017d * lib/weakref.rb (WeakRef::__setobj__): should support
marshaling.  [ruby-talk:228508]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-07 15:17:14 +00:00
matz e03d9621a6 2006-12-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-07 15:17:10 +00:00