matz
1d1b8102bc
* eval.c (proc_invoke): nail down dyna_var node when Proc object
...
or continuation is created. [ruby-dev:24671]
* io.c (rb_io_s_popen): do not expand argv array. [ruby-dev:24670]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-01 23:49:16 +00:00
kou
c2d8185ba6
* lib/rss/maker/base.rb: changed xml-stylesheet's API of RSS Maker
...
to like item's one.
* lib/rss/xml-stylesheet.rb (RSS::XMLStyleSheet#guess_type): fixed
regular expression bug.
* test/rss/test_maker_xml-stylesheet.rb: updated tests for xml-stylesheet.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-01 13:30:08 +00:00
eban
0aeea1ad38
* README.EXT, README.EXT.ja: remove MANIFEST stuff.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-01 10:41:08 +00:00
eban
49fb289ea1
* MANIFEST, ext/**/MANIFEST: removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-01 10:13:52 +00:00
eban
a39967d062
* ext/extmk.rb (MANIFEST): do not use anymore, use extconf.rb instead.
...
* ext/enumerator/extconf.rb, ext/fcntl/extconf.rb,
ext/stringio/extconf.rb: added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-01 05:04:04 +00:00
usa
aa23bfaf08
* io.c (pipe_open): avoid conflict of variable name. [ruby-dev:24662]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-01 02:55:29 +00:00
eban
d84edcfd73
* process.c (rb_f_exec): should check whether prog is NULL.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-01 02:49:06 +00:00
kou
4fc4f5215b
* lib/rss/maker.rb: added entry point of RSS Maker.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-01 00:43:47 +00:00
matz
8db864c999
* io.c (rb_f_open): create copy of popen specifier. [ruby-dev:24656]
...
* string.c (rb_str_locktmp): lock string temporarily.
* string.c (str_independent): add tmplock check.
* io.c (io_write): lock output string temporarily.
[ruby-dev:24649]
* io.c (io_write): use rb_str_locktmp().
* io.c (read_all): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-31 17:37:52 +00:00
naruse
b7e13d8677
process.c: on NetBSD don't use setruid() and setrgid().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-31 15:04:15 +00:00
kou
d58d59b0a4
* lib/rss/maker/*.rb: added RSS Maker.
...
* test/rss/test_maker_*.rb: added tests for RSS Maker.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-31 14:14:21 +00:00
suke
c6cf2e24fe
add WIN32OLE.codepage, WIN32OLE.codepage=
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-31 07:59:58 +00:00
eban
6d63dce6cb
* ext/nkf/nkf-utf8/nkf.c: add "\075?UTF-8?Q?" for Gmail.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-31 05:37:09 +00:00
aamine
cf49a01eae
* parse.y [ripper]: emit lexer-event values to the parser.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-31 05:22:58 +00:00
matz
3e9e2bd4ed
* eval.c (rb_eval): NODE_XSTR should pass copy of literal string.
...
* array.c (rb_ary_update): a[n,m]=nil no longer works as element
deletion.
* enum.c (enum_sort_by): protect continuation jump in.
[ruby-dev:24642]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-30 06:56:18 +00:00
suke
ad2c05f1c0
ext/win32ole/win32ole.c: add WIN32OLE_TYPELIB class. add
...
WIN32OLE#ole_typelib method.
ext/win32ole/tests/testOLETYPELIB.rb: add WIN32OLE_TYPELIB class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-30 06:25:00 +00:00
nobu
9f5f676d82
* io.c (rb_io_check_initialized): new function to check uninitialized
...
object. [ruby-talk:118234]
* file.c (rb_file_path), io.c (rb_io_closed): check if initialized.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-29 12:28:32 +00:00
naruse
bf31fe3ed0
* ext/nkf: follow nkf2.0.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-29 10:11:22 +00:00
usa
61edd31bf6
* parse.y (ripper_s_allocate): add prototype for Microsoft compiler.
...
* range.c (range_step, range_each): need cast.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-29 08:19:50 +00:00
matz
7c04db1d3c
* eval.c (rb_thread_start_0): forget to free some memory chunks.
...
[ruby-core:03611]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-29 08:08:16 +00:00
nobu
1b66559c66
* parse.y (rb_parser_append_print, rb_parser_while_loop): body node
...
can be empty. [ruby-dev:24628]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-29 02:35:11 +00:00
matz
b0dee8f90d
* eval.c (ruby_cleanup): ruby_finalize_1 may cause exception,
...
should be wrapped by PUSH_TAG/POP_TAG(). [ruby-dev:24627]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-29 01:06:37 +00:00
matz
018837b84f
* node.h (NODE_TYPESHIFT): allow 4 more bits for line numbers.
...
[ruby-talk:117841]
* ruby.h (FL_ABLE): nodes are not subject for flag operations.
* io.c (ARGF_FORWARD): should have specified argv explicitly,
since we no longer have frame->argv saved. [ruby-dev:24602]
* string.c (RESIZE_CAPA): check string attribute before modifying
capacity member of string structure. [ruby-dev:24594]
* ext/zlib/zlib.c (gzreader_gets): use memchr() to to gain
performance. [ruby-talk:117701]
* sprintf.c (rb_f_sprintf): raise ArgumentError for extra
arguments, unless (digit)$ style used.
* io.c (rb_io_fptr_finalize): leave stdin/stdout/stderr open in
interpreter termination. [ruby-dev:24579]
* eval.c (frame_free): Guy Decoux solved the leak problem.
Thanks. [ruby-core:03549]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-27 09:29:26 +00:00
nobu
ee51d0f9fd
* string.c (str_gsub): use a string object for exception safeness.
...
[ruby-dev:24601]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-27 00:18:08 +00:00
dave
3ecf38f376
Restore correct :nodoc: behavior with nested classes
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-26 14:33:17 +00:00
eban
b088595db7
* win32/win32.c (isUNCRoot): should check NUL after '.'.
...
[ruby-dev:24590]
* win32/win32.c (isUNCRoot): fixed buffer overrun.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-25 09:40:55 +00:00
nobu
da1265564a
* eval.c (get_backtrace): ignore illegal backtrace. [ruby-dev:24587]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-24 23:04:04 +00:00
nobu
d0c2e3c7c9
* eval.c (rb_load, search_required, rb_require_safe, rb_require): use
...
frozen shared string to avoid outside modification. [ruby-dev:24580]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-23 15:41:17 +00:00
matz
9c65d88c0e
* ext/zlib/zlib.c (zstream_append_input): clear klass for z->input
...
to avoid potential vulnerability.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-23 06:53:11 +00:00
matz
3377aebed4
* ext/zlib/zlib.c (zstream_run): always use zstream_append_input()
...
to avoid SEGV. [ruby-dev:24568]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-22 15:28:13 +00:00
matz
1419b789ab
* eval.c (rb_alias): was warning for wrong condition.
...
[ruby-dev:24565]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-22 03:05:10 +00:00
gotoyuzo
e7a1207dcd
* lib/webrick/httprequest.rb (WEBrick::HTTPRequest#meta_vars):
...
should check if path_info is not nil. [webrickja:126]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-22 01:38:42 +00:00
matz
d9d60e8c12
* ext/zlib/zlib.c (zstream_shift_buffer): should restore class
...
field of a buffer. [ruby-dev:24562]
* eval.c (rb_alias): should warn on method discarding.
[ruby-dev:24546]
* ext/zlib/zlib.c (zstream_expand_buffer_into): hide internal
string buffer by clearing klass. [ruby-dev:24548]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-21 16:13:32 +00:00
nobu
0f3decb071
* string.c (rb_str_include): should not treat char as negative value.
...
[ruby-dev:24558]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-21 15:21:08 +00:00
gotoyuzo
b8f68de2be
* lib/webrick/httpresponse.rb (WEBrick::HTTPResponse#send_body_io):
...
ensure to close @body. (http://bugs.debian.org/277520 )
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-21 10:10:52 +00:00
eban
2870c4d1a6
* io.c (pipe_open): variable name "fpw" is conflicted.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-21 04:16:40 +00:00
matz
7d7d82463d
* parse.y (lex_getline): should not touch ruby_debug_lines if
...
RIPPER is defined. [ruby-dev:24547]
* string.c (str_gsub): reentrant check. [ruby-dev:24432]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-20 15:44:06 +00:00
nobu
93931a0d93
commit miss
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-20 10:40:26 +00:00
matz
fbdc2bf5f7
* parse.y (lex_getline): should update ruby_debug_lines.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-20 06:53:42 +00:00
matz
39ecad1339
* ext/dbm/dbm.c (fdbm_delete_if): should check if deleting element
...
is a string. [ruby-dev:24490]
* ext/sdbm/init.c (fsdbm_delete_if): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-19 19:49:49 +00:00
matz
9f6b3edcd6
* array.c (rb_ary_times): Array#* should return an instance of
...
the class of right operand. [ruby-dev:24526]
* ext/zlib/zlib.c (zstream_detach_buffer): should not expose
class-less object to Ruby world. [ruby-dev:24530]
* eval.c (proc_dup): provide Proc#dup as well. [ruby-talk:116915]
* eval.c (ruby_exec): stack marking position may be higher than
expected. thanks to Guy Decoux. [ruby-core:03527]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-19 19:17:33 +00:00
nobu
60a7b3a935
* eval.c (search_required): required name must not be changed before
...
loading. [ruby-dev:24492]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-19 15:25:49 +00:00
nobu
db00c782f4
* eval.c (rb_require_safe): provide the feature after loaded.
...
[ruby-list:40085]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-19 14:59:52 +00:00
dave
d43b40dbdd
RDoc can now deal with "attr" used as a variable
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-19 13:46:05 +00:00
suke
05a43e2367
* ext/win32ole.c(ole_invoke): retrieve the result value when
...
retrying the IDispatch::invoke.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-19 11:40:33 +00:00
matz
1057902ac7
* io.c (read_all): block string buffer modification during
...
rb_io_fread() by freezing it temporarily. [ruby-dev:24479]
* dir.c (rb_push_glob): block call at once the end of method.
[ruby-dev:24487]
* ext/enumerator/enumerator.c (enum_each_slice): remove
rb_gc_force_recycle() to prevent potential SEGV.
[ruby-dev:24499]
* ext/zlib/zlib.c (zstream_expand_buffer): hide internal string
buffer by clearing klass. [ruby-dev:24510]
* ext/socket/socket.c (sock_s_getservbyaname): protocol string
might be altered. [ruby-dev:24503]
* string.c (rb_str_upto): check if return value from succ is a
string. [ruby-dev:24504]
* io.c (rb_io_popen): get mode string via rb_io_flags_mode() to
avoid mode string modification. [ruby-dev:24454]
* io.c (rb_io_getline_fast): should take delim as unsigned char to
distinguish EOF and '\377'. [ruby-dev:24460]
* io.c (rb_io_getline): add check for RS modification.
[ruby-dev:24461]
* enum.c (enum_sort_by): use qsort() directly instead using
rb_iterate(). [ruby-dev:24462]
* enum.c (enum_each_with_index): remove rb_gc_force_recycle() to
prevent access to recycled object (via continuation for
example). [ruby-dev:24463]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-19 10:25:23 +00:00
nobu
39324f819f
* string.c (rb_str_upto): method result must be checked. [ruby-dev:24504]
...
* eval.c (error_print): ditto. [ruby-dev:24519]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-18 23:47:32 +00:00
nobu
f2549e0bf7
* marshal.c (r_object0): check inheritance by the internal function.
...
[ruby-dev:24515]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-18 14:37:42 +00:00
nobu
0fdb2ae104
* io.c (rb_io_flags_mode, rb_io_mode_flags): distinguish whether file
...
not existing is created. [ruby-dev:24505]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-18 02:29:43 +00:00
nobu
2cb2ef977c
* file.c (rb_file_truncate): discard read buffer before truncation.
...
[ruby-dev:24197]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-17 22:26:58 +00:00