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

7363 Коммитов

Автор SHA1 Сообщение Дата
nagai fb10e93036 * ext/tk/sample/24hr_clock.rb: a new example about handling of canvas items.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-15 07:51:30 +00:00
ocean ea4a254de5 * array.c (rb_ary_fill): previous commit disabled this usage:
a = [0,1,2,3,4,5,6,7,8,9]
    a.fill {|i| a[i] * 10} #=> [nil, nil, ...., nil]

  previous commit has advantange for early garbage collection, but
  potensially would break some script. so I reverted behavior.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-15 07:38:38 +00:00
matz d0f784a071 * file.c (file_load_ok): use eaccess() instead of actually opening
the file.  [ruby-talk:156378]

* lib/jcode.rb (String::reverse): add new methods.
  [ruby-list:41245]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-15 07:16:46 +00:00
ocean 011e0a5148 * array.c (rb_ary_fill): tail elements were vanished when the middle
part of array was filled. (ie: [0,1,2,3,4].fill(-1,2,1) => [0,1,-1])

* test/ruby/test_array.rb (test_fill): added.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-15 07:06:00 +00:00
eban 54e04efc10 * 2005-11-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-15 05:46:03 +00:00
matz 956296495b * array.c (rb_ary_fill): should adjust array length correctly when
an array is expanded in the fill process.  [ruby-core:06625]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-15 05:42:36 +00:00
nobu a1fe60779b * ChangeLog: added ML reference.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-14 14:57:01 +00:00
nobu c90546cac6 * file.c (rb_file_s_readlink): ERANGE will occur only on GPFS.
[ruby-dev:27699]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-14 14:52:55 +00:00
nobu ab1acb357c * file.c (rb_file_s_readlink): ERANGE will occur only on GPFS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-14 14:50:57 +00:00
eban 8710590f8f * 2005-11-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-14 08:48:46 +00:00
matz 8741340545 * array.c (rb_ary_first): RDoc update from Daniel Berger
<djberg96@yahoo.com>.  [ruby-core:06577].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-14 08:39:34 +00:00
eban 18ab485327 * 2005-11-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-13 03:29:47 +00:00
aamine 31f8181095 * lib/uri/common.rb (escape): regard second argument as a character set. [ruby-dev:27692]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-13 02:02:24 +00:00
nobu 03ab812585 * configure.in (socketpair): need to be checked.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-11 23:37:32 +00:00
eban 55a72de52b * 2005-11-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-11 17:14:05 +00:00
nobu d7f9e2d7ab * configure.in, eval.c, intern.h: check fd_mask type.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-11 17:11:05 +00:00
ocean f69091fabc * eval.c, intern.h: failed to compile where NFDBITS is defined but
howmany() is not defined. [ruby-dev:27680]

* io.c (is_socket): failed to compile where S_ISSOCK is not defined.

* io.c (pipe_open): failed to compile where socketpair is not supported.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-11 11:08:17 +00:00
eban 52486197bc * 2005-11-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-11 01:35:58 +00:00
nobu bf203228cf * Makefile.in (OUTFLAG): keep trailing spaces. [ruby-dev:27666]
* mkconfig.rb: substitution refereces added.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-10 23:22:03 +00:00
ocean 0535fc9cac * configure.in: undef HAVE_LINK on BeOS. (link(2) always returns
EINVAL, and this causes error in test/fileutils.)

* file.c: overwride chown(2) and fchown(2) on BeOS. (these functions
  should not change user/group id if -1 is passed as corresponding
  argument, and this causes error in test/fileutils too)
  [ruby-dev:27672]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-10 22:43:38 +00:00
eban dd7a195a21 * 2005-11-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-10 12:09:14 +00:00
nobu 7145ec7bb2 * lib/shellwords.rb: fix for blank but not empty string.
fixed: [ruby-dev:27663]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-10 12:05:57 +00:00
eban c51b9bacec * 2005-11-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-09 01:55:24 +00:00
nobu e8201d12db * lib/shellwords.rb: refactored. [ruby-core:06581]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-08 23:41:40 +00:00
ttate 6ddd56a130 should compare SIZEOF_VOIDP with SIZEOF_LONG_LONG.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-08 13:50:38 +00:00
ocean 59ffb8a846 * intern.h, eval.c (rb_thread_signal_raise): costified.
* signal.c: cosmetic change.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-08 08:49:45 +00:00
eban 9e55ce1068 * 2005-11-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-08 06:45:33 +00:00
ocean 871384c0c5 * lib/drb/ssl.rb (DRb::SSLConfig#accept): fixed typo.
[ruby-dev:27560] [ruby-core:4627]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-08 06:42:15 +00:00
nobu 1aa48a4ea9 * ext/iconv/iconv.c: iconvctl() support. [EXPERIMENTAL]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-07 11:55:48 +00:00
usa f4413f1487 * ext/openssl/ossl.h: need to include winsock2.h before including
windows.h by some openssl headers.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-07 07:25:25 +00:00
nagai f1d4dfca2b * ext/tk/stubs.c (_nativethread_consistency_check): use simpler
(low cost) way to check whether the Tcl interpreter was compiled
  with threads enabled of not.
* ext/tk/tcltklib.c: reduce warnings.
* ext/tk/tkutil/tkutil.c: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-07 04:47:08 +00:00
eban f38216d43b * 2005-11-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-06 15:12:40 +00:00
ocean c8769246c9 * lib/yaml.rb: removed :nodoc: to generate Kernel doc. [ruby-core:6324]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-06 15:09:06 +00:00
nobu 7665deeb12 * ext/iconv/iconv.c (Iconv::BrokenLibrary): exception when detected a
bug of underlying library.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-06 14:41:53 +00:00
nobu 62bb03bf5a * ext/iconv/extconf.rb: use 3rd argument to have_library.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-06 14:08:56 +00:00
ocean 84c2dc95de * ext/tk/stubs.c (ruby_tcl_create_ip_and_stubs_init): should touch
interpreter after initialization is done. [ruby-dev:27638]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-06 12:48:43 +00:00
nobu 556a7ac35f * file.c (rb_file_s_readlink): readlink(2) on AIX fails with ERANGE if
buffer size is less than required.  fixed: [ruby-dev:27634]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-06 11:18:57 +00:00
eban 563ff31625 * 2005-11-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-06 11:16:14 +00:00
eban aec1ef45bf * 2005-11-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-05 04:46:44 +00:00
nobu 49775b88e9 * configure.in, cygwin/GNUmakefile.in (mingw): use def file to alias
symbols.  [ruby-dev:27532]

* bcc32/mkexports.rb, win32/mkexports.rb: make aliases in DLL.

* win32/win32.c, win32/win32.h: replace symbols only when RUBY_EXPORT
  is defined.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-05 04:43:46 +00:00
eban 479b27ac41 * 2005-11-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-03 05:21:45 +00:00
aamine d923e58850 * lib/open-uri.rb (open_loop): find_proxy should return nil when proxy does not exist. [ruby-dev:27630]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-02 22:58:39 +00:00
eban 2b684f7938 * 2005-11-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-02 11:40:08 +00:00
nagai 5b34104f74 * ext/tk/extconf.rb: change the check parameter for Win32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-02 11:28:40 +00:00
nagai 284ac594b3 * ext/tk/sample/demos-jp/widget: make the root window lower than the
sub-demos windows.
* ext/tk/sample/demos-en/widget: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-02 10:12:20 +00:00
nagai 0e05806f36 * ext/tk/tcltklib.c (ip_rbUpdateObjCmd, ip_rb_threadUpdateObjCmd): passed improper flags to DoOneEvent().
* ext/tk/tkutil/tkutil.c: use rb_obj_respond_to() instead of rb_respond_to().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-02 10:06:29 +00:00
matz 9974cb96d3 * eval.c (rb_call_super): should call method_missing if super is
called from Kernel method.

* eval.c (exec_under): frame during eval should preserve external
  information.

* configure.in: use proper option for Sun linker. A patch from
  Shinya Kuwamura <kuwa@labs.fujitsu.com>.  [ruby-dev:27603]

* numeric.c (fix_rshift): RDoc fix.  [ruby-core:6351]

* util.h (strtod): add #undef for platforms defines strtod()
  macro.   [ruby-dev:27563]

* ext/etc/etc.c: document update from mathew <meta@pobox.com>.
  [ruby-core:06473]

* ext/fcntl/fcntl.c: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-01 13:04:35 +00:00
eban cc1b72bc22 * 2005-11-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-01 01:58:43 +00:00
gotoyuzo 79bf99f7b2 * ext/openssl/extconf.rb: should check ERR_peek_last_error().
[ruby-dev:27597]

* ext/openssl/ossl.c (ossl_raise): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-01 01:52:13 +00:00
gotoyuzo ab509c0edb * ext/openssl/ossl_cipher.c (ossl_cipher_update): input data must
not be empty. [ruby-talk:161220]

* test/openssl/test_cipher.rb: add test for Cipher#update("").


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-30 20:50:48 +00:00