kou
d3f1204ede
* lib/rss/trackback.rb: added TrackBack prefix.
...
* lib/rss/maker/trackback.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-15 16:31:31 +00:00
kou
0d2c16d145
* lib/rss/rss.rb (RSS::VERSION): 0.1.5 -> 0.1.6.
...
* test/rss/test_version.rb (RSS::TestVersion#test_version): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-15 16:29:02 +00:00
nobu
1867a3f498
* file.c (file_load_ok): eaccess() returns 0 on success.
...
fixed: [ruby-dev:27713]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-15 14:55:16 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
gotoyuzo
aa57e68b06
* lib/webrick/httpservlet/cgihandler.rb
...
(WEBrick::HTTPServlet::CGIHandler#do_GET): the value of Set-Cookie:
header field should be splited into each cookie. [ruby-Bugs:2199]
* lib/webrick/cookie.rb (WEBrick::Cookie.parse_set_cookie): new method
to parse the value of Set-Cookie: header field.
* test/webrick/test_cookie.rb, test/webrick/test_cgi.rb,
test/webrick/webrick.cgi: add some test for cookie.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-30 20:40:05 +00:00
ocean
58c20fbf61
* test/ruby/test_float.rb (test_precision): test by assert_in_delta.
...
[ruby-dev:27575]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-30 17:37:31 +00:00
tadf
bb6bcd1865
synchronized with date2 3.7
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-29 08:03:46 +00:00
nobu
ea2b0febf0
* enumerator.c (enumerator_allocate): allow subclassing.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-27 11:35:24 +00:00
matz
c6b9f16231
* string.c (scan_once): wrong condition to use mbclen2().
...
[ruby-dev:27535]
* time.c (time_sunday): added predicate methods for the days of the
week. [ruby-list:41340]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-27 08:18:38 +00:00
ocean
c0851c650f
* missing.h, missing/memcmp.c, missing/memmove.c:
...
ANSI compatible interface.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-27 02:55:18 +00:00
ocean
f44333cbff
* ext/syck/implicit.c (syck_type_id_to_uri): should return
...
newly allocated memory. otherwise, type_id will be freed
twice. [ruby-dev:27384] [ruby-core:6385]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-26 00:28:39 +00:00
nobu
8a2612b335
* configure.in (RUBY_EXTERN): macro to export symbols in shared
...
library. [ruby-core:05528]
* defines.h, {bcc32,win32,wince}/Makefile.sub (RUBY_EXTERN): moved to
configuration pass.
* ext/extmk.rb (extmake): RUBY_EXTERN for static linked extensions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-25 17:00:03 +00:00
ocean
ed91275a98
* ruby.h (Qfalse, Qtrue, Qnil, Qundef): make sure these immediate
...
values have VALUE type. there is an environment where sizeof(VALUE)
!= sizeof(int) like IA64. if 32bit integer (Qtrue) is passed to ANYARGS
and received by 64bit integer (VALUE), upper bits may have garbage value.
[ruby-dev:27513]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-25 11:21:08 +00:00
ocean
a31918d635
* gc.c (garbage_collect): sorry, previous commit was incorrect.
...
[ruby-core:6386]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-25 05:30:10 +00:00
ocean
d8e5ec121a
* gc.c (garbage_collect): return now whether there're rooms for new
...
objects, rather than whether GC run. fixed: [ruby-core:6376]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-25 04:44:51 +00:00
nobu
a7f4a9dc03
* lib/rdoc/markup/simple_markup.rb (SM::SimpleMarkup::LABEL_LIST_RE):
...
reduce redundant backtrack. [ruby-talk:161771]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-24 17:13:42 +00:00
seki
def653cd80
RDoc documentation from Eric Hodel <drbrain@segment7.net> added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-24 15:38:47 +00:00
nobu
141666b1e2
* configure.in, io.c: use sys/syscall.h if syscall.h is not available.
...
[ruby-core:06247]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-24 12:15:26 +00:00
usa
c90f3b2d90
* ext/Win32API/lib/win32/resolv.rb (get_info): support multiple DNS.
...
fixed: [ruby-list:40058], [ruby-dev:27479]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-24 11:41:15 +00:00
nagai
7aae276e6b
* ext/tk/lib/tk/canvas.rb (TkCanvasItemConfig::__item_val2ruby_optkeys):
...
typo fixed. [ruby-talk:162187]
* ext/tk/lib/tk/menu.rb (TkMenuEntryConfig::__item_val2ruby_optkeys):
ditto. [ruby-core:06359]
* ext/tk/lib/tk.rb: update RELEASE_DATE
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-24 02:06:53 +00:00
nagai
3dd3b2136b
* ext/tk/extconf.rb: improbe messages [ruby-core:06325].
...
* ext/tk/lib/tk.rb, ext/tk/lib/tk/canvas.rb, ext/tk/lib/tk/entry.rb,
ext/tk/lib/tk/frame.rb, ext/tk/lib/tk/image.rb,
ext/tk/lib/tk/itemconfig.rb, ext/tk/lib/tk/labelframe.rb,
ext/tk/lib/tk/listbox.rb, ext/tk/lib/tk/menu.rb,
ext/tk/lib/tk/radiobutton.rb, ext/tk/lib/tk/scale.rb,
ext/tk/lib/tk/spinbox.rb, ext/tk/lib/tk/text.rb,
ext/tk/lib/tk/toplevel.rb: improve conversion of option values.
* ext/tk/lib/tkextlib/*: ditto.
* ext/tk/lib/tkextlib/*: update to support ActiveTcl8.4.11.2.
* ext/tk/lib/tkextlib/trofs/*: support Trofs 0.4.3.
* ext/tk/lib/tkextlib/tile/*: support Tile 0.7.2.
* ext/tk/lib/tkextlib/vu/*: support vu 2.3.0.
* ext/tk/lib/tkextlib/tcllib/*: support Tcllib 1.8 (Tklib 0.3).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-22 22:17:08 +00:00
nobu
d6837060be
* ext/extmk.rb, lib/mkmf.rb (with_config): support --with-extension
...
options. [ruby-dev:27449]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-22 14:55:07 +00:00
ocean
eb82473a39
* util.[hc] (ruby_add_suffix): constified.
...
* util.[hc] (ruby_scan_{oct,hex}): fixed typo. (renamed from
scan_{oct,hex})
* util.c: almostly ANSI styled. (except for functions depending on
macro and K&R tecknique)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-22 05:26:44 +00:00
nobu
0cfe16bc21
* ext/tk/lib/tk/font.rb, ext/tk/lib/tkextlib/ICONS/icons.rb,
...
ext/tk/sample/tkextlib/treectrl/demo.rb, lib/net/imap.rb,
lib/rss/parser.rb, test/rss/test_content.rb,
test/rss/test_dublincore.rb, test/rss/test_syndication.rb,
test/rss/test_trackback.rb, test/ruby/test_eval.rb,
test/socket/test_socket.rb, test/socket/test_udp.rb:
Object#fcall was renamed as Object#funcall.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-22 04:48:34 +00:00
nobu
e819e0c778
* time.c (rb_strftime): removed meaningless volatile modifiers, and
...
concatenate successive nul characters at once. [ruby-dev:27472]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-22 04:27:48 +00:00
nobu
62af481d0e
* object.c (sym_inspect), parse.y (parser_yylex, rb_symname_p): check
...
if valid as a symbol name more strictly. [ruby-dev:27478]
* test/ruby/test_symbol.rb: tests for [ruby-core:03573].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-22 04:09:24 +00:00
ocean
9c60701e4f
* missing.h, missing/*.c: SUSv3 compatible strcasecmp and strncasecmp,
...
ANSI compatible strtol and strtoul, and ANSI styled other functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-22 01:28:00 +00:00
ocean
1a61008f18
* rubysig.h (CHECK_INTS): fixed typo. (I believe bit-or is improper)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-21 10:23:03 +00:00
matz
5b014a7427
* bin/erb (ERB::Main::run): typo fixed. [ruby-core:06337]
...
* env.h: move struct METHOD and struct BLOCK from eval.c to
support NodeWrap and ParseTree.
* rubysig.h (CHECK_INTS): prevent signal handler to run during
critical section. [ruby-core:04039]
* eval.c (load_wait): need not to call rb_thread_schedule()
explicitly. [ruby-core:04039]
* eval.c (rb_thread_schedule): clear rb_thread_critical.
[ruby-core:04039]
* eval.c (rb_obj_instance_exec): create instance_exec and
module_exec which pass arguments to the block.
* eval.c (rb_f_funcall): rename fcall to funcall to follow
tradition.
* st.c (st_free_table): do not call free() but xfree().
[ruby-core:06205]
* eval.c (splat_value): call rb_Array() to convert svalue to
values. [ruby-dev:27397]
* lib/cgi.rb (CGI::Cookie::parse): Cookies from Nokia devices may
not be parsed correctly. A patch from August Z. Flatby
(augustzf) in [ruby-Patches-2595]. [ruby-core:06183]
* object.c (rb_Array): Array() to raise error for objects without
to_ary, nor to_a.
* object.c (nil_to_a): revert NilClass#to_a.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-21 09:00:02 +00:00
ocean
73f94bb851
* intern.h, struct.c (rb_struct_iv_get): constified.
...
* marshal.c: avoid one VC++6 warning for implicit conversion
from int to char.
* ruby.h: ANSI styled.
* bcc32/Makefile.sub (HAVE_HYPOT): added.
* ext/socket/extconf.rb: BeOS is only one platform should call
closesocket, so check __BEOS__ macro directly. (I was worried
accidently HAVE_CLOSESOCKET is defined on windows again because
it has it)
* ext/socket/{getaddrinfo.c,socket.c}: ditto.
... these are all cosmetic changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-21 06:46:41 +00:00
ocean
b4236d6e71
* time.c: should use LONG_LONG instead of `long long'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-21 06:33:00 +00:00
ocean
ee2434851b
* bignum.c (bignew_1): convertion from `int' to `char' discards
...
upper bits, (ie. (char)0xff00 -> 0) so it's better to test if
nonzero and set 0 or 1 instead of simply casting ... as a flag usage.
(but I believe this won't cause actual bug in current implementation)
[ruby-dev:27055]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-21 06:28:41 +00:00
nobu
d284e44687
* ext/ripper/tools/preproc.rb (prelude): do not append surplus
...
newlines to fix line numbers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-20 13:23:26 +00:00
nobu
14029df930
* parser.y (struct parser_params): parser never modify input string.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-20 13:15:19 +00:00
ocean
e29bce0750
* class.c, eval.c, hash.c, st.c, variable.c: changed /* ??? */ stuff
...
protoize generated to ANYARGS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-20 02:56:22 +00:00
ocean
64c8c730d7
* eval.c, file.c, ruby.c: removed strchr, strrchr, strstr definition
...
because they are defined in missing.h.
* missing.h, missing/strchr.c, missing/strstr.c: ANSI styled.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-20 02:22:50 +00:00
ocean
7f60c0289c
* lib/mkmf.rb (create_makefile): Borland make seems not to allow
...
empty dependency list. If this change is not good, please correct
it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-20 00:42:43 +00:00
nobu
834bd9db0b
* lib/mkmf.rb (create_makefile): get rid of a restriction
...
of Borland make. fixed: [ruby-dev:27460]
* ext/ripper/depend: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-19 22:55:51 +00:00
nobu
c033f534c6
* ChangeLog: wrong log.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-19 15:07:04 +00:00
nobu
d32dc2b9fe
* lib/mkmf.rb (create_makefile): do not unnecessary empty directories.
...
fixed: [ruby-dev:27451]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-19 14:58:51 +00:00
nobu
62de00b7d1
* file.c (rb_file_join): elements may contain null pointer strings.
...
report and fixed by Lloyd Zusman (hippoman): [ruby-core:06326]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-18 23:29:24 +00:00
nobu
9c871d5a5a
* enumerator.c, eval.c, gc.c, parse.y, regparse.c, sjis.c, time.c:
...
made internal symbols static. [ruby-dev:27435]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-18 17:35:18 +00:00
usa
0245c7aa16
* ext/dl/depend, ext/dl/extconf.rb, ext/socket/depend,
...
ext/socket/extconf.rb: shouldn't define DESTCLEANFILES in depend,
use $distcleanfiles in extconf.rb.
* win32/Makefile.sub (distclean-local): should remove .config.h.time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-18 02:01:24 +00:00
usa
fa31502b80
* mkconfig.rb: fixup configure_args for mswin32 configure.
...
* win32/configure.bat (srcdir, target): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-17 00:44:54 +00:00
nobu
64a1809ce2
* ext/extmk.rb: omit non-existing directories.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-16 13:17:43 +00:00
seki
898f094d8d
check remote hash tuple
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-16 05:43:19 +00:00
usa
45cab7d104
* win32/configure.bat: remove unnecessary line which prevents
...
creating Makefile.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-15 15:15:58 +00:00
shugo
65867866a8
* lib/net/ftp.rb: (getbinaryfile): allow nil for localfile, and
...
returns retrieved data if localfile is nil.
* lib/net/ftp.rb: (gettextfile): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-15 14:54:03 +00:00
seki
59f296ffb4
typo fixed, again. thanks, Doug Kearns.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-15 10:57:50 +00:00
nobu
f76f6155e1
* win32/Makefile.sub (MKFILES): update MKFILES if configure files get
...
changed.
* win32/configure.bat, win32/setup.mak (configure_args): store
arguments to configure files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-14 14:10:08 +00:00
usa
b367743e92
* win32/win32.c (ioctl): should set errno.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-14 13:09:11 +00:00
gotoyuzo
8c293539cd
* lib/webrick/config.rb (Config::FileHandler): :UserDir should be nil.
...
It is harmful to permit the access to ~/public_html by default.
suggested by Hiroyuki Iwatsuki.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-14 07:40:47 +00:00
nobu
0ccc5dbe83
* io.c, pack.c, ext/syck/rubyext.c, ext/syck/syck.h, missing/isinf.c:
...
get rid of warnings. fixed: [ruby-core:06247]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-13 14:30:54 +00:00
nobu
ee499a8745
* parse.y (HEAPCNT): bison allocates indivisible size.
...
fixed: [ruby-core:06261]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-13 14:26:00 +00:00
gotoyuzo
ff2b8b31c2
* ext/openssl/ossl.c (Init_openssl): should call OpenSSL_add_ssl_algorithms().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-12 03:56:04 +00:00
eban
fea2b2378f
* file.c (rb_f_test): typo in RDoc comments.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-12 02:14:50 +00:00
nobu
cc2334bd7b
* eval.c (rb_obj_respond_to): check if obj responds to the given
...
method with the given visibility. [ruby-dev:27408]
* eval.c (rb_respond_to): conform to Object#respond_to?. [ruby-dev:27411]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-11 12:42:50 +00:00
nobu
1b03efee58
* array.c, enum.c, eval.c, util.c: safer function pointer usage.
...
fixed: [ruby-core:06143]
* util.h (qsort): removed the definition incompatible to ANSI.
fixed: [ruby-core:06147]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-11 12:30:48 +00:00
nobu
32f264bfef
* configure.in (RUBY_FUNC_ATTRIBUTE): check prefixed attribute form
...
first. [ruby-dev:27398]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-11 12:29:11 +00:00
nobu
ab81f87302
* parse.y (ripper_initialize): rollback obj_respond_to().
...
fixed: [ruby-dev:27406]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-09 15:10:24 +00:00
nobu
68b062d402
* eval.c (Init_Binding): add Binding#dup method. [yarv-dev:666]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-08 10:50:08 +00:00
nobu
ec12edb11c
* lib/scanf.rb (Scanf::FormatSpecifier#letter, #width): use matched
...
substring directly.
* ext/nkf/lib/kconv.rb (Kconv.conv): get rid of nil.to_a.
* test/ruby/test_assignment.rb, test/ruby/test_iterator.rb: followed
change of sample/test.rb.
* test/net/http/test_http.rb: removed superfluous splatting stars.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-08 10:45:52 +00:00
nobu
8fb6f790fe
* io.c (rb_io_init_copy): clear PREP flag for copied IO.
...
fixed: [ruby-dev:27371]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-08 10:33:24 +00:00
nobu
ea6b149fd8
* 2005-10-08
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-08 10:19:51 +00:00
nobu
2b291d3806
* ext/iconv/charset_alias.rb: parse config.charset_alias file directly.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-08 10:15:50 +00:00
nobu
04bdcf8432
* parse.y (rb_parser_malloc, rb_parser_free): manage parser stack on
...
heap. [ruby-list:41199]
* parse.y (ripper_initialize): use rb_respond_to().
* ext/ripper/depend (check): get rid of re-generating ripper.y always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-08 09:58:25 +00:00
aamine
1022702acf
* ext/strscan/strscan.c (strscan_free): remove useless code. [ruby-dev:26368] [ruby-dev:27389]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-06 11:11:23 +00:00
matz
22f1926644
* range.c (rb_range_beg_len): should return Qfalse for non-range
...
object.
* pack.c (EXTEND16): [ruby-dev:27383]
* eval.c (set_trace_func): add rb_secure(4) to prevent adding
tracing function.
* lib/delegate.rb: document update from James Edward Gray II
<james@grayproductions.net>. [ruby-core:05942]
* process.c (proc_daemon): should restrict execution on levels
higher than $SAFE=2. suggested by URABE Shyouhei
<shyouhei@ice.uec.ac.jp>.
* lib/forwardable.rb: replaced by new implementation from
<Daniel.Berger@qwest.com>. [ruby-core:05899]
* file.c (path_check_0): disallow sticky world writable directory
in PATH (and $LOAD_PATH). [ruby-dev:27226]
* numeric.c (fix_idiv): 1.div(1.0) should return integer value.
[ruby-dev:27235]
* lib/yaml.rb: require 'yaml/constants'. [ruby-core:5776]
* lib/xmlrpc/client.rb (XMLRPC::Client::do_rpc): add charset
information to content-type header.[ruby-core:5127]
* lib/xmlrpc/server.rb (CGIServer::serve): ditto.
* lib/xmlrpc/server.rb (ModRubyServer::serve): ditto.
* lib/xmlrpc/server.rb (WEBrickServlet::service): ditto.
* test/dbm/test_dbm.rb (TestDBM::test_s_open_error): remove
test_s_open_error test to detect duplicate open.
[ruby-dev:27202]
* eval.c (splat_value): use to_a to splat non Array object.
* object.c (nil_to_a): remove nil.to_a. [experimental]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-05 16:15:16 +00:00
gotoyuzo
0c8d8b3f55
* lib/xmlrpc/server.rb (XMLRPC::Server#initialize): should mount the
...
servlet on "/".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-04 19:46:35 +00:00
gotoyuzo
1355933d89
* lib/xmlrpc/server.rb (XMLRPC::Server#serve): delete wrong call
...
of "join".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-04 19:09:56 +00:00
usa
1110e7123c
* win32/win32.c (do_select, rb_w32_select): brush up.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-01 14:57:06 +00:00
akr
36941b8465
* bignum.c (rb_big_rand): removed. [ruby-dev:25405]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-01 04:11:43 +00:00
akr
372809129d
* lib/open-uri.rb (OpenURI.open_loop): prohibit multiple proxy
...
options.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-30 16:48:46 +00:00
akr
fc1bdda026
* ext/dl/cptr.c (rb_dlptr_s_to_ptr): abolish sizeof(FILE).
...
[ruby-dev:27317]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-29 01:28:56 +00:00
akr
44594b243d
* lib/open-uri.rb (:proxy_http_basic_authentication): new option.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-29 01:18:14 +00:00
nobu
c7ffe40f11
* evalc. (rb_f_send): underscores need to be escaped.
...
fixed by Doug Kearns. [ruby-core:06053]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-28 22:22:44 +00:00
nobu
962bcf1394
* eval.c (ev_const_get), variable.c (rb_const_get_0): retry only when
...
autoload succeeded.
* variable.c (rb_autoload_load): now return true if autoload
succeeded. fixed: [ruby-dev:27331]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-28 15:58:32 +00:00
nobu
2a05d8c7fb
* file.c (rb_stat_inspect): constified.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-28 14:40:25 +00:00
gotoyuzo
08ec75e427
* lib/webrick/cgi.rb (WEBrick::CGI#start): req.query_string should
...
refer the value of QUERY_STRING. [ruby-list:41186]
* lib/webrick/httprequest.rb (WEBrick::HTTPRequest#query_string=):
add new method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-28 06:16:59 +00:00
nagai
64edb6d31d
* ext/tk/tcltklib.c: cannot compile with Tcl/Tk8.0.x
...
[ruby-dev:27335].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-28 01:48:53 +00:00
nobu
462fd870d7
* lib/yaml/basenode.rb (YAML::BaseNode::match_segment): fix typo.
...
[ruby-dev:27237], [ruby-core:05854]
* lib/yaml/tag.rb (Module#yaml_as): suppress warnings.
* lib/yaml/types.rb (YAML::PrivateType, YAML::DomainType): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-27 22:57:53 +00:00
usa
b1d08eabda
* rubysig.h: fixed build problem with --enable-pthread on platforms
...
which don't have setitimer().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-27 18:24:11 +00:00
nobu
7aefa8e580
*** empty log message ***
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-26 12:44:47 +00:00
ocean
1a6ce22dfa
* parse.y: changed to ANSI function style.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-26 12:01:29 +00:00
nobu
cd5a5a30c0
* lib/optparse.rb (RequiredArgument#parse): not consume unmatched
...
argument. fixed [ruby-dev:27316]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-25 22:56:15 +00:00
seki
977176d702
typo fixed
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-25 03:06:23 +00:00
seki
14b6275a02
(Rinda::TemplateEntry::initialize): pull up method. Tabs converted to spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-25 02:56:26 +00:00
ocean
159642bc75
* parse.y: replaced `foo _((boo))' with `foo(boo)'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-25 00:39:22 +00:00
nobu
9b9a3dc54e
* test/rss/test_content.rb, test/rss/test_syndication.rb: use fcall
...
instead of send in order to override visibility.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-24 23:20:15 +00:00
nobu
9e12dc5ce9
* misc/ruby-mode.el (ruby-calculate-indent): arrange deep-indent
...
closing parenthesis at same column as the opening.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-24 16:47:20 +00:00
akr
dd5564b5fd
* process.c (proc_setrlimit): make the third argument (rlim_max)
...
optional.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-24 16:36:11 +00:00
nobu
62c220a74a
* misc/ruby-mode.el (ruby-expr-beg): deal with heredoc separately.
...
fixed: [ruby-list:41168]
* misc/ruby-mode.el (ruby-calculate-indent): not to deepen indent
level for continuous line inside parentheses.
http://nabeken.tdiary.net/20050915.html#p02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-24 15:43:17 +00:00
aamine
d277603d5e
* ext/strscan/strscan.c: document enhancement.
...
* ext/strscan/strscan.c: update copyright year.
* ext/strscan/strscan.c: update coding style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-24 12:20:14 +00:00
aamine
51cb36cc0e
add details
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-24 11:42:40 +00:00
aamine
8e1d3e5498
* test/net/http/test_http.rb (teardown): ensure that Net::HTTP is version 1.2. [ruby-dev:27312]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-24 11:25:29 +00:00
aamine
74b34477e2
* test/net/http/test_http.rb: new file.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-24 02:45:02 +00:00
aamine
8a6eb889e0
* lib/fileutils.rb (cd): no longer accept :noop option, related code is useless. [ruby-core:05858] [ruby-Bugs:2494]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-23 23:54:57 +00:00
akr
9bfb4dc6ac
* lib/pathname.rb (Pathname#sub): new method.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-23 23:32:29 +00:00
aamine
a33aa9c9f4
* lib/fileutils.rb: fix visibility of FileUtils::NoWrite, Verbose, DryRun. [ruby-core:05954]
...
* test/fileutils/test_nowrite.rb: test it.
* test/fileutils/test_dryrun.rb: new file.
* test/fileutils/test_verbose.rb: new file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-23 23:30:09 +00:00
aamine
4a092d08f4
* sample/ripper/colorize.rb: removed (replaced by ruby2html.rb).
...
* sample/ripper/ruby2html.rb: added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-23 22:59:57 +00:00
aamine
1d62cc0ecc
* ext/ripper: no longer generates .rb files.
...
* parse.y (Init_ripper): ripper_init_eventids*() takes 1 argument, self (class Ripper).
* ext/ripper/depend: target removed: `lib/ripper/core.rb'.
* ext/ripper/depend: new target `eventids2table.c'.
* ext/ripper/depend: new target `check'.
* ext/ripper/eventids2.c: include eventids2table.c.
* ext/ripper/eventids2.c: initialize SCANNER_EVENT_TABLE.
* ext/ripper/extconf.rb: update $cleanfiles list.
* ext/ripper/tools/generate.rb: no longer generate ripper/core.rb.
* ext/ripper/tools/generate.rb: new mode `check'.
* ext/ripper/tools/generate.rb: new mode `eventids2table'.
* ext/ripper/lib/ripper/core.rb.in: removed.
* ext/ripper/lib/ripper/core.rb: added.
* ext/ripper/lib/ripper/filter.rb: update copyright year.
* ext/ripper/lib/ripper/lexer.rb: ditto.
* ext/ripper/lib/ripper/sexp.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-23 21:37:38 +00:00
nobu
2d683b3190
* ext/ripper/tools/generate.rb, ext/ripper/tools/preproc.rb: StringIO
...
is not available for miniruby. fixed: [ruby-dev:27307]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-23 11:10:59 +00:00
suke
5d71328bca
avoid core dump with WIN32OLE_EVENT.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-23 08:39:24 +00:00
aamine
bafc88f1f1
* test/ripper/depend: use --output option instead of redirect; nmake does not remove a target when the target file is created by redirect. [ruby-dev:26466]
...
* test/ripper/tools/preproc.rb: new option --output.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-22 22:08:47 +00:00
aamine
42d9ecc125
* test/ripper/tools/generate.rb: check parser event arity.
...
* test/ripper/tools/generate.rb: detect crash of parser-event-IDs and scanner-event-IDs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-22 22:01:32 +00:00
aamine
f535461975
* test/ruby/test_file.rb: check File#chown(nil,nil). [ruby-dev:27140]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-22 21:01:58 +00:00
aamine
a697b1f602
* ext/ripper: refactoring code generation tools. [ruby-dev:27247] [ruby-dev:27273]
...
* ext/ripper/depend: use generate.rb.
* ext/ripper/lib/ripper/core.rb: removed.
* ext/ripper/tools/generate-eventids1.rb: removed (code moved to generate.rb).
* ext/ripper/tools/generate-ripper_rb.rb: removed (code moved to generate.rb).
* ext/ripper/tools/list-parse-event-ids.rb: removed (code moved to generate.rb).
* ext/ripper/tools/list-scan-event-ids.rb: removed (code moved to generate.rb).
* ext/ripper/lib/ripper/core.rb: removed.
* ext/ripper: refactoring tests. [ruby-dev:27273]
* ext/ripper/test/check-event-arity.rb: removed (code moved to tools/generate.rb).
* ext/ripper/test/check-event-coverage.rb: removed (code moved to test/ripper/test_parser_events.rb).
* ext/ripper/test/check-scanner-event-coverage.rb: removed (code moved to test/ripper/test_scanner_events.rb).
* ext/ripper/test/list-called-events.rb: removed.
* ext/ripper/test/src_rb: removed.
* ext/ripper/test/validate.rb: removed.
* test/ripper/test_scanner_events.rb: check event coverage.
* ext/ripper/lib/ripper/core.rb.in: update copyright year.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-22 20:58:10 +00:00
nobu
6fb86f740b
* ext/ripper/extconf.rb (have_command): replaced with find_executable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-22 14:40:37 +00:00
nobu
4857e1d300
* lib/mkmf.rb (find_executable0): default path if environment is not
...
set. [ruby-dev:27281]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-22 14:37:02 +00:00
shugo
759410a8c9
* test/readline/test_readline.rb (TestReadline::replace_stdio):
...
merged the patch of [ruby-dev:25232] instead of [ruby-dev:25223].
(merged from ruby_1_8 branch)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-22 08:33:05 +00:00
nobu
c6b5ca0e21
* lib/mkmf.rb (configuration): generalized nmake dependent code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-21 14:31:20 +00:00
usa
5cbb885ce1
* ext/ripper/depend (SUFFIXES): no longer needed.
...
* ext/ripper/depend (c): avoid nmake problem. fixed [ruby-dev:27191]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-21 05:17:54 +00:00
why
741179662d
* ext/syck/token.c: correctly compute identation of a block
...
scalar's parent node. [ruby-talk:150620]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 23:58:18 +00:00
nobu
7f249811e1
* README.EXT, README.EXT.ja: add new features.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 23:20:58 +00:00
nobu
898c734378
* lib/optparse.rb (default_argv, Arguable#options): defaults strings
...
to be parsed to Arguable instance.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 22:45:06 +00:00
nobu
66e67afd45
* ChangeLog: tabified.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 14:59:51 +00:00
nobu
c59306cccb
* file.c (rb_stat_inspect): protoized function pointer.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 13:25:59 +00:00
nobu
ca829d5926
* ext/io/wait/lib/nonblock.rb: disable on platforms non-blocking flag
...
is not available. fixed: [ruby-dev:27187]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 12:26:58 +00:00
akr
e41b0ce6a3
* eval.c (thread_mark): mark th->last_status. [ruby-dev:27179]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 09:26:35 +00:00
ocean
cc29d740b6
* test/webrick/test_cgi.rb: set ENV["PATH"] to CGIEnvPath on
...
windows. bcc32's runtime is not installed into system directory,
so it cannot be found without this setting. [ruby-dev:27166]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 08:35:52 +00:00
ocean
184766e02e
* io.c: PIPE_BUF is not defined on BeOS. use _POSIX_PIPE_BUF instead.
...
[ruby-dev:27185]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 08:14:56 +00:00
why
d578f9d32e
* ext/syck/emitter.c (syck_scan_scalar): prevent indicators from
...
appearing alone or at the end of plain scalars. [ruby-core:5826]
* ext/syck/emitter.c (syck_emit_scalar): treat typed scalar nodes
as complex keys.
* lib/syck.h: version 0.60.
* lib/yaml/basenode.rb (YAML::BaseNode#at): transform keys during
key searches.
* ext/syck/rubyext.c: loading of binary-typed nodes. prevent
emission of plain strings that look like symbols, but which aren't.
* ext/syck/emitter.c (syck_emit): passing an int* value to the
long* parameter causes unaligned access on LP64 systems.
[ruby-dev:27161]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 06:50:20 +00:00
ocean
34b3f481dc
* test/xmlrpc/test_webrick_server.rb (setup_http_server):
...
should not include 'webrick/https' unless 'use_ssl' because
it fails where openssl is not installed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-19 20:51:36 +00:00
matz
4e07664e19
* lib/mathn.rb (Fixnum): remove debug print.
...
* lib/rational.rb (Rational): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-19 16:02:55 +00:00
matz
7559d2fd7a
* io.c (io_close): call rb_io_close() directly if io is a T_FILE
...
object. [ruby-dev:27156]
* file.c (file_expand_path): allow pathnames to expand.
[ruby-dev:27152]
* numeric.c (Init_Numeric): should define Fixnum#div.
[ruby-dev:27129]
* file.c (rb_thread_flock): wrap flock(2) by TRAP_BEG and
TRAP_END. [ruby-dev:27122]
* file.c (rb_file_join): call FilePathValue() to all Pathnames to
join. [ruby-dev:27127]
* file.c (rb_get_path): call StringValueCStr() to ensure no nul
bytes in path strings.
* gc.c (garbage_collect): need value for return. [ruby-dev:27127]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-19 16:01:06 +00:00
aamine
5363e91dba
* file.c (rb_file_chown): should accept nil. [ruby-dev:27171]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-19 09:58:52 +00:00
aamine
b24efbebaa
not ruby-dev, but ruby-list. [ruby-list:41054]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-19 06:23:31 +00:00
aamine
7ce50d8dd5
* lib/find.rb: should raise ENOENT if root entry does not exist. [ruby-dev:41054]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-19 06:22:04 +00:00
aamine
70373e2e54
* ext/ripper/depend: do not make ripper/core.rb. [ruby-dev:26462]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-19 06:12:35 +00:00
aamine
ae860f9a56
* ext/ripper/eventids2.c: add prefix `t' to lambda related lexer events.
...
* ext/ripper/lib/ripper/core.rb: updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-19 05:50:17 +00:00
aamine
04165c20fe
* parse.y (do_block): do_block event dispatches 2 args. [ruby-dev:26964]
...
* ext/ripper/lib/ripper/core.rb: updated.
* ext/ripper/tools/list-parser-event-ids.rb: check arity mismatch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-19 05:40:47 +00:00
ocean
1e63c302db
additional ChangeLog for rb_w32_select
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-19 04:33:00 +00:00
gotoyuzo
246f5cfe67
* ext/openssl/ossl_pkey.h, ossl_pkey_rsa.c, ossl_pkey_dsa.c:
...
an instance variable "private" is added to OpenSSL::PKey class.
this ivar is a flag that shows whether there is a private key
in the instance.
* ext/openssl/ossl_engine.c: (ossl_engine_load_privkey): set private
key flag.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-18 22:56:11 +00:00
aamine
8885a8720d
* lib/fileutils.rb: method renaming: collect_methods -> collect_method.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-18 21:38:40 +00:00
aamine
b7083f661d
* lib/fileutils.rb: use module_function instead of single extend.
...
* test/fileutils/test_fileutils.rb: test existence of singleton methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-18 20:59:29 +00:00
aamine
14d206dbb5
* lib/fileutils.rb (remove_entry_secure): does not use chdir(2).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-18 20:33:01 +00:00
akr
1ad103b7f8
* file.c (rb_thread_flock): wrap the flock system call by
...
TRAP_BEG/TRAP_END to enable signals. [ruby-dev:27122]
* ext/socket/socket.c (bsock_send): wrap the sendto and send system
call by TRAP_BEG/TRAP_END to enable signals when writing to a socket
which is full. [ruby-dev:27132]
* io.c (rb_io_syswrite): wrap the write system call by
TRAP_BEG/TRAP_END to run signal hander in syswrite method.
[ruby-dev:27134]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-18 18:29:19 +00:00
nobu
9af6e57230
* ChangeLog: fix typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-18 00:25:20 +00:00
why
f3d9f34537
* lib/yaml/rubytypes.rb: remove comments that are bungling up
...
the rdoc and ri output. output symbols as plain scalars.
* ext/syck/rubyext.c (syck_emitter_reset): emit headless
documents always.
* ext/syck/emitter.c (syck_scan_scalar): quote scalars with any
kind of surrounding line space, tabs or spaces alike.
* ext/syck/token.c: accept tabs as whitespace, not for indentation,
but strip from plain scalars.
* test/yaml/test_yaml.rb: remove outdated tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-17 17:22:49 +00:00
nobu
17f4f5f507
* ChangeLog: commit miss, forgot to add log for file.c.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-17 16:14:56 +00:00
nobu
273c4d116b
* gc.c (garbage_collect): return false if no GC run.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-17 16:10:53 +00:00
matz
48dcf7ad36
* lib/mathn.rb (Rational::inspect): should preserve original
...
operand. [ruby-core:05806]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-17 16:00:23 +00:00
matz
ffe2293998
* test/socket/test_tcp.rb (TestTCPSocket::test_recvfrom): typo
...
fixed. [ruby-dev:27123]
* string.c (rb_str_substr): should propagate taintness even for
empty strings. [ruby-dev:27121]
* string.c (rb_str_aref): should infect result if range argument
is tainted. [ruby-dev:27121]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-17 14:40:06 +00:00
ocean
f2107f2ec1
* win32/win32.c (rb_w32_select): fixed deadlock bug.
...
because select(2) modifies its fd_set arguments, it must be
restored sometimes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-17 12:20:07 +00:00
ocean
eca8977b34
no message
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-17 06:32:20 +00:00
ocean
bf4e0d7353
* test/ruby/test_readpartial.rb (test_open_pipe, test_with_stdio):
...
these tests are working now, so turned on. (windows)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-17 05:57:53 +00:00
ocean
f0bcbbef67
* win32/win32.c (rb_w32_select): I hope performance problem was
...
solved.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-17 05:22:33 +00:00
ocean
aa21055faf
* win32/win32.c (rb_w32_select): console support is back.
...
but still has performance problem because I loosely took 1 second
for wait time. I'll fix it later. (The reason I drastically changed
the code is that I wanted to implement the fileset management as
single function, and I was worried that if pipe or console
was always available, socket may not be processed any time)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-17 04:53:26 +00:00
ocean
846b1c35e5
* win32/win32.c (rb_w32_select): select for socket didn't work.
...
this caused deadlock in drb test. this happened because GetFileType
for socket handle returns FILE_TYPE_PIPE. Of course, it's not a
pipe. So socket handle didn't reach winsock's select function.
* win32/win32.c (rb_w32_select): read for pipe still kept brocking
even if writer handle was closed.
r,w = IO.pipe
Thread.new {
sleep 3; puts "------- 1"
w.puts("foo")
sleep 3; puts "------- 2"
w.puts("boo")
sleep 3; puts "------- 3"
w.close
}
until r.eof? # should break by w.close but didn't.
puts r.gets
end
* win32/win32.c (rb_w32_select): temprary reverted console support
but it'll be back soon.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-17 02:42:59 +00:00
nagai
762ed0d68c
* ext/tk/lib/multi-tk.rb: MultiTkIp#eval_string and bg_eval_string
...
should call Kernel.eval on caller's safe-level instead of slave's
safe-level (Of course, the given script should be evaluated on
slave's safe-level).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-17 01:44:28 +00:00
kou
446eef82cf
* lib/rss/maker/base.rb (RSS::Maker::ItemsBase#normalize): fixed
...
strange RSS::Maker::Item#max_size behavior.
Thanks to Kazuhiko <kazuhiko@fdiary.net>.
* test/rss/test_maker_1.0.rb (RSS::TestMaker10#test_items): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-16 23:48:17 +00:00
shugo
aa6393778a
* lib/net/imap.rb: supported DIGEST-MD5. Thanks, Mathieu Arnold.
...
* lib/net/imap.rb: use fcall instead of send. Thanks, Satoru
Takabayashi.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-16 23:05:13 +00:00
nobu
5a2f770fb1
* dir.c (rb_push_glob): fix delimiter bug. fixed: [ruby-dev:27105]
...
* dir.c (dir_s_aref, dir_s_glob): allow multiple patterns.
[ruby-dev:27110]
* win32/win32.c (cmdglob): enable brace expansion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-16 13:46:05 +00:00
nobu
2b205913b8
* gc.c (rb_memerror, ruby_xmalloc, ruby_xrealloc, rb_newobj): just
...
abondon if no memoray available, when interpreter is not running.
[ruby-dev:27104]
* gc.c (garbage_collect): return whether GC could run.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-16 13:44:59 +00:00
nobu
c8b2171c66
* file.c (rb_file_s_extname): empty string for path name ending with a
...
period. fixed: [ruby-core:05651]
* file.c (rb_file_join): smarter behavior at edge cases.
fixed: [ruby-core:05706]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-16 13:42:17 +00:00
matz
38aeed1f94
* ext/syck/node.c (syck_replace_str): was using return from the
...
void function. a patch from MIYAMUKO Katsuyuki
<miyamuko@mtb.biglobe.ne.jp>. [ruby-dev:27111]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-16 09:37:45 +00:00
matz
56d82da97c
* ext/bigdecimal/bigdecimal.c: patch from "NATORI Shin"
...
(u-tokyo.ac.jp) applied to fix rounding bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-16 07:22:49 +00:00
nagai
e0166cd8f6
* ext/tk/lib/multi-tk.rb: fix typo on MultiTkIp#bg_eval_string
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-16 05:50:56 +00:00
matz
1b644555ae
* ext/syck/rubyext.c (syck_resolver_transfer): remove C++ style
...
comment (//). [ruby-core:05793]
* lib/net/telnet.rb (Net::Telnet::waitfor): replace sysread with
readpartial. [ruby-talk:127641]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-16 03:09:51 +00:00
nahi
8b02984629
* test/logger/test_logger.rb: unintentionally overwritten changes by
...
Usa. reverted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-15 15:17:53 +00:00
gotoyuzo
563cac1f69
* lib/webrick/cgi.rb (WEBrick::CGI::Socket#initialize): should set
...
$stdout.binmode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-15 15:07:05 +00:00
nahi
29c5ab0b77
* lib/{soap,wsdl,xsd}, test/{soap,wsdl,xsd}: imported soap4r/1.5.5.
...
#nnn is a ticket number at http://dev.ctor.org/soap4r
* SOAP
* allow to configure an envelope namespace of SOAP request. (#124 )
TemporaryNamespace = 'http://www.w3.org/2003/05/soap-envelope '
@client.options["soap.envelope.requestnamespace"] =
TemporaryNamespace
@client.options["soap.envelope.responsenamespace"] =
TemporaryNamespace
@client.do_proc(...)
* let SOAP request XML indent space configuable. see
"soap.envelope.no_indent" option. (#130 )
* let external CES configuable.
ex. client["soap.mapping.external_ces"] = 'SJIS'. $KCODE is used
by default. (#133 )
external CES ::= CES used in Ruby object of client and server
internal CES ::= CES used in SOAP/OM
* add iso-8859-1 external CES support. (#106 )
* fixed illegal 'qualified' handling of elements. it caused
ASP.NET inteoperability problem. (#144 )
* added 'soap.envelope.use_numeric_character_reference' (boolean)
option to let query XML use numeric character reference in XML,
not plain UTF-8 character. !GoogleSearch server seems to not
allow plain UTF-8 character since 2005-08-15 update. (#147 )
* SOAP::Header::SimpleHeader (de)serialization throws an exception
on !SimpleHeader.on_(in|out)bound when header is a String. so we
could not use a simple single element headerItem. fixed. thanks
to emil. (#129 )
* out parameter of rpc operation did not work. (#132 )
* follow HTTP redirect only if using http-access2. (#125 ) (#145 )
* add a workaround for importing an WSDL whose path begins with
drive letter. (#115 )
* WSDL
* SOAP Data which is defined as a simpletype was not mapped
correctly to Ruby obj when using wsdl2ruby.rb generated classdef
file. (#123 )
* rpc/literal support. (#118 )
* re-implemented local element qualify/unqualify control. handles
elementFormDefault and form in WSDL. (#119 )
* Array of an element which has simpleType causes a crash. (#128 )
* prarmeterOrder may not contain return part so it can be shorter
than parts size. Thanks to Hugh. (#139 )
* Samples
* added !BasicAuth client sample. (#117 )
* added Base64 client/server sample.
* added Flickr SOAP interface client sample. (#122 )
* added !SalesForce client sample. (#135 )
* updated Thawte CA certificate for !GoogleAdWords sample.
* updated a client script with the newer version made by Johan.
thanks!
* shortened long file names. (#120 )
* fixed typo in authheader sample. (#129 )
* updated deprecated method usage. (#138 )
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-15 14:33:53 +00:00
usa
071c45df93
* test/ruby/test_signal.rb (test_exit_action): skip the test using
...
fork on fork-less platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-15 13:42:15 +00:00
akr
80fb5e0584
* lib/open-uri.rb: add :read_timeout option.
...
[ruby-core:4848]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-15 04:56:25 +00:00
nagai
a2e57fd160
* ext/tk/lib/tk/dialog.rb: If a dialog does not show up yet,
...
TkDialogObj#name raises an exception. [ruby-talk:156109]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-15 02:41:17 +00:00
usa
7c5eaf70a3
* win32/win32.c (rb_w32_pipe_exec): remove unnecessary CloseHandle().
...
* win32/win32.c (extract_console_fd, peek_console): new functions.
* win32/win32.c (rb_w32_select): check consoles by polling them.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-15 02:03:43 +00:00
usa
e2472dafa0
* win32/win32.c (collect_file_fd): rename from extract_file_fd.
...
* win32/win32.c (extract_pipe_fd, peek_pipe): new functions.
* win32/win32.c (rb_w32_select): check pipes by polling them.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 14:30:37 +00:00
nobu
9d2b69a273
* dir.c (ruby_glob): glob function not using ruby exception system.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 13:41:02 +00:00
ocean
ca32aea6a2
* dir.c: changed `foo (*bar)_((boo))' to `foo (*bar)(boo)`.
...
* enumerator.c, eval.c, gc.c, intern.h, io.c, process.c, ruby.c,
ruby.h, signal.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 08:30:16 +00:00
ocean
08c1738c51
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
...
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 06:32:32 +00:00