nobu
15700ff0be
* include/ruby/ruby.h (USE_SYMBOL_AS_METHOD_NAME): Module#methods,
...
#singleton_methods and so on return Symbols. [ruby-talk:328775]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-23 01:19:43 +00:00
nobu
7e162b150d
* README.EXT, README.EXT.ja: added macros for the Compatibilities.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-23 01:15:37 +00:00
nobu
02bfe1f6e7
typo
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-23 01:14:26 +00:00
akr
97ef9728d5
* ext/socket/mkconstants.rb: define SO_TIMESTAMPNS and SCM_TIMESTAMPNS
...
if available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 18:20:11 +00:00
akr
decee68028
add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 18:14:01 +00:00
akr
b7fe065741
* ext/socket/ancdata.c (ancillary_inspect): use SCM_TIMESTAMP instead
...
of SO_TIMESTAMP. SCM_TIMESTAMP != SO_TIMESTAMP on MacOS X.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 17:55:52 +00:00
akr
475a350df8
* ext/socket/ancdata.c (inspect_timeval_as_abstime): new function.
...
(ancillary_inspect): use it for SO_TIMESTAMP.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 17:46:51 +00:00
akr
0c95958c2d
* ext/socket/option.c (inspect_timeval_as_interval): renamed from
...
inspect_timeval.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 17:27:15 +00:00
akr
cdca4e19d0
* ext/socket/option.c (inspect_timeval): fix the size test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 17:10:47 +00:00
akr
e5dd6a792d
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 16:25:06 +00:00
svn
5a980f5977
* 2009-02-23
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 16:22:31 +00:00
akr
2e0a20d3e2
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 16:22:28 +00:00
akr
a384273d6d
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 14:38:05 +00:00
nobu
83930529b2
stripped trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 14:26:27 +00:00
nobu
12d2c8ba41
stripped trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 14:23:33 +00:00
nobu
624d07b0e4
* string.c (tr_trans): should recalculate coderange.
...
[ruby-core:22326] (reopened at [ruby-core:22328])
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 13:42:22 +00:00
nobu
7b1bbd59e1
* test/ruby/test_string.rb (test_tr): test for [ruby-core:22328].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 13:38:24 +00:00
akr
80d230c394
* ext/socket/option.c (inspect_linger): message refined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 11:09:55 +00:00
akr
22cef963c3
* ext/socket/init.c (s_recvfrom): use rb_io_wait_readable after
...
recvfrom.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 10:28:38 +00:00
nobu
ec5d31b307
* ChangeLog: [ruby-core:22326] has been fixed at r22505.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 10:23:58 +00:00
akr
c160c6e59e
* ext/socket/option.c (inspect_errno): new function.
...
(sockopt_inspect): use inspect_errno for SO_ERROR.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 09:40:42 +00:00
akr
af7d8584c5
* re.c (Init_Regexp): define Regexp::FIXEDENCODING. [ruby-dev:38066]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 06:12:21 +00:00
nobu
bc59123dc0
* string.c (tr_trans): should not be affected by the encoding of
...
replacement unless actually modified. [ruby-talk:328967]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 05:33:07 +00:00
nobu
0ec57a60af
* ext/socket/init.c (s_recvfrom_nonblock): handles EAGAIN too.
...
* ext/socket/init.c (s_accept_nonblock): ditto, and EPROTO depends
on platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 04:38:46 +00:00
akr
88860a065e
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 04:06:15 +00:00
yugui
5c94b5d113
* eval.c (ruby_options): evaluator now expects iseq instead of tree.
...
* ruby.c (ruby_process_options): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 04:04:31 +00:00
nobu
510f34d615
* Makefile.in (configure): unset PWD to use symlink to building
...
directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 04:03:16 +00:00
nobu
70946fb3ea
* Makefile.in (up): cd doesn't need LC_TIME, VCS needs.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 03:56:37 +00:00
nobu
1e51a7b2c6
* vm_eval.c (method_missing): should not pop cfp if missing method
...
is method_missing. [ruby-core:22298]
* vm_eval.c (rb_raise_method_missing): new function to directly
raise NoMethodError.
* vm_insnhelper.c (vm_call_method): fixed the case method_missing
is missing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 01:47:11 +00:00
nobu
19bbab6140
* vm_eval.c (method_missing): should not pop cfp if missing method
...
is method_missing. [ruby-core:22298]
* vm_eval.c (rb_raise_method_missing): new function to directly
raise NoMethodError.
* vm_insnhelper.c (vm_call_method): fixed the case method_missing
is missing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-22 01:43:59 +00:00
matz
3b39217fb4
* lib/pathname.rb (Pathname#binread): added. [ruby-dev:37952]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-21 19:32:39 +00:00
akr
47c6ecfa64
* ext/socket/ancdata.c (bsock_recvmsg_internal): handle EMSGSIZE as
...
well.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-21 17:16:18 +00:00
akr
6b0f596719
* ext/socket/ancdata.c (bsock_recvmsg_internal): check max length
...
overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-21 17:04:22 +00:00
akr
60f2cec646
* ext/socket/ancdata.c (bsock_recvmsg_internal): don't call
...
discard_cmsg_resource when EMFILE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-21 16:53:30 +00:00
akr
ad2f293d4f
* ext/socket/ancdata.c (bsock_recvmsg_internal): gc when SCM_RIGHTS
...
hit the file descriptor limit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-21 16:49:44 +00:00
akr
9cfe35ad50
* io.c (io_getpartial): error message describes what should be
...
waited after nonblocking error.
(rb_io_write_nonblock): ditto.
* ext/socket/init.c (s_recvfrom_nonblock): ditto.
(s_accept_nonblock): ditto.
* ext/socket/socket.c (sock_connect_nonblock): ditto.
* ext/socket/ancdata.c (bsock_sendmsg_internal): ditto.
(bsock_recvmsg_internal): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-21 15:57:52 +00:00
svn
6adda0379c
* 2009-02-22
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-21 15:32:57 +00:00
akr
d227ca29f4
* ext/socket/ancdata.c (bsock_recvmsg_internal): check recvmsg error
...
earlier.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-21 15:32:52 +00:00
akr
90fc8d84ad
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-21 14:05:07 +00:00
svn
ca38e81fcb
* 2009-02-21
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-21 02:22:41 +00:00
akr
ab1a639cbe
mention the platform which causes cmsg_len > msg_controllen.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-21 02:22:36 +00:00
svn
6ccdc76ffb
* 2009-02-20
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-20 14:29:05 +00:00
usa
8563b285fb
* util.c (rv_alloc, freedtoa): use our normal xmalloc()/xfree() because
...
couldn't free the returned pointer from ruby_dtoa().
* missing/vsnprintf.c (cvt): receive buffer and use/return it instead
of returning the pointer returned from BSD__dtoa().
* missing/vsnprintf.c (BSD_vfprintf): pass buf to cvt() as the buffer.
[ruby-core:22184]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-20 14:29:00 +00:00
akr
09396dcf21
* ext/socket/ancdata.c (make_io_for_unix_rights): cmsg_len may be
...
bigger than msg_controllen.
freeze unix_rights array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-19 14:01:17 +00:00
akr
98f82fc633
* ext/socket/ancdata.c (bsock_recvmsg_internal): fix exception.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-19 13:18:02 +00:00
akr
bed4294451
* ext/socket/ancdata.c (ancillary_unix_rights): method renamed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-19 12:13:38 +00:00
nobu
7c76900458
* template/fake.rb.in: extracted from Makefile.in.
...
* configure.in (fake.rb): prefixed with $(arch)-.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-19 06:47:13 +00:00
nobu
3e1394f36f
* ext/openssl/ossl_ocsp.c (ossl_ocspbres_verify): OCSP_basic_verify
...
returns positive value on success, not non-zero. [ruby-core:21762]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-19 06:39:52 +00:00
nobu
a285f8565d
* lib/tmpdir.rb (@@systmpdir): File.expand_path also joins paths.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-19 06:17:01 +00:00
nobu
22f1a984f1
* ext/etc/etc.c (etc_each_group): defines only when Etc::Group is
...
available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-19 06:14:27 +00:00